/* ============================================================
   Akwadio — design system
   Purple #7F77DD · Teal #1D9E75 · Navy #1a1a2e · Light #f5f5fa
   ============================================================ */

:root {
  --purple: #7F77DD;
  --purple-soft: #8f88e4;
  --teal: #1D9E75;
  --teal-soft: #25b485;
  --navy: #1a1a2e;

  --font-latin: "Inter", system-ui, -apple-system, sans-serif;
  --font-arabic: "Tajawal", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font: var(--font-latin);

  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --space-section: 120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  --bg: #f5f5fa;
  --bg-alt: #eeeef6;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --text: #1a1a2e;
  --text-muted: #5a5a6e;
  --text-faint: #8a8a9c;
  --border: rgba(26, 26, 46, 0.10);
  --border-strong: rgba(26, 26, 46, 0.18);
  --shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
  --code-bg: #1a1a2e;
  --code-text: #e6e6f0;
  --purple-tint: rgba(127, 119, 221, 0.08);
  --teal-tint: rgba(29, 158, 117, 0.10);
}

[data-theme="dark"] {
  --bg: #131320;
  --bg-alt: #16162a;
  --surface: #1d1d30;
  --surface-2: #22223a;
  --text: #f5f5fa;
  --text-muted: #a8a8bd;
  --text-faint: #74748a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --code-bg: #0d0d18;
  --code-text: #e6e6f0;
  --purple-tint: rgba(127, 119, 221, 0.14);
  --teal-tint: rgba(29, 158, 117, 0.16);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

[dir="rtl"] body { --font: var(--font-arabic); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

section { padding-block: var(--space-section); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--purple);
  text-transform: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "</>"; opacity: 0.6; }
[dir="rtl"] .eyebrow { font-family: var(--font-mono); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.section-head p { font-size: 19px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: 0 6px 20px rgba(127,119,221,0.32); }
.btn-purple:hover { background: var(--purple-soft); box-shadow: 0 10px 28px rgba(127,119,221,0.4); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 20px rgba(29,158,117,0.28); }
.btn-teal:hover { background: var(--teal-soft); box-shadow: 0 10px 28px rgba(29,158,117,0.36); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-ghost { background: transparent; color: var(--teal); padding-inline: 0; }
.btn-ghost:hover { transform: translateX(4px); }
[dir="rtl"] .btn-ghost:hover { transform: translateX(-4px); }
.btn .arr { transition: transform 0.2s var(--ease); }
[dir="rtl"] .btn .arr { transform: scaleX(-1); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 20px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(127,119,221,0.3);
}
.brand-word { letter-spacing: -0.03em; }
.brand-word .io { color: var(--purple); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; background: var(--bg-alt); border-radius: 999px; padding: 3px; gap: 1px; }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-faint);
  padding: 6px 11px; border-radius: 999px; transition: all 0.2s;
}
.lang-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  color: var(--text); transition: all 0.2s;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-block: 150px 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin-bottom: 22px; }
.hero h1 .accent { background: linear-gradient(120deg, var(--purple), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 20px; color: var(--text-muted); max-width: 540px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.hero-tag {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px;
}

/* Code window visual */
.code-window {
  background: var(--code-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px rgba(26,26,46,0.22); border: 1px solid rgba(255,255,255,0.06);
}
.code-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-title { margin-inline-start: 10px; font-family: var(--font-mono); font-size: 12px; color: #8a8aa0; }
.code-body { padding: 20px 22px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--code-text); direction: ltr; text-align: left; }
.code-body .ln { display: block; white-space: pre; }
.tok-key { color: #c4b5fd; }
.tok-fn { color: #5fd3a8; }
.tok-str { color: #f0a989; }
.tok-com { color: #6a6a84; }
.tok-num { color: #f0c674; }
.cursor-blink { display: inline-block; width: 8px; height: 16px; background: var(--teal); vertical-align: middle; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%,50%{opacity:1;} 50.01%,100%{opacity:0;} }

.code-build {
  margin-top: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px;
}
.build-bar { flex: 1; height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.build-fill { height: 100%; width: 72%; background: linear-gradient(90deg, var(--purple), var(--teal)); border-radius: 999px; }
.build-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ============================================================
   Trust bar
   ============================================================ */
.trustbar { padding-block: 26px; border-block: 1px solid var(--border); background: var(--surface-2); }
.trustbar-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.trustbar-inner .star { color: var(--purple); }
.trust-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

/* ============================================================
   Problem
   ============================================================ */
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.problem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.3s var(--ease), border-color 0.3s;
}
.problem-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.problem-card .pnum { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.problem-card.highlight { background: var(--navy); color: #fff; border-color: transparent; }
.problem-card.highlight .pnum { color: var(--teal); }
.problem-card p { font-size: 17px; font-weight: 500; }

/* ============================================================
   How it works
   ============================================================ */
.how { background: var(--bg-alt); }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 28px; position: relative; padding-bottom: 50px; }
.step:last-of-type { padding-bottom: 0; }
.step-line { position: absolute; inset-inline-start: 39px; inset-block: 70px 0; width: 2px; background: var(--border); }
[dir="rtl"] .step-line { inset-inline-start: auto; inset-inline-end: 39px; }
.step-num {
  width: 80px; height: 80px; border-radius: 22px; display: grid; place-items: center;
  font-size: 30px; font-weight: 700; font-family: var(--font-mono);
  background: var(--surface); border: 1px solid var(--border); color: var(--purple);
  position: relative; z-index: 1;
}
.step-body { padding-top: 8px; }
.step-body h3 { font-size: 24px; margin-bottom: 10px; }
.step-body p { color: var(--text-muted); font-size: 17px; max-width: 620px; margin-bottom: 18px; }

.fork {
  margin: 8px 0 50px; padding: 30px; background: var(--surface);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.fork-label { font-weight: 700; font-size: 18px; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.fork-label .arr { color: var(--teal); }
[dir="rtl"] .fork-label .arr { transform: scaleX(-1); }
.fork-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.path-card:hover { transform: translateY(-4px); border-color: var(--purple); box-shadow: 0 14px 34px rgba(127,119,221,0.14); }
.path-card.featured { border-color: var(--purple); }
.path-tag { font-family: var(--font-mono); font-size: 12px; color: var(--teal); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.path-card h4 { font-size: 19px; margin-bottom: 10px; }
.path-card p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.path-price { font-family: var(--font-mono); font-size: 13px; color: var(--text); margin-bottom: 16px; font-weight: 500; }
.featured-badge { background: var(--purple); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-mono); }

/* ============================================================
   Wallet explainer
   ============================================================ */
.wallet-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.wallet-rate {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-mono);
  background: var(--teal-tint); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent);
  color: var(--teal); padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500; margin-top: 24px;
}
.wallet-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.wallet-chip { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-alt); margin-bottom: 12px; }
.wallet-chip:last-child { margin-bottom: 0; }
.wallet-chip .wc-label { font-size: 14px; color: var(--text-muted); }
.wallet-chip .wc-val { font-family: var(--font-mono); font-weight: 600; color: var(--teal); }
.wallet-balance { text-align: center; padding: 26px 0; border-bottom: 1px dashed var(--border); margin-bottom: 22px; }
.wallet-balance .wb-num { font-size: 42px; font-weight: 700; font-family: var(--font-mono); }
.wallet-balance .wb-cap { font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }

/* ============================================================
   Reviews
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; }
.review-stars { color: var(--purple); letter-spacing: 3px; margin-bottom: 16px; font-size: 15px; }
.review-card .quote { font-size: 16px; margin-bottom: 22px; font-weight: 500; }
.review-meta { display: flex; align-items: center; gap: 12px; }
.review-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--teal)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.review-name { font-weight: 600; font-size: 14.5px; }
.review-co { font-size: 13px; color: var(--text-faint); }

/* ============================================================
   Pricing
   ============================================================ */
.upfront-banner {
  background: var(--purple); color: #fff; border-radius: var(--radius);
  padding: 18px 26px; text-align: center; font-size: 15.5px; font-weight: 500;
  margin-bottom: 32px; box-shadow: 0 10px 30px rgba(127,119,221,0.25);
}
.currency-switch { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 36px; }
.currency-switch button { border: 0; background: transparent; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-faint); padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.currency-switch button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(26,26,46,0.12); }
.price-card.popular { border-color: var(--purple); box-shadow: 0 18px 44px rgba(127,119,221,0.16); }
.price-card.free-card { background: linear-gradient(160deg, var(--teal-tint), var(--surface)); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.pop-badge { position: absolute; inset-block-start: -12px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--purple); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; font-family: var(--font-mono); white-space: nowrap; }
[dir="rtl"] .pop-badge { transform: translateX(50%); }
.price-card h3 { font-size: 21px; margin-bottom: 6px; }
.price-card .pc-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; min-height: 60px; }
.pc-price { margin-bottom: 4px; }
.pc-price .pc-tokens { font-size: 32px; font-weight: 700; font-family: var(--font-mono); }
.pc-price .pc-free { font-size: 32px; font-weight: 700; color: var(--teal); }
.pc-cash { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-bottom: 18px; min-height: 20px; }
.pc-wallet { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--teal); margin-bottom: 8px; line-height: 1.45; }
.pc-wallet svg { flex-shrink: 0; margin-top: 2px; }
.pc-wallet.muted { color: var(--text-muted); }
.pc-wallet.muted svg { color: var(--text-faint); }
.price-card .btn { margin-top: auto; justify-content: center; }
.pc-divider { height: 1px; background: var(--border); margin: 16px 0; }
.pc-best { font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }
.pc-best b { color: var(--text-muted); }

/* ============================================================
   Vision 2030
   ============================================================ */
.vision { background: linear-gradient(160deg, var(--navy), #20203a); color: #fff; }
[data-theme="dark"] .vision { background: linear-gradient(160deg, #0e0e1c, #18182e); }
.vision .eyebrow { color: var(--teal-soft); }
.vision-logo-wrap {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 20px 28px; display: inline-flex; align-items: center;
  margin-bottom: 30px; min-height: 110px; min-width: 220px; justify-content: center;
}
.vision-logo { max-height: 80px; }
.vision-logo-ph { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.5); text-align: center; }
.vision h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.vision-sub { font-size: 19px; color: rgba(255,255,255,0.75); max-width: 720px; margin-bottom: 50px; }
.vision-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.vision-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 26px 22px; transition: background 0.3s; }
.vision-card:hover { background: rgba(255,255,255,0.09); }
.vision-card .vc-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(29,158,117,0.2); display: grid; place-items: center; color: var(--teal-soft); margin-bottom: 16px; }
.vision-card h4 { font-size: 17px; margin-bottom: 10px; }
.vision-card p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit; text-align: start; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 600; color: var(--text); }
.faq-q .faq-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--purple-tint); color: var(--purple); display: grid; place-items: center; transition: transform 0.3s var(--ease); font-size: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding-bottom: 24px; color: var(--text-muted); font-size: 16px; max-width: 700px; }

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta { text-align: center; }
.final-cta-box { background: linear-gradient(140deg, var(--purple), var(--teal)); border-radius: var(--radius-lg); padding: 70px 40px; color: #fff; position: relative; overflow: hidden; }
.final-cta-box::before { content: "</>"; position: absolute; font-family: var(--font-mono); font-size: 240px; opacity: 0.06; inset-block-start: -40px; inset-inline-end: 20px; font-weight: 700; }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; position: relative; }
.final-cta p { font-size: 19px; color: rgba(255,255,255,0.85); max-width: 600px; margin-inline: auto; margin-bottom: 32px; position: relative; }
.final-cta .btn-purple { background: #fff; color: var(--purple); box-shadow: 0 10px 30px rgba(0,0,0,0.2); position: relative; }
.final-cta .btn-purple:hover { background: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-block: 64px 32px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-tag { color: var(--text-muted); font-size: 15px; max-width: 320px; margin-top: 18px; }
.footer-col h5 { font-size: 13px; font-family: var(--font-mono); color: var(--text-faint); margin-bottom: 16px; font-weight: 500; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-muted); margin-bottom: 11px; transition: color 0.2s; }
.footer-col a:hover { color: var(--purple); }
.footer-offices { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13.5px; color: var(--text-faint); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 13px; color: var(--text-faint); }
.footer-legal a:hover { color: var(--text-muted); }
.powered { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.powered b { color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  :root { --space-section: 80px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; inset-block-start: 70px; inset-inline: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 24px; gap: 16px; margin: 0;
  }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .problem-cards, .fork-paths, .reviews-grid, .vision-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .wallet-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .step { grid-template-columns: 56px 1fr; gap: 18px; }
  .step-num { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; }
  .step-line { inset-inline-start: 27px; }
  [dir="rtl"] .step-line { inset-inline-end: 27px; }
  .final-cta-box { padding: 48px 24px; }
}

/* utility */
.hidden { display: none !important; }
.de-hide { /* toggled by JS for Vision section */ }

/* ============================================================
   Commercial Registration QR (footer 4th column)
   ============================================================ */
.cr-card { display: flex; gap: 16px; align-items: center; }
.cr-qr {
  width: 92px; height: 92px; flex-shrink: 0; background: #fff; border-radius: 12px;
  padding: 8px; border: 1px solid var(--border); display: grid; place-items: center;
}
.cr-qr svg, .cr-qr img { width: 100%; height: 100%; display: block; }
.cr-qr .qr-ph { font-family: var(--font-mono); font-size: 9px; color: #999; text-align: center; }
.cr-info .cr-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cr-info .cr-title .cr-check { width: 16px; height: 16px; color: var(--teal); }
.cr-info .cr-sub { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; max-width: 200px; }
.cr-info .cr-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 4px; }
.cr-info a.cr-link { color: var(--purple); font-size: 12.5px; font-weight: 500; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero { padding-block: 140px 40px; text-align: center; }
.contact-hero h1 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 16px; }
.contact-hero p { font-size: 19px; color: var(--text-muted); max-width: 600px; margin-inline: auto; }
.contact-backlink { display: inline-flex; margin-bottom: 28px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.contact-backlink:hover { color: var(--purple); }

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; padding-bottom: var(--space-section); }
.contact-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.contact-panel h3 { font-size: 22px; margin-bottom: 8px; }
.contact-panel .panel-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

.cal-placeholder {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--bg-alt), var(--bg-alt) 12px, transparent 12px, transparent 24px);
  min-height: 220px; display: grid; place-items: center; text-align: center; padding: 24px; margin-bottom: 20px;
}
.cal-placeholder .cal-ph-text { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-bottom: 16px; }

.contact-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--text-faint); font-size: 13px; }
.contact-divider::before, .contact-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); font-weight: 500; font-size: 15px;
  transition: all 0.2s var(--ease); color: var(--text);
}
.contact-link:hover { border-color: var(--purple); transform: translateY(-2px); }
.contact-link .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.contact-link.wa .ci { background: rgba(29,158,117,0.15); color: var(--teal); }
.contact-link.em .ci { background: var(--purple-tint); color: var(--purple); }
.contact-link .cl-sub { display: block; font-size: 12.5px; color: var(--text-faint); font-weight: 400; }

.form-success {
  display: none; background: var(--teal-tint); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  color: var(--teal); padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; margin-bottom: 16px;
}
.form-success.show { display: block; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.aside-card h4 { font-size: 16px; margin-bottom: 14px; }
.office-list { display: flex; flex-direction: column; gap: 12px; }
.office-row { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.office-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex-shrink: 0; }
.aside-card p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Client Portal showcase section
   ============================================================ */
#portal { padding-block: var(--space-section); background: var(--bg-alt); }
.portal-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }

/* Copy column */
.portal-copy { display: flex; flex-direction: column; align-items: flex-start; }
.portal-copy h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 16px; }
.portal-copy > p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; max-width: 460px; }
.portal-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; width: 100%; }
.portal-feat-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px; }
.portal-feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.portal-feat-list li { font-size: 14px; color: var(--text-muted); padding-inline-start: 18px; position: relative; }
.portal-feat-list li::before { content: "—"; position: absolute; inset-inline-start: 0; color: var(--border-strong); }

/* Mock wrapper */
.portal-mock-wrap { position: relative; }
.portal-mock-wrap::before {
  content: ""; position: absolute; inset: 24px -18px -18px 18px;
  border-radius: var(--radius-lg); background: var(--purple-tint); z-index: 0;
}
.portal-mock {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 56px rgba(26,26,46,0.15);
}

/* Browser chrome bar */
.mock-chrome {
  background: #e2e2ec; padding: 8px 14px;
  display: flex; align-items: center; gap: 5px;
}
[data-theme="dark"] .mock-chrome { background: #2a2a40; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.mock-dot.red { background: #ff5f56; }
.mock-dot.yellow { background: #ffbd2e; }
.mock-dot.green { background: #27c93f; }
.mock-url-bar {
  margin-inline-start: 10px; font-family: var(--font-mono); font-size: 10px; color: #888;
  background: rgba(255,255,255,0.65); border-radius: 4px; padding: 2px 10px; flex: 1; max-width: 220px;
}
[data-theme="dark"] .mock-url-bar { background: rgba(255,255,255,0.1); color: #aaa; }

/* Dashboard shell */
.mock-dash { display: flex; height: 360px; }

/* Sidebar */
.mock-sidebar {
  width: 130px; flex-shrink: 0;
  background: #7F77DD;
  color: #fff; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
}
.mock-logo-row { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12px; margin-bottom: 12px; white-space: nowrap; }
.mock-logo-icon { width: 24px; height: 24px; border-radius: 6px; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.mock-balance-chip { background: rgba(255,255,255,0.14); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.mock-bal-label { font-size: 8.5px; opacity: 0.75; }
.mock-bal-val { font-size: 19px; font-weight: 700; line-height: 1.1; }
.mock-bal-sub { font-size: 8.5px; opacity: 0.65; }
.mock-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mock-nav-item { padding: 5px 8px; border-radius: 6px; font-size: 10.5px; opacity: 0.72; white-space: nowrap; }
.mock-nav-item.active { background: rgba(255,255,255,0.2); opacity: 1; font-weight: 600; }
.mock-user-row { font-size: 9px; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 8px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main area */
.mock-main { flex: 1; background: #f8f8fc; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 9px; }
[data-theme="dark"] .mock-main { background: #1a1a2e; }
.mock-page-hdr { font-weight: 700; font-size: 13px; color: #1a1a2e; }
[data-theme="dark"] .mock-page-hdr { color: #f5f5fa; }

/* Metric cards row */
.mock-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mock-card { background: #fff; border-radius: 8px; padding: 8px 9px; border: 1px solid rgba(26,26,46,0.07); }
[data-theme="dark"] .mock-card { background: #22223a; border-color: rgba(255,255,255,0.07); }
.mock-card-val { font-weight: 700; font-size: 11px; color: #1a1a2e; }
[data-theme="dark"] .mock-card-val { color: #f5f5fa; }
.mock-card-key { font-size: 8px; color: #8a8a9c; margin-top: 2px; }

/* Wallet card */
.mock-wallet-card { background: linear-gradient(135deg, #7F77DD 0%, #5b52c0 100%); border-radius: 10px; padding: 11px 13px; color: #fff; flex-shrink: 0; }
.mock-wc-top { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; opacity: 0.9; margin-bottom: 3px; }
.mock-wc-badge { background: rgba(255,255,255,0.25); border-radius: 999px; padding: 1px 7px; font-size: 8px; font-weight: 600; }
.mock-wc-bal { font-size: 19px; font-weight: 700; }
.mock-wc-bal span { font-size: 10px; font-weight: 400; opacity: 0.8; margin-inline-start: 4px; }
.mock-wc-rate { font-size: 9px; opacity: 0.65; margin-bottom: 7px; }
.mock-wc-progress { height: 5px; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden; }
.mock-wc-fill { height: 100%; width: 92%; background: #1D9E75; border-radius: 999px; }

/* Bottom panels */
.mock-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; flex: 1; min-height: 0; }
.mock-panel { background: #fff; border-radius: 8px; padding: 10px; border: 1px solid rgba(26,26,46,0.07); overflow: hidden; }
[data-theme="dark"] .mock-panel { background: #22223a; border-color: rgba(255,255,255,0.07); }
.mock-panel-title { font-weight: 600; font-size: 10px; color: #1a1a2e; margin-bottom: 6px; }
[data-theme="dark"] .mock-panel-title { color: #f5f5fa; }
.mock-req-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(26,26,46,0.05); gap: 6px; }
.mock-req-name { font-size: 9px; color: #5a5a6e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badge-ip { background: rgba(251,159,0,0.15); color: #9a6600; border-radius: 999px; padding: 1px 6px; font-size: 8px; font-weight: 600; flex-shrink: 0; }
.mock-badge-done { background: rgba(29,158,117,0.12); color: #1D9E75; border-radius: 999px; padding: 1px 6px; font-size: 8px; font-weight: 600; flex-shrink: 0; }
.mock-sla-row { display: flex; justify-content: space-between; font-size: 9px; color: #5a5a6e; padding: 3px 0; border-bottom: 1px solid rgba(26,26,46,0.05); }
[data-theme="dark"] .mock-sla-row { color: #a8a8bd; border-color: rgba(255,255,255,0.05); }
.mock-sla-row b { color: #1a1a2e; font-weight: 600; }
[data-theme="dark"] .mock-sla-row b { color: #f5f5fa; }

/* Responsive */
@media (max-width: 980px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-mock-wrap::before { display: none; }
  .mock-sidebar { width: 110px; }
}
