:root {
    --navy: #2E3547;
    --navy-2: #232838;
    --teal: #4BB893;
    --teal-dark: #3B9C7B;
    --teal-tint: #EAF6F1;
    --ink: #1C2130;
    --muted: #667085;
    --paper: #FFFFFF;
    --line: #E4E7EC;
    --radius: 18px;
    --maxw: 1180px;
    color-scheme: light;
  }
  :root:not([data-theme="light"]) {
    /* Marketing site: keep it on-brand regardless of system theme */
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { overflow-x: hidden; max-width: 100%; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, .display {
    font-family: 'Archivo', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
  }
  a { color: inherit; }
  img { max-width: 100%; display: block; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  /* ---------- Nav ---------- */
  header.site-nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
  }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand-mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
  .brand-word {
    color: #fff; font-family: 'Archivo', sans-serif; font-weight: 800;
    font-size: clamp(13px, 4.2vw, 17px); letter-spacing: 0.02em; text-transform: uppercase;
    white-space: nowrap;
  }
  nav.primary-links { display: flex; align-items: center; gap: 8px; }
  nav.primary-links a {
    color: rgba(255,255,255,0.88); text-decoration: none;
    font-weight: 700; font-size: 13.5px; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 10px 16px; border-radius: 999px; transition: background 0.15s, color 0.15s;
  }
  nav.primary-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-toggle {
    display: none; background: none; border: 0; color: #fff; padding: 8px;
    cursor: pointer;
  }
  @media (max-width: 780px) {
    nav.primary-links {
      position: absolute; top: 76px; left: 0; right: 0;
      background: var(--navy-2); flex-direction: column; align-items: stretch;
      padding: 8px 16px 18px; gap: 2px;
      display: none;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    nav.primary-links.open { display: flex; }
    nav.primary-links a { padding: 12px 10px; text-align: left; }
    .nav-toggle { display: inline-flex; }
  }

  /* ---------- Hero ---------- */
  .hero {
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff;
    padding: 88px 0 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero-mark { width: 128px; height: auto; margin: 0 auto 36px; opacity: 0.98; object-fit: contain; }
  .hero h1 {
    font-size: clamp(40px, 6.5vw, 76px);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.02;
  }
  .hero .divider {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin: 26px auto 22px; max-width: 360px;
  }
  .hero .divider .rule { flex: 1; height: 2px; background: rgba(255,255,255,0.6); }
  .hero .divider svg { width: 22px; height: 22px; flex: none; }
  .hero p.tagline {
    font-size: clamp(17px, 2.1vw, 21px);
    color: rgba(255,255,255,0.94);
    max-width: 560px; margin: 0 auto;
    font-weight: 500;
  }
  .hero .scroll-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 48px; color: #fff; text-decoration: none;
    font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,0.55); border-radius: 999px;
    padding: 12px 22px; transition: background 0.15s, border-color 0.15s;
  }
  .hero .scroll-cta:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
  .hero .scroll-cta svg { width: 14px; height: 14px; }

  /* ---------- Section scaffolding ---------- */
  section { padding: 96px 0; }
  .eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal-dark);
    background: var(--teal-tint); padding: 6px 14px; border-radius: 999px;
    margin-bottom: 18px;
  }
  .section-head { max-width: 640px; margin-bottom: 56px; }
  .section-head h2 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); }
  .section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

  /* ---------- Portfolio ---------- */
  .app-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  }
  @media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }
  .app-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; display: flex; flex-direction: column; gap: 18px;
    background: #fff; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  }
  .app-card:hover { box-shadow: 0 18px 40px -20px rgba(46,53,71,0.35); transform: translateY(-2px); border-color: transparent; }
  .app-card-top { display: flex; align-items: flex-start; gap: 18px; }
  .app-icon {
    width: 68px; height: 68px; border-radius: 17px; flex: none;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(20,20,30,0.06), 0 8px 18px -8px rgba(0,0,0,0.28);
    background: #fff;
  }
  .app-meta { flex: 1; min-width: 0; }
  .app-name { font-size: 19px; font-weight: 800; font-family: 'Archivo', sans-serif; color: var(--navy); }
  .status-pill {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px;
  }
  .status-live { color: #1B7A5A; background: #E3F6EE; }
  .status-soon { color: #8A5A00; background: #FFF3DC; }
  .app-desc { color: var(--muted); font-size: 15px; flex: 1; }
  .app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .store-btn {
    display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 13.5px;
    padding: 10px 16px; border-radius: 10px; transition: background 0.15s;
  }
  .store-btn:hover { background: var(--navy-2); }
  .store-btn svg { width: 16px; height: 16px; }
  .store-btn.disabled {
    background: var(--teal-tint); color: var(--teal-dark); cursor: default;
    pointer-events: none;
  }

  /* ---------- About ---------- */
  .about-section { background: var(--teal-tint); }
  .about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
  @media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
  .about-grid p { color: var(--ink); font-size: 16.5px; margin: 0 0 16px; }
  .stat-list { display: flex; flex-direction: column; gap: 20px; }
  .stat-card {
    background: #fff; border-radius: 14px; padding: 20px 22px;
    border: 1px solid var(--line);
    display: flex; gap: 16px; align-items: flex-start;
  }
  .stat-card svg { width: 26px; height: 26px; flex: none; color: var(--teal-dark); margin-top: 2px; }
  .stat-card h3 { font-size: 15.5px; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
  .stat-card p { margin: 0; font-size: 14px; color: var(--muted); }

  /* ---------- Contact ---------- */
  .contact-section { background: var(--navy); color: #fff; }
  .contact-section .section-head h2 { color: #fff; }
  .contact-section .section-head p { color: rgba(255,255,255,0.68); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
  @media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
  form.contact-form { display: flex; flex-direction: column; gap: 16px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
  .field input, .field textarea {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px; padding: 13px 14px; color: #fff; font: inherit; font-size: 15px;
    resize: vertical;
  }
  .field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
  .field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
  .submit-btn {
    align-self: flex-start; background: var(--teal); color: var(--navy-2);
    font-weight: 800; border: 0; border-radius: 10px; padding: 13px 26px;
    font-size: 14.5px; letter-spacing: 0.02em; cursor: pointer; transition: background 0.15s;
    margin-top: 4px;
  }
  .submit-btn:hover { background: #5fc7a4; }
  .form-note { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: -4px; }
  .form-status {
    font-size: 14px; font-weight: 600; margin-top: 2px; min-height: 20px;
  }
  .form-status-success { color: #6FCBAE; }
  .form-status-error { color: #FF9C8A; }
  .submit-btn:disabled { opacity: 0.7; cursor: default; }

  .contact-side h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 700; margin-bottom: 14px; }
  .location-block { margin-bottom: 40px; }
  .location-block p { margin: 0; font-size: 17px; font-weight: 600; }
  .social-list { display: flex; flex-direction: column; gap: 4px; }
  .social-list a {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    color: rgba(255,255,255,0.85); padding: 10px 0; font-size: 15px; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.15s;
  }
  .social-list a:hover { color: var(--teal); }
  .social-list svg { width: 19px; height: 19px; flex: none; }

  /* ---------- Footer ---------- */
  footer.site-footer {
    background: var(--navy-2); color: rgba(255,255,255,0.55);
    padding: 26px 0; font-size: 13.5px;
  }
  footer.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  footer.site-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
  footer.site-footer a:hover { color: #fff; }

  /* ---------- Nav dropdown (Privacy submenu) ---------- */
  .nav-item-dropdown { position: relative; }
  .dropdown-trigger {
    display: inline-flex; align-items: center; gap: 5px;
  }
  .dropdown-trigger svg { width: 10px; height: 10px; transition: transform 0.15s; }
  .nav-item-dropdown:hover .dropdown-trigger svg,
  .nav-item-dropdown:focus-within .dropdown-trigger svg { transform: rotate(180deg); }
  .dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
    background: var(--navy-2); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 8px; box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 60;
  }
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown-menu a {
    display: block; padding: 9px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0;
    color: rgba(255,255,255,0.82);
  }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  @media (max-width: 780px) {
    .dropdown-menu {
      position: static; opacity: 1; visibility: visible; transform: none;
      box-shadow: none; border: 0; background: transparent;
      padding: 0 0 0 14px; margin-top: 2px; display: none;
    }
    nav.primary-links.open .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 9px 10px; font-size: 13px; color: rgba(255,255,255,0.7); }
  }

  /* ---------- Simple / legal pages ---------- */
  .page-banner {
    background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: #fff; padding: 64px 0 56px; text-align: center;
  }
  .page-banner .brand-mark-lg { width: 64px; height: auto; margin: 0 auto 22px; }
  .page-banner h1 { font-size: clamp(30px, 5vw, 46px); color: #fff; text-transform: uppercase; }
  .page-banner p { margin-top: 12px; color: rgba(255,255,255,0.92); font-size: 16px; }
  .legal-wrap { max-width: 720px; margin: 0 auto; padding: 0 28px; }
  .legal-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 44px; margin: -64px auto 0; position: relative;
    box-shadow: 0 24px 60px -30px rgba(46,53,71,0.35);
  }
  .legal-card h2 { font-size: 22px; color: var(--navy); margin-bottom: 18px; }
  .legal-card p { font-size: 16px; color: var(--ink); margin: 0 0 16px; }
  .legal-card a.inline-link { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }
  .policy-picker { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
  .policy-picker a {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    text-decoration: none; border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 20px; color: var(--navy); font-weight: 700; font-size: 15.5px;
    transition: border-color 0.15s, background 0.15s;
  }
  .policy-picker a:hover { border-color: var(--teal); background: var(--teal-tint); }
  .policy-picker a svg { width: 18px; height: 18px; color: var(--teal-dark); flex: none; }
  .legal-section { padding: 96px 0 110px; background: var(--teal-tint); }

  /* ---------- Mobile refinements ---------- */
  @media (max-width: 600px) {
    .wrap, .legal-wrap { padding: 0 18px; }
    section { padding: 56px 0; }
    .hero { padding: 56px 0 60px; }
    .hero-mark { width: 96px; margin-bottom: 26px; }
    .hero .scroll-cta { margin-top: 34px; }
    .section-head { margin-bottom: 34px; }
    .eyebrow { margin-bottom: 14px; }

    .app-card { padding: 22px; gap: 14px; }
    .app-card-top { gap: 14px; }
    .app-icon { width: 56px; height: 56px; border-radius: 14px; }
    .app-name { font-size: 17px; }

    .about-grid, .contact-grid { gap: 34px; }
    .stat-card { padding: 16px 18px; }

    .contact-side { display: flex; flex-direction: column; gap: 0; }
    .location-block { margin-bottom: 28px; }

    .page-banner { padding: 44px 0 40px; }
    .page-banner .brand-mark-lg { width: 52px; margin-bottom: 16px; }
    .legal-section { padding: 0 0 64px; }
    .legal-card { padding: 26px; margin: -40px auto 0; border-radius: 14px; }

    footer.site-footer .wrap { justify-content: center; text-align: center; }
  }

  @media (max-width: 420px) {
    .nav-inner { height: 64px; }
    .brand-mark { width: 28px; height: 28px; }
    .brand { gap: 9px; }
    .hero h1 { font-size: 34px; }
    .hero p.tagline { font-size: 16px; }
  }
