/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #000000;
    --bg-dark: #040509;
    --bg-card: #0c0e16;
    --bg-card-hover: #11141f;
    --blue-dark: #1e3a8a;
    --blue: #2563eb;
    --blue-light: #3b82f6;
    --cyan: #00e5ff;
    --cyan-light: #00ffff;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --radius: 12px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Keep anchored sections clear of the fixed header (63px + 16px) */
section[id] { scroll-margin-top: 79px; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Static starfield background ─────────────── */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 15%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 25% 35%, rgba(200,220,255,0.6) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 8%, rgba(255,255,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 42%, rgba(180,210,255,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 72% 18%, rgba(255,255,255,0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 55%, rgba(200,230,255,0.5) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 92% 12%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 5% 62%, rgba(180,200,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 33% 78%, rgba(255,255,255,0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 50%, rgba(200,220,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,0.5) 50%, transparent 100%),
        radial-gradient(2px 2px at 65% 72%, rgba(180,220,255,0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 78% 85%, rgba(255,255,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 40% 25%, rgba(200,210,255,0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 92%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(1px 1px at 88% 38%, rgba(200,230,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 15% 45%, rgba(255,255,255,0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(180,210,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 95% 75%, rgba(255,255,255,0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 3% 30%, rgba(200,220,255,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 28% 5%, rgba(255,255,255,0.35) 50%, transparent 100%),
        radial-gradient(1px 1px at 82% 95%, rgba(200,220,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 48% 68%, rgba(255,255,255,0.4) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 62% 28%, rgba(180,200,255,0.5) 50%, transparent 100%),
        radial-gradient(1px 1px at 38% 52%, rgba(255,255,255,0.35) 50%, transparent 100%);
}

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* Cosmic canvas */
#cosmicCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ── Utilities ───────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 640px;
    margin: 0 auto 60px;
}

.highlight {
    background: linear-gradient(135deg, var(--cyan), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 24px rgba(0, 229, 255, 0.4), 0 0 48px rgba(0, 229, 255, 0.15);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.6), 0 0 64px rgba(0, 229, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ── Glow Blobs ──────────────────────────────── */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(4, 5, 9, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.nav-logo .ai {
    color: var(--white);
}
.nav-logo .unit {
    color: var(--cyan-light);
    position: relative;
    overflow: hidden;
}
.nav-logo .unit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    animation: scan 3s ease-in-out infinite;
}
@keyframes scan {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}
.nav-logo .num { color: var(--white); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-300);
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--cyan); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ── Hero ────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero .glow-1 {
    width: 700px; height: 700px;
    background: var(--blue);
    top: -150px; right: -150px;
    opacity: 0.06;
}
.hero .glow-2 {
    width: 500px; height: 500px;
    background: var(--cyan);
    bottom: -100px; left: -150px;
    opacity: 0.04;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero-text p {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-text {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: float 4s ease-in-out infinite;
}
.hero-logo-text .ai-big {
    font-size: 7rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    letter-spacing: -4px;
}
.hero-logo-text .unit-big {
    font-size: 7rem;
    font-weight: 900;
    color: var(--cyan-light);
    line-height: 0.9;
    letter-spacing: -4px;
    text-shadow: 0 0 60px rgba(0, 255, 255, 0.3), 0 0 120px rgba(0, 255, 255, 0.1);
}
.hero-logo-text .num-big {
    font-size: 8.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 0.95;
    letter-spacing: -3px;
}
.hero-logo-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.15);
    animation: pulse-ring 3s ease-in-out infinite;
}
.hero-logo-ring:nth-child(2) {
    inset: -55px;
    border-color: rgba(37, 99, 235, 0.1);
    animation-delay: 1s;
}
.hero-logo-ring:nth-child(3) {
    inset: -90px;
    border-color: rgba(0, 229, 255, 0.05);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes pulse-ring {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: -50px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ── Services ────────────────────────────────── */
.services { position: relative; }
.services .glow-1 {
    width: 500px; height: 500px;
    background: var(--blue);
    top: 0; left: -200px;
    opacity: 0.06;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: all 0.3s ease;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(0, 229, 255, 0.15));
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.service-card h3,
.service-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.7;
}
.service-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cyan);
}
.service-link:hover { color: var(--cyan-light); }
.services-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 920px;
    margin: 0 auto;
}
.services-grid--paths .service-card { text-align: left; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.services-grid--paths .service-link { margin-top: auto; padding-top: 16px; }
.services-grid--paths .service-card p.service-ask {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-bottom: 6px;
}
.services-grid--paths .service-card h3 { font-size: 1.6rem; }
.services-grid--paths .service-card { position: relative; border-color: rgba(0, 229, 255, 0.14); }
.services-grid--paths .service-card:hover { border-color: rgba(0, 229, 255, 0.45); }
/* Whole card is clickable via its link */
.services-grid--paths .service-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.services .section-title { margin-bottom: 48px; }
.section.services { padding-top: 24px; }
.services-facts { max-width: 920px; margin: 48px auto 0; }
.services-grid--paths .service-card p { font-size: 1.05rem; color: var(--gray-300); }
.service-tag {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 8px;
}

/* ── Check badge ───────────────────────────── */
.why-check {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(0, 229, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--cyan);
    margin-top: 2px;
}
/* ── Process ─────────────────────────────────── */
.process { position: relative; }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.process-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}
.process-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}
.process-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 8px;
}
.process-card h3,
.process-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.process-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}
.process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -14px;
    width: 26px;
    height: 2px;
    background: linear-gradient(to right, var(--blue), var(--cyan));
    opacity: 0.3;
}

/* ── AI-First Delivery ───────────────────────── */
.afd { position: relative; }
.afd .glow-1 {
    width: 500px; height: 500px;
    background: var(--cyan);
    top: 15%; right: -220px;
    opacity: 0.05;
}
.afd .container { position: relative; z-index: 1; }
.afd-page { padding-top: 160px; }
.afd-block + .afd-block { margin-top: 80px; }
.afd-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
}
.afd-lead {
    text-align: center;
    color: var(--gray-400);
    max-width: 640px;
    margin: -20px auto 32px;
}
.afd-lead strong { color: var(--white); font-weight: 600; }

.afd-compare-wrap {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
}
.afd-compare { width: 100%; border-collapse: collapse; text-align: left; }
.afd-compare th,
.afd-compare td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: top;
}
.afd-compare tr:last-child > * { border-bottom: none; }
.afd-compare thead th {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
}
.afd-compare thead th a:hover { color: var(--cyan); }
.afd-compare tbody th {
    width: 22%;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.afd-compare td { font-size: 0.95rem; color: var(--gray-300); }
.afd-compare .is-build { background: rgba(0, 229, 255, 0.04); }
.afd-compare thead .is-build { color: var(--cyan); }

.afd-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.afd-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px 22px;
    font-size: 0.95rem;
    color: var(--gray-300);
}
.afd-list .why-check { margin-top: 0; }

.afd-payment {
    margin-top: 28px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-300);
}
.afd-payment span { color: var(--cyan); }

.afd-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.afd-note {
    margin-top: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray-400);
}
.afd-note strong { color: var(--gray-300); font-weight: 600; }
.afd-note a { color: var(--cyan); border-bottom: 1px solid rgba(0, 229, 255, 0.3); }
.afd-note a:hover { border-color: var(--cyan); }
.afd-cards--four { grid-template-columns: repeat(4, 1fr); }
.afd-stats { margin: 0 0 24px; }
.stats-grid--three { grid-template-columns: repeat(3, 1fr); }
.stat-number--text { font-size: 1.1rem; line-height: 1.5; padding-top: 6px; }

.afd-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    padding: 56px 32px;
}
.afd-cta .afd-heading { margin-bottom: 12px; }
.afd-cta p {
    color: var(--gray-400);
    max-width: 520px;
    margin: 0 auto 28px;
}

/* ── Tech Marquee ────────────────────────────── */
.tech { position: relative; overflow: hidden; }
.tech-marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.tech-marquee {
    display: flex;
    gap: 24px;
    animation: marquee 35s linear infinite;
    position: relative;
    z-index: 1;
}
.tech-item {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-300);
    white-space: nowrap;
    transition: all 0.3s;
}
.tech-item:hover {
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--white);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ── Social Proof ────────────────────────────── */
.proof { position: relative; }
.proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 64px;
    padding: 32px 0;
    position: relative;
    z-index: 1;
}
.proof-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.proof-logo:hover { color: rgba(255,255,255,0.5); }

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
}
.testimonial {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 36px;
    transition: all 0.3s;
}
.testimonial:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 229, 255, 0.15);
}
.testimonial-quote {
    font-size: 2.5rem;
    color: rgba(0, 229, 255, 0.2);
    line-height: 1;
    margin-bottom: 8px;
}
.testimonial p {
    color: var(--gray-400);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--white);
}
.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
}
.testimonial-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ── CTA ─────────────────────────────────────── */
.cta { position: relative; text-align: center; }
.cta-box {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 24px;
    padding: 80px 40px;
}
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
}
.cta-box p {
    font-size: 1.1rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Contact Form ────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2300e5ff' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-group select:invalid { color: var(--gray-400); }
.form-group select option { background: var(--bg-card); color: var(--white); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--gray-400);
    text-align: center;
}
.form-note a { color: var(--cyan); text-decoration: underline; }

/* ── Legal pages ─────────────────────────────── */
.legal-page { padding-top: 140px; }
.legal { max-width: 720px; position: relative; z-index: 1; }
.legal h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}
.legal-updated { margin: 8px 0 40px; font-size: 0.9rem; color: var(--gray-400); }
.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin: 40px 0 12px;
}
.legal p,
.legal li { color: var(--gray-300); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal-table-wrap {
    margin: 16px 0;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    overflow: hidden;
}
.legal-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.legal-table th,
.legal-table td {
    padding: 14px 16px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table th {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray-400);
}
.legal-table td { color: var(--gray-300); line-height: 1.6; }

/* ── Footer ──────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.footer-logo .ai { color: var(--white); }
.footer-logo .unit { color: var(--cyan-light); }
.footer-logo .num { color: var(--white); }
.footer-copy {
    font-size: 0.85rem;
    color: var(--gray-400);
}
.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}
.footer-links a {
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--gray-400);
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-logo-wrapper { width: 300px; height: 300px; }
    .hero-logo-text .ai-big, .hero-logo-text .unit-big { font-size: 5rem; }
    .hero-logo-text .num-big { font-size: 6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-card::after { display: none; }
    .testimonials { grid-template-columns: 1fr; }
    .afd-cards { grid-template-columns: 1fr; }
    .afd-cards--four,
    .afd-cards--roles { grid-template-columns: repeat(2, 1fr); }
    .stats-grid--three { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1150px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .hero-logo-wrapper { width: 220px; height: 220px; }
    .hero-logo-text .ai-big, .hero-logo-text .unit-big { font-size: 3.5rem; }
    .hero-logo-text .num-big { font-size: 4.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-number { font-size: 1.3rem; }
    .process-grid { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 120px 0 60px; }
    .stats-bar { margin-top: 40px; padding: 24px; }
    .services-facts { margin-top: 32px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .proof-logos { gap: 24px; }
    .afd-block + .afd-block { margin-top: 56px; }
    .afd-page { padding-top: 120px; }
    .legal-page { padding-top: 110px; }
    .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .legal-table tr { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .legal-table tbody tr:last-child { border-bottom: none; }
    .legal-table td { display: block; padding: 6px 16px; border-bottom: none; }
    .legal-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--gray-400);
    }
    .afd-cards--four,
    .afd-cards--roles,
    .stats-grid--three { grid-template-columns: 1fr; }
    .afd-stats { margin-top: 0; }
    .afd-compare th,
    .afd-compare td { padding: 14px 12px; font-size: 0.85rem; }
    .afd-compare thead th { font-size: 0.9rem; }
    .afd-compare tbody th { width: auto; font-size: 0.65rem; letter-spacing: 0.5px; }
    .afd-cta { padding: 40px 20px; }
    #cosmicCanvas { display: none; }
}

/* ── Mobile Nav ──────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 9, 0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.mobile-nav.active { display: flex; }
.mobile-nav a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* ── Scroll Animations ───────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
