/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --ink: #0b1530;
    --ink-2: #44506b;
    --ink-3: #7a849b;
    --line: #e3e8f1;
    --brand: #2453ff;
    --navy: #07102a;
    --navy-2: #0e1b44;
    /* One accent per product, so each system keeps its own identity under the FR.HERE family */
    --payments: #2453ff;
    --accounts: #00a88f;
    --ai: #7a4dff;
    --cards: #c9962b;
    --todo-bg: #fff4d6;
    --todo-ink: #8a5a00;
    --radius: 14px;
    --max: 1160px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
  section { padding: 96px 0; }
  h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
  h2 { font-size: clamp(28px, 4vw, 40px); }
  h3 { font-size: 20px; }
  h4 { font-size: 16px; margin-bottom: 6px; }
  p { margin: 0; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--brand)); margin-bottom: 14px; }
  .lead { font-size: 18px; color: var(--ink-2); max-width: 720px; margin-top: 16px; }
  .section-head { margin-bottom: 48px; }
  .center { text-align: center; }
  .center .lead { margin-left: auto; margin-right: auto; }
  .muted { color: var(--ink-2); font-size: 14.5px; }

  /* Placeholder marker: content to be confirmed before going live */
  .todo { background: var(--todo-bg); color: var(--todo-ink); border-radius: 4px; padding: 0 6px; font-weight: 500; }

  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .2s; border: 1px solid transparent; cursor: pointer; }
  .btn-primary { background: var(--brand); color: #fff; }
  .btn-primary:hover { filter: brightness(.92); }
  .btn-ghost { border-color: rgba(255,255,255,.25); color: #fff; }
  .btn-ghost:hover { background: rgba(255,255,255,.08); }
  .btn-accent { background: var(--accent); color: #fff; }
  .btn-accent:hover { filter: brightness(.92); }
  .btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
  .btn-outline:hover { border-color: var(--accent); }
  .btn.pending { opacity: .55; cursor: not-allowed; }

  /* Nav */
  header { position: sticky; top: 0; z-index: 50; background: rgba(7,16,42,.88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 8px; background: conic-gradient(from 210deg, var(--payments), var(--accounts), var(--ai), var(--cards), var(--payments)); display: grid; place-items: center; font-size: 14px; }
  .nav-links { display: flex; gap: 26px; font-size: 14.5px; color: rgba(255,255,255,.75); }
  .nav-links a:hover { color: #fff; }
  .nav-cta { padding: 9px 16px; font-size: 14px; }
  .menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

  /* Hero */
  .hero { background: radial-gradient(1100px 600px at 85% -10%, rgba(36,83,255,.35), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(0,168,143,.2), transparent 60%), var(--navy); color: #fff; padding: 110px 0 120px; }
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; }
  .hero h1 span { background: linear-gradient(90deg, #7ea0ff, #3fe0c5, #e6c070); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero .lead { color: rgba(255,255,255,.72); }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

  /* Hero ecosystem map */
  .eco { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin: 0 auto; width: 100%; }
  .eco-ring { position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
  .eco-core { position: absolute; inset: 36%; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 18px; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 60px rgba(126,160,255,.35); }
  .eco-core small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .04em; }
  .eco-node { position: absolute; width: 40%; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: rgba(255,255,255,.7); transition: .2s; }
  .eco-node:hover { background: rgba(255,255,255,.12); }
  .eco-node b { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; }
  .eco-node b i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }
  .eco-node.n1 { top: 0; left: 0; --accent: var(--payments); }
  .eco-node.n2 { top: 0; right: 0; --accent: var(--accounts); }
  .eco-node.n3 { bottom: 0; left: 0; --accent: var(--ai); }
  .eco-node.n4 { bottom: 0; right: 0; --accent: var(--cards); }

  /* Built for */
  .builtfor { border-bottom: 1px solid var(--line); padding: 28px 0; }
  .builtfor .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; justify-content: center; color: var(--ink-2); font-weight: 600; font-size: 15px; }
  .builtfor .label { color: var(--ink-3); font-weight: 500; }

  /* Product family cards */
  .family { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .fam { border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 22px; background: #fff; display: flex; flex-direction: column; transition: .2s; }
  .fam:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11,21,48,.08); }
  .fam .cat { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
  .fam h3 { font-size: 26px; margin: 8px 0 4px; }
  .fam .tag { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
  .fam p { color: var(--ink-2); font-size: 14.5px; flex: 1; }
  .fam .links { display: flex; gap: 14px; margin-top: 18px; font-size: 14px; font-weight: 600; }
  .fam .links a { color: var(--accent); }
  .fam .links a.ext.pending { color: var(--ink-3); }

  /* Product sections */
  .product { border-top: 1px solid var(--line); }
  .product.alt { background: var(--bg-soft); }
  .p-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 48px; }
  .p-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
  .p-brand i { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
  .p-brand span { font-weight: 500; color: var(--ink-3); }
  .p-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
  .sub-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 48px 0 18px; }

  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
  .card .k { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 2px 8px; border-radius: 6px; margin-bottom: 12px; }
  .card p { color: var(--ink-2); font-size: 14.5px; }

  /* Lifecycle flow */
  .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
  .flow > div { padding: 20px 18px; border-right: 1px solid var(--line); position: relative; }
  .flow > div:last-child { border-right: 0; }
  .flow .n { font-size: 12px; font-weight: 700; color: var(--accent); }
  .flow h4 { margin: 6px 0 4px; }
  .flow p { font-size: 13.5px; color: var(--ink-2); }
  .flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink-3); font-size: 14px; z-index: 1; line-height: 1; }

  /* Dual rails */
  .rails { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .rail { border-radius: var(--radius); padding: 24px; }
  .rail.fiat { background: #eef2ff; border: 1px solid #d5defe; }
  .rail.coin { background: #e6f7f3; border: 1px solid #bfe9df; }
  .rail h4 { font-size: 18px; margin-bottom: 10px; }
  .rail ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; display: grid; gap: 4px; }

  .tradeoff { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 16px; align-items: stretch; }
  .tradeoff li.pro::marker { content: "✓  "; color: var(--accounts); }
  .tradeoff li.con::marker { content: "–  "; color: var(--ink-3); }
  .engine-col { border-radius: var(--radius); padding: 24px; background: var(--navy); color: #fff; display: flex; flex-direction: column; justify-content: center; text-align: center; }
  .engine-col h4 { font-size: 22px; margin-bottom: 10px; color: #3fe0c5; }
  .engine-col p { color: rgba(255,255,255,.75); font-size: 14.5px; }
  .isolate { border: 1px solid #bfe9df; background: #e6f7f3; border-radius: var(--radius); padding: 20px 24px; font-size: 15px; color: var(--ink-2); }
  .isolate b { color: var(--ink); }

  table.cmp { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14.5px; }
  .cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
  .cmp th { background: var(--bg-soft); font-size: 13px; color: var(--ink-3); font-weight: 600; }
  .cmp td:first-child { font-weight: 600; }
  .cmp td:last-child { color: var(--accounts); font-weight: 600; }
  .cmp tr:last-child td { border-bottom: 0; }
  .table-scroll { overflow-x: auto; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

  /* Seller journey loop (AI Commerce) */
  .journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .jstep { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: relative; }
  .jstep .verb { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ai); }
  .jstep h4 { margin: 6px 0; }
  .jstep p { font-size: 13.5px; color: var(--ink-2); }
  .jstep .pw { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
  .pw.payments { background: #e8edff; color: var(--payments); }
  .pw.cards { background: #fbf3e2; color: #9a7019; }
  .pw.accounts { background: #e0f5f1; color: var(--accounts); }
  .loop-note { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-3); }

  /* Cards */
  .vd-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
  .vcard { aspect-ratio: 1.586; max-width: 400px; border-radius: 18px; padding: 24px; color: #f1dca8; background: linear-gradient(160deg, #1c2a24 0%, #0f1814 55%, #2b2414 100%); box-shadow: 0 30px 60px rgba(11,21,48,.25); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
  .vcard::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; background: radial-gradient(ellipse at 50% 100%, rgba(201,150,43,.35), transparent 70%); }
  .vcard .top { display: flex; justify-content: space-between; font-weight: 800; letter-spacing: .04em; position: relative; }
  .vcard .num { font-family: ui-monospace, Menlo, monospace; font-size: 19px; letter-spacing: .12em; color: #fff; position: relative; }
  .vcard .bot { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .06em; position: relative; }

  /* White-label / dark */
  .dark { background: var(--navy); color: #fff; }
  .dark .lead { color: rgba(255,255,255,.7); }
  .wl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .wl { padding: 24px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); }
  .wl p { color: rgba(255,255,255,.65); font-size: 14.5px; }

  /* Compliance */
  .comp .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(36,83,255,.1); color: var(--brand); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
  .licenses { margin-top: 32px; border: 1px dashed #d8c08a; background: #fffbf0; border-radius: var(--radius); padding: 24px; }
  .licenses ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }

  /* Partners */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; margin-top: 56px; }
  .step { position: relative; padding-right: 20px; }
  .step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px; }
  .step::after { content: ""; position: absolute; top: 18px; left: 44px; right: 8px; height: 1px; background: var(--line); }
  .step:last-child::after { display: none; }
  .step p { color: var(--ink-2); font-size: 14.5px; }

  /* About */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .facts div { display: grid; grid-template-columns: 160px 1fr; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .facts div:last-child { border-bottom: 0; }
  .facts span:first-child { color: var(--ink-3); }

  /* Contact */
  .contact { background: linear-gradient(135deg, var(--navy), #13286b); color: #fff; }
  .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .contact .lead { color: rgba(255,255,255,.7); }
  .contact-info { margin-top: 32px; display: grid; gap: 12px; font-size: 15px; color: rgba(255,255,255,.8); }
  form { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  form label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: grid; gap: 6px; }
  form .full { grid-column: 1 / -1; }
  input, select, textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
  input:focus, select:focus, textarea:focus { outline: 2px solid rgba(36,83,255,.3); border-color: var(--brand); }
  textarea { min-height: 100px; resize: vertical; }
  form button { border: 0; justify-content: center; }

  footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 56px 0 36px; font-size: 14px; }
  .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; }
  footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  footer a:hover { color: #fff; }
  .legal-line { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; font-size: 13px; line-height: 1.7; }

  @media (max-width: 1020px) {
    .hero-grid, .vd-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .family, .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3, .wl-grid { grid-template-columns: 1fr 1fr; }
    .flow, .journey { grid-template-columns: 1fr 1fr; }
    .flow > div { border-bottom: 1px solid var(--line); }
    .flow > div::after { display: none; }
    .p-head { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
    .step::after { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    section { padding: 72px 0; }
    .hero { padding: 64px 0 80px; }
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 20px 16px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .family, .grid-3, .grid-4, .wl-grid, .rails, .tradeoff, .flow, .journey, .steps, .foot-grid { grid-template-columns: 1fr; }
    .flow > div { border-right: 0; }
    .eco { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; }
    .eco-ring { display: none; }
    .eco-core { position: static; grid-column: 1 / -1; order: -1; padding: 18px; border-radius: 14px; inset: auto; }
    .eco-node { position: static; width: auto; }
    form { grid-template-columns: 1fr; padding: 20px; }
    .facts div { grid-template-columns: 1fr; gap: 2px; }
  }
section[id] { scroll-margin-top: 68px; }
a:focus-visible, button:focus-visible { outline: 3px solid #739aff; outline-offset: 4px; }
.nav-links { align-items: center; }
.eco-node b { font-size: 14px; }
.eco-node b i { flex: 0 0 9px; }
.eco .eco-core { font-size: clamp(12px, 2.1vw, 18px); }
.preview-note { grid-column: 1 / -1; color: var(--ink-2); }
.product-hero { --accent: var(--brand); }
.product-hero .eyebrow { color: #c3d3ff; }
.card .k, .fam .cat { color: var(--ink-2); }
.fam h3 { font-size: 22px; }
.foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
.nav-links [aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 760px) {
  .nav-links.open { align-items: stretch; }
  .nav-links.open a { padding: 5px 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .eco { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.section-action { margin-top: 28px; }
.contact-preview { background: #fff; color: var(--ink); border-radius: 18px; padding: 28px; }
.contact-preview ul { margin-bottom: 0; }
.product-notice { margin-top: 20px; color: #d1dafe; }
.product-flow, .product-journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-flow h3, .product-journey h3 { font-size: 16px; margin-bottom: 8px; }
.contact-preview { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; margin: 0; }
.contact-preview h3, .contact-preview .full { grid-column: 1 / -1; }
.contact-preview label { min-width: 0; font-size: 13px; font-weight: 600; display: grid; gap: 6px; }
.contact-preview :disabled { opacity: .72; cursor: default; }
.contact-preview button:disabled { background: #44506b; justify-content: center; }
@media (max-width: 1020px) {
  .product-flow, .product-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .product-flow, .product-journey, .contact-preview { grid-template-columns: 1fr; }
}

.page-heading { font-size: clamp(34px, 5vw, 48px); }
.section-tagline { margin-top: 12px; font-weight: 600; }
.section-tagline + .lead { margin-top: 8px; }
.ecosystem-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecosystem-workflow li { border-top: 2px solid var(--line); padding-top: 20px; }
.ecosystem-workflow h3 + p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 1020px) {
  .ecosystem-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ecosystem-workflow { grid-template-columns: 1fr; }
}

.solution-cards .card { display: flex; flex-direction: column; }
.solution-action { margin-top: auto; padding-top: 24px; }
.solution-action .btn {
  width: 100%;
  min-height: 64px;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 10px 12px;
  border-color: var(--line);
}
.solution-action .btn:hover { border-color: var(--brand); }
