:root {
    --header-color: rgb(134, 161, 198);
    --header-bg: rgb(73, 164, 222);
    --bg: #f4f6f8;
    --bg-2: #e9edf2;
    --ink: #0f1822;
    --ink-2: #2a3744;
    --muted: #5a6878;
    --line: rgba(15, 24, 34, 0.10);
    --line-2: rgba(15, 24, 34, 0.06);
    --accent: oklch(0.55 0.12 240);
    --accent-soft: oklch(0.92 0.03 240);
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --fixed-bg: #f4f6f8;
  }
  [data-theme="dark"] {
    --header-color: white;
    --header-bg: black;    
    --bg: #0d1218;
    --bg-2: #131a23;
    --ink: #eef2f7;
    --ink-2: #c5d0dd;
    --muted: #8a98aa;
    --line: rgba(238, 242, 247, 0.12);
    --line-2: rgba(238, 242, 247, 0.06);
    --accent: oklch(0.72 0.12 240);
    --accent-soft: oklch(0.28 0.05 240);
    --fixed-bg: #f4f6f8;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    transition: background .25s ease, color .25s ease;
  }
  ::selection { background: var(--accent); color: #fff; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 56px; }

  /* ── PRINT ───────────────────────────────────── */
  @media print {
    @page { size: A4; margin: 1.4cm; }
    html, body {
      background: #ffffff !important;
      color: #0f1822 !important;
      -webkit-print-color-adjust: exact;
      print-color-adjust: exact;
    }
    /* force light variables in print */
    :root, [data-theme="dark"] {
      --header-color: white;
      --header-bg: black;  
      --bg: #ffffff;
      --bg-2: #f4f6f8;
      --ink: #0f1822;
      --ink-2: #2a3744;
      --muted: #5a6878;
      --line: rgba(15, 24, 34, 0.18);
      --line-2: rgba(15, 24, 34, 0.10);
      --accent: #2c4a86;
      --accent-soft: #e8edf6;
      --fixed-bg: #f4f6f8;
    }
    .nav, .menu-toggle, .icon-btn, #typed, .typing-cursor { display: none !important; }
    .nav { display: none !important; }
    .ambient { display: none !important; }
    .hero { padding: 24px 0 32px !important; break-after: page; }
    .hero h1 { font-size: 56px !important; }
    .hero h1 em { color: #2c4a86 !important; }
    .hero h1 br { display: none; }
    .hero h1::after { content: 'platforms.'; }
    section.block, .contact { padding: 32px 0 !important; break-before: page; }
    .section-head { margin-bottom: 32px !important; }
    .section-head h2, .section-head h2 em { font-size: 36px !important; }
    .services, .about-grid, .product, .contact-grid { break-inside: avoid; }
    .service { break-inside: avoid; }
    details { break-inside: avoid; }
    details:not([open]) p { display: block !important; }
    details[open] summary .toggle, details summary .toggle { display: none; }
    summary { cursor: default !important; }
    .contact {
      background: #0f1822 !important;
      color: #ffffff !important;
    }
    .contact h2, .contact .eyebrow, .contact .label, .contact-block a, .footer-bottom {
      color: #ffffff !important;
    }
    .contact h2 em { color: #8eb4ff !important; }
    a { color: inherit !important; text-decoration: none !important; }
    .product-visual { min-height: 240px; }
    .footer-bottom { break-inside: avoid; }
  }

  /* ── NAV ─────────────────────────────────────── */
  .nav {
    color: var(--header-color);
    background-color: var(--header-bg);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-2);
  }
  .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
  }
  .logo {
    font-family: var(--serif); font-weight: 500; font-size: 22px;
    letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--ink);
  }
  .logo-mark {
    width: 28px; height: 28px; border-radius: 7px;
    background: var(--ink); color: var(--bg);
    display: grid; place-items: center;
    font-family: var(--sans); font-weight: 700; font-size: 11px;
    letter-spacing: 0.04em;
  }
  .nav-links { display: flex; gap: 32px; align-items: center; }
  .nav-links a {
    color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
    transition: color .15s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-actions { display: flex; gap: 12px; align-items: center; }
  .icon-btn {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
    background: transparent; color: var(--ink-2); cursor: pointer;
    display: grid; place-items: center; transition: background .15s, border-color .15s;
  }
  .icon-btn:hover { background: var(--bg-2); border-color: var(--ink-2); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 18px; border-radius: 8px;
    font-family: var(--sans); font-weight: 500; font-size: 14px;
    text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: all .15s ease;
  }
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: var(--accent); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--ink); }

  .menu-toggle { display: none; }

  /* ── HERO ────────────────────────────────────── */
  .hero { padding: 96px 0 80px; position: relative; overflow: hidden; }
  .eyebrow {
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--muted);
  }
  .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(56px, 7vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 24px 0 0;
    text-wrap: balance;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }
  .typing-cursor {
    display: inline-block;
    width: 0.04em;
    height: 0.85em;
    background: var(--accent);
    vertical-align: -0.04em;
    margin-left: 0.04em;
    animation: blink 1s steps(2) infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  .hero-meta {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
    margin-top: 56px; align-items: end;
  }
  .hero-lede {
    font-size: 19px; line-height: 1.5; color: var(--ink-2);
    max-width: 540px; text-wrap: pretty;
  }
  .hero-actions { display: flex; gap: 12px; margin-top: 28px; }
  .hero-stats {
    display: flex; gap: 40px; padding-bottom: 6px;
  }
  .stat-num {
    font-family: var(--serif); font-size: 44px; font-weight: 400;
    line-height: 1; letter-spacing: -0.02em;
  }
  .stat-num-small {
    font-size: 0.5em;
  }
  .stat-label {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: 8px;
  }

  /* ambient floating lines */
  .ambient {
    position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    z-index: 0;
  }
  .ambient svg { width: 100%; height: 100%; }
  .ambient line { stroke: var(--line); stroke-width: 1; }
  .hero > .wrap { position: relative; z-index: 1; }

  /* ── SECTION SHELL ───────────────────────────── */
  section.block { padding: 96px 0; border-top: 1px solid var(--line-2); }
  .section-head {
    display: grid; grid-template-columns: 150px 1fr; gap: 64px;
    margin-bottom: 56px;
  }
  .section-head .label {
    font-family: var(--mono); font-size: 12px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  .section-head h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.05; letter-spacing: -0.02em;
    margin: 0; text-wrap: balance;
  }
  .section-head h2 em { font-style: italic; color: var(--accent); }

  /* ── SERVICES ────────────────────────────────── */
  .services {
    display: grid; grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  }
  .service {
    padding: 40px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    position: relative; transition: background .18s;
  }
  .service:hover { background: var(--bg-2); }
  .service-num {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    letter-spacing: 0.08em;
  }
  .service h3 {
    font-family: var(--serif); font-weight: 400; font-size: 28px;
    margin: 16px 0 12px; letter-spacing: -0.01em;
  }
  .service p {
    color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px;
    max-width: 460px;
  }
  .service ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  .service li {
    font-family: var(--mono); font-size: 12px; color: var(--ink-2);
    display: flex; align-items: center; gap: 10px;
  }
  .service li::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
  }

  /* ── ABOUT ───────────────────────────────────── */
  .about-section {
    align-items: start;
  }
  .about-prose p {
    font-family: var(--serif); font-weight: 300; font-size: 22px;
    line-height: 1.45; letter-spacing: -0.005em; color: var(--ink);
    margin: 0 0 24px; text-wrap: pretty;
  }
  .about-prose p:last-child {
    font-family: var(--sans); font-size: 15px; font-weight: 400;
    color: var(--ink-2); line-height: 1.6;
  }
  .team {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  }
  .team-card {
    border: 1px solid var(--line); border-radius: 12px; padding: 20px;
    background: var(--bg-2);
  }
  .avatar {
    width: 100%; aspect-ratio: 1;
    background:
      repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 8px),
      var(--bg);
    border-radius: 8px; margin-bottom: 14px;
    display: grid; place-items: center;
    font-family: var(--mono); font-size: 10px; color: var(--muted);
  }
  .team-name { font-weight: 500; font-size: 14px; }
  .team-role {
    font-family: var(--mono); font-size: 11px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
  }

  /* ── FAQ ─────────────────────────────────────── */
  .faq-list { border-top: 1px solid var(--line); }
  details {
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  details summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    gap: 32px;
  }
  summary::-webkit-details-marker { display: none; }
  summary span.q {
    font-family: var(--serif); font-weight: 400; font-size: 22px;
    letter-spacing: -0.01em;
  }
  summary span.toggle {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line); display: grid; place-items: center;
    flex-shrink: 0; transition: transform .2s, border-color .2s, background .2s;
    color: var(--ink-2);
  }
  details[open] summary span.toggle { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
  details p {
    color: var(--ink-2); margin: 16px 0 0; max-width: 720px; line-height: 1.6;
  }

  /* ── CONTACT / FOOTER ────────────────────────── */
  .contact {
    background: var(--ink); color: var(--fixed-bg);
    padding: 96px 0 48px; margin-top: 0;
    border-top: none;
  }
  [data-theme="dark"] .contact { background: var(--bg-2); }
  .contact .eyebrow { color: rgba(255,255,255,0.5); }
  .contact .eyebrow::before { background: rgba(255,255,255,0.4); }
  .contact h2 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1; letter-spacing: -0.025em;
    margin: 24px 0 48px; max-width: 900px; text-wrap: balance;
  }
  .contact h2 em { font-style: italic; color: oklch(0.78 0.12 240); }
  .contact-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px;
    padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.12);
  }
  .contact-block .label {
    font-family: var(--mono); font-size: 11px;
    color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 14px;
  }
  .contact-block a {
    color: var(--fixed-bg); text-decoration: none; font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
  }
  .contact-block a:hover { border-color: oklch(0.78 0.12 240); color: oklch(0.78 0.12 240); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12);
    font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5);
  }

  /* ── PRODUCT FEATURE ─────────────────────────── */
  .product {
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    background: var(--bg-2);
    display: grid; grid-template-columns: 1fr 1fr;
  }
  .product-info { padding: 48px; }
  .product-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--mono); font-size: 11px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--accent-soft); padding: 6px 12px; border-radius: 100px;
  }
  .product-tag::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: pulse 2s ease infinite;
  }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  .product h3 {
    font-family: var(--serif); font-weight: 400; font-size: 36px;
    margin: 18px 0 14px; letter-spacing: -0.02em;
  }
  .product p {
    color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 28px;
  }
  .product-visual {
    border-left: 1px solid var(--line);
    display: grid; place-items: center; min-height: 360px;
    position: relative;
  }
  .product-visual img {
    height: 100%;
    width: 100%;
  }

  @media (max-width: 760px) {
    .wrap { padding: 0 24px; }
    .hero { padding: 56px 0 48px; }
    .hero-meta { grid-template-columns: 1fr; gap: 32px; }
    .section-head { grid-template-columns: 1fr; gap: 16px; }
    .services { grid-template-columns: 1fr; }
    .about-grid, .product, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .product-visual { border-left: 0; border-top: 1px solid var(--line); }
    .product-info { padding: 32px; }
    .menu-toggle { display: grid; }
    .nav-links { display: none; }
    .nav-links.open {
      display: flex; flex-direction: column; gap: 8px;
      position: absolute; top: 72px; left: 0; right: 0;
      background: var(--bg); padding: 16px 24px 24px;
      border-bottom: 1px solid var(--line);
    }
    .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  }
