/* ===== SmartLedger.app — landing page ===== */
:root {
  --bg: #0a0e16;
  --bg-alt: #0d1220;
  --surface: #121826;
  --surface-2: #161d2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ecf4;
  --muted: #93a0b6;
  --muted-2: #6b7889;
  --accent: #2ee6a6;
  --accent-2: #4d8dff;
  --grad: linear-gradient(120deg, #2ee6a6 0%, #4d8dff 100%);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --maxw: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #0a0e16; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Buttons & inputs ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #06210f; font-weight: 700; font-size: 15px;
  border: none; border-radius: 12px; padding: 13px 22px; cursor: pointer;
  white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  box-shadow: 0 8px 24px -8px rgba(46, 230, 166, 0.5);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(46, 230, 166, 0.6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

.input {
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 12px; padding: 13px 16px; font-size: 15px; font-family: inherit;
  min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.18);
}
.input--select { cursor: pointer; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, 0.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand__mark { display: inline-flex; }
.brand__tld { color: var(--accent); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav__links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 40px;
  background:
    radial-gradient(700px 400px at 78% -6%, rgba(77, 141, 255, 0.16), transparent 60%),
    radial-gradient(620px 380px at 8% 0%, rgba(46, 230, 166, 0.12), transparent 62%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); background: rgba(46, 230, 166, 0.08);
  border: 1px solid rgba(46, 230, 166, 0.2); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800; margin: 0 0 20px;
}
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 30px; }

.waitlist-form { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; }
.waitlist-form .input { flex: 1 1 220px; }
.waitlist-form--center { margin: 0 auto; justify-content: center; }
.form-note { min-height: 22px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-note.is-ok { color: var(--accent); }
.form-note.is-err { color: #ff8095; }
.count strong { color: var(--text); }

/* ===== Terminal visual ===== */
.hero__visual { display: flex; justify-content: center; }
.terminal {
  width: 100%; max-width: 460px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.terminal__title { margin-left: 10px; font-size: 12.5px; color: var(--muted-2); }
.terminal__body {
  margin: 0; padding: 18px 18px 22px; font-size: 13.5px; line-height: 1.75;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--text); white-space: pre-wrap; word-break: break-word;
}
.c-prompt { color: var(--accent-2); font-weight: 700; }
.c-ok { color: var(--accent); font-weight: 700; }
.c-dim { color: var(--muted-2); }
.c-link { color: var(--accent-2); text-decoration: underline; }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== Trust strip ===== */
.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); display: inline-block; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 12px 0 14px; }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .18s, transform .18s, background .18s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.card__icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad);
}
.pillar__num {
  font-family: ui-monospace, Menlo, monospace; font-size: 14px; font-weight: 700;
  color: var(--accent); margin-bottom: 14px;
}
.pillar h3 { font-size: 20px; margin: 0 0 10px; }
.pillar p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step__n {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(46, 230, 166, 0.1); border: 1px solid rgba(46, 230, 166, 0.25);
  color: var(--accent); font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
}
.price-card--feature { border-color: rgba(46, 230, 166, 0.4); box-shadow: 0 0 0 1px rgba(46,230,166,0.15); }
.price-card__badge {
  position: absolute; top: -11px; left: 26px; background: var(--grad); color: #06210f;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; margin: 0 0 6px; }
.price-card__price { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.price-card__price span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-card li { color: var(--muted); font-size: 15px; padding-left: 24px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}

/* ===== CTA ===== */
.cta { padding: 96px 0; text-align: center; background:
    radial-gradient(600px 300px at 50% 0%, rgba(46, 230, 166, 0.1), transparent 65%); }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin: 0 0 12px; }
.cta p { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.cta .waitlist-form { max-width: 620px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.footer__meta { display: flex; flex-direction: column; gap: 4px; text-align: right; color: var(--muted-2); font-size: 13.5px; }
.footer__meta a { color: var(--muted); }
.footer__meta a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .feature-grid, .pillars, .steps, .pricing { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { text-align: left; }
}

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