/* ==========================================================================
   Grenzer — Marketing Landing Page
   Palette: Slate + Emerald
   ========================================================================== */

/* Fonts (Fraunces, IBM Plex Mono/Sans) are loaded via <link rel=preconnect> + <link rel=stylesheet>
   in each page's <head> instead of @import here, so the fetch isn't render-blocking. */

:root {
  --bg: #0D1113;
  --bg-elevated: #12181B;
  --bg-elevated-2: #171F22;
  --border: rgba(46, 204, 129, 0.14);
  --border-strong: rgba(46, 204, 129, 0.32);
  --emerald: #2ECC81;
  --emerald-dim: #22A468;
  --emerald-glow: rgba(46, 204, 129, 0.35);
  --text: #EDF2F0;
  --text-dim: #8A9499;
  --text-faint: #5C666B;
  --danger: #E8664B;

  --font-display: 'Fraunces', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

/* subtle grid + noise texture on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

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

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

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #08130D;
  box-shadow: 0 0 0 0 var(--emerald-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -6px var(--emerald-glow);
  background: #35D98C;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 19, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.logo-mark {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--emerald); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 22px 0 22px;
  color: var(--text);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--emerald);
}
.hero p.lede {
  font-size: 17.5px;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 13px; height: 13px; color: var(--emerald-dim); }

/* ---------- install strip ---------- */
.install-strip {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.install-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.install-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}
.install-strip-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.install-strip-link:hover { opacity: 0.75; }

/* ---------- install command box ---------- */
.install-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 12px 12px 16px;
  max-width: 560px;
  flex: 1;
  min-width: 260px;
  overflow: hidden;
}
.install-prompt {
  font-family: var(--font-mono);
  color: var(--emerald);
  font-size: 13px;
  flex-shrink: 0;
}
.install-box code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.install-box code::-webkit-scrollbar { display: none; }
.copy-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.copy-btn:hover { color: var(--emerald); border-color: var(--emerald); }
.copy-btn.copied { color: var(--emerald); border-color: var(--emerald); background: rgba(46,204,129,0.1); }

/* terminal mockup */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
  position: relative;
}
.terminal::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(160deg, var(--emerald-glow), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--bg-elevated-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); opacity: 0.5; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  height: 260px;
  overflow: hidden;
}
.terminal-line { display: flex; gap: 10px; white-space: nowrap; }
.t-prompt { color: var(--emerald); }
.t-cmd { color: var(--text); }
.t-ok { color: var(--emerald); }
.t-warn { color: #E8B23B; }
.t-danger { color: var(--danger); }
.t-dim { color: var(--text-faint); }
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--emerald);
  animation: blink 1s step-end infinite;
  vertical-align: -2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.trust-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}
.trust-inner span { display: flex; align-items: center; gap: 8px; }
.trust-inner svg { width: 14px; height: 14px; color: var(--emerald-dim); }

/* ---------- section shell ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.16;
  margin-top: 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 16px;
  margin-top: 14px;
  max-width: 540px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 34px 30px;
  transition: background 0.25s ease;
}
.feature-card:hover { background: var(--bg-elevated); }
.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(46, 204, 129, 0.1);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.feature-card .icon svg { width: 19px; height: 19px; color: var(--emerald); }
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.feature-card .tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-dim);
  border: 1px solid var(--border-strong);
  padding: 3px 9px;
  border-radius: 20px;
}

/* ---------- comparison ---------- */
.compare-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td {
  padding: 18px 26px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
table.compare thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  background: var(--bg-elevated-2);
}
table.compare thead th:first-child { color: var(--text-dim); }
table.compare thead th.col-grenzer { color: var(--emerald); }
table.compare tbody td:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.col-grenzer { background: rgba(46, 204, 129, 0.045); }
.check { color: var(--emerald); }
.cross { color: var(--text-faint); }
.icon-cell { display: flex; align-items: center; gap: 8px; }
.icon-cell svg { width: 16px; height: 16px; }

/* ---------- pricing ---------- */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 48px;
  max-width: 460px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
  opacity: 0.5;
}
.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 18px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-amount span { font-size: 16px; color: var(--text-faint); font-family: var(--font-mono); font-weight: 400; }
.price-sub { font-size: 13.5px; color: var(--text-faint); margin: 8px 0 32px; font-family: var(--font-mono); }
.price-list { list-style: none; margin-bottom: 34px; display: flex; flex-direction: column; gap: 15px; }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
}
.price-list svg { width: 17px; height: 17px; color: var(--emerald); flex-shrink: 0; margin-top: 2px; }
.price-fine { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 16px; font-family: var(--font-mono); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 72px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(46,204,129,0.10), transparent 60%),
    var(--bg-elevated);
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}
.cta-banner p { color: var(--text-dim); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--text-faint); font-size: 13.5px; max-width: 260px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 14px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--emerald); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- legal / prose pages ---------- */
.page-header {
  padding: 100px 0 56px;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  margin-bottom: 14px;
}
.page-header .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}
.legal-notice {
  background: rgba(232, 178, 59, 0.07);
  border: 1px solid rgba(232, 178, 59, 0.28);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 24px;
}
.legal-notice strong { color: #E8B23B; }
.prose {
  max-width: 760px;
  padding: 64px 0 120px;
}
.prose h2 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 22px;
  margin: 48px 0 16px;
  padding-top: 4px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}
.prose p { color: var(--text-dim); font-size: 15px; margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--text-dim); font-size: 15px; margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--emerald); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--emerald); }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.prose th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .terminal { max-width: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  table.compare { font-size: 13px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-inner { justify-content: flex-start; }
  table.compare th, table.compare td { padding: 14px; }
  .cta-banner { padding: 48px 24px; }
  .price-card { padding: 32px; }
}
