/* ==========================================================================
   QuikTechk Restorer — marketing site
   Palette + type pulled straight from the app's own UI, so the site and the
   product feel like one continuous thing.
   ========================================================================== */

:root {
  --bg: #07140f;
  --panel: #0e241c;
  --panel-2: #14332a;
  --line: #1c4a3a;
  --accent: #3ddc84;
  --accent-dim: #1a7a4c;
  --accent-hover: #2fc973;
  --text: #e8f5ee;
  --text-muted: #8fb9a5;
  --warn: #d4a017;
  --fail: #e85d5d;
  --ink: #05170f;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; }
h3 { font-size: 17px; }

p { color: var(--text-muted); margin: 0; }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 20, 15, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(61, 220, 132, 0.14), transparent 70%),
    var(--bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-top: 16px; }
.hero .sub {
  margin-top: 20px;
  font-size: 18px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.hero-note strong { color: var(--accent); }

/* ---------- Terminal (signature element) ---------- */
.terminal {
  background: #05130d;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.terminal-title {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}
.terminal-body {
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  min-height: 320px;
}
.term-line { display: flex; gap: 10px; margin-bottom: 9px; opacity: 0; animation: term-in 0.25s ease forwards; }
.term-tag { flex-shrink: 0; font-weight: 700; }
.term-tag.ok { color: var(--accent); }
.term-tag.warn { color: var(--warn); }
.term-tag.info { color: var(--text-muted); }
.term-text { color: var(--text); }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}
@keyframes term-in { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
.term-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Logo strip / trust ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ---------- Feature grid ---------- */
.grid-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feature-card h3 { margin-top: 10px; }
.feature-card p { margin-top: 8px; font-size: 14px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step { position: relative; padding-left: 4px; }
.step-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 4px 9px;
  display: inline-block;
}
.step h3 { margin-top: 14px; }
.step p { margin-top: 8px; font-size: 14px; }

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--accent-dim);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.price {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  margin-top: 8px;
}
.price sup { font-size: 20px; color: var(--text-muted); }
.price-sub { font-size: 13px; margin-top: 4px; }
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-list li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.pricing-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }
#buy-error {
  color: var(--fail);
  font-size: 13px;
  margin-top: 14px;
  min-height: 18px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-q h3 { font-family: var(--sans); font-size: 16px; }
.faq-q .plus { font-family: var(--mono); color: var(--accent); font-size: 18px; transition: transform 0.15s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding-top: 12px; font-size: 14.5px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--text-muted); }
.footer-brand img { width: 22px; height: 22px; border-radius: 5px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Success page ---------- */
.success-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.success-card {
  max-width: 520px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px;
  text-align: center;
}
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
}
.success-card h1 { font-size: 24px; }
.success-card p { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .term-line { animation: none; opacity: 1; }
  .term-cursor { animation: none; }
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
