/* ========================================
   HOME PAGE SPECIFIC STYLES
   ======================================== */

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-label {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(227, 119, 64, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(227, 119, 64, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Hero Visual - 3D Device */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.device-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(227, 119, 64, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.device-mockup {
    position: relative;
    width: 320px;
    height: 480px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 20px;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), #2d3750);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.device-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.screen-content {
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pulse-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--accent-orange);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.device-icon {
    font-size: 4rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.screen-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.screen-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Floating Pills */
.floating-pill {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-orange);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: floatPill 4s ease-in-out infinite;
}

.pill-1 {
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.pill-2 {
    top: 60%;
    right: -5%;
    animation-delay: 1.5s;
}

.pill-3 {
    bottom: 15%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes floatPill {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    opacity: 0.6;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-blue);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 24px;
        opacity: 0;
    }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(250, 235, 215, 0.3));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(227, 119, 64, 0.3);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(0deg) scale(1.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.feature-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--accent-orange);
    font-size: 0.9rem;
}

/* ========================================
   Tech Demo Section
   ======================================== */

.tech-demo {
    background: var(--accent-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.tech-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.tech-demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tech-demo-visual {
    position: relative;
    height: 500px;
}

.sensor-system {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-core {
    width: 120px;
    height: 120px;
    background: rgba(227, 119, 64, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 40px rgba(227, 119, 64, 0.6);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hub-core span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sensor-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: floatSensor 3s ease-in-out infinite;
}

.sensor-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sensor-2 {
    top: 10%;
    right: 20%;
    animation-delay: 1s;
}

.sensor-3 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes floatSensor {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.sensor-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sensor-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.sensor-line {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
}

.data-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-orange);
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation: particleFlow1 4s infinite;
}

.particle-2 {
    top: 20%;
    right: 30%;
    animation: particleFlow2 4s infinite 0.5s;
}

.particle-3 {
    bottom: 25%;
    left: 45%;
    animation: particleFlow3 4s infinite 1s;
}

.particle-4 {
    top: 40%;
    left: 25%;
    animation: particleFlow1 4s infinite 1.5s;
}

.particle-5 {
    top: 40%;
    right: 25%;
    animation: particleFlow2 4s infinite 2s;
}

.particle-6 {
    bottom: 30%;
    right: 48%;
    animation: particleFlow3 4s infinite 2.5s;
}

@keyframes particleFlow1 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes particleFlow2 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-100px, 100px);
    }
}

@keyframes particleFlow3 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(0, -100px);
    }
}

.tech-demo-text {
    color: white;
}

.tech-demo-text h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.tech-demo-text .section-subtitle {
    color: var(--accent-orange);
}

.tech-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.tech-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.tech-feature-number {
    width: 50px;
    height: 50px;
    background: rgba(227, 119, 64, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tech-feature-content h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.tech-feature-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-visual {
    margin-bottom: 1.5rem;
}

.benefit-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(227, 119, 64, 0.1), rgba(68, 81, 107, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-orange);
    position: relative;
    transition: var(--transition);
}

.benefit-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.benefit-card:hover .benefit-circle {
    transform: scale(1.1);
}

.benefit-card:hover .benefit-circle::before {
    opacity: 1;
    animation: rotateBorder 2s linear infinite;
}

@keyframes rotateBorder {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.benefit-card p {
    line-height: 1.7;
    color: var(--text-dark);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-beige), rgba(255, 255, 255, 0.5));
}

.cta-card {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-content {
    text-align: left;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cta-stat {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.cta-stat:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-stat i {
    font-size: 2rem;
    color: var(--accent-orange);
}

.cta-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.cta-stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.cta-stat-label .stat-label-light {
    font-weight: normal;
    opacity: 0.6;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-content,
    .tech-demo-content,
    .cta-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .device-mockup {
        width: 280px;
        height: 420px;
    }
    
    .tech-demo-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .glass-button {
        width: 100%;
        text-align: center;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .device-mockup {
        width: 240px;
        height: 360px;
    }
    
    .floating-pill {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}
