/* ────────────────────────────────────────────────────────────
   LedgerSprout Landing Page
   ──────────────────────────────────────────────────────────── */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #14532d;
  --green-800: #166534;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --gold:       #d4a017;
  --gold-light: #fef3c7;
  --ink:        #0f1923;
  --ink-mid:    #1e2d3d;
  --ink-soft:   #374151;
  --muted:      #6b7280;
  --border:     rgba(0,0,0,0.08);
  --surface:    #ffffff;
  --tint:       #f8fdf9;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.13), 0 4px 12px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

img { display: block; max-width: 100%; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s, opacity 0.18s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
  box-shadow: 0 2px 12px rgba(22,101,52,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  box-shadow: 0 4px 20px rgba(22,101,52,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--green-700); }

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-700);
}
.btn-outline:hover { background: var(--green-100); }

.btn-sm  { font-size: 0.85rem; padding: 7px 18px; }
.btn-lg  { font-size: 1rem;    padding: 13px 30px; }
.btn-full { width: 100%; }


/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}

.nav-logo {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-links a:hover { color: var(--green-700); }


/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 6rem);
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 60%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(22,163,74,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(212,160,23,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.2);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-brand-mark {
  margin-bottom: 1rem;
}

.hero-mark {
  width: clamp(125px, 13vw, 185px);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(20, 83, 45, 0.22));
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-watermark {
  position: absolute;
  top: 52%;
  left: -52px;
  transform: translateY(-50%) rotate(-9deg);
  width: clamp(230px, 34vw, 420px);
  opacity: 0.11;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(20, 83, 45, 0.2));
}

.hero-watermark img {
  width: 100%;
  height: auto;
}

/* ── Terminal mockup ── */
.terminal {
  position: relative;
  z-index: 2;
  background: #0d1117;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 0.82rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #1c2128;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tdot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tdot-red    { background: #ff5f56; }
.tdot-yellow { background: #ffbd2e; }
.tdot-green  { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

.terminal-body {
  padding: 20px 22px;
  line-height: 1.7;
}

.tl { color: #e6edf3; white-space: pre; }
.tl-indent { padding-left: 1.6em; }
.tl-blank { height: 0.6em; }

.t-prompt { color: #27c93f; }
.t-info   { color: #79c0ff; }
.t-muted  { color: rgba(230,237,243,0.4); }
.t-ok     { color: #27c93f; }
.t-arrow  { color: rgba(230,237,243,0.4); }
.t-accent { color: var(--gold); }

.cursor {
  display: inline-block;
  animation: blink 1.1s step-end infinite;
  color: #27c93f;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* ── Trust bar ── */
.trust-bar {
  background: var(--ink);
  padding: 18px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 4px 24px;
}

.trust-icon { font-size: 1rem; }

.trust-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}


/* ── Shared section styles ── */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
}


/* ── How it works ── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.step p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-connector {
  color: var(--border);
  flex-shrink: 0;
  padding: 0 0.5rem;
  color: var(--green-400);
  opacity: 0.5;
}


/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-large {
  grid-column: span 1;
  background: linear-gradient(135deg, #f0fdf4, #ffffff);
  border-color: rgba(22,163,74,0.2);
}

.feature-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pricing-card-pro {
  border-color: rgba(22,101,52,0.35);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(22,101,52,0.1);
}

.pricing-pro-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(22,163,74,0.09), transparent 70%);
  pointer-events: none;
}

.pricing-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pro-star { color: var(--green-600); font-size: 0.85rem; }

.pricing-soon {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 2px 9px;
  letter-spacing: 0.04em;
}

.pricing-price {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.pricing-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-pro {
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
}

.pricing-per {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.pricing-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
  max-width: 860px;
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pfaq-item {
  padding: 0.25rem 0;
}

.pfaq-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.pfaq-a {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .pricing-faq { grid-template-columns: 1fr; }
}


/* ── Install ── */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin-inline: auto;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.install-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.install-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.install-req {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.install-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.code-block {
  background: #0d1117;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 0.6rem;
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 0.78rem;
  color: #e6edf3;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.7;
}


/* ── Downloads ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 760px;
  margin-inline: auto;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.15s, border-color 0.18s;
}

.download-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(22,163,74,0.35);
  transform: translateY(-2px);
}

.download-card-muted { opacity: 0.72; }
.download-card-muted:hover { opacity: 1; }

.dl-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.dl-info {
  flex: 1;
  min-width: 0;
}

.dl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.dl-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.dl-file {
  font-family: 'JetBrains Mono', 'Fira Mono', monospace;
  font-size: 0.7rem;
  color: var(--green-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-arrow {
  font-size: 1.3rem;
  color: var(--green-600);
  flex-shrink: 0;
}

.download-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .download-grid { grid-template-columns: 1fr; max-width: 520px; }
}


/* ── Footer ── */
.footer {
  background: var(--ink);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.footer-logo { border-radius: 4px; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  text-decoration: none;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-watermark {
    left: -28px;
    width: clamp(210px, 46vw, 300px);
    opacity: 0.1;
  }
  .hero-mark { width: clamp(108px, 23vw, 150px); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-watermark { display: none; }
  .hero-mark { width: 122px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .install-grid  { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .trust-inner   { gap: 10px; }
  .steps { flex-direction: column; }
  .step-connector { transform: rotate(90deg); }
  .footer-copy { margin-left: 0; }
}
