/* ============================================================
   global.css — Curfex site-wide shared styles
   Covers: tokens, reset, typography, nav, mobile nav,
           dropdown, footer, legal layout, site-bg, utilities
   Absorbs: site-shell.css
   ============================================================ */


/* ── 1. DESIGN TOKENS ── */
@import "https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap";
:root {
  --tk:   #26BDBD;
  --tk2:  #8FD4D4;
  --tk3:  #D1ECEB;
  --bg:   #070F10;
  --bg2:  #050C0D;
  --bgl:  #F4FAFA;
  --bgl2: #ffffff;

  /* Dark text hierarchy */
  --t1: rgba(255,255,255,0.95);
  --t2: rgba(255,255,255,0.72);
  --t3: rgba(255,255,255,0.45);
  --t4: rgba(255,255,255,0.25);

  /* Light text hierarchy */
  --lt1: rgba(7,15,16,0.90);
  --lt2: rgba(7,15,16,0.62);
  --lt3: rgba(7,15,16,0.42);
  --lt4: rgba(7,15,16,0.25);

  /* Borders */
  --brd:  rgba(255,255,255,0.07);
  --brd2: rgba(255,255,255,0.05);
  --lbrd: rgba(7,15,16,0.08);

  /* Focus ring (from site-shell.css) */
  --focus-ring-color: rgba(38,189,189,0.45);
}


/* ── 2. RESET ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── 3. BASE ── */

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ── 4. SITE BACKGROUND ── */

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.site-bg svg {
  width: 100%;
  height: 100%;
}

/*
  ┌─────────────────────────────────────────────┐
  │  BACKGROUND TIER SYSTEM                     │
  ├─────────────────────────────────────────────┤
  │  Tier 1 — Flagship                          │
  │    index.html                               │
  │    → animated canvas + site-bg--network     │
  │                                             │
  │  Tier 2 — Commercial                        │
  │    capability-*.html, company, news, faq,   │
  │    mid-market, contact, japan               │
  │    → site-bg--network                       │
  │    → japan adds site-bg--japan overlay      │
  │                                             │
  │  Tier 3 — Legal                             │
  │    privacy, terms, cookie, card,            │
  │    compensation, sanctions, licences        │
  │    → site-bg--legal                         │
  └─────────────────────────────────────────────┘
*/

/* Network variant — commercial and product pages */
.site-bg--network {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(38,189,189,0.08), transparent 20%),
    radial-gradient(ellipse at 20% 0%, #0c1a1c 0%, #070F10 55%);
}

.site-bg--network::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,189,189,0.06) 1px, transparent 1px);
  background-size: 100% 14%;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.4) 20%,
    rgba(0,0,0,0.4) 75%,
    transparent 100%
  );
}

/* Legal variant — quieter background for long-form readability */
.site-bg--legal {
  background: radial-gradient(ellipse at 20% 0%, #0c1a1c 0%, #070F10 65%);
  opacity: 0.55;
}

/* Japan variant — commercial/market page tone, closer to network than legal */
.site-bg--japan {
  background:
    radial-gradient(ellipse at 60% 30%, rgba(38,189,189,0.09), transparent 28%),
    radial-gradient(ellipse at 20% 0%, #0c1a1c 0%, #070F10 60%);
}

.site-bg--japan::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(38,189,189,0.04) 1px, transparent 1px);
  background-size: 100% 16%;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.3) 15%,
    rgba(0,0,0,0.3) 65%,
    transparent 100%
  );
  pointer-events: none;
}


/* ── 5. NAV ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(7,15,16,0.96);
  border-bottom: 1px solid var(--brd);
  backdrop-filter: blur(12px);
}

.nav-logo img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--t1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--tk);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--tk2); }


/* ── 6. NAV DROPDOWN (Solutions) ── */

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  text-decoration: none;
  transition: color 0.15s;
  padding: 0;
}

.nav-link-btn:hover,
.nav-dropdown.open > .nav-link-btn,
.nav-link-btn.active { color: var(--t1); }

.nav-caret {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.nav-caret svg { display: block; opacity: 0.8; }

.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Bridge gap so cursor doesn't exit between trigger and menu */
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 24px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  min-width: 250px;
  padding: 10px 0;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: rgba(5,12,13,0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
  margin-top: 4px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--t2);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(38,189,189,0.08);
  color: var(--tk);
}


/* ── 7. HAMBURGER ── */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--t3);
  border-radius: 2px;
  transition: all 0.22s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── 8. MOBILE NAV ── */

.mob-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0; bottom: 0;
  background: var(--bg2);
  z-index: 99;
  flex-direction: column;
  padding: 36px 32px;
  border-top: 1px solid var(--brd);
}

.mob-nav.open { display: flex; }

.mob-nav a {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t3);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--brd2);
  transition: color 0.15s;
}

.mob-nav a:hover { color: var(--tk); }

.mob-nav .mob-cta {
  background: var(--tk);
  color: var(--bg);
  border-radius: 4px;
  text-align: center;
  margin-top: 24px;
  border-bottom: none;
  padding: 16px;
  font-weight: 900;
}

.mob-submenu {
  display: none;
  flex-direction: column;
  padding: 8px 0 0 12px;
}

.mob-submenu.open { display: flex; }

.mob-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--brd2);
  padding: 16px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t3);
  text-align: left;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
}

.mob-submenu-toggle:hover,
.mob-submenu-toggle[aria-expanded="true"] { color: var(--tk); }

.mob-submenu-toggle .nav-caret { width: 14px; height: 14px; }

.mob-submenu-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.mob-submenu a {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 12px 0 12px 14px;
  border-bottom: 1px solid var(--brd2);
}

.mob-submenu a:hover,
.mob-submenu a.active { color: var(--tk); }


/* ── 9. FOOTER ── */

footer {
  padding: 52px 48px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  background: var(--bg2);
  border-top: 1px solid var(--brd);
}

.f-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 14px;
}

.f-desc {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  max-width: 280px;
}

.f-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 14px;
}

.f-col a {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.f-col a:hover { color: var(--t1); }

.f-bottom {
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg2);
  border-top: 1px solid var(--brd2);
}

.f-bottom span {
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(255,255,255,0.18);
}


/* ── 10. LEGAL LAYOUT ── */

.legal-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 128px 48px 96px;
}

.legal-toc {
  position: sticky;
  top: 88px;
  align-self: start;
}

.toc-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
}

.toc-list { list-style: none; }

.toc-list li { margin-bottom: 4px; }

.toc-list a {
  font-size: 0.82rem;
  color: var(--t3);
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a.active { color: var(--tk); border-left-color: var(--tk); }

.legal-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tk);
  margin-bottom: 12px;
  display: block;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 0.78rem;
  color: var(--t3);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--brd);
}

.legal-section { margin-bottom: 44px; scroll-margin-top: 88px; }

.legal-section h2 {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--t1);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--brd2);
}

.legal-section p,
.legal-section li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

.legal-section p { margin-bottom: 12px; }

.legal-section ul,
.legal-section ol { margin: 10px 0 14px 20px; }

.legal-section li { margin-bottom: 8px; }

.legal-section strong { color: var(--t1); }

.note {
  font-size: 0.82rem;
  color: var(--t3);
  border-left: 2px solid var(--brd);
  padding-left: 14px;
  margin: 16px 0;
  line-height: 1.7;
}

/* Mobile TOC (legal pages) */
.mobile-toc {
  display: none;
  background: rgba(38,189,189,0.05);
  border: 1px solid rgba(38,189,189,0.15);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
}

.mobile-toc .toc-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(38,189,189,0.6);
  margin-bottom: 10px;
  display: block;
}

.mobile-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.mobile-toc ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(38,189,189,0.2);
  padding-bottom: 1px;
  transition: color 0.15s;
}

.mobile-toc ul li a:hover { color: var(--tk); }


/* ── 11. FOCUS RINGS (from site-shell.css) ── */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
.nav-link-btn:focus-visible,
.mob-submenu-toggle:focus-visible,
.eq-item:focus-visible,
.faq-cat:focus-visible,
.faq-group-label:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 3px;
}

.nav-link-btn,
.mob-submenu-toggle { cursor: pointer; }


/* ── 12. SHARED RESPONSIVE BREAKPOINTS ── */

/* Tablet / mobile nav trigger */
@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* Footer: 2-column on tablet */
@media (max-width: 1024px) {
  footer { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 44px 32px 24px; }
  .f-bottom { padding: 16px 32px; }
}

/* Footer: compact on small mobile */
@media (max-width: 600px) {
  footer { grid-template-columns: 1fr; gap: 20px; padding: 36px 22px 20px; }
  .f-bottom { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
}

/* Legal: single column on tablet */
@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; padding: 100px 24px 72px; gap: 32px; }
  .legal-toc { display: none; }
  .mobile-toc { display: block; }
}

/* Legal: small mobile */
@media (max-width: 480px) {
  .legal-wrap { padding: 80px 18px 56px; }
}


/* ── 13. TYPOGRAPHY ── */

h1, h2, h3, h4, h5 { font-family: 'Lato', sans-serif; }

p { font-size: 1rem; font-weight: 400; line-height: 1.72; }

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.55s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; transform: none; }
}


/* ── 14. PAGE LAYOUT ── */

.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 48px;
}

.page-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.breadcrumb {
  padding: 12px 48px;
  border-bottom: 1px solid var(--brd);
}

.breadcrumb a,
.breadcrumb span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--tk); }

.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.18); }

.breadcrumb .current { color: rgba(255,255,255,0.62); }


/* ── 15. SECTIONS ── */

.section {
  padding: 88px 48px;
  border-bottom: 1px solid var(--brd);
}

.sec-dark {
  background: var(--bg);
  border-bottom: 1px solid var(--brd);
}

.sec-light {
  background: var(--bgl);
  border-bottom: 1px solid var(--lbrd);
}

.sec-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sec-dark .sec-tag { color: rgba(38,189,189,0.75); }
.sec-light .sec-tag { color: var(--tk); }

.sec-h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.sec-dark .sec-h2 { color: var(--t1); }
.sec-light .sec-h2 { color: var(--lt1); }

.sec-lead {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 52px;
}

.sec-dark .sec-lead { color: rgba(255,255,255,0.62); }
.sec-light .sec-lead { color: var(--lt2); }


/* ── 16. PAGE HERO ── */

.page-hero {
  padding: 80px 48px 72px;
  background:
    radial-gradient(ellipse at 68% 30%, rgba(38,189,189,0.07), transparent 30%),
    var(--bg);
  border-bottom: 1px solid var(--brd);
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(38,189,189,0.75);
  margin-bottom: 24px;
}

.hero-h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: var(--t1);
  margin-bottom: 18px;
}

.hero-h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.48);
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.72;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--tk);
  color: var(--bg);
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--tk2);
  transform: translateY(-1px);
}

.btn-secondary {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.62);
  border: none;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: color 0.15s;
}

.btn-secondary:hover { color: var(--t1); }

.cta-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  border-radius: 4px;
  background: var(--tk);
  color: var(--bg);
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-block;
}

.cta-btn:hover {
  background: var(--tk2);
  transform: translateY(-1px);
}


/* ── 17. DETAIL GRIDS ── */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--brd);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.detail-card { background: var(--bg2); padding: 32px 28px; }

.detail-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--t4);
  margin-bottom: 14px;
}

.detail-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 10px;
}

.detail-body {
  font-size: 0.85rem;
  color: var(--t2);
  line-height: 1.72;
}

.ldetail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--lbrd);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.ldetail-card { background: var(--bgl2); padding: 32px 28px; transition: background 0.2s; }
.ldetail-card:hover { background: var(--tk3); }

.ldetail-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lt4);
  margin-bottom: 14px;
}

.ldetail-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--lt1);
  margin-bottom: 10px;
}

.ldetail-body { font-size: 0.85rem; color: var(--lt2); line-height: 1.72; }


/* ── 18. SPEC TABLES ── */

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--brd); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 16px 0; font-size: 0.88rem; vertical-align: top; }
.spec-table td:first-child {
  font-weight: 700;
  color: var(--t3);
  width: 200px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 24px;
}
.spec-table td:last-child { color: var(--t2); }

.lspec-table { width: 100%; border-collapse: collapse; }
.lspec-table tr { border-bottom: 1px solid var(--lbrd); }
.lspec-table tr:last-child { border-bottom: none; }
.lspec-table td { padding: 16px 0; font-size: 0.88rem; vertical-align: top; }
.lspec-table td:first-child {
  font-weight: 700;
  color: var(--lt3);
  width: 200px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-right: 24px;
}
.lspec-table td:last-child { color: var(--lt2); }


/* ── 19. CTA SECTION ── */

.cta-section {
  padding: 88px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--bgl);
  border-bottom: 1px solid var(--lbrd);
}

.cta-h {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  color: var(--lt1);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.cta-p {
  font-size: 1rem;
  color: var(--lt2);
  line-height: 1.75;
  max-width: 420px;
}

.cta-right { flex-shrink: 0; }


/* ── 20. CHIP ── */

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(38,189,189,0.3);
  color: rgba(38,189,189,0.75);
  margin: 0 4px 4px 0;
}


/* ── 21. DIAG FLOW ── */

.flow-row { display: flex; align-items: center; gap: 0; margin-bottom: 12px; }

.flow-node {
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.flow-arrow {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  margin: 0 6px;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border-left: 5px solid rgba(255,255,255,0.18);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}


/* ── 22. COMPONENT RESPONSIVE OVERRIDES ── */

@media (max-width: 1024px) {
  .page-hero  { padding: 56px 24px 52px; }
  .section    { padding: 56px 24px; }
  .cta-section { padding: 56px 24px; flex-direction: column; align-items: flex-start; }
  .detail-grid, .ldetail-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 12px 24px; }
  .page-wrap  { padding: 56px 24px; }
}

@media (max-width: 600px) {
  .hero-h1   { font-size: 1.85rem; letter-spacing: -1.2px; }
  .hero-btns { flex-direction: column; }
  .hero-btns a { width: 100%; text-align: center; }
  footer > div { min-width: 0; }
  .f-logo { grid-column: 1 / -1; }
}


/* ── 23. ADDITIONAL SHARED RULES ── */

/* Legal content heading */
.legal-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

/* Legal section — paragraph margin reset */
.legal-section p:last-child { margin-bottom: 0; }

/* Legal section — link styles */
.legal-section a { color: var(--tk); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* Footer last column sizing */
.f-col:last-child a { font-size: 0.82rem; margin-bottom: 6px; }

/* Global link reset */
a { text-decoration: none; }


/* ── 24. SHARED PAGE CLASSES (multi-page) ── */

.page-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tk);
  margin-bottom: 16px;
}

.sec-divider {
  border: none;
  border-top: 1px solid var(--brd);
  margin: 0;
}

.teal-link {
  color: var(--tk);
  text-decoration: none;
}
.teal-link:hover { text-decoration: underline; }

.ic, .ic-plain {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82em;
  background: rgba(38,189,189,0.08);
  border: 1px solid rgba(38,189,189,0.18);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--tk);
}

.ic-plain {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--t2);
}

.inline-cta-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tk);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.inline-cta-link:hover { color: var(--t1); }

/* Transaction flow grid (capability-infrastructure) */
.txn-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--brd);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
}

/* Rail grid (capability-settlement) */
.rail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--brd);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.rail-icon { display: block; margin: 0 auto 12px; }

/* Code block (capability-api) */
.code-block-wrap {
  border: 1px solid rgba(38,189,189,0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
}

.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(38,189,189,0.15);
}

.code-dot-teal {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tk); opacity: 0.7;
}

.code-dot-dim {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.code-block-label {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(38,189,189,0.5);
}

.code-block-body {
  padding: 24px 20px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  background: #040C0D;
  color: rgba(255,255,255,0.75);
  overflow-x: auto;
}

/* Use-case grid (index) */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--brd);
  border-radius: 8px;
  overflow: hidden;
}

.uc-card {
  background: var(--bg2);
  padding: 32px 28px;
  transition: background 0.2s;
}

.uc-card:hover { background: rgba(38,189,189,0.04); }

/* mb utility */
.mb-52 { margin-bottom: 52px; }

@media (max-width: 768px) {
  .txn-flow-grid,
  .rail-grid { grid-template-columns: 1fr 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
}


/* ── 25. HERO SPACING HARMONY ── */

/* Inner-page hero — tighten vertical rhythm on mobile to match homepage density */
@media (max-width: 600px) {
  .page-hero {
    padding: 48px 20px 44px;
  }
  .page-hero .hero-h1 {
    font-size: 1.75rem;
    letter-spacing: -1px;
  }
  .page-hero .hero-desc {
    font-size: 0.95rem;
  }
}


/* ── 26. LIVE FEED TICKER ── */

/* jt-body: scrollable row container */
.jt-body {
  padding: 6px 0;
  overflow: hidden;
  max-height: 264px; /* 11 rows × ~24px */
}

.jt-row {
  padding: 5px 18px;
  font-size: 0.72rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  line-height: 1.5;
}

.jt-row .t   { font-variant-numeric: tabular-nums; }
.jt-row .ref { min-width: 0; }


/* ── 27. REDUCED MOTION ── */

@media (prefers-reduced-motion: reduce) {

  /* Disable all CSS transitions and animations */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Ticker pulse dot — freeze instead of pulse */
  .jt-head .status .dot {
    animation: none;
    opacity: 1;
  }

  /* Logo wall ticker — stop scrolling */
  .lw-ticker-track {
    animation: none !important;
  }

  /* Canvas elements — hide entirely, show static fallback */
  #heroNet,
  #mobHeroNet {
    display: none;
  }

  /* fade-in elements — show immediately */
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

}


/* ── 28. PAGE CTA (shared: mid-market, faq) ── */
.page-cta {
  margin-top: 72px;
  padding: 40px 48px;
  border: 1px solid var(--brd);
  border-radius: 8px;
  background: rgba(38,189,189,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-cta h3 {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.page-cta p { font-size: 0.9rem; color: var(--t2); }
@media (max-width: 768px) {
  .page-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
}
