:root {
      --navy: #214478;
      --blue: #0080AA;
      --navy-deep: #152d52;
      --ink: #0f1d33;
      --text: #33435a;
      --muted: #64748b;
      --line: #e3e9f1;
      --soft: #f5f8fc;
      --soft-blue: #eaf5fa;
      --white: #ffffff;
      --grad: linear-gradient(135deg, #214478 0%, #0080AA 100%);
      --radius: 16px;
      --shadow-sm: 0 1px 2px rgba(15, 29, 51, .06), 0 1px 3px rgba(15, 29, 51, .05);
      --shadow-md: 0 10px 30px -10px rgba(33, 68, 120, .18);
      --shadow-lg: 0 30px 60px -20px rgba(33, 68, 120, .30), 0 12px 24px -12px rgba(15, 29, 51, .12);
      --max: 1180px;
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      color: var(--text);
      background: var(--white);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
    p { margin: 0; }

    .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
    section { padding: 112px 0; }

    .eyebrow {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
      color: var(--blue);
      margin-bottom: 18px;
    }
    .eyebrow::before {
      content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad);
    }

    .section-head { max-width: 760px; margin-bottom: 64px; }
    .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
    .section-head.center .eyebrow::before { display: none; }
    .section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
    .section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

    /* Buttons */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      font-weight: 600; font-size: 16px;
      padding: 14px 26px; border-radius: 10px;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
      cursor: pointer; border: none; white-space: nowrap;
    }
    .btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
    .btn:hover svg { transform: translateX(3px); }
    .btn-primary {
      background: var(--grad); color: var(--white);
      box-shadow: 0 8px 20px -8px rgba(0, 128, 170, .6);
    }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0, 128, 170, .7); }
    .btn-ghost { color: var(--navy); background: transparent; border: 1px solid var(--line); }
    .btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
    .btn-white { background: var(--white); color: var(--navy); }
    .btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(0,0,0,.35); }
    .btn-sm { padding: 10px 18px; font-size: 15px; }

    /* Nav */
    .nav {
      position: sticky; top: 0; z-index: 50;
      background: rgba(255, 255, 255, .82);
      backdrop-filter: saturate(180%) blur(14px);
      -webkit-backdrop-filter: saturate(180%) blur(14px);
      border-bottom: 1px solid transparent;
      transition: border-color .3s ease, box-shadow .3s ease;
    }
    .nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
    .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
    .nav-logo img { height: 34px; width: auto; }
    .nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; color: var(--text); }
    .nav-links a { transition: color .2s; }
    .nav-links a:hover { color: var(--blue); }

    /* Hero */
    .hero {
      position: relative; overflow: hidden;
      padding: 88px 0 120px;
    }
    .hero::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background:
        radial-gradient(900px 500px at 85% -10%, rgba(0, 128, 170, .10), transparent 60%),
        radial-gradient(700px 400px at -10% 20%, rgba(33, 68, 120, .07), transparent 60%);
    }
    .hero::after {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background-image:
        linear-gradient(rgba(33, 68, 120, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 68, 120, .045) 1px, transparent 1px);
      background-size: 44px 44px;
      mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
      -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
    }
    .hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
    .badge {
      display: inline-flex; align-items: center; gap: 10px;
      padding: 6px 14px 6px 6px; border-radius: 999px;
      background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
      font-size: 13.5px; font-weight: 500; color: var(--text); margin-bottom: 28px;
    }
    .badge span {
      background: var(--soft-blue); color: var(--blue); font-weight: 600;
      padding: 3px 10px; border-radius: 999px; font-size: 12px;
    }
    .hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; }
    .hero h1 .grad {
      background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .hero-lead { margin-top: 24px; font-size: 20px; color: var(--text); max-width: 560px; }
    .hero-sub { margin-top: 16px; font-size: 16.5px; color: var(--muted); max-width: 560px; }
    .hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
    .hero-trust {
      margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line);
      display: flex; gap: 14px; align-items: flex-start; max-width: 560px;
      font-size: 15px; color: var(--muted);
    }
    .hero-trust svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }
    .hero-trust strong { color: var(--ink); font-weight: 600; }

    /* Product mock */
    .mock {
      position: relative;
      background: var(--white); border: 1px solid var(--line); border-radius: 18px;
      box-shadow: var(--shadow-lg); overflow: hidden;
      font-size: 13px;
    }
    .mock-bar {
      display: flex; align-items: center; gap: 8px; padding: 12px 16px;
      border-bottom: 1px solid var(--line); background: #fbfcfe;
    }
    .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; display: block; }
    .mock-bar .title { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
    .mock-body { display: grid; grid-template-columns: 190px 1fr; min-height: 420px; }
    .mock-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #fbfcfe; }
    .mock-side h4 {
      margin: 0 0 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
      color: var(--muted); font-weight: 600;
    }
    .tree { list-style: none; margin: 0; padding: 0; font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
    .tree li { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 6px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .tree li.indent { padding-left: 22px; }
    .tree li.active { background: var(--soft-blue); color: var(--navy); }
    .tree svg { width: 13px; height: 13px; flex-shrink: 0; }
    .tree .folder { color: var(--navy); }
    .tree .xls { color: #1f8a4c; }
    .mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
    .prompt {
      align-self: flex-end; max-width: 92%;
      background: var(--grad); color: var(--white);
      padding: 12px 14px; border-radius: 14px 14px 4px 14px; line-height: 1.5;
    }
    .steps-live { display: flex; flex-direction: column; gap: 7px; }
    .steps-live div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
    .steps-live svg { width: 15px; height: 15px; color: var(--blue); flex-shrink: 0; }
    .result { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
    .result-head {
      display: flex; justify-content: space-between; align-items: center;
      padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line);
      font-weight: 600; color: var(--ink); font-size: 12.5px;
    }
    .audit-chip {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 11px; font-weight: 600; color: var(--blue);
      background: var(--white); border: 1px solid #cde7f1; padding: 3px 8px; border-radius: 999px;
    }
    .audit-chip svg { width: 12px; height: 12px; }
    .result table { width: 100%; border-collapse: collapse; font-size: 12px; }
    .result th, .result td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
    .result th { color: var(--muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
    .result tr:last-child td { border-bottom: none; }
    .result td.num { text-align: right; font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
    .result th.num { text-align: right; }
    .neg { color: #c2410c; }
    .pos { color: #15803d; }
    .float-card {
      position: absolute; right: -18px; bottom: 34px;
      background: var(--white); border: 1px solid var(--line); border-radius: 12px;
      box-shadow: var(--shadow-md); padding: 12px 14px;
      display: flex; align-items: center; gap: 12px; font-size: 12.5px;
      animation: float 6s ease-in-out infinite;
    }
    .float-card .ic {
      width: 34px; height: 34px; border-radius: 9px; background: var(--soft-blue); color: var(--blue);
      display: grid; place-items: center;
    }
    .float-card .ic svg { width: 18px; height: 18px; }
    .float-card strong { display: block; color: var(--ink); font-size: 13px; }
    .float-card small { color: var(--muted); }
    .mock-wrap { position: relative; }
    .mock-caption { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); }
    @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

    /* Problem section */
    .problem { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
    .problem h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
    .problem h2 + .kicker { margin-top: 16px; font-size: 22px; font-weight: 600; color: var(--blue); }
    .problem-copy p { font-size: 17.5px; margin-bottom: 20px; }
    .callout {
      margin-top: 30px; padding: 22px 24px; border-radius: 14px;
      background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue);
      box-shadow: var(--shadow-sm);
      font-size: 18px; font-weight: 600; color: var(--ink);
    }
    .converge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
    .file-pill {
      display: flex; align-items: center; gap: 8px;
      background: var(--white); border: 1px solid var(--line); border-radius: 10px;
      padding: 10px 12px; font-size: 12.5px; font-family: "JetBrains Mono", monospace; color: var(--text);
      box-shadow: var(--shadow-sm);
      overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    }
    .file-pill svg { width: 15px; height: 15px; color: #1f8a4c; flex-shrink: 0; }
    .converge-arrow { display: flex; justify-content: center; margin: 14px 0; color: var(--blue); }
    .converge-arrow svg { width: 26px; height: 26px; }
    .converge-result {
      background: var(--grad); color: var(--white); border-radius: 12px;
      padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600;
      box-shadow: var(--shadow-md);
    }
    .converge-result svg { width: 22px; height: 22px; }

    /* Features */
    .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .card {
      background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
      padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
      display: flex; flex-direction: column;
    }
    .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdbe9; }
    .icon {
      width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
      background: var(--soft-blue); color: var(--blue); margin-bottom: 24px;
    }
    .icon svg { width: 24px; height: 24px; }
    .card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
    .card p { color: var(--text); font-size: 16px; }
    .quote {
      margin-top: 22px; padding: 16px 18px; border-radius: 12px;
      background: var(--soft); border: 1px dashed #c9d6e6;
      font-size: 14.5px; color: var(--navy); font-style: italic; line-height: 1.55;
    }
    .features-foot {
      margin-top: 48px; text-align: center; font-size: 20px; font-weight: 700; color: var(--ink);
    }
    .features-foot span { color: var(--blue); }

    /* Use cases */
    .usecases { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .tabs {
      display: inline-flex; gap: 6px; padding: 6px; border-radius: 12px;
      background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
      margin: 0 auto 40px; flex-wrap: wrap; justify-content: center;
    }
    .tabs-wrap { text-align: center; }
    .tab {
      font: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
      background: transparent; border: none; border-radius: 8px;
      padding: 11px 20px; cursor: pointer; transition: all .2s ease;
    }
    .tab:hover { color: var(--navy); }
    .tab[aria-selected="true"] { background: var(--grad); color: var(--white); box-shadow: 0 6px 14px -6px rgba(0,128,170,.6); }
    .panel {
      display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
      background: var(--white); border: 1px solid var(--line); border-radius: 20px;
      padding: 52px; box-shadow: var(--shadow-sm);
    }
    .panel[hidden] { display: none; }
    .panel.animate { animation: fadeUp .4s ease; }
    .panel-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
    .panel h3 { font-size: 30px; font-weight: 800; margin: 12px 0 18px; }
    .panel p { font-size: 17px; }
    .prompt-box {
      background: var(--ink); color: #e6edf7; border-radius: 16px; overflow: hidden;
      box-shadow: var(--shadow-lg);
    }
    .prompt-box-head {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
      font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa5c4;
    }
    .prompt-box-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
    .prompt-box-body { padding: 26px 24px 24px; font-size: 17px; line-height: 1.65; }
    .prompt-box-body .caret {
      display: inline-block; width: 2px; height: 1.1em; background: #5cc8ec; vertical-align: -3px; margin-left: 3px;
      animation: blink 1.1s steps(1) infinite;
    }
    .prompt-box-foot {
      display: flex; justify-content: flex-end; padding: 0 18px 18px;
    }
    .prompt-box-foot span {
      display: inline-flex; align-items: center; gap: 8px;
      background: var(--grad); color: #fff; font-size: 13px; font-weight: 600;
      padding: 8px 14px; border-radius: 8px;
    }
    .prompt-box-foot svg { width: 14px; height: 14px; }
    @keyframes blink { 50% { opacity: 0; } }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

    /* Workflow */
    .workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
    .workflow-grid::before {
      content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
      background: linear-gradient(90deg, var(--navy), var(--blue));
      opacity: .25; z-index: 0;
    }
    .step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
    .step-num {
      width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 50%;
      display: grid; place-items: center;
      background: var(--white); border: 2px solid var(--blue);
      color: var(--navy); font-weight: 800; font-size: 20px;
      box-shadow: 0 0 0 8px var(--white), var(--shadow-md);
      transition: background .25s, color .25s;
    }
    .step:hover .step-num { background: var(--grad); color: var(--white); border-color: transparent; }
    .step h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
    .step p { font-size: 15.5px; color: var(--text); }
    .workflow-cta { margin-top: 64px; text-align: center; }

    /* Benefits (dark) */
    .benefits {
      background: var(--navy-deep);
      background-image:
        radial-gradient(800px 400px at 100% 0%, rgba(0, 128, 170, .35), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(33, 68, 120, .7), transparent 60%);
      color: #c9d6ea;
    }
    .benefits .eyebrow { color: #5cc8ec; }
    .benefits .section-head h2 { color: var(--white); }
    .benefits .section-head p { color: #b3c3db; }
    .benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .shift {
      background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10);
      border-radius: var(--radius); padding: 28px 28px;
      transition: background .25s, border-color .25s, transform .25s;
    }
    .shift:hover { background: rgba(255,255,255,.08); border-color: rgba(92, 200, 236, .4); transform: translateY(-3px); }
    .shift-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
    .shift-from { font-size: 15px; color: #8fa5c4; text-decoration: line-through; text-decoration-color: rgba(143,165,196,.5); }
    .shift-row svg { width: 18px; height: 18px; color: #5cc8ec; flex-shrink: 0; }
    .shift-to { font-size: 18px; font-weight: 700; color: var(--white); }
    .shift p { font-size: 15.5px; color: #b3c3db; }
    .benefits-close {
      margin-top: 56px; text-align: center; font-size: clamp(20px, 2.4vw, 26px);
      font-weight: 600; color: var(--white); letter-spacing: -0.01em;
    }
    .benefits-close span { color: #5cc8ec; }

    /* FAQ */
    .faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
    .faq-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
    .faq-list { border-top: 1px solid var(--line); }
    details { border-bottom: 1px solid var(--line); }
    summary {
      list-style: none; cursor: pointer;
      display: flex; justify-content: space-between; align-items: center; gap: 24px;
      padding: 24px 0; font-size: 18px; font-weight: 600; color: var(--ink);
      transition: color .2s;
    }
    summary::-webkit-details-marker { display: none; }
    summary:hover { color: var(--blue); }
    summary .plus {
      flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
      border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy);
      transition: transform .3s ease, background .3s, color .3s, border-color .3s;
    }
    summary .plus svg { width: 14px; height: 14px; }
    details[open] summary .plus { transform: rotate(45deg); background: var(--grad); color: #fff; border-color: transparent; }
    details .answer { padding: 0 54px 26px 0; font-size: 16.5px; color: var(--text); }

    /* Final CTA */
    .final { padding-top: 40px; }
    .final-card {
      position: relative; overflow: hidden;
      background: var(--grad); border-radius: 28px; padding: 88px 48px; text-align: center; color: #e3eefa;
      box-shadow: var(--shadow-lg);
    }
    .final-card::before, .final-card::after {
      content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
    }
    .final-card::before { width: 520px; height: 520px; right: -160px; top: -220px; }
    .final-card::after { width: 380px; height: 380px; left: -140px; bottom: -200px; }
    .final-card h2 { color: var(--white); font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; max-width: 760px; margin: 0 auto; }
    .final-card p { font-size: 19px; max-width: 640px; margin: 20px auto 0; }
    .final-card .btn { margin-top: 38px; position: relative; z-index: 1; }
    .final-card small { display: block; margin-top: 20px; font-size: 15px; color: rgba(255,255,255,.8); }

    /* Footer */
    footer { padding: 56px 0 48px; }
    .footer-inner {
      display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
      padding-top: 32px; border-top: 1px solid var(--line);
      font-size: 14px; color: var(--muted);
    }
    .footer-inner img { height: 28px; width: auto; }
    .footer-links { display: flex; gap: 26px; }
    .footer-links a:hover { color: var(--blue); }

    /* Reveal animation */
    .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
    .reveal.in { opacity: 1; transform: none; }
    .delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; } .delay-3 { transition-delay: .24s; }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
      .reveal { opacity: 1; transform: none; }
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .hero-grid, .problem-grid, .panel, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
      .faq-grid .section-head { position: static; }
      .features-grid { grid-template-columns: 1fr; }
      .workflow-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
      .workflow-grid::before { display: none; }
      .float-card { right: 12px; }
      .nav-links { display: none; }
    }
    @media (max-width: 680px) {
      section { padding: 80px 0; }
      .hero { padding: 56px 0 80px; }
      .mock-body { grid-template-columns: 1fr; }
      .mock-side { display: none; }
      .float-card { display: none; }
      .benefits-grid, .workflow-grid { grid-template-columns: 1fr; }
      .converge { grid-template-columns: 1fr 1fr; }
      .panel { padding: 30px 22px; }
      .final-card { padding: 64px 24px; border-radius: 22px; }
      .tab { padding: 10px 14px; font-size: 14px; }
      details .answer { padding-right: 0; }
      .hero-cta .btn { width: 100%; }
    }

/* Book a demo modal */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.modal.open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 29, 51, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative; width: 100%; max-width: 520px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--white); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 44px 40px 36px;
  transform: translateY(16px) scale(.98);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.modal-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad); border-radius: 20px 20px 0 0;
}
.modal.open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: transparent; border: none; cursor: pointer; color: var(--muted);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--soft); color: var(--navy); }
.modal-close svg { width: 20px; height: 20px; }
.modal-card h2 { font-size: 28px; font-weight: 800; }
.modal-lead { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

.demo-form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field input {
  width: 100%; min-width: 0;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:hover { border-color: #cfd9e6; }
.field input:focus {
  outline: none; background: var(--white); border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 128, 170, .14);
}
.field input.invalid { border-color: #d14343; background: #fff7f7; }
.field input.invalid:focus { box-shadow: 0 0 0 4px rgba(209, 67, 67, .14); }
.form-error {
  font-size: 14px; color: #b42318;
  background: #fef3f2; border: 1px solid #fecdca;
  padding: 10px 14px; border-radius: 10px;
}
.btn-block { width: 100%; margin-top: 6px; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); }

.modal-success { text-align: center; padding: 8px 0; }
.success-icon {
  width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--soft-blue); color: var(--blue);
}
.success-icon svg { width: 34px; height: 34px; }
.modal-success .btn { margin-top: 28px; }

@media (max-width: 560px) {
  .modal { padding: 12px; }
  .modal-card { padding: 40px 22px 26px; }
  .form-row { grid-template-columns: 1fr; }
}
