@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@600;700&display=swap');

:root {
    --navy: #012169;
    --navy-2: #061735;
    --navy-3: #081d43;
    --red: #E4002B;
    --red-2: #ff3355;
    --white: #ffffff;
    --text: #eef4ff;
    --muted: #aab8d1;
    --line: rgba(255,255,255,.12);
    --card: rgba(255,255,255,.065);
    --card-strong: rgba(255,255,255,.105);
    --shadow: 0 24px 80px rgba(0,0,0,.35);
    --radius: 24px;
    --radius-sm: 16px;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(228,0,43,.24), transparent 35rem),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 22rem),
        linear-gradient(135deg, #030814 0%, var(--navy-2) 42%, #02040a 100%);
    line-height: 1.65;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(45deg, transparent 48%, rgba(255,255,255,.11) 49%, rgba(255,255,255,.11) 51%, transparent 52%),
        radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1px);
    background-size: 120px 120px, 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { color: var(--muted); margin: 0 0 1.1rem; }
h1, h2, h3 { margin: 0 0 1rem; line-height: 1.08; letter-spacing: -.04em; }
h1, h2 { font-family: 'Space Grotesk', Inter, sans-serif; }
h1 { font-size: clamp(2.65rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3.9rem); }
h3 { font-size: 1.25rem; }

.skip-link { position: absolute; left: -999px; top: 1rem; background: var(--red); padding: .75rem 1rem; z-index: 20; border-radius: 10px; }
.skip-link:focus { left: 1rem; }
.top-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: .55rem 1rem;
    background: linear-gradient(90deg, var(--navy), #fff 48%, var(--red) 52%, var(--navy));
    color: #061735;
    font-weight: 800;
    font-size: .82rem;
}
.top-strip a { color: #061735; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); background: rgba(3,8,20,.88); border-bottom: 1px solid var(--line); }
.navbar { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; font-size: 1.2rem; letter-spacing: -.04em; white-space: nowrap; }
.brand span span { color: var(--red-2); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--red)); box-shadow: 0 0 0 2px rgba(255,255,255,.12) inset; }
.nav-menu { display: flex; align-items: center; justify-content: flex-end; gap: .2rem; flex: 1; min-width: 0; }
.nav-menu > a, .nav-group > a { display: inline-flex; align-items: center; gap: .32rem; padding: .72rem .66rem; border-radius: 999px; color: var(--muted); font-weight: 800; font-size: .84rem; line-height: 1; white-space: nowrap; transition: color .22s ease, background .22s ease, transform .22s ease; }
.nav-menu > a:hover, .nav-menu > a:focus-visible, .nav-group:hover > a, .nav-group:focus-within > a, .nav-menu a.active, .nav-group.active-parent > a { color: var(--white); background: rgba(255,255,255,.095); outline: none; }
.nav-cta { background: var(--red) !important; color: white !important; box-shadow: 0 12px 28px rgba(228,0,43,.32); }
.nav-cta:hover { transform: translateY(-1px); }
.nav-group { position: relative; padding: .25rem 0; }
.nav-parent .chevron { font-size: .95rem; color: var(--red-2); transform: translateY(-1px); transition: transform .22s ease; }
.nav-group:hover .chevron, .nav-group:focus-within .chevron { transform: rotate(180deg); }
.dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + .35rem);
    min-width: 255px;
    padding: .65rem;
    background: rgba(5,13,30,.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: .15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -.55rem; height: .65rem; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: .78rem .85rem; border-radius: 12px; color: var(--muted); font-weight: 750; font-size: .92rem; line-height: 1.25; }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(255,255,255,.08); color: var(--white); outline: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--white); transition: .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { position: relative; z-index: 1; }
.hero, .section, .page-hero, .article-wrap { max-width: var(--max); margin: 0 auto; padding: 6rem 1rem; }
.hero { display: grid; grid-template-columns: 1.05fr .75fr; gap: 3rem; align-items: center; min-height: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: #fff; font-weight: 900; font-size: .78rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 999px; background: var(--red); box-shadow: 18px 0 0 #fff, 36px 0 0 var(--navy); }
.hero-lead, .page-hero p, .article-header p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .9rem 1.35rem; font-weight: 900; border: 1px solid transparent; transition: .25s ease; cursor: pointer; }
.btn.primary { background: var(--red); color: white; box-shadow: 0 18px 40px rgba(228,0,43,.34); }
.btn.secondary { background: rgba(255,255,255,.08); color: white; border-color: var(--line); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.hero-stats span { padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }
.hero-stats strong { display: block; color: var(--white); font-size: 1.5rem; }
.hero-card { position: relative; border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(1,33,105,.75)); }
.hero-card img { width: 100%; height: 580px; object-fit: cover; }
.flag-badge, .stack-note { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: rgba(228,0,43,.95); color: white; padding: .8rem 1rem; border-radius: 999px; font-weight: 900; box-shadow: var(--shadow); }

.page-hero.compact { padding-bottom: 3rem; text-align: left; }
.page-hero h1 { max-width: 980px; }
.section-heading { margin-bottom: 2rem; }
.split-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; align-items: end; }
.centre { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.feature-card, .blog-card, .rank-card, .state-grid article, .warning-grid article, .prep-layout article, .contact-card, .score-card, .advice-panel {
    background: linear-gradient(180deg, var(--card-strong), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.feature-card { transition: .25s ease; min-height: 245px; }
.feature-card:hover, .blog-card:hover { transform: translateY(-5px); border-color: rgba(228,0,43,.55); }
.feature-card svg { color: var(--red-2); width: 32px; height: 32px; margin-bottom: 1rem; }
.text-link { color: white; font-weight: 900; border-bottom: 2px solid var(--red); }
.z-layout { display: grid; grid-template-columns: .95fr 1fr; gap: 3rem; align-items: center; }
.z-layout.reverse { grid-template-columns: 1fr .85fr; }
.image-stack { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.image-stack img { height: 520px; width: 100%; object-fit: cover; filter: saturate(.9) contrast(1.08); }
.image-stack.small img { height: 430px; }
.stack-note.red { background: var(--red); }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.check-list.large li { font-size: 1.05rem; }
.trade-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.trade-strip article { padding: 1.2rem; min-height: 230px; border-left: 3px solid var(--red); background: rgba(255,255,255,.055); border-radius: 18px; }
.trade-strip span, .rank-card span, .prep-layout span { color: var(--red-2); font-weight: 900; font-size: 1.8rem; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: linear-gradient(135deg, rgba(1,33,105,.78), rgba(228,0,43,.22)); border: 1px solid var(--line); border-radius: 34px; padding: 3rem; margin-bottom: 6rem; }
.demand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rank-card small { display: block; color: var(--muted); margin-top: .35rem; }
.accordion-list { display: grid; gap: .8rem; }
details { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
summary { cursor: pointer; color: white; font-weight: 900; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.timeline div { border-top: 3px solid var(--red); padding: 1.2rem; background: rgba(255,255,255,.055); border-radius: 0 0 18px 18px; }
.timeline span, .tag { color: white; background: rgba(228,0,43,.92); border-radius: 999px; padding: .35rem .65rem; font-weight: 900; font-size: .78rem; display: inline-block; margin-bottom: .75rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 840px; background: rgba(255,255,255,.045); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: white; background: rgba(228,0,43,.24); }
td { color: var(--muted); }
.estimator-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.estimator { display: grid; gap: 1rem; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 28px; padding: 1.5rem; }
label { display: grid; gap: .45rem; color: white; font-weight: 800; }
select, input { width: 100%; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: white; border-radius: 14px; padding: .9rem 1rem; font: inherit; }
output { color: white; font-weight: 900; background: rgba(228,0,43,.18); border: 1px solid rgba(228,0,43,.4); border-radius: 16px; padding: 1rem; }
.state-grid, .warning-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.state-grid a { color: white; font-weight: 900; border-bottom: 2px solid var(--red); }
.prep-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.score-card { display: grid; gap: .7rem; }
.score-card label { display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.055); padding: .7rem; border-radius: 12px; }
.score-card input { width: auto; accent-color: var(--red); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.blog-card time, .article-header time { color: var(--muted); display: block; margin-bottom: .75rem; }
.blog-card h2 { font-size: 1.55rem; }
.article-wrap { max-width: 920px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); margin-bottom: 2rem; font-weight: 700; }
.breadcrumbs a { color: white; }
.article-header { margin-bottom: 3rem; }
.article-body { display: grid; gap: 2rem; }
.article-body section, .article-cta { padding: 1.5rem; border-left: 3px solid var(--red); background: rgba(255,255,255,.05); border-radius: 0 20px 20px 0; }
.article-cta { border: 1px solid var(--line); border-left: 3px solid var(--red); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.big-email { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 900; color: white; word-break: break-word; border-bottom: 3px solid var(--red); }
.contact-card.accent { background: linear-gradient(135deg, rgba(228,0,43,.18), rgba(255,255,255,.06)); }
.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.24); position: relative; z-index: 1; }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 4rem 1rem; display: grid; grid-template-columns: 1.2fr .7fr .8fr 1fr; gap: 2rem; }
.footer-grid h3 { font-size: 1rem; }
.footer-grid a:not(.brand) { display: block; color: var(--muted); margin: .55rem 0; }
.footer-grid a:hover { color: white; }
.footer-brand { margin-bottom: 1rem; }
.email-link { color: white !important; font-weight: 900; }
.mini { font-size: .9rem; }
.footer-bottom { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 1.2rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (min-width: 1181px) {
    .nav-menu { display: flex !important; }
    .nav-toggle { display: none !important; }
}

@media (max-width: 1180px) {
    .nav-toggle { display: block; flex: 0 0 auto; }
    .navbar { max-width: var(--max); padding: .8rem 1rem; }
    .nav-menu { position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); display: none; flex-direction: column; align-items: stretch; background: rgba(5,13,30,.98); border: 1px solid var(--line); border-radius: 22px; padding: 1rem; box-shadow: var(--shadow); }
    .nav-menu.open { display: flex; }
    .nav-menu > a, .nav-group > a { width: 100%; justify-content: space-between; padding: .9rem 1rem; font-size: .98rem; }
    .nav-group { padding: 0; }
    .dropdown { position: static; display: grid; min-width: 0; margin-top: .3rem; box-shadow: none; background: rgba(255,255,255,.04); opacity: 1; visibility: visible; transform: none; border-radius: 16px; }
    .dropdown::before { display: none; }
    .hero, .z-layout, .z-layout.reverse, .estimator-section, .contact-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 4rem; }
    .card-grid.four, .demand-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .trade-strip, .timeline, .state-grid, .prep-layout { grid-template-columns: repeat(2, 1fr); }
    .split-heading { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .top-strip { display: none; }
    .brand { font-size: 1.08rem; }
    .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
    .navbar { padding: .75rem 1rem; }
    .nav-toggle { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.045); }
    .hero, .section, .page-hero, .article-wrap { padding: 4rem 1rem; }
    .hero-stats, .card-grid.four, .card-grid.three, .demand-grid, .blog-grid, .trade-strip, .timeline, .state-grid, .warning-grid, .prep-layout, .footer-grid { grid-template-columns: 1fr; }
    .hero-card img, .image-stack img, .image-stack.small img { height: 360px; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 1.5rem; border-radius: 24px; }
    .hero-actions .btn { width: 100%; }
    h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
}