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

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

:root {
    --red:    #E32D27;
    --navy:   #0F1F38;
    --sky:    #C6ECFC;
    --sky2:   #dff3fd;
    --muted:  #6B7B99;
    --border: rgba(15,31,56,0.09);
    --white:  #FFFFFF;
    --off:    #F7F8FA;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--navy);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Nunito', 'Museo Sans', sans-serif; }

/* ─── NAV ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-logo { height: 36px; width: auto; display: block; }

.nav-cta {
    background: var(--navy);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.18s, transform 0.15s;
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }

/* ─── HERO ─────────────────────────────────────────────── */
#hero {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--sky) 0%, var(--sky2) 55%, #eef9fe 100%);
}

/* Animated background decoration */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-mark-wrap {
    position: absolute;
    right: -2%;
    top: 50%;
    width: 56%;
    max-width: 700px;
    animation: mark-breathe 36s ease-in-out infinite;
}

.hero-mark {
    display: block;
    width: 100%;
}

@keyframes mark-breathe {
    0%, 100% { transform: translateY(-50%) scale(1) rotate(0deg); }
    35%       { transform: translateY(-53%) scale(1.04) rotate(3deg); }
    70%       { transform: translateY(-47%) scale(0.97) rotate(-2deg); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.hero-orb-1 {
    width: 560px; height: 560px;
    top: -140px; right: 28%;
    background: radial-gradient(circle, rgba(15,31,56,0.09) 0%, transparent 68%);
    animation: orb-float 24s ease-in-out infinite;
}
.hero-orb-2 {
    width: 460px; height: 460px;
    bottom: -100px; right: 6%;
    background: radial-gradient(circle, rgba(227,45,39,0.07) 0%, transparent 65%);
    animation: orb-float 30s ease-in-out infinite reverse;
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-36px, 28px); }
}

/* Hero content */
.hero-split {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 5% 80px 13%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(15,31,56,0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    width: fit-content;
    font-family: 'Inter', sans-serif;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

h1 {
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 24px;
}

h1 em { color: var(--red); font-style: normal; }

.hero-sub {
    font-size: 1.1rem;
    color: rgba(15,31,56,0.6);
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    background: var(--navy);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.btn-primary:hover {
    background: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227,45,39,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.55);
    color: var(--navy);
    padding: 13px 28px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(15,31,56,0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.18s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.88); }

.hero-visual { display: flex; align-items: flex-end; overflow: visible; }
.hero-visual img {
    height: calc(100vh - 64px);
    width: auto;
    display: block;
    filter: drop-shadow(-24px 0 64px rgba(15,31,56,0.2));
}

/* ─── SECTION SCAFFOLDING ───────────────────────────────── */
.sw { padding: 104px 6%; }
.sw.dark { background: var(--navy); padding: 96px 6%; }
.sw.sky  { background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 100%); }
.sw.off  { background: var(--off); }

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

.eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}
.dark .eyebrow { color: rgba(198,236,252,0.6); }

h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 18px;
}
h2 em { color: var(--red); font-style: normal; }
.dark h2 { color: var(--white); }
.sky  h2 { color: var(--navy); }

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 580px;
    line-height: 1.8;
}
.dark .lead { color: rgba(255,255,255,0.48); }

/* ─── QUOTE ─────────────────────────────────────────────── */
.quote-wrap { max-width: 780px; margin: 0 auto; text-align: center; }

blockquote {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--navy);
    line-height: 1.68;
    font-weight: 400;
    margin-bottom: 36px;
}
.dark blockquote { color: rgba(255,255,255,0.9); }

.quote-attr {
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.dark .quote-attr { color: rgba(198,236,252,0.6); }

/* ─── PRACTITIONER QUOTE STRIP ──────────────────────────── */
.practitioner-quote-strip { background: #f5f7fb; }

.pq-quote { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }

/* ─── PLATFORM FEATURES ─────────────────────────────────── */
.platform-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 64px;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.platform-card {
    background: var(--off);
    border-radius: 20px;
    padding: 36px;
    transition: background 0.2s, transform 0.22s, box-shadow 0.22s;
}
.platform-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(15,31,56,0.1);
}

.feat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--navy);
    transition: background 0.18s, transform 0.18s;
}
.platform-card:hover .feat-icon { background: var(--sky2); transform: scale(1.08); }
.feat-icon svg { width: 22px; height: 22px; }

.platform-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.platform-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.72;
}

/* Phone showcase */
.showcase-panel {
    margin-top: 80px;
    background: linear-gradient(170deg, var(--sky) 0%, var(--sky2) 100%);
    border-radius: 28px;
    padding: 64px 40px 0;
    overflow: hidden;
}

.phone-showcase {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

.showcase-phone { border-radius: 36px; overflow: hidden; flex-shrink: 0; transition: transform 0.35s ease; }
.showcase-phone img { width: 100%; display: block; }

.showcase-phone.left  {
    width: 280px;
    transform: rotate(-4deg) translateY(32px);
    box-shadow: -12px 32px 64px rgba(15,31,56,0.2);
}
.showcase-phone.center {
    width: 320px;
    box-shadow: 0 40px 96px rgba(15,31,56,0.28), 0 0 0 1px rgba(15,31,56,0.05);
}
.showcase-phone.right {
    width: 280px;
    transform: rotate(4deg) translateY(32px);
    box-shadow: 12px 32px 64px rgba(15,31,56,0.2);
}
.showcase-phone:hover { transform: translateY(-16px) rotate(0deg) !important; }

/* ─── LEGAL HUB ─────────────────────────────────────────── */
.legal-heading { max-width: 640px; margin-bottom: 48px; }

.legal-screen-full {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow:
        0 0 0 1px rgba(15,31,56,0.06),
        0 32px 80px rgba(15,31,56,0.14),
        0 8px 20px rgba(15,31,56,0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    margin-bottom: 20px;
}
.legal-screen-full:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(15,31,56,0.08),
        0 48px 100px rgba(15,31,56,0.2),
        0 12px 28px rgba(15,31,56,0.09);
}

.legal-screen-secondary {
    width: 72%;
    border-radius: 14px;
    display: block;
    margin-left: auto;
    box-shadow:
        0 0 0 1px rgba(15,31,56,0.06),
        0 20px 56px rgba(15,31,56,0.12);
    transition: transform 0.35s ease;
}
.legal-screen-secondary:hover { transform: translateY(-4px); }

.legal-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--border);
}

.lb-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 32px 40px 32px 0;
    border-bottom: 1px solid var(--border);
}
.lb-item:nth-child(even) {
    padding-left: 40px;
    border-left: 1px solid var(--border);
}
.lb-item:nth-child(odd) { border-right: none; }

.lb-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
}
.lb-icon svg { width: 18px; height: 18px; }

.lb-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.lb-body {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── GOVERNMENT INSIGHTS ───────────────────────────────── */
.gov-heading { max-width: 680px; margin-bottom: 48px; }

.gov-screen-full {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow:
        0 0 0 1px rgba(15,31,56,0.08),
        0 32px 80px rgba(15,31,56,0.12),
        0 8px 24px rgba(15,31,56,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gov-screen-full:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(15,31,56,0.1),
        0 48px 100px rgba(15,31,56,0.16),
        0 12px 32px rgba(15,31,56,0.08);
}

/* ─── CTA ───────────────────────────────────────────────── */
.cta-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow-center { text-align: center; }
.h2-center { text-align: center; }
.lead-cta {
    font-size: 1rem;
    color: rgba(255,255,255,0.48);
    max-width: 420px;
    margin: 16px auto 44px;
    text-align: center;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: var(--white);
    color: var(--red);
    padding: 14px 32px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
}
.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.btn-outline-white {
    background: transparent;
    color: rgba(255,255,255,0.78);
    padding: 14px 32px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all 0.18s;
}
.btn-outline-white:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 32px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo { display: flex; align-items: center; }
.footer-svg { width: auto; height: 28px; }

.footer-links {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.18s;
}
.footer-links a:hover { color: var(--navy); }

.footer-legal {
    font-size: 0.78rem;
    color: rgba(15,31,56,0.35);
}

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(15,31,56,0.65);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    padding: 48px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 32px 80px rgba(15,31,56,0.3);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal-box { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border: none;
    background: var(--off);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    flex-shrink: 0;
}
.modal-close:hover { background: #e8eaee; }
.modal-close svg { width: 16px; height: 16px; color: var(--navy); }

.modal-box h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.modal-box .modal-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1000px) {
    .platform-header { grid-template-columns: 1fr; }
    .legal-bullets { grid-template-columns: 1fr; }
    .lb-item:nth-child(even) { padding-left: 0; border-left: none; }
    .lb-item { border-right: none; padding-right: 0; }
}

@media (max-width: 860px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .platform-grid { grid-template-columns: 1fr; }
    .phone-showcase { gap: 12px; }
    .showcase-phone.left, .showcase-phone.right { width: 210px; }
    .showcase-phone.center { width: 250px; }
}

@media (max-width: 640px) {
    .sw { padding: 80px 5%; }
    .sw.dark { padding: 80px 5%; }
    .hero-text { padding: 60px 5%; }
    h1 { font-size: 2.3rem; }
    .legal-screen-secondary { width: 100%; }
    .showcase-panel { padding: 48px 20px 0; }
    .showcase-phone.left, .showcase-phone.right { display: none; }
    .showcase-phone.center { width: 280px; }
    footer { flex-direction: column; align-items: flex-start; padding: 28px 5%; gap: 16px; }
}
