/* Ekwa Labs - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700;1,900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand */
    --navy: #1B3A6B;
    --blue: #2563EB;
    --ekwa-yellow: #ffe591;
    --black: #111827;

    /* Light system */
    --bg: #F5F4F0;
    --surface: #FFFFFF;
    --surface2: #F5F4F0;
    --border: #EEECEA;

    --text: #111827;
    --text-dim: #6B7280;

    /* Roles */
    --accent: var(--navy);
    --accent-light: #93C5FD;
    --accent-glow: rgba(27,58,107,0.10);
    --accent-lite: rgba(27,58,107,0.07);

    /* Yellow mapping */
    --yellow: var(--ekwa-yellow);
    --yellow-glow: rgba(255,229,145,0.28);

    /* Semantic aliases */
    --ekwa-blue: var(--navy);
    --ekwa-lite: #93C5FD;

    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-accent: 0 4px 20px rgba(27,58,107,0.25);
    --nav-height: 60px;

    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
}

/* Dot grid texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(27,58,107,0.065) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
    transition: none !important;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: var(--nav-height);
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav-scrolled {
    background: rgba(245,244,240,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.055);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--accent);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.nav-cta) {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active:not(.nav-cta) {
    color: var(--accent);
}

.nav-cta {
    padding: .5rem 1.25rem;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 1px 4px rgba(27,58,107,0.2);
}

.nav-cta:hover {
    background: #0F2548;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27,58,107,0.3);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
    line-height: 1;
}

/* FLOATING SCROLL-TO-TOP BUTTON */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 20px;
    z-index: 200;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid rgba(27,58,107,0.18);
    border-radius: 12px;
    color: var(--text-dim);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(27,58,107,0.20);
    transform: translateY(-2px);
}

/* SECTIONS */
section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Benefits section — needs full-width container for background */
.benefits-section {
    max-width: 100%;
    padding: 5rem 2rem;
    margin: 0;
}

/* Expect section — card-style container, extra top margin for breathing room */
.expect-section {
    background: var(--surface);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 900px;
    margin: 0 auto 5rem;
}

.page-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 3rem;
    position: relative;
}

/* HERO (index specific) */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
    position: relative;
}

/* Hero text wrapper — sits above deco SVGs */
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -18%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem 1rem;
    background: rgba(27,58,107,0.10);
    border: 1px solid rgba(27,58,107,0.22);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: #1B3A6B;
    margin-bottom: 2rem;
    position: relative;
    font-family: var(--sans);
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(245,158,11,0.35);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--serif);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h3, h4 {
    font-family: var(--sans);
    letter-spacing: -0.01em;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--text);
}

.hero h1 em {
    font-style: italic;
    color: var(--navy);
    -webkit-text-fill-color: var(--navy);
    background: none;
}

.hero-sub {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
    font-weight: 400;
}

.section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--navy);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
}

.section-label::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--navy);
    border-radius: 1px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.section-desc {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text);
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

/* BUTTONS */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 2.2rem;
    background: linear-gradient(135deg, #1B3A6B, #2563EB);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 4px 20px rgba(27,58,107,0.25);
    font-family: var(--sans);
    -webkit-text-fill-color: #ffffff;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(27,58,107,0.35);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.hero-cta svg {
    width: 18px;
    height: 18px;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.text-link:hover {
    border-bottom-color: var(--accent);
}

/* STATS BAR */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 4rem;
    max-width: 800px;
    width: 100%;
    box-shadow: var(--shadow);
}

.stat {
    background: rgba(255,255,255,0.85);
    padding: 1.8rem 1.5rem;
    text-align: center;
}

.stat-num {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: .35rem;
}

.stat-label {
    font-size: .78rem;
    color: var(--text-dim);
    font-weight: 600;
}

/* CARDS - Pain, Capability, Program */
.pain-grid,
.program-cards,
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pain-card,
.p-card,
.capability-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem;
    text-align: left;
    transition: all .22s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.pain-card:hover,
.p-card:hover,
.capability-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27,58,107,0.20);
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

.pain-icon {
    width: 42px;
    height: 42px;
    background: rgba(27,58,107,0.08);
    border: 1px solid rgba(27,58,107,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.pain-icon svg {
    width: 20px;
    height: 20px;
    color: var(--navy);
}

.pain-card h3,
.capability-card h3 {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: .5rem;
}

.pain-card p,
.capability-card p {
    font-size: .9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.capability-icon {
    font-size: 1.8rem;
    margin-bottom: .5rem;
}

/* Program cards */
.p-card.featured {
    border-color: rgba(27,58,107,0.20);
    background: linear-gradient(165deg, rgba(27,58,107,0.08) 0%, var(--surface) 55%);
}

.p-card-label {
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    margin-bottom: .6rem;
}

.p-card h3 {
    font-size: 1.3rem;
    font-weight: 950;
    margin-bottom: .8rem;
}

.p-card ul {
    list-style: none;
}

.p-card ul li {
    font-size: .86rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .55rem;
}

.p-card ul li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
    font-weight: 950;
}

/* SOLUTION SECTION */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.solution-visual {
    background: linear-gradient(180deg, rgba(27,58,107,0.08) 0%, var(--surface) 40%);
    border: 1px solid rgba(27,58,107,0.12);
    border-radius: 22px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.solution-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -55%;
    width: 210%;
    height: 210%;
    background: radial-gradient(ellipse at top right, var(--yellow-glow) 0%, transparent 55%);
    pointer-events: none;
}

.call-flow {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1.1rem;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    font-size: .88rem;
    transition: all .22s ease;
}

.flow-step:hover {
    border-color: rgba(255,229,145,0.85);
    background: rgba(255,229,145,0.28);
    transform: translateY(-1px);
}

.flow-num {
    width: 28px;
    height: 28px;
    background: var(--yellow);
    color: var(--black);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 950;
    flex-shrink: 0;
}

.solution-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 950;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.solution-text h2 em {
    font-style: normal;
    color: rgba(0,0,0,0.86);
    background: rgba(255,229,145,0.70);
    padding: 0 .35rem;
    border-radius: 8px;
}

/* CHECKLIST */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    font-size: .95rem;
    color: var(--text-dim);
}

/* CTA SECTION */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
}

.cta-box {
    background: linear-gradient(165deg, rgba(27,58,107,0.08) 0%, var(--surface) 60%);
    border: 1px solid rgba(27,58,107,0.12);
    border-radius: 26px;
    padding: 4rem 3rem;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.08);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;
    height: 540px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 72%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
}

.cta-box p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.spots {
    margin-top: 1.2rem;
    font-size: .82rem;
    color: var(--text-dim);
    position: relative;
}

.spots strong {
    color: var(--black);
    background: rgba(255,229,145,0.78);
    padding: 0 .35rem;
    border-radius: 7px;
}

/* DEMO CALL CARD */
.demo-call {
    background: #fff;
    padding: 1.8rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* INTEGRATION SECTION */
.integration-section {
    background: var(--surface);
    border-radius: 32px;
    padding: 3rem;
    margin: 4rem auto;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 4.5rem 2rem 2rem;
    background: var(--surface);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Large brand block */
.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-logo-large {
    font-weight: 900;
    font-size: 2rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    line-height: 1;
}

.footer-logo-large span {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-dim);
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

.footer-email {
    display: inline-block;
    margin-top: .2rem;
    color: var(--accent);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease;
    width: fit-content;
}

.footer-email:hover {
    border-bottom-color: var(--accent);
}

/* Nav columns block */
.footer-nav-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: .25rem;
}

.footer-column h4 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-family: var(--sans);
}

.footer-column a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: .65rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: .8rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* HERO TAGLINE */
.hero-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* 2×2 PAIN GRID (4 cards, balanced) */
.pain-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* PROBLEM CLOSING STATEMENT */
.problem-closing {
    margin-top: 3rem;
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, rgba(27,58,107,0.07) 0%, rgba(255,229,145,0.10) 100%);
    border: 1px solid rgba(27,58,107,0.12);
    border-radius: 18px;
    text-align: center;
}

.problem-closing p {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.6;
}

/* KEY TAKEAWAY — highlighted variant */
.problem-closing--highlight {
    padding: 2.4rem 2.8rem;
    background: linear-gradient(135deg, rgba(27,58,107,0.09) 0%, rgba(255,229,145,0.16) 100%);
    border: 1.5px solid rgba(27,58,107,0.22);
    border-left: 4px solid var(--navy);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(27,58,107,0.08);
    text-align: left;
}

.problem-closing--highlight p {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.55;
}

/* BENEFITS GRID — 3 on top row, 2 centered on bottom row */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.benefit-card:nth-child(1) { grid-column: span 2; }
.benefit-card:nth-child(2) { grid-column: span 2; }
.benefit-card:nth-child(3) { grid-column: span 2; }
.benefit-card:nth-child(4) { grid-column: 2 / span 2; }
.benefit-card:nth-child(5) { grid-column: 4 / span 2; }

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.8rem;
    text-align: left;
    transition: all .22s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(27,58,107,0.20);
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}



.benefit-num {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--navy);
    margin-bottom: .6rem;
    text-transform: uppercase;
    font-family: var(--sans);
}

.benefit-card h3 {
    font-size: 1.05rem;
    font-weight: 900;
    margin-bottom: .5rem;
}

.benefit-card p {
    font-size: .9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* EXPECT GRID */
.expect-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.expect-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all .22s ease;
}

.expect-item:hover {
    transform: translateY(-1px);
    border-color: rgba(27,58,107,0.20);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.expect-icon {
    width: 44px;
    height: 44px;
    background: rgba(27,58,107,0.08);
    border: 1px solid rgba(27,58,107,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.expect-icon svg {
    width: 20px;
    height: 20px;
    color: var(--navy);
}

.expect-item h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: .35rem;
}

.expect-item p {
    font-size: .88rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        padding: .85rem 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 4rem 1.2rem;
    }

    .expect-section {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
        margin-bottom: 3rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .solution-grid,
    .integration-section > div {
        grid-template-columns: 1fr;
    }

    .benefits-grid,
    .pain-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .benefit-card:nth-child(1),
    .benefit-card:nth-child(2),
    .benefit-card:nth-child(3),
    .benefit-card:nth-child(4),
    .benefit-card:nth-child(5) {
        grid-column: span 1;
    }

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

    /* Footer responsive */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-nav-block {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo-large {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stat {
        padding: 1.2rem 1rem;
    }

    .footer-nav-block {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   THEME TOGGLE SWITCH
   ============================================ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: 0.75rem;
}

.theme-toggle .switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.theme-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.theme-toggle .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.theme-toggle input:checked + .slider {
    background-color: var(--accent);
}

.theme-toggle input:checked + .slider:before {
    transform: translateX(22px);
}

/* ============================================
   DARK THEME - Complete Styling
   ============================================ */
[data-theme="dark"] {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #21262d;
    --border: rgba(255,255,255,0.1);
    --text: #e6edf3;
    --text-dim: rgba(225,228,232,0.7);
    --navy: #58c3ff;
    --blue: #93C5FD;
    --accent: #58c3ff;
    --accent-light: #99e0ff;
    --accent-glow: rgba(88,195,255,0.15);
    --shadow: 0 14px 50px rgba(0,0,0,0.5);
    --shadow-accent: 0 16px 48px rgba(88,195,255,0.15);
}

/* Smooth theme transition */
[data-theme="dark"] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] body::before {
    background-image: radial-gradient(circle, rgba(88,195,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    transition: none !important;
}

/* Dark theme - body and base */
[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

/* Dark theme - Navigation */
[data-theme="dark"] nav {
    background: rgba(13,17,23,0.90);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav-logo {
    color: var(--text);
}

[data-theme="dark"] .nav-links a:not(.nav-cta) {
    color: var(--text-dim);
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active:not(.nav-cta) {
    color: var(--accent);
}

/* Dark theme - Mobile menu */
[data-theme="dark"] .mobile-menu-btn {
    color: var(--text);
}

/* Dark theme - Badge */
[data-theme="dark"] .badge {
    background: rgba(88,195,255,0.15);
    border: 1px solid rgba(88,195,255,0.3);
    color: var(--accent);
}

/* Dark theme - Hero */
[data-theme="dark"] .hero::before {
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
}

/* Dark theme - Typography */
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4 {
    color: var(--text);
}

[data-theme="dark"] .hero h1 em {
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    background: none;
}

[data-theme="dark"] .hero-sub {
    color: var(--text-dim);
}

[data-theme="dark"] .section-desc {
    color: var(--text);
}

[data-theme="dark"] .section-label {
    color: var(--accent);
}

[data-theme="dark"] .section-title {
    color: var(--text);
}

/* Dark theme - Stats bar */
[data-theme="dark"] .stats-bar {
    background: var(--border);
    border: 1px solid var(--border);
}

[data-theme="dark"] .stat {
    background: var(--surface);
}

[data-theme="dark"] .stat-num {
    background: linear-gradient(135deg, var(--accent), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .stat-label {
    color: var(--text-dim);
}

/* Dark theme - Cards */
[data-theme="dark"] .pain-card,
[data-theme="dark"] .p-card,
[data-theme="dark"] .capability-card {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .pain-card h3,
[data-theme="dark"] .capability-card h3,
[data-theme="dark"] .p-card h3 {
    color: var(--text);
}

[data-theme="dark"] .pain-card p,
[data-theme="dark"] .capability-card p,
[data-theme="dark"] .p-card p,
[data-theme="dark"] .p-card ul li {
    color: var(--text-dim);
}

[data-theme="dark"] .pain-icon {
    background: rgba(88,195,255,0.15);
    border: 1px solid rgba(88,195,255,0.2);
}

/* Dark theme - Featured card */
[data-theme="dark"] .p-card.featured {
    background: linear-gradient(165deg, rgba(88,195,255,0.1) 0%, var(--surface) 55%);
    border: 1px solid rgba(88,195,255,0.2);
}

/* Dark theme - Solution section */
[data-theme="dark"] .solution-visual {
    background: linear-gradient(180deg, rgba(88,195,255,0.1) 0%, var(--surface) 40%);
    border: 1px solid var(--border);
}

[data-theme="dark"] .solution-text h2 {
    color: var(--text);
}

[data-theme="dark"] .solution-text p {
    color: var(--text-dim);
}

[data-theme="dark"] .solution-text h2 em {
    background: rgba(255,229,145,0.2);
    color: var(--text);
    padding: 0 0.35rem;
    border-radius: 8px;
}

/* Dark theme - Call flow */
[data-theme="dark"] .flow-step {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="dark"] .flow-step:hover {
    background: rgba(88,195,255,0.1);
    border-color: var(--accent);
}

[data-theme="dark"] .flow-num {
    background: var(--yellow);
    color: #000;
}

/* Dark theme - CTA section */
[data-theme="dark"] .cta-box {
    background: linear-gradient(165deg, rgba(88,195,255,0.1) 0%, var(--surface) 60%);
    border: 1px solid var(--border);
}

[data-theme="dark"] .cta-box h2 {
    color: var(--text);
}

[data-theme="dark"] .cta-box p {
    color: var(--text-dim);
}

/* Dark theme - Buttons - keep primary buttons bright */
[data-theme="dark"] .hero-cta {
    background: linear-gradient(135deg, #1d4ed8, #58c3ff);
    color: #fff;
}

[data-theme="dark"] .nav-cta {
    background: #58c3ff;
    color: #0d1117;
}

[data-theme="dark"] .text-link {
    color: var(--accent);
}

/* Dark theme - Forms (apply.html) */
[data-theme="dark"] form > div:first-child {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--accent);
    outline: none;
}

[data-theme="dark"] label {
    color: var(--text);
}

/* Dark theme - Demo call cards */
[data-theme="dark"] .demo-call {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .demo-call p {
    color: var(--text-dim);
}

/* Dark theme - Integration section */
[data-theme="dark"] .integration-section {
    background: var(--surface);
    border: 1px solid var(--border);
}

/* Dark theme - Footer */
[data-theme="dark"] footer {
    background: var(--surface2);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .footer-logo-large {
    color: var(--text);
}

[data-theme="dark"] .footer-tagline {
    color: var(--text-dim);
}

[data-theme="dark"] .footer-email {
    color: var(--accent);
}

[data-theme="dark"] .footer-column h4 {
    color: var(--text-dim);
}

[data-theme="dark"] .footer-column a {
    color: var(--text-dim);
}

[data-theme="dark"] .footer-column a:hover {
    color: var(--accent);
}

[data-theme="dark"] .footer-bottom {
    color: var(--text-dim);
}

[data-theme="dark"] .footer-bottom a {
    color: var(--accent);
}

/* Dark theme - Checklists */
[data-theme="dark"] .check-list li {
    color: var(--text-dim);
}

/* Dark theme - Inline styles adjustments */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"] {
    background: var(--surface) !important;
}

[data-theme="dark"] [style*="background: var(--surface)"],
[data-theme="dark"] [style*="background:var(--surface)"] {
    background: var(--surface2) !important;
}

[data-theme="dark"] [style*="color: var(--text-dim)"],
[data-theme="dark"] [style*="color:var(--text-dim)"] {
    color: var(--text-dim) !important;
}

/* Dark theme - Timeline cards */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:#fff"] {
    background: var(--surface) !important;
}

/* Dark theme - Team cards */
[data-theme="dark"] [style*="background: white"][style*="padding"] {
    background: var(--surface) !important;
}

/* Dark theme - Grain texture - make it subtle */
[data-theme="dark"] body::before {
    opacity: 0.015;
}

/* Dark theme - Hero tagline */
[data-theme="dark"] .hero-tagline {
    color: var(--accent);
}

/* Dark theme - Problem closing */
[data-theme="dark"] .problem-closing {
    background: linear-gradient(135deg, rgba(88,195,255,0.08) 0%, rgba(255,229,145,0.08) 100%);
    border-color: rgba(88,195,255,0.15);
}

[data-theme="dark"] .problem-closing p {
    color: var(--text);
}

/* Dark theme - Key takeaway highlight */
[data-theme="dark"] .problem-closing--highlight {
    background: linear-gradient(135deg, rgba(88,195,255,0.10) 0%, rgba(255,229,145,0.08) 100%);
    border-color: rgba(88,195,255,0.25);
    border-left-color: var(--accent);
    box-shadow: 0 8px 32px rgba(88,195,255,0.08);
}

[data-theme="dark"] .problem-closing--highlight p {
    color: var(--accent);
}

/* Dark theme - Benefits grid */
[data-theme="dark"] .benefit-card {
    background: var(--surface);
    border: 1px solid var(--border);
}



[data-theme="dark"] .benefit-card h3 {
    color: var(--text);
}

[data-theme="dark"] .benefit-card p {
    color: var(--text-dim);
}

[data-theme="dark"] .benefit-num {
    color: var(--accent);
}

/* Dark theme - Expect items */
[data-theme="dark"] .expect-item {
    background: var(--surface);
    border: 1px solid var(--border);
}

[data-theme="dark"] .expect-item h3 {
    color: var(--text);
}

[data-theme="dark"] .expect-item p {
    color: var(--text-dim);
}

[data-theme="dark"] .expect-icon {
    background: rgba(88,195,255,0.15);
    border-color: rgba(88,195,255,0.2);
}

[data-theme="dark"] .expect-icon svg {
    color: var(--accent);
}

[data-theme="dark"] .pain-icon svg {
    color: var(--accent);
}

/* Dark theme - Nav scrolled */
[data-theme="dark"] nav.nav-scrolled {
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Dark theme - Floating scroll-to-top button */
[data-theme="dark"] .scroll-top-btn {
    background: var(--surface2);
    border-color: rgba(88,195,255,0.2);
    color: var(--text-dim);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

[data-theme="dark"] .scroll-top-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(88,195,255,0.18);
}

/* Dark theme - Expect section wrapper */
[data-theme="dark"] .expect-section {
    background: var(--surface2);
}

/* ============================================
   DECORATIVE SVG UNDERLAYS — AI Labs doodles
   All strictly behind content, non-interactive
   ============================================ */

/* ============================================
   SECTION DECO SVGs — subtle, lighter than hero
   ============================================ */

/* Shared base — all section decos are absolute underlays */
.deco-section {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Ensure sections that host decos are positioned */
.problem,
#building,
.benefits-section,
.expect-section {
    position: relative;
}

/* Section content sits above decos */
.problem > *:not(.deco-section),
#building > *:not(.deco-section),
.benefits-section > *:not(.deco-section),
.expect-section > *:not(.deco-section) {
    position: relative;
    z-index: 1;
}

/* Individual section deco opacities — all noticeably lighter than hero */
.deco-dots-arcs  { opacity: 0.18; }
.deco-plus-grid  { opacity: 0.15; }
.deco-diag-lines { opacity: 0.10; }
.deco-hex        { opacity: 0.16; }

/* Dark mode overrides */
[data-theme="dark"] .deco-dots-arcs,
[data-theme="dark"] .deco-plus-grid,
[data-theme="dark"] .deco-diag-lines,
[data-theme="dark"] .deco-hex {
    filter: invert(1) hue-rotate(180deg) brightness(1.8);
    opacity: 0.14;
}

/* --- Constellation node pulse animations --- */
@keyframes node-pulse {
    0%, 100% { opacity: 0.9; r: attr(r); transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.6); }
}

@keyframes node-pulse-slow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%       { opacity: 0.25; transform: scale(0.5); }
}

@keyframes node-pulse-fast {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.65); }
}

/* --- Constellation (hero background) --- */
.deco-constellation {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    overflow: visible;
}

.deco-constellation .deco-lines {
    opacity: 0.5;
}

.deco-constellation .deco-nodes {
    opacity: 1;
}

/* Staggered pulse on each node */
.deco-constellation .deco-nodes circle:nth-child(1)  { animation: node-pulse      3.2s ease-in-out infinite; transform-origin: 80px  120px; }
.deco-constellation .deco-nodes circle:nth-child(2)  { animation: node-pulse-slow 4.1s ease-in-out infinite; transform-origin: 220px 80px;  }
.deco-constellation .deco-nodes circle:nth-child(3)  { animation: node-pulse-fast 2.8s ease-in-out infinite; transform-origin: 380px 160px; }
.deco-constellation .deco-nodes circle:nth-child(4)  { animation: node-pulse      3.9s ease-in-out infinite; transform-origin: 520px 60px;  }
.deco-constellation .deco-nodes circle:nth-child(5)  { animation: node-pulse-slow 3.4s ease-in-out infinite; transform-origin: 680px 140px; }
.deco-constellation .deco-nodes circle:nth-child(6)  { animation: node-pulse-fast 4.5s ease-in-out infinite; transform-origin: 820px 90px;  }
.deco-constellation .deco-nodes circle:nth-child(7)  { animation: node-pulse      2.6s ease-in-out infinite; transform-origin: 300px 320px; }
.deco-constellation .deco-nodes circle:nth-child(8)  { animation: node-pulse-slow 3.8s ease-in-out infinite; transform-origin: 460px 360px; }
.deco-constellation .deco-nodes circle:nth-child(9)  { animation: node-pulse-fast 3.1s ease-in-out infinite; transform-origin: 620px 280px; }
.deco-constellation .deco-nodes circle:nth-child(10) { animation: node-pulse      4.3s ease-in-out infinite; transform-origin: 800px 260px; }
.deco-constellation .deco-nodes circle:nth-child(11) { animation: node-pulse-slow 2.9s ease-in-out infinite; transform-origin: 500px 500px; }
.deco-constellation .deco-nodes circle:nth-child(12) { animation: node-pulse-fast 3.6s ease-in-out infinite; transform-origin: 660px 480px; }
.deco-constellation .deco-nodes circle:nth-child(13) { animation: node-pulse      4.0s ease-in-out infinite; transform-origin: 140px 400px; }
.deco-constellation .deco-nodes circle:nth-child(14) { animation: node-pulse-slow 3.3s ease-in-out infinite; transform-origin: 220px 530px; }
.deco-constellation .deco-nodes circle:nth-child(15) { animation: node-pulse-fast 2.7s ease-in-out infinite; transform-origin: 30px  280px; }

/* --- Radial signal burst (behind hero heading) --- */
.deco-radial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    width: min(500px, 80vw);
    height: min(500px, 80vw);
    z-index: 0;
    pointer-events: none;
    opacity: 0.20;
}

/* --- Circuit-trace wrap (above footer) --- */
.deco-circuit-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 160px;
    margin-bottom: -2px; /* flush with footer top border */
    z-index: 0;
    pointer-events: none;
}

.deco-circuit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    pointer-events: none;
}

/* --- Dark mode overrides for decoratives --- */
[data-theme="dark"] .deco-constellation {
    opacity: 0.35;
}

[data-theme="dark"] .deco-constellation .deco-lines {
    stroke: #58c3ff;
}

[data-theme="dark"] .deco-constellation .deco-nodes {
    fill: #58c3ff;
}

[data-theme="dark"] .deco-radial {
    opacity: 0.22;
}

[data-theme="dark"] .deco-radial g,
[data-theme="dark"] .deco-radial circle,
[data-theme="dark"] .deco-radial line {
    stroke: #58c3ff;
}

[data-theme="dark"] .deco-radial circle[fill] {
    fill: #58c3ff;
}

[data-theme="dark"] .deco-circuit {
    opacity: 0.28;
}

[data-theme="dark"] .deco-circuit g {
    stroke: #58c3ff;
}

[data-theme="dark"] .deco-circuit circle[fill],
[data-theme="dark"] .deco-circuit .deco-circuit-dot {
    fill: #58c3ff;
}
