@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

html {
  scroll-behavior: smooth;
}

#phoenix-data-root .gf-submit-frame {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
}

#phoenix-data-root .hidden {
  display: none !important;
}

@scope (#phoenix-data-root) {
  :scope {
    --navy: #0a1b3d;
    --navy-2: #122249;
    --ink: #0c1734;
    --blue: #1e5fde;
    --blue-deep: #1646b8;
    --teal: #0fb9a8;
    --pink: #ee3a6b;
    --yellow: #f5b215;
    --mint: #2dd4bf;
    --paper: #ffffff;
    --cream: #f4f8fb;
    --mint-bg: #effaf6;
    --line: #e4e9f2;
    --muted: #5a6685;
    --grad: linear-gradient(95deg, #1e5fde 0%, #0fb9a8 100%);
    --grad-dark: linear-gradient(120deg, #1646b8 0%, #1e5fde 50%, #0fb9a8 100%);
    --pilot-bg: linear-gradient(135deg, #2a1238 0%, #3d1a4a 50%, #5a1a3a 100%);
    --footer-bg: #f4f8fb;
    font-family: "Geist", "Inter", system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
  }

  h1, h2, h3, h4 {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--navy);
  }

  .mono { font-family: 'JetBrains Mono', monospace; }
  .wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

  /* ---------- HERO ---------- */
  .hero {
    position: relative;
    padding: 72px 0 96px;
    overflow: visible;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(30, 95, 222, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30, 95, 222, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
    pointer-events: none;
  }
  .hero::after {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(15, 185, 168, 0.12), transparent 60%);
    pointer-events: none;
  }
  .hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(30, 95, 222, 0.08);
  }
  .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(15, 185, 168, 0.2);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(15, 185, 168, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(15, 185, 168, 0.05); }
  }

  h1.hero-title {
    font-size: 60px !important;
    line-height: 1.08;
    letter-spacing: -0.032em;
    margin-bottom: 24px;
    font-weight: 800;
  }
  .hero-title-line {
    display: block;
  }
  h1.hero-title .grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .hero-lede {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 15px;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 28px;
  }
  .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
  .btn-primary {
    background: var(--grad);
    color: white;
    border: none;
    padding: 15px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 6px 20px rgba(30, 95, 222, 0.28);
    transition: transform .15s, box-shadow .15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 95, 222, 0.38); }
  .btn-secondary {
    background: white;
    color: var(--navy);
    border: 1.5px solid var(--line);
    padding: 13.5px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 540px;
  }
  .stat-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .stat-card b {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .stat-card span { font-size: 13px; color: var(--navy); font-weight: 500; }

  /* ---------- FORM CARD ---------- */
  .form-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.6) inset,
      0 20px 60px -20px rgba(10, 27, 61, 0.18),
      0 4px 14px -4px rgba(10, 27, 61, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .form-card:has(#lead-form-thankyou:not(.hidden)) #lead-form {
    display: none;
  }
  .form-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(30,95,222,0.4), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .form-card h3 {
    font-size: 22px;
    margin-bottom: 22px;
  }
  .form-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--blue);
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 12px;
    display: block;
  }
  .form-section-label:first-of-type { margin-top: 0; }
  .field { margin-bottom: 14px; }
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }
  .field-row .field { margin-bottom: 0; }
  .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
  }
  .field input,
  .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #f9fbfd;
    transition: border-color .15s, background .15s, box-shadow .15s;
  }
  .field input:focus,
  .field select:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 6px 30px rgba(30, 95, 222, 0.08);
  }
  /* Enhanced select styling */
  .field select {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%235a6685' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    position: relative;
    z-index: 9999;
  }
  .field select::-ms-expand { display: none; }
  .field select option {
    background: #ffffff;
    color: var(--navy);
    padding: 8px 12px;
  }
  .field input::placeholder { color: #98a4be; }
  .field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%235a6685' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

  /* Strong override for the top form select to ensure visible styling */
  .form-card .field select {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    padding: 12px 44px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #ffffff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox=\"0 0 12 12\"><path d=\"M2 4l4 4 4-4\" stroke=\"%230a1b3d\" stroke-width=\"1.6\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>") no-repeat right 12px center !important;
    background-size: 12px 12px !important;
    color: var(--navy) !important;
    font-size: 15px !important;
    box-shadow: 0 6px 30px rgba(30,95,222,0.05) !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 99999 !important;
  }
  .form-card button[type="submit"] {
    width: 100%;
    background: var(--grad);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(30, 95, 222, 0.28);
    transition: transform .15s, box-shadow .15s;
  }
  .form-card button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(30, 95, 222, 0.38); }
  .form-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
    text-align: center;
    line-height: 1.5;
  }


  .lead-form-thankyou:not(.hidden) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 30rem;
    padding: 3rem 1rem 3.5rem;
    text-align: center;
  }

  .lead-form-thankyou-title {
    font-family: "Sora", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .lead-form-thankyou-message {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.55;
    max-width: 22rem;
    margin: 0 auto;
  }

  .lead-form-reset {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .lead-form-reset:hover {
    color: var(--blue-deep);
  }

  .form-card button[type="submit"]:disabled,
  .form-card .form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

  /* ---------- SECTIONS ---------- */
  section { padding: 96px 0; }
  section.alt { background: var(--cream); }
  section.mint { background: var(--mint-bg); }

  .section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .section-title {
    font-size: clamp(30px, 3.4vw, 44px);
    margin-bottom: 16px;
    max-width: 760px;
  }
  .section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 680px;
    margin-bottom: 48px;
  }
  /* Center section headings and ledes for alt sections */
  .alt .section-title {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .alt .section-sub {
    margin: 0 auto 48px;
    text-align: center;
  }
  /* Center the 'Designed For' eyebrow and its chips in alt sections */
  .alt .section-eyebrow {
    margin: 0 auto 14px;
    text-align: center;
    display: block;
  }
  .alt .chips {
    justify-content: center;
  }

  /* ---------- DATASET ---------- */
  .dataset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .data-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
  }
  .data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(10, 27, 61, 0.2);
  }
  .data-card .icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: grid; place-items: center;
    margin-bottom: 18px;
    background: var(--grad);
    color: white;
  }
  .data-card:nth-child(2) .icon { background: linear-gradient(135deg, #ee3a6b, #f5b215); }
  .data-card:nth-child(3) .icon { background: linear-gradient(135deg, #0fb9a8, #1e5fde); }
  .data-card h3 {
    font-size: 19px;
    margin-bottom: 14px;
  }
  .data-card ul { list-style: none; padding: 0; }
  .data-card li {
    font-size: 14px;
    color: var(--ink);
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    position: relative;
    padding-left: 18px;
  }
  .data-card li:last-child { border-bottom: none; }
  .data-card li::before {
    content: "";
    position: absolute;
    left: 0; top: 14px;
    width: 6px; height: 6px;
    background: var(--blue);
    border-radius: 1px;
    transform: rotate(45deg);
  }

  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
  .chip {
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
  .chip:nth-child(2) .dot { background: var(--pink); }
  .chip:nth-child(3) .dot { background: var(--yellow); }
  .chip:nth-child(4) .dot { background: var(--blue); }

  /* ---------- GROUND TRUTH ---------- */
  .ground-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
  .ground-left h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
  .ground-left p { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
  .ground-left .strong-line {
    margin-top: 28px;
    padding: 18px 22px;
    border-left: 3px solid var(--blue);
    background: white;
    border-radius: 0 12px 12px 0;
    font-size: 16px;
    color: var(--navy);
    font-weight: 500;
  }
  .powering-list {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
  }
  .powering-list .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .powering-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .powering-item:last-child { border-bottom: none; }
  .powering-item .num {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 28px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 90px;
  }
  .powering-item .txt { font-size: 15px; color: var(--navy); font-weight: 500; }

  /* ---------- PILOT ---------- */
  .pilot {
    text-align: center;
    padding: 24px 0 8px;
  }
  .pilot .pill {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 28px;
  }
  .pilot h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 auto 18px;
    max-width: 900px;
    color: var(--navy);
  }
  .pilot p.lede {
    color: var(--muted);
    font-size: 17px;
    margin: 0 auto 56px;
    max-width: 640px;
  }
  .pilot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 48px;
    text-align: left;
  }
  .pilot-item {
    background: white;
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(10, 27, 61, 0.04), 0 8px 24px -12px rgba(10, 27, 61, 0.08);
    transition: transform .2s, box-shadow .2s;
  }
  .pilot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(10, 27, 61, 0.06), 0 16px 32px -12px rgba(10, 27, 61, 0.14);
  }
  .pilot-item .icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--grad);
    display: grid;
    place-items: center;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 6px 16px -6px rgba(30, 95, 222, 0.5);
  }
  .pilot-item h4 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 10px;
  }
  .pilot-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
  }

  .pilot-cta {
    background: var(--grad);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(30, 95, 222, 0.28);
  }
  .pilot-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30, 95, 222, 0.38); }

  /* ---------- FINAL CTA ---------- */
  .final-cta {
    background: var(--grad-dark);
    color: white;
    text-align: center;
    padding: 110px 32px;
    position: relative;
    overflow: hidden;
  }
  .final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 1px 1px, rgba(255,255,255,0.18) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.4;
  }
  .final-cta > * { position: relative; z-index: 1; }
  .final-cta .eyebrow {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
  }
  .final-cta .eyebrow .dot { background: white; box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
  .final-cta h2 {
    color: white;
    font-size: clamp(32px, 4.5vw, 56px);
    max-width: 900px;
    margin: 0 auto 18px;
  }
  .final-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .final-cta .pilot-cta {
    font-size: 16px;
    padding: 17px 36px;
    display: inline-flex;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    background: white;
    color: var(--navy);
    border: 1px solid rgba(10, 27, 61, 0.06);
    box-shadow: 0 18px 40px rgba(10, 27, 61, 0.18);
    font-weight: 700;
  }
  .final-cta .pilot-cta svg { color: var(--navy); }
  .final-cta .pilot-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(10, 27, 61, 0.22);
  }
  .final-cta .pilot-cta:focus {
    outline: 3px solid rgba(30,95,222,0.12);
    outline-offset: 4px;
  }

  @media (max-width: 560px) {
    .final-cta { padding: 56px 20px; }
    .final-cta .pilot-cta { padding: 12px 20px; font-size: 15px; }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px) {
    h1.hero-title {
      font-size: 38px !important;
    }
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .dataset-grid { grid-template-columns: 1fr; }
    .ground-grid { grid-template-columns: 1fr; gap: 40px; }
    .pilot-grid { grid-template-columns: 1fr 1fr; }
    .pilot { padding: 44px 28px; }
    section { padding: 64px 0; }
  }
  @media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    .hero-stats { grid-template-columns: 1fr; }
    .pilot-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
    .field-row { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 64px; }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-left > * { animation: fadeUp .7s ease both; }
  .hero-left > *:nth-child(1) { animation-delay: .05s; }
  .hero-left > *:nth-child(2) { animation-delay: .12s; }
  .hero-left > *:nth-child(3) { animation-delay: .2s; }
  .hero-left > *:nth-child(4) { animation-delay: .28s; }
  .hero-left > *:nth-child(5) { animation-delay: .36s; }
  .hero-left > *:nth-child(6) { animation-delay: .44s; }
  .form-card { animation: fadeUp .8s ease .3s both; }
}
