/* SigmaBank website (www.sigmabank.app). Colours mirror src/styles/tokens.css. */

:root {
  --brand-navy: #120a63;
  --brand-navy-deep: #07092a;
  --brand-teal: #19bfb1;
  --brand-teal-hover: #22d3c4;
  --brand-violet: #a78bfa;
  --brand-blue: #5866ff;

  --bg: #08082e;
  --bg-gradient: linear-gradient(180deg, #120a63 0%, #0a0840 38%, #07092a 100%);
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-3: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-1: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --text-3: rgba(255, 255, 255, 0.58);
  --on-primary: #03211e;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --header-h: 64px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-teal); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand-teal); color: var(--on-primary);
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; margin-top: 40px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-teal); color: var(--on-primary); }
.btn--primary:hover { background: var(--brand-teal-hover); }
.btn--ghost { color: var(--text-1); border-color: var(--border-strong); background: var(--surface-1); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.28); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 8, 64, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { flex-shrink: 0; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--text-1); background: var(--surface-1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; width: 40px; height: 40px; padding: 10px 9px;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--text-1); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 899px) {
  .header-inner { gap: 14px; }
  .menu-toggle { display: flex; flex-shrink: 0; }
  .header-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px var(--gutter) 16px;
    background: #0a0840; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 10px; font-size: 16px; }
  .nav a + a { border-top: 1px solid var(--border); border-radius: 0; }
}
@media (min-width: 900px) {
  .nav__signin { margin-left: 8px; }
}
@media (max-width: 374px) {
  .header-inner { gap: 12px; }
  .brand img { height: 20px; }
  .btn--sm { padding: 8px 12px; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg-gradient);
  padding: 48px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--brand-teal); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.6rem); font-weight: 800; }
.lead { color: var(--text-2); font-size: 1.0625rem; margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row--center { justify-content: center; }
@media (max-width: 479px) {
  .hero .cta-row .btn { width: 100%; }
}

.qr-card {
  display: none; align-items: center; gap: 16px;
  margin-top: 32px; padding: 14px 18px 14px 14px; max-width: 440px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
}
.qr-card img { width: 88px; height: 88px; border-radius: 8px; background: #fff; padding: 4px; flex-shrink: 0; }
.qr-card__title { font-weight: 600; }
.qr-card__text { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.qr-card strong { color: var(--text-1); }
.has-desktop .qr-card { display: flex; }

/* Phone mock-up */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; z-index: 1;
  width: min(300px, 82vw);
  background: #05061f; border-radius: 44px; padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,.04);
}
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px; background: #000; border-radius: 999px; z-index: 2;
}
.phone__screen {
  border-radius: 34px; overflow: hidden;
  background: var(--bg-gradient);
  padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 12px;
}
.mock-top { display: flex; align-items: center; justify-content: space-between; }
.mock-top img { height: 15px; width: auto; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-violet), var(--brand-teal)); }
.mock-label { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.mock-card {
  border-radius: 18px; padding: 16px; color: #fff;
  background: linear-gradient(135deg, #3c3c9e 0%, #5866ff 55%, #19bfb1 130%);
  box-shadow: 0 12px 30px rgba(40, 40, 160, .45);
}
.mock-card__row { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.mock-card__amount { font-size: 26px; font-weight: 700; margin-top: 18px; letter-spacing: -0.01em; }
.mock-card__amount span { font-size: 14px; font-weight: 600; opacity: .85; }
.mock-card__addr { font-size: 11px; opacity: .75; margin-top: 2px; }
.mock-list { display: grid; gap: 8px; }
.mock-asset {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font-size: 12px; color: var(--text-2);
}
.mock-asset strong { color: var(--text-1); font-weight: 600; }
.mock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-btn {
  text-align: center; font-size: 13px; font-weight: 600; padding: 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-1);
}
.mock-btn--primary { background: var(--brand-teal); color: var(--on-primary); }
.mock-txs { display: grid; gap: 2px; margin-top: -4px; }
.mock-tx {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-1); padding: 7px 2px;
}
.mock-tx + .mock-tx { border-top: 1px solid var(--border); }
.mock-tx small { display: block; color: var(--text-3); font-size: 10.5px; }
.mock-tx strong { font-weight: 600; color: var(--text-1); }
.mock-tx--in strong { color: #34d399; }
.mock-tx__icon {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700;
}
.mock-tx--in .mock-tx__icon { background: rgba(16,185,129,.14); color: #34d399; }

.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.glow--teal { width: 260px; height: 260px; background: var(--brand-teal); right: 10%; top: 8%; opacity: .28; }
.glow--violet { width: 280px; height: 280px; background: #5866ff; left: 6%; bottom: 0; opacity: .3; }

/* Coins */
.coin {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #fff; line-height: 1;
}
.coin--eth { background: #627eea; }
.coin--usdt { background: #26a17b; }
.coin--usdc { background: #2775ca; }

/* Assets strip */
.assets { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--brand-navy-deep); }
.assets-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px 32px; padding-top: 22px; padding-bottom: 22px;
}
.assets p { color: var(--text-3); font-size: 14px; }
.assets ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.assets li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.assets .coin { width: 30px; height: 30px; font-size: 15px; }

/* Sections */
.section { padding: 72px 0; background: var(--brand-navy-deep); }
.section--alt { background: #0b0a3a; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head--left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); font-weight: 800; }
.section-head--left .lead { margin-top: 16px; }

.feature-grid { display: grid; gap: 16px; }
.feature {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; transition: border-color .2s ease, background-color .2s ease;
}
.feature:hover { border-color: rgba(25,191,177,.35); background: var(--surface-2); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(25,191,177,.14); border: 1px solid rgba(25,191,177,.32); margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; font-weight: 700; }
.feature p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step {
  position: relative; padding: 28px 26px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand-teal); color: var(--on-primary); font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; }
.step p { color: var(--text-2); margin-top: 8px; font-size: 15px; }

.security-grid { display: grid; gap: 40px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 20px 22px 20px 62px;
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
}
.checks li::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(25,191,177,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319bfb1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks h3 { font-size: 1.05rem; font-weight: 700; }
.checks p { color: var(--text-2); margin-top: 4px; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 20px;
}
.faq details[open] { background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--text-2); padding-bottom: 18px; }

/* CTA band */
.cta-band { background: var(--bg-gradient); padding: 80px 0; text-align: center; border-top: 1px solid var(--border); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; }
.cta-band img { height: 40px; width: auto; margin-bottom: 20px; }
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.cta-band p { color: var(--text-2); margin-top: 12px; font-size: 1.0625rem; }

/* 404 */
.not-found { min-height: 100vh; display: flex; align-items: center; border: 0; }
.not-found h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.cta-band img.not-found__logo { height: 28px; width: auto; margin-bottom: 32px; }

/* Footer */
.site-footer { background: #05061f; border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid img { height: 22px; width: auto; }
.footer-tag { color: var(--text-3); font-size: 14px; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 15px; width: fit-content; }
.footer-links a:hover { color: var(--text-1); }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.footer-legal p { color: var(--text-3); font-size: 13px; max-width: 70em; }

/* Breakpoints */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .phone { width: 320px; }
  .section { padding: 104px 0; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .security-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .section-head--left { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 1200px) {
  .hero h1 { font-size: 3.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
