/* Hattara landing — Jitter style system (see DESIGN.md) */

:root {
  --color-studio-off-white: #f2f1f3;
  --color-pure-white: #ffffff;
  --color-hairline-gray: #e5e4e7;
  --color-soft-mist: #97979b;
  --color-slate: #6e6e73;
  --color-ink: #19171c;
  --color-eclipse-violet: #7a40ed;
  --color-deep-plum: #17082c;
  --color-lilac-wash: #a981ff;
  --color-lavender-mist: #cab3f8;
  --color-electric-blue: #00b2ff;
  --color-sky-tint: #e6f4ff;
  --color-ice-blue: #a9dbff;
  --color-volt: #f5ff63;

  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-cards: 40px;
  --radius-buttons: 50px;
  --radius-nav: 20px;

  --shadow-hover:
    rgba(25, 23, 28, 0.01) 0px 152px 61px 0px,
    rgba(25, 23, 28, 0.05) 0px 85px 51px 0px,
    rgba(25, 23, 28, 0.09) 0px 38px 38px 0px,
    rgba(25, 23, 28, 0.10) 0px 9px 21px 0px;
  --shadow-rest:
    rgba(0, 0, 0, 0.01) 0px 119px 48px 0px,
    rgba(0, 0, 0, 0.05) 0px 67px 40px 0px,
    rgba(0, 0, 0, 0.09) 0px 30px 30px 0px,
    rgba(0, 0, 0, 0.10) 0px 7px 16px 0px;
  --shadow-overlay:
    rgba(0, 0, 0, 0.01) 0px 63px 25px 0px,
    rgba(0, 0, 0, 0.05) 0px 35px 21px 0px,
    rgba(0, 0, 0, 0.09) 0px 16px 16px 0px,
    rgba(0, 0, 0, 0.10) 0px 4px 9px 0px;

  --page-max: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --z-nav: 10;
  --z-overlay: 20;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--color-studio-off-white);
  color: var(--color-ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

/* ── Buttons & badges ── */

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-buttons);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.017em;
  text-decoration: none;
  padding: 11px 22px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-eclipse-violet);
  outline-offset: 3px;
  border-radius: var(--radius-buttons);
}

.btn-ink { background: var(--color-ink); color: var(--color-pure-white); }
.btn-ink:hover { background: #2d2933; }

.btn-violet { background: var(--color-eclipse-violet); color: var(--color-pure-white); }
.btn-violet:hover { background: #6a33d6; box-shadow: var(--shadow-overlay); }

.btn-white { background: var(--color-pure-white); color: var(--color-ink); }
.btn-white:hover { box-shadow: var(--shadow-overlay); }

.btn-lg { font-size: 16px; padding: 16px 32px; }

.badge {
  display: inline-block;
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-deep-plum);
}
.badge-lavender { background: var(--color-lavender-mist); }
.badge-lilac { background: var(--color-lilac-wash); }

.text-link { color: var(--color-eclipse-violet); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ── Navigation ── */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: color-mix(in srgb, var(--color-pure-white) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  background: var(--color-studio-off-white);
  border-radius: var(--radius-nav);
  padding: 4px;
}
.nav-links a {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.017em;
  padding: 7px 14px;
  border-radius: 16px;
  transition: background-color 0.2s var(--ease-out);
}
.nav-links a:hover { background: var(--color-hairline-gray); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-login {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.017em;
}
.nav-login:hover { color: var(--color-eclipse-violet); }
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Mobile overlay ── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--color-pure-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.overlay[hidden] { display: none; }
.overlay-top { display: flex; justify-content: space-between; align-items: center; }
.overlay-top .menu-btn { display: inline-flex; }
.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}
.overlay-links a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
}
.overlay-cta { margin-top: auto; justify-content: center; }

/* ── Hero ── */

.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.032em;
}
.hero-sub {
  font-size: 21px;
  line-height: 1.38;
  color: var(--color-slate);
  max-width: 560px;
  letter-spacing: -0.017em;
}
.capability-strip { margin-top: clamp(40px, 7vw, 84px); }
.capability-strip p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate);
  margin-bottom: 20px;
}
.capability-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(24px, 4.5vw, 56px);
  row-gap: 12px;
}
.capability-strip li {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

/* ── Feature sections ── */

.feature {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) 24px 0;
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.feature-flip .feature-text { order: 2; }
.feature-flip .feature-media { order: 1; }
.feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feature-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.feature-text p { color: var(--color-slate); max-width: 46ch; }
.feature-secondary { font-size: 15px; }

/* ── Preview cards ── */

.preview-card {
  margin: 0;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.preview-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
}
.window-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate);
  font-variant-numeric: tabular-nums;
}
.chip {
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.chip-blue { background: var(--color-sky-tint); color: #005a80; }
.chip-lavender { background: var(--color-lavender-mist); color: var(--color-deep-plum); }

.code-card pre {
  margin: 0;
  padding: 28px 32px 32px;
  background: var(--color-ink);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
}
.code-card code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; color: var(--color-studio-off-white); }
.c-key { color: var(--color-lilac-wash); }
.c-str { color: var(--color-ice-blue); }
.c-num { color: var(--color-volt); }
.c-cmt { color: var(--color-soft-mist); }
.caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--color-electric-blue);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.log-rows {
  list-style: none;
  margin: 0;
  padding: 8px 28px 28px;
}
.log-rows li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--color-hairline-gray);
  font-size: 14px;
}
.log-rows li:first-child { border-top: none; }
.log-to { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-subj { color: var(--color-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill {
  border-radius: 40px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-ok { background: var(--color-sky-tint); color: #005a80; }
.pill-warn { background: var(--color-volt); color: var(--color-ink); }
.pill-queue { background: var(--color-hairline-gray); color: var(--color-ink); }
.js .log-rows li { animation: rowpulse 10s var(--ease-out) infinite; }
.js .log-rows li:nth-child(1) { animation-delay: 0s; }
.js .log-rows li:nth-child(2) { animation-delay: 2s; }
.js .log-rows li:nth-child(3) { animation-delay: 4s; }
.js .log-rows li:nth-child(4) { animation-delay: 6s; }
.js .log-rows li:nth-child(5) { animation-delay: 8s; }
@keyframes rowpulse {
  0%, 6% { background: transparent; }
  2% { background: var(--color-studio-off-white); }
}

/* ── Mini card row ── */

.cards-section { padding-top: clamp(60px, 9vw, 110px); }
.cards-head {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.cards-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.card-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 44px 24px 60px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
@media (min-width: 1248px) {
  .card-row {
    padding-inline: calc((100vw - 1200px) / 2 + 24px);
    scroll-padding-inline: calc((100vw - 1200px) / 2 + 24px);
  }
}
.card-row::-webkit-scrollbar { display: none; }
.card-row:focus-visible { outline: 3px solid var(--color-eclipse-violet); outline-offset: -3px; }
.mini-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  padding: 32px;
  box-shadow: var(--shadow-overlay);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mini-card:hover { box-shadow: var(--shadow-rest); transform: translateY(-4px); }
.mini-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.mini-card p { font-size: 14px; color: var(--color-slate); }

/* ── Docs / integration page ── */

.docs-section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 84px) 24px 0;
}
.docs-head {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.docs-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.docs-head p { color: var(--color-slate); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  padding: 32px;
  box-shadow: var(--shadow-overlay);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-lavender-mist);
  color: var(--color-deep-plum);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--color-slate); }

/* Two-pane API reference: prose flows in one readable column on the left,
   the request example stays sticky on the right (classic docs pattern). */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.docs-prose { max-width: 640px; }
.docs-prose h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
}
.docs-prose h3:first-child { margin-top: 0; }
.docs-prose > p { font-size: 15px; color: var(--color-slate); margin-bottom: 12px; }
.docs-prose .endpoint code {
  display: inline-block;
  background: var(--color-ink);
  color: var(--color-studio-off-white);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  white-space: normal;
  word-break: break-all;
}
.group-title {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.017em;
  margin: 28px 0 4px;
}
.docs-code-inner { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 980px) {
  .docs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; }
  .docs-grid > * { grid-column: 1; }
  /* Span exactly the two prose blocks — a larger span would create empty
     implicit rows whose row-gaps pile up as blank space below the section. */
  .docs-grid > .docs-code { grid-column: 2; grid-row: 1 / span 2; }
  .docs-code-inner { position: sticky; top: 96px; }
}
.api-table-wrap { overflow-x: auto; }
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.api-table th {
  font-weight: 600;
  color: var(--color-slate);
  padding: 8px 16px 8px 0;
  border-bottom: 1px solid var(--color-hairline-gray);
  white-space: nowrap;
}
.api-table td {
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--color-hairline-gray);
  vertical-align: top;
  color: var(--color-ink);
}
.api-table tr:last-child td { border-bottom: none; }
.api-table td:last-child { color: var(--color-slate); }
.api-table-compact { font-size: 13px; }

/* Field reference list — single column, one self-contained row per field */
.field-list { margin-bottom: 8px; }
.field { padding: 14px 0; border-top: 1px solid var(--color-hairline-gray); }
.field-list .field:first-child { border-top: none; }
.field-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.field-head code { background: var(--color-studio-off-white); font-weight: 500; }
.field-meta { font-size: 12px; color: var(--color-slate); }
.field-req {
  font-size: 11px;
  font-weight: 600;
  background: var(--color-lavender-mist);
  color: var(--color-deep-plum);
  border-radius: 40px;
  padding: 2px 10px;
}
.field p { font-size: 14px; color: var(--color-slate); margin-top: 6px; max-width: 52ch; }
code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--color-hairline-gray);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}
.code-card code { background: none; border-radius: 0; padding: 0; white-space: pre; }
.docs-head code, .feature-text code { white-space: normal; word-break: break-all; }

/* ── Pricing ── */

.hero-compact { padding-bottom: 20px; }
.hero-compact h1 { font-size: clamp(44px, 7vw, 76px); }

.pricing {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) 24px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-pure-white);
  border-radius: var(--radius-cards);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-overlay);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-rest); transform: translateY(-4px); }
.plan h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.plan-flag { position: absolute; top: 28px; right: 28px; }
.badge-volt { background: var(--color-volt); color: var(--color-ink); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-amount {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-per { font-size: 15px; color: var(--color-slate); }
.plan-tagline { font-size: 14px; color: var(--color-slate); min-height: 2.6em; }
.plan-features {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.plan-features li {
  padding-left: 26px;
  background: no-repeat left center url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="%237a40ed" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8.5l3.5 3.5 7.5-8"/></svg>');
}
.plan-cta { margin-top: auto; justify-content: center; }
.plan-featured {
  background: var(--color-ink);
  color: var(--color-pure-white);
  box-shadow: var(--shadow-rest);
}
.plan-featured:hover { box-shadow: var(--shadow-hover); }
.plan-featured .plan-per,
.plan-featured .plan-tagline { color: var(--color-lavender-mist); }
.plan-featured .plan-features li {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="%23a981ff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 8.5l3.5 3.5 7.5-8"/></svg>');
}
.pricing-note {
  max-width: 68ch;
  margin: 44px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--color-slate);
}

/* ── CTA band ── */

.cta-band-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) 24px 0;
}
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  border-radius: var(--radius-cards);
  padding: clamp(60px, 8vw, 100px) 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -120% -20%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(122, 64, 237, 0.55), transparent 65%);
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-pure-white);
  position: relative;
}
.cta-band p { color: var(--color-lavender-mist); font-size: 18px; letter-spacing: -0.023em; position: relative; }
.cta-band .btn { position: relative; margin-top: 8px; }

/* ── Footer ── */

.footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .logo { font-size: 19px; }
.footer p { font-size: 14px; color: var(--color-slate); }

/* ── Motion ── */

.js .hero-item {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s var(--ease-out) forwards;
}
.js .hero-item:nth-child(1) { animation-delay: 0.05s; }
.js .hero-item:nth-child(2) { animation-delay: 0.15s; }
.js .hero-item:nth-child(3) { animation-delay: 0.3s; }
.js .hero-item:nth-child(4) { animation-delay: 0.45s; }
.js .hero-item:nth-child(5) { animation-delay: 0.65s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Reveals: visible by default; app.js adds .reveal-pre only to elements
   below the fold, and removes it on intersection (or via failsafe). */
.js .reveal {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.reveal-pre { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-item { animation: none; opacity: 1; transform: none; }
  .js .reveal, .js .reveal.reveal-pre { transition: none; opacity: 1; transform: none; }
  .caret { animation: none; }
  .js .log-rows li { animation: none; }
  .btn, .preview-card, .mini-card { transition: none; }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 1; }
  .feature-flip .feature-media { order: 2; }
  .nav-links, .nav-login { display: none; }
  .menu-btn { display: inline-flex; }
  .log-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .log-subj { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(40px, 12.5vw, 48px); }
  .hero-sub { font-size: 18px; }
  .btn-lg { padding: 14px 26px; }
  .window-bar { padding: 16px 20px; }
  .code-card pre { padding: 20px 20px 24px; font-size: 13px; }
  .log-rows { padding: 4px 20px 20px; }
  .mini-card { flex-basis: 260px; }
}
