/* ============================================================================
   PAGE SECTIONS - Hero, Features, CTA, Footer, etc
   ============================================================================ */

/* ====== Navigation ====== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    background: rgba(10, 14, 26, 0.8);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    transition: all var(--transition-base);
}

nav.scrolled {
    padding: 1rem 3rem;
    background: rgba(10, 14, 26, 0.95);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====== Hero Section ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    z-index: 1;
}

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

.hero-content {
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

/* ====== Screenshot Slider ====== */
.hero-visual {
    position: relative;
    opacity: 0;
    animation: fadeInRight 1s ease forwards 0.4s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screenshot-slider {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.screenshot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.screenshot {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.screenshot.active {
    opacity: 1;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05),
        rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%,
        rgba(59, 130, 246, 0.1) 50%,
        transparent 70%);
    animation: shimmer 3s infinite;
}

.screenshot-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(10, 14, 26, 0.7) 0%,
        rgba(10, 14, 26, 0.5) 50%,
        rgba(10, 14, 26, 0.7) 100%);
    z-index: 1;
}

.placeholder-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    line-height: 1.8;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.3);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(148, 163, 184, 0.5);
}

.dot.active {
    background: var(--accent-blue);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ====== Features Section ====== */
.features {
    padding: 6rem 3rem;
    position: relative;
    z-index: 1;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

/* ====== Tech Stack Section ====== */
.tech-stack {
    padding: 4rem 3rem;
    position: relative;
    z-index: 1;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tech-container h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ====== CTA Section ====== */
.cta-section {
    padding: 6rem 3rem;
    position: relative;
    z-index: 1;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    box-shadow: var(--shadow-md);
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.countdown {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-container > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Subscribe Section within CTA */
.subscribe-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subscribe-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.subscribe-form {
    position: relative;
}

/* ====== Contact Section ====== */
.contact-section {
    padding: 6rem 3rem;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

/* ====== Footer ====== */
footer {
    padding: 4rem 3rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* WiFi Kickstart - Default 3 columns: Wide brand + 2 narrow columns */
.footer-container.three-column {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

/* Future Robot - 2 column layout option */
.footer-container.two-column {
    grid-template-columns: 1.5fr 1fr;
    max-width: 900px;
    gap: 6rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== Responsive Design ====== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Keep three-column footer on tablet, drop two-column */
    .footer-container.two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .subscribe-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .subscribe-input-group button {
        width: 100%;
    }

    .subscribe-section h3 {
        font-size: 1.25rem;
    }

    .screenshot-slider {
        height: 400px;
    }

    .features {
        padding: 4rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-header h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cta-container {
        padding: 2.5rem 1.5rem;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .countdown {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-item {
        min-width: 70px;
    }

    .countdown-value {
        font-size: 2.5rem;
    }

    .countdown-label-text {
        font-size: 0.75rem;
    }

    /* Both footer styles stack on mobile */
    .footer-container,
    .footer-container.two-column,
    .footer-container.three-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
