:root {
  --wine: #7c2d40;
  --wine-deep: #5e2231;
  --navy: #1e2a44;
  --gold: #c9a227;
  --cream: #faf6f0;
  --paper: #fffdfb;
  --ink: #20242e;
  --muted: #6b6470;
  --line: #ece3da;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fbeef0 0%, transparent 60%),
    var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---- nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 22px; font-size: 0.95rem; }
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--wine); }

/* ---- hero ---- */
.hero {
  max-width: 740px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  text-align: center;
}
.hero__logo {
  width: 200px; height: 200px;
  filter: drop-shadow(0 18px 30px rgba(124, 45, 64, 0.16));
}
.hero__title {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.hero__tagline {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: var(--wine);
  font-weight: 600;
  margin: 0 0 14px;
}
.hero__sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 26px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 45, 64, 0.25);
}
.btn--primary:hover { background: var(--wine-deep); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }

/* ---- command pill ---- */
.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  color: #f3eef0;
  font-family: var(--mono);
  font-size: 0.92rem;
  padding: 12px 12px 12px 18px;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(30, 42, 68, 0.18);
}
.cmd code {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cmd__prompt { color: var(--gold); margin-right: 8px; user-select: none; }
.cmd__copy {
  margin-left: auto;
  flex: none;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cmd__copy:hover { background: rgba(255, 255, 255, 0.22); }
.cmd__copy.is-copied { background: #2f7d4f; }
.cmd--block { max-width: none; }

/* ---- terminal / demo card ---- */
.demo { max-width: var(--maxw); margin: 40px auto 0; padding: 0 24px; }
.terminal {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbfaf8;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(30, 42, 68, 0.16);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0ebe4;
  border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--red { background: #ff5f57; }
.dot--amber { background: #febc2e; }
.dot--green { background: #28c840; }
.terminal__title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}
.terminal__body {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}
.t-head {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.t-title { color: var(--wine); font-weight: 700; }
.t-key { color: var(--muted); }
.t-dim { color: #a99fa0; font-style: italic; }
.ok { color: #2f9e54; font-weight: 700; }
.score { color: var(--gold); font-weight: 700; font-size: 1.05rem; }
.badge {
  background: var(--wine);
  color: #fff;
  padding: 1px 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
}
.badge--gold { background: var(--gold); color: #3a2c00; }

/* ---- sections grid ---- */
.sections { max-width: var(--maxw); margin: 88px auto 0; padding: 0 24px; }
.section-h {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 8px;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 520px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.taste {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.taste:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(124, 45, 64, 0.1);
  border-color: #e3d2cf;
}
.taste__emoji { font-size: 1.9rem; line-height: 1; }
.taste h3 {
  font-family: var(--mono);
  margin: 12px 0 6px;
  color: var(--wine);
  font-size: 1.2rem;
}
.taste p { margin: 0 0 10px; color: var(--ink); }
.taste__terms {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted) !important;
  margin: 0 !important;
}
.taste--score { border-color: #ece1c2; background: #fffdf6; }
.taste--score h3 { color: #9a7d1c; }

/* ---- install ---- */
.install { max-width: var(--maxw); margin: 88px auto 0; padding: 0 24px; }
.install__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 32px auto 0;
}
.install__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.install__card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.soon {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f0ebe4;
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.install__then {
  text-align: center;
  color: var(--muted);
  margin: 32px 0 0;
}
.inline {
  font-family: var(--mono);
  background: #f0ebe4;
  color: var(--wine);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ---- footer ---- */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 64px 24px 48px;
  margin-top: 80px;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--wine); }

@media (max-width: 560px) {
  .nav { padding: 14px 18px; }
  .nav__links a:not(:last-child) { display: none; }

  .hero { padding: 28px 18px 16px; }
  .hero__logo { width: 148px; height: 148px; }
  .hero__sub { font-size: 1rem; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }

  .cmd { font-size: 0.82rem; padding: 10px 10px 10px 14px; gap: 8px; }
  .cmd__copy { padding: 6px 10px; font-size: 0.78rem; }

  .demo { margin-top: 28px; padding: 0 14px; }
  .terminal__body { font-size: 0.72rem; padding: 16px 14px; line-height: 1.65; }

  .sections,
  .install { margin-top: 56px; padding: 0 18px; }

  .taste { padding: 20px; }
  .footer { padding: 48px 18px 36px; }
}
