/* =========================================================================
   AeroNerds SIH26011 — Public landing page
   Government-portal design idiom (tricolour ribbon, bilingual labels, service
   cards, notices ticker) applied to this project's own identity. Deliberately
   Design idiom only. Never branded as, or affiliated with, any real
   government identity service: the prototype has no official recognition
   (AGENTS.md rule 2).
   ========================================================================= */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --ink-3: #64748b;
    --navy: #002855;
    --navy-d: #001c3d;
    --navy-l: #073b75;
    --saffron: #f58220;
    --saffron-d: #c2410c;
    --saffron-l: #fff7ed;
    --green: #138808;
    --red: #c8102e;
    --paper: #ffffff;
    --mist: #f1f5f9;
    --line: #e2e8f0;
    --line-2: #cbd5e1;
    --maxw: 1180px;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 40px rgba(2, 6, 23, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: "Outfit", "Inter", sans-serif; margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--navy); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
    font-size: 13px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- tricolour ribbon + gov strip ---------- */
.tricolour { height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.33%, #fff 33.33% 66.66%, var(--green) 66.66% 100%); }

.gov-strip {
    background: var(--navy-d);
    color: #cbd5e1;
    font-size: 11.5px;
}
.gov-strip .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 34px; flex-wrap: wrap;
}
.gov-strip b { color: #fff; font-weight: 600; }
.gov-strip .flag { margin-right: 6px; }
.gov-strip-links { display: flex; gap: 14px; }
.gov-strip-links a { color: #cbd5e1; text-decoration: none; font-size: 11.5px; }
.gov-strip-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- masthead ---------- */
.masthead {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.masthead .wrap {
    display: flex; align-items: center; gap: 18px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-crest {
    width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--saffron), var(--saffron-d));
    display: flex; align-items: center; justify-content: center; font-size: 21px;
    box-shadow: 0 2px 8px rgba(194, 65, 12, .3);
}
.brand-name { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 17px; color: var(--navy); line-height: 1.15; }
.brand-sub { font-size: 9.5px; color: var(--saffron-d); font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }

.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a {
    padding: 8px 12px; border-radius: 7px; font-size: 13px; font-weight: 600;
    color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.mainnav a:hover { background: var(--mist); color: var(--navy); }

.masthead-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 40px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
    font-family: inherit; font-size: 13px; font-weight: 700; text-decoration: none;
    cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-l); }
.btn-accent { background: var(--saffron); color: #1a1207; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--mist); }
.btn i { font-size: 15px; }

.nav-toggle {
    display: none; width: 40px; height: 40px; border-radius: 8px; margin-left: auto;
    border: 1px solid var(--line-2); background: #fff; cursor: pointer;
    align-items: center; justify-content: center; font-size: 20px; color: var(--navy);
}

/* ---------- notices ticker ---------- */
.ticker { background: var(--saffron-l); border-bottom: 1px solid #fed7aa; }
.ticker .wrap { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.ticker-tag {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    background: var(--saffron-d); color: #fff; border-radius: 5px;
    padding: 3px 9px; font-size: 10px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-track ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; animation: slide 46s linear infinite; }
.ticker-track li { font-size: 12.5px; color: #7c2d12; white-space: nowrap; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track ul { animation-play-state: paused; }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 520px at 82% -10%, rgba(19, 136, 8, .16), transparent 60%),
        radial-gradient(900px 460px at 8% 110%, rgba(245, 130, 32, .16), transparent 60%),
        linear-gradient(165deg, #001c3d, #002855 60%, #012a63);
    color: #fff;
    padding: 64px 0 70px;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 52px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px; padding: 5px 14px; font-size: 11.5px; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase; color: #fcd9b6;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(19, 136, 8, .28); }

.hero h1 { font-size: clamp(30px, 4.3vw, 50px); font-weight: 800; margin: 20px 0 0; letter-spacing: -.035em; }
.hero h1 .hi { display: block; font-size: .52em; font-weight: 600; color: #fcd9b6; letter-spacing: 0; margin-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--saffron); }
.hero-lead { margin-top: 18px; font-size: 16px; color: #cbd5e1; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-truth {
    margin-top: 26px; display: flex; gap: 11px; align-items: flex-start;
    background: rgba(245, 130, 32, .12); border: 1px solid rgba(245, 130, 32, .38);
    border-radius: 10px; padding: 12px 14px;
}
.hero-truth i { font-size: 19px; color: var(--saffron); flex-shrink: 0; }
.hero-truth p { font-size: 12.5px; color: #e2e8f0; line-height: 1.55; }
.hero-truth b { color: #fff; }

/* hero visual: 3D stack */
.hero-visual {
    background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg);
}
.hv-title { font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: #94a3b8; margin-bottom: 16px; display: flex; justify-content: space-between; }
.hv-title span:last-child { color: var(--green); }
.hv-stack { display: flex; flex-direction: column-reverse; gap: 5px; margin-bottom: 18px; }
.hv-slab {
    border-radius: 7px; display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; font-size: 11.5px; font-weight: 700;
    background: rgba(56, 189, 248, .16); border: 1px solid rgba(56, 189, 248, .4); color: #bae6fd;
    animation: rise .6s ease backwards;
}
.hv-slab:nth-child(1) { animation-delay: .05s; }
.hv-slab:nth-child(2) { animation-delay: .12s; }
.hv-slab:nth-child(3) { animation-delay: .19s; }
.hv-slab:nth-child(4) { animation-delay: .26s; }
.hv-slab .id { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; opacity: .72; font-weight: 500; }
.hv-slab.base { background: rgba(19, 136, 8, .2); border-color: rgba(19, 136, 8, .5); color: #bbf7d0; }
.hv-slab.proposed { background: rgba(245, 130, 32, .18); border-color: rgba(245, 130, 32, .48); color: #fed7aa; border-style: dashed; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.hv-legend { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 13px; display: flex; flex-direction: column; gap: 7px; }
.hv-legend div { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #cbd5e1; }
.hv-key { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--saffron-d); }
.section-head h2 { font-size: clamp(24px, 3vw, 33px); font-weight: 800; margin: 10px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 15px; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pillar-ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 14px; }
.pillar h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 7px; }
.pillar p { font-size: 13.5px; color: var(--ink-2); }
.ico-blue { background: #eff6ff; color: #1d4ed8; }
.ico-green { background: #dcfce7; color: #15803d; }
.ico-amber { background: #fef3c7; color: #b45309; }
.ico-violet { background: #f5f3ff; color: #6d28d9; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--navy); border-radius: 14px; overflow: hidden; }
.stat { padding: 28px 22px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: none; }
.stat-val { font-family: "Outfit", sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.stat-lbl { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #93c5fd; margin-top: 8px; }
.stat-note { font-size: 10.5px; color: #94a3b8; margin-top: 5px; line-height: 1.4; }
.stats-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); display: flex; gap: 9px; align-items: flex-start; }
.stats-note i { font-size: 16px; color: var(--saffron-d); flex-shrink: 0; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.service-ico { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.service h3 { font-size: 17px; font-weight: 800; }
.service-dept { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.service p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; flex: 1; }
.service-caps { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.cap { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: var(--mist); color: var(--ink-2); font-family: ui-monospace, Menlo, monospace; }
.service .btn { align-self: flex-start; }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 14px 0 0; }
.step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 13px;
}
.step:not(:last-child)::after {
    content: ""; position: absolute; top: 17px; left: 42px; right: 8px;
    height: 2px; background: linear-gradient(90deg, var(--navy), var(--line));
}
.step h3 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 12.5px; color: var(--ink-2); padding-right: 8px; }
.step .tag { display: inline-block; margin-top: 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.tag-real { background: #dcfce7; color: #15803d; }
.tag-model { background: #fef3c7; color: #b45309; }
.tag-human { background: #ede9fe; color: #6d28d9; }

/* data table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 660px; }
th, td { text-align: left; padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--mist); }
td.mono, .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.badge-real { background: #dcfce7; color: #15803d; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.badge-model { background: #fef3c7; color: #b45309; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }

/* limitations */
.limitations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.limit { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--saffron-d); border-radius: 9px; padding: 16px 18px; }
.limit i { font-size: 19px; color: var(--saffron-d); flex-shrink: 0; }
.limit h3 { font-size: 14px; font-weight: 800; margin-bottom: 5px; }
.limit p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.limit p b { color: var(--ink); }

.callout {
    margin-top: 28px; display: flex; gap: 13px; align-items: flex-start;
    background: var(--navy); color: #e2e8f0; border-radius: var(--radius); padding: 20px 22px;
}
.callout i { font-size: 22px; color: var(--saffron); flex-shrink: 0; }
.callout h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.callout p { font-size: 13.5px; line-height: 1.6; }
.callout b { color: #fcd9b6; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0; overflow: hidden; }
summary { padding: 15px 18px; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 19px; color: var(--saffron-d); font-weight: 400; flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
details[open] summary { border-bottom: 1px solid var(--line); }
.faq-body { padding: 15px 18px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- footer ---------- */
.footer { background: var(--navy-d); color: #94a3b8; padding: 52px 0 0; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 34px; }
.footer h4 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 13px; }
.footer a { color: #cbd5e1; text-decoration: none; display: block; padding: 3.5px 0; font-size: 12.5px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.footer-brand .brand-crest { width: 36px; height: 36px; font-size: 19px; }
.footer-brand .brand-name { color: #fff; font-size: 15px; }
.footer p { line-height: 1.65; }
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 28px;
    display: flex; gap: 13px; align-items: flex-start;
}
.footer-disclaimer i { font-size: 19px; color: var(--saffron); flex-shrink: 0; }
.footer-disclaimer p { font-size: 12px; line-height: 1.65; color: #94a3b8; }
.footer-disclaimer b { color: #e2e8f0; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0 22px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #64748b;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .pipeline { grid-template-columns: repeat(3, 1fr); gap: 26px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .services, .limitations, .faq { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .mainnav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px; gap: 2px; box-shadow: var(--shadow);
    }
    .mainnav.open { display: flex; }
    .mainnav a { padding: 11px 12px; }
    .masthead-cta .btn span { display: none; }
    .masthead-cta .btn { width: 40px; padding: 0; }
}
@media (max-width: 620px) {
    .section { padding: 54px 0; }
    .pillars, .stats, .pipeline, .footer-grid { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .step::after { display: none; }
    .hero { padding: 46px 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ticker-track ul { animation: none; }
    .hv-slab { animation: none; }
    .pillar:hover, .service:hover { transform: none; }
}
