/* CardAlerts — midnight ledger */

:root {
  --ink: #0a0f1e;
  --ink-2: #0d1428;
  --ink-3: #111a33;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e6ecf7;
  --text-dim: #93a1bb;
  --text-faint: #5d6b87;
  --blue: #1a56db;
  --blue-bright: #3b7bff;
  --blue-glow: rgba(59, 123, 255, 0.35);
  --green: #34d399;
  --red: #f87171;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain + glow atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(26, 86, 219, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(26, 86, 219, 0.07), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ───────── nav ───────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  display: grid; place-items: center;
  box-shadow: 0 0 24px var(--blue-glow);
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover { background: var(--blue-bright); transform: translateY(-1px); box-shadow: 0 8px 32px var(--blue-glow); }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.08); box-shadow: none; }

/* ───────── hero ───────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 96px;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  animation: rise 0.7s ease both;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 2.2s ease-in-out infinite;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  animation: rise 0.7s 0.08s ease both;
}
h1 .accent {
  background: linear-gradient(100deg, var(--blue-bright), #7aa8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  color: var(--text-dim);
  font-size: 19px;
  max-width: 46ch;
  margin-bottom: 34px;
  animation: rise 0.7s 0.16s ease both;
}
.hero-cta { display: flex; gap: 14px; align-items: center; animation: rise 0.7s 0.24s ease both; }
.hero-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  animation: rise 0.7s 0.3s ease both;
}

/* alert stack */
.alert-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: rotate(1.6deg);
}
.alert-card {
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 18px 50px rgba(2, 6, 18, 0.6);
  animation: card-in 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.alert-card:nth-child(1) { animation-delay: 0.35s; }
.alert-card:nth-child(2) { animation-delay: 0.55s; margin-left: 26px; }
.alert-card:nth-child(3) { animation-delay: 0.75s; margin-left: -10px; }
.alert-card:nth-child(4) { animation-delay: 0.95s; margin-left: 38px; }
.alert-card:first-child {
  border-color: rgba(59, 123, 255, 0.45);
  box-shadow: 0 18px 50px rgba(2, 6, 18, 0.6), 0 0 0 1px rgba(59, 123, 255, 0.18), 0 0 42px rgba(26, 86, 219, 0.18);
}
.alert-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
  background: rgba(59, 123, 255, 0.12);
  border: 1px solid rgba(59, 123, 255, 0.25);
}
.alert-body { flex: 1; min-width: 0; }
.alert-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.alert-sub {
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alert-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--red);
}
.alert-amount.credit { color: var(--green); }
.alert-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  display: block;
  text-align: right;
}

/* ───────── sections ───────── */
section { padding: 84px 0; border-top: 1px dashed var(--line); }
.sec-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 14px;
  max-width: 22ch;
}
.sec-lede { color: var(--text-dim); max-width: 58ch; margin-bottom: 44px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover { border-color: rgba(59, 123, 255, 0.4); transform: translateY(-3px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-bright);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 650; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink); padding: 28px 26px; }
.feature:hover { background: var(--ink-2); }
.feature .f-icon { font-size: 20px; margin-bottom: 14px; display: block; }
.feature h3 { font-family: var(--font-display); font-size: 17px; font-weight: 650; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14.5px; }

/* pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--ink-2);
}
.plan.pro {
  border-color: rgba(59, 123, 255, 0.5);
  background: linear-gradient(180deg, rgba(26, 86, 219, 0.12), var(--ink-2) 55%);
  box-shadow: 0 0 44px rgba(26, 86, 219, 0.15);
  position: relative;
}
.plan-tag {
  position: absolute;
  top: -11px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--blue);
  padding: 4px 10px;
  border-radius: 20px;
}
.plan h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.price { font-family: var(--font-mono); font-size: 34px; font-weight: 600; margin: 12px 0 4px; }
.price small { font-size: 14px; color: var(--text-faint); font-weight: 400; }
.plan-note { font-size: 13.5px; color: var(--text-faint); margin-bottom: 20px; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan li { font-size: 15px; color: var(--text-dim); padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-family: var(--font-mono); }
.plan li.no { color: var(--text-faint); }
.plan li.no::before { content: "—"; color: var(--text-faint); }

/* security strip */
.security {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 36px 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
}
.lock {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: grid; place-items: center;
  font-size: 22px;
}
.security h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 8px; }
.security p { color: var(--text-dim); font-size: 15.5px; max-width: 72ch; }

/* faq */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px dashed var(--line);
  padding: 20px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--blue-bright);
  font-size: 20px;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-dim); font-size: 15.5px; padding-top: 12px; max-width: 66ch; }

/* final cta */
.cta-final { text-align: center; padding: 96px 0; }
.cta-final h2 { margin: 0 auto 16px; }
.cta-final p { color: var(--text-dim); margin-bottom: 30px; }

/* ───────── footer ───────── */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--text-faint);
}
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--text-dim); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-legal { margin-top: 18px; font-size: 13px; max-width: 70ch; }

/* ───────── legal pages ───────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 6px; }
.legal .effective {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  max-width: none;
}
.legal p, .legal li { color: var(--text-dim); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal strong { color: var(--text); }
.legal a { color: var(--blue-bright); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
.legal th, .legal td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.legal th { color: var(--text); font-family: var(--font-display); font-weight: 600; background: var(--ink-2); }

/* ───────── animation ───────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(-26px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

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

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 72px; }
  .alert-stack { transform: none; max-width: 460px; }
  .steps, .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .security { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
