/* ==========================================================================
   Fintavo — modern crypto-native design system
   Obsidian base · electric mint→cyan accent · Clash Display + Satoshi
   ========================================================================== */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700,500&f[]=satoshi@400,500,700&f[]=jetbrains-mono@400,500&display=swap');

:root {
  /* palette */
  --bg:          #07080A;
  --bg-2:        #0B0D11;
  --surface:     #101319;
  --surface-2:   #161A22;
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  --text:        #EAEEF4;
  --text-dim:    #949CAB;
  --text-faint:  #5C6472;

  --mint:        #2DF5A7;
  --cyan:        #5AC8FF;
  --mint-soft:   rgba(45, 245, 167, 0.12);
  --cyan-soft:   rgba(90, 200, 255, 0.10);
  --danger:      #FF6B6B;

  --grad:        linear-gradient(105deg, var(--mint) 0%, var(--cyan) 100%);
  --grad-soft:   linear-gradient(105deg, rgba(45,245,167,.16), rgba(90,200,255,.14));

  /* type */
  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Satoshi', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* metrics */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* grain + ambient background */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mint);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--mint); opacity: .7; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-dim); max-width: 60ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04120C;
  box-shadow: 0 8px 30px -8px rgba(45, 245, 167, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(45, 245, 167, 0.7); }
.btn-ghost { border: 1px solid var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- ticker tape (signature element) ---------- */
.ticker {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(8px);
  overflow: hidden;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; padding: 11px 26px; color: var(--text-dim); }
.ticker-item b { color: var(--text); font-weight: 500; }
.ticker-item .up { color: var(--mint); }
.ticker-item .down { color: var(--danger); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #04120C; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 4px 18px -4px rgba(45, 245, 167, 0.6);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 130px) 0 90px; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; pointer-events: none; }
.orb-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(45,245,167,.5), transparent 70%); top: -140px; right: -80px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(90,200,255,.42), transparent 70%); bottom: -180px; left: -120px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -40px); } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero .lead { margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-trust .stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; letter-spacing: -0.02em; }
.hero-trust .stat span { font-size: 0.82rem; color: var(--text-faint); font-family: var(--font-mono); letter-spacing: .04em; }

/* hero visual card */
.hero-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7);
}
.hero-card::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: .5; z-index: 0; }
.hero-card > * { position: relative; z-index: 1; }
.hc-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border); }
.hc-row:last-child { border-bottom: none; }
.hc-coin { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.hc-badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .85rem; background: var(--surface-2); border: 1px solid var(--border-2); }
.hc-val { text-align: right; font-family: var(--font-mono); }
.hc-val b { display: block; font-weight: 500; }
.hc-val .up { color: var(--mint); font-size: .8rem; }
.hc-val .down { color: var(--danger); font-size: .8rem; }
.hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.hc-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(45,245,167,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,245,167,.5);} 70%{ box-shadow: 0 0 0 10px rgba(45,245,167,0);} 100%{ box-shadow: 0 0 0 0 rgba(45,245,167,0);} }

/* ---------- generic section head ---------- */
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }
.pad { padding: clamp(70px, 10vw, 120px) 0; }
.divider { height: 1px; background: var(--border); border: none; }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.card::after { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .35s; z-index: 0; }
.card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.card:hover::after { opacity: .5; }
.card > * { position: relative; z-index: 1; }
.card-icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mint-soft); border: 1px solid rgba(45,245,167,.25); margin-bottom: 22px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--mint); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card .card-tag { font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- feature / split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.pad { padding: clamp(56px, 8vw, 96px) 0; }
.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-soft); border: 1px solid rgba(45,245,167,.3); display: grid; place-items: center; margin-top: 2px; }
.feature-list .tick svg { width: 13px; height: 13px; stroke: var(--mint); }
.feature-list h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.feature-list p { color: var(--text-dim); font-size: .92rem; }

.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px; position: relative; overflow: hidden;
}
.panel::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(90,200,255,.3), transparent 70%); top: -60px; right: -60px; filter: blur(30px); }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-band .stat { text-align: center; padding: 30px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat-band .stat b { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem); display: block; }
.stat-band .stat span { color: var(--text-dim); font-size: .9rem; }

/* ---------- deep service list (services page) ---------- */
.svc { display: grid; grid-template-columns: 340px 1fr; gap: 50px; padding: 54px 0; border-top: 1px solid var(--border); align-items: start; }
.svc:first-of-type { border-top: none; }
.svc-num { font-family: var(--font-mono); color: var(--mint); font-size: .8rem; letter-spacing: .1em; }
.svc-head h3 { font-family: var(--font-display); font-size: 2rem; margin: 12px 0 14px; }
.svc-head p { color: var(--text-dim); }
.svc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-point h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.svc-point h4::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--grad); }
.svc-point p { color: var(--text-dim); font-size: .93rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 80px); text-align: center; background: linear-gradient(150deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-2); }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: .6; }
.cta-band::after { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(45,245,167,.4), transparent 70%); top: -120px; left: 50%; transform: translateX(-50%); filter: blur(40px); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin: 0 auto 34px; }
.mail-pill {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  padding: 10px 20px; border: 1px solid var(--border-2); border-radius: 100px; color: var(--text);
  transition: border-color .3s, color .3s;
}
.mail-pill:hover { border-color: var(--mint); color: var(--mint); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 34px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-dim); font-size: .93rem; margin: 16px 0; max-width: 34ch; }
.footer h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-links a { display: block; color: var(--text-dim); font-size: .92rem; padding: 6px 0; transition: color .2s; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .84rem; flex-wrap: wrap; gap: 14px; }
.footer-bottom .mono { font-size: .8rem; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: clamp(60px, 9vw, 100px) 0 40px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 20px 0 20px; }
.page-hero .lead { max-width: 62ch; }

/* ---------- compliance grid ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pill { font-family: var(--font-mono); font-size: .8rem; padding: 9px 16px; border: 1px solid var(--border-2); border-radius: 100px; color: var(--text-dim); }
.pill b { color: var(--mint); font-weight: 500; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 42px 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose a { color: var(--mint); }
.prose strong { color: var(--text); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card { max-width: 440px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 14px; }
  .svc-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 22px; }
}
