@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  --harbor:#0B1F26;
  --harbor-2:#142E38;
  --ice:#F4F7F6;
  --blue:#2E6FF2;
  --blue-2:#4C8CFF;
  --teal:#2FD9AE;
  --slate:#8FA0A5;
  --line: rgba(244,247,246,0.10);
  --red:#E15B4D;
}
body.light-theme{
  --harbor:#F4F7F6;
  --harbor-2:#FFFFFF;
  --ice:#0B1F26;
  --slate:#5B6B70;
  --line: rgba(11,31,38,0.10);
}
body.light-theme header.nav{ background:rgba(244,247,246,0.9); }
body.light-theme .req-card, body.light-theme .form-card, body.light-theme .dash-card,
body.light-theme .balance-card, body.light-theme .receipt{ box-shadow:0 4px 18px rgba(11,31,38,0.06); }
.theme-toggle{
  background:none; border:1px solid var(--line); color:var(--ice); border-radius:8px;
  width:36px; height:36px; cursor:pointer; font-size:15px; display:flex; align-items:center; justify-content:center;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  background:var(--harbor); color:var(--ice);
  font-family:'Inter', sans-serif; line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.display{ font-family:'Space Grotesk', sans-serif; letter-spacing:-.01em; }
.mono{ font-family:'IBM Plex Mono', monospace; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
.wrap-narrow{ max-width:760px; margin:0 auto; padding:0 32px; }
::selection{ background:var(--teal); color:var(--harbor); }

/* ---------- nav ---------- */
header.nav{ position:sticky; top:0; z-index:50; background:rgba(11,31,38,0.85); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
header.nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding:16px 32px; }
.logo{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px; letter-spacing:-.01em; text-decoration:none; color:var(--ice); }
.logo img{ height:30px; width:auto; }
.nav-links{ display:flex; gap:30px; font-size:14px; color:var(--slate); }
.nav-links a{ text-decoration:none; }
.nav-links a:hover{ color:var(--ice); }
.nav-cta{ background:var(--blue); color:#fff; font-weight:600; font-size:14px; padding:10px 20px; border-radius:7px; text-decoration:none; }
.nav-cta:hover{ background:var(--blue-2); }
@media(max-width:860px){ .nav-links{ display:none; } }

/* ---------- buttons ---------- */
.btn{ font-weight:600; font-size:15px; padding:14px 26px; border-radius:9px; border:1px solid transparent; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; }
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-2); }
.btn-ghost{ border-color:var(--line); color:var(--ice); background:none; }
.btn-ghost:hover{ border-color:var(--slate); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

/* ---------- simple page header ---------- */
.page-head{ padding:70px 0 40px; border-bottom:1px solid var(--line); }
.page-head .eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--teal); font-weight:600; margin-bottom:16px; }
.page-head .eyebrow::before{ content:""; width:20px; height:1px; background:var(--teal); }
.page-head h1{ font-size:clamp(30px,4vw,44px); font-weight:600; }
.page-head p.lede{ color:var(--slate); font-size:16px; margin-top:14px; max-width:600px; }

/* ---------- legal / doc content ---------- */
.doc{ padding:50px 0 100px; }
.doc h2{ font-size:20px; font-weight:600; margin:40px 0 12px; font-family:'Space Grotesk', sans-serif; }
.doc h2:first-child{ margin-top:0; }
.doc p{ color:var(--slate); margin-bottom:14px; font-size:15px; }
.doc ul{ color:var(--slate); margin:0 0 14px 20px; font-size:15px; }
.doc li{ margin-bottom:6px; }
.doc .updated{ color:var(--slate); font-size:13px; margin-bottom:30px; }
.callout{ background:var(--harbor-2); border:1px solid var(--line); border-radius:12px; padding:20px 22px; margin:20px 0; font-size:14px; color:var(--slate); }
.callout b{ color:var(--ice); }

/* ---------- forms ---------- */
.tabs{ display:flex; gap:8px; background:var(--harbor); border:1px solid var(--line); border-radius:10px; padding:4px; }
.tabs .tab{ flex:1; text-align:center; padding:10px; border-radius:8px; cursor:pointer; font-size:13.5px; font-weight:600; color:var(--slate); }
.tabs .tab.active{ background:var(--blue); color:#fff; }

.form-card{ background:var(--harbor-2); border:1px solid var(--line); border-radius:18px; padding:36px; max-width:420px; margin:0 auto; }
.form-card h1{ font-size:24px; font-weight:600; margin-bottom:8px; }
.form-card p.sub{ color:var(--slate); font-size:14px; margin-bottom:26px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; color:var(--slate); margin-bottom:6px; }
.field input, .field select{
  width:100%; padding:12px 14px; border-radius:9px; border:1px solid var(--line);
  background:var(--harbor); color:var(--ice); font-family:inherit; font-size:14px;
}
.field input:focus, .field select:focus{ outline:none; border-color:var(--blue); }
.field-error{ color:var(--red); font-size:12.5px; margin-top:6px; display:none; }
.field.error input{ border-color:var(--red); }
.field.error .field-error{ display:block; }
.form-foot{ text-align:center; font-size:13.5px; color:var(--slate); margin-top:20px; }
.form-foot a{ color:var(--blue-2); text-decoration:none; font-weight:600; }
.divider{ display:flex; align-items:center; gap:12px; margin:22px 0; color:var(--slate); font-size:12px; }
.divider::before, .divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.step-dots{ display:flex; gap:6px; justify-content:center; margin-bottom:24px; }
.step-dots span{ width:8px; height:8px; border-radius:50%; background:var(--line); }
.step-dots span.active{ background:var(--blue); }
.success-box{ text-align:center; }
.success-icon{ width:56px; height:56px; border-radius:50%; background:rgba(47,217,174,0.15); color:var(--teal); display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 18px; }
.demo-note{ color:var(--slate); font-size:11.5px; padding:0 0 14px; margin-bottom:14px; line-height:1.5; border-bottom:1px solid var(--line); }

/* ---------- footer ---------- */
footer{ border-top:1px solid var(--line); padding:44px 0; }
footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:30px; align-items:flex-start; }
footer .fnote{ font-size:12px; color:var(--slate); max-width:480px; line-height:1.6; margin-top:10px; }
.foot-cols{ display:flex; gap:50px; flex-wrap:wrap; }
.foot-col h4{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--slate); margin-bottom:12px; }
.foot-col a{ display:block; font-size:13.5px; color:var(--ice); text-decoration:none; margin-bottom:9px; opacity:.85; }
.foot-col a:hover{ opacity:1; color:var(--blue-2); }

/* ============================================================
   Site-wide hover polish & animation
   ============================================================ */
@keyframes fadeInUp{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
@keyframes pulseBadge{ 0%{ transform:scale(1); } 30%{ transform:scale(1.3); } 60%{ transform:scale(.95); } 100%{ transform:scale(1); } }

.reveal{ opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* Cards & tiles lift on hover, site-wide */
.req-card, .form-card, .dash-card, .balance-card, .feature, .tier-option,
.card-tile, .action-btn, .testimonial, .split-img, .trust-img {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.req-card:hover, .action-btn:hover{ transform:translateY(-3px); border-color:var(--blue); }
.dash-card:hover, .feature:hover{ transform:translateY(-3px); box-shadow:0 16px 34px rgba(0,0,0,.18); }
.tier-option:hover{ transform:translateY(-2px); }
.card-tile:hover{ transform:translateY(-4px) scale(1.01); }
.split-img:hover img, .trust-img:hover img{ transform:scale(1.03); }
.split-img, .trust-img{ overflow:hidden; }
.split-img img, .trust-img img{ transition:transform .4s ease; }

/* Buttons: lift + shadow, not just color */
.btn{ transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover{ transform:translateY(-2px); }
.btn-primary:hover{ box-shadow:0 10px 24px rgba(46,111,242,.35); }

/* Nav links: underline sweep instead of flat color snap */
.nav-links a{ position:relative; transition:color .2s ease; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:1px;
  background:var(--blue-2); transition:width .2s ease;
}
.nav-links a:hover::after{ width:100%; }

/* Status pills pulse briefly when they first appear */
.status-tag{ animation:fadeInUp .3s ease both; }

/* Table/history rows: subtle highlight on hover (hist-row, dash-row already clickable in places) */
.hist-row, .dash-row{ transition:background .15s ease; }
.hist-row:hover{ background:rgba(255,255,255,0.03); }

.theme-toggle{ transition:transform .2s ease, border-color .2s ease; }
.theme-toggle:hover{ transform:rotate(15deg); border-color:var(--blue); }

/* ---------- status page ---------- */
.status-row{ display:flex; justify-content:space-between; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); }
.status-row .name{ font-size:15px; font-weight:500; }
.status-pill{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:600; padding:5px 12px; border-radius:999px; }
.status-pill.ok{ background:rgba(47,217,174,0.14); color:var(--teal); }
.status-pill .dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }
.status-banner{ background:rgba(47,217,174,0.1); border:1px solid rgba(47,217,174,0.3); border-radius:12px; padding:18px 22px; display:flex; align-items:center; gap:12px; margin-bottom:36px; color:var(--teal); font-weight:600; font-size:14.5px; }

@media(max-width:640px){
  .form-card{ padding:26px; }
}
