/* ============================================================
   Hakonfig / Landing page
   Dark canvas inspired by openbot.run + Hakonfig's green brand
   ============================================================ */

:root {
  /* Canvas & frame */
  --bg-canvas: #1a1a1a;
  --bg-frame: #0d0d0d;
  --bg-surface: #141414;
  --bg-raised: #212121;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #8a8f98;
  --text-dim: #6b6b70;

  /* Accent: Hakonfig green (matches the app's #1eaf5d) */
  --accent: #1eaf5d;
  --accent-strong: #169a4d;
  --accent-bright: #2ed573;
  --accent-soft: rgba(30, 175, 93, 0.16);
  --accent-text: #6ee7a8;
  --accent-glow: rgba(30, 175, 93, 0.35);

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.08);

  /* Status */
  --ok: #31cf76;
  --warn: #ff9412;
  --danger: #fd2f3b;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Fonts */
  --font-sans: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;

  /* App (light) palette, mirrors web/styles.src.css in the app repo */
  --app-cream: #fdfaf6;
  --app-sand: #faf7f3;
  --app-line: #f1f1f3;
  --app-white: #ffffff;
  --app-peach: #fbefe9;
  --app-ink: #0a0a0a;
  --app-sub: #6c7481;
  --app-mute: #b4b8be;
  --app-brand: #1eaf5d;

  --maxw: 1160px;
  --nav-h: 68px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

svg {
  display: inline-block;
}

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

.nw {
  white-space: nowrap;
}

.secret {
  color: var(--accent-text);
  letter-spacing: 0.08em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

p code,
.section-sub code,
.price-desc code {
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.feature p code {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: rgba(30, 175, 93, 0.3);
}

.grad {
  background: linear-gradient(120deg, #8ef0b8 0%, #4ade80 45%, #1eaf5d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ok {
  color: var(--ok);
}

.muted {
  color: var(--text-muted);
}

/* Long lines must be able to shrink on small screens */
.diff-line,
.lock-line,
.path-line {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #04240f;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3ee183, var(--accent-bright));
  box-shadow: 0 10px 28px rgba(30, 175, 93, 0.5);
}

.btn-ghost {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  font-size: 1.02rem;
  padding: 0.85rem 1.6rem;
}
.btn-lg svg {
  width: 20px;
  height: 20px;
}

.btn-sm {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-strong));
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-mark.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-mark.sm svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a.active {
  color: var(--text-primary);
  position: relative;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.26rem 0.55rem;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch button:hover {
  color: var(--text-primary);
}
.lang-switch button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.25s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a {
  padding: 12px 4px;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type {
  margin-top: 8px;
  text-align: center;
  color: #04240f;
  border-bottom: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 136px) 24px 96px;
  overflow: hidden;
  background: var(--bg-frame);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(
    closest-side,
    rgba(30, 175, 93, 0.26),
    rgba(30, 175, 93, 0.07) 55%,
    transparent 75%
  );
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 75%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.15rem, 5.6vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 34px;
  text-wrap: balance;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 1.14rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-chips {
  margin-bottom: 92px;
}
.chips-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.chips-label:not(:first-child) {
  margin-top: 40px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
}
.chip-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* marks that are already a shape on transparency, not a tile */
.chip-logo.glyph {
  border-radius: 0;
  object-fit: contain;
  background: none;
}

/* ---------- app preview mockup (light, matches the real app) ---------- */
.preview {
  max-width: 1000px;
  margin: 0 auto;
}
.preview-window {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--app-cream);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-align: left;
  color: var(--app-ink);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #f0ece7;
  border-bottom: 1px solid #e7e2dc;
}
.traffic {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.traffic-red { background: #ff5f57; }
.traffic-yellow { background: #febc2e; }
.traffic-green { background: #28c840; }
.window-title {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--app-sub);
  font-weight: 500;
}
.window-spacer { flex: 1; }

.app {
  padding: 20px 22px 24px;
  background: var(--app-cream);
}
.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.app-top-text strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--app-ink);
}
.app-top-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--app-sub);
}
.app-lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e4e0da;
  border-radius: var(--r-pill);
  background: var(--app-white);
  flex-shrink: 0;
}
.app-lang b,
.app-lang i {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.44rem;
  border-radius: var(--r-pill);
  color: var(--app-mute);
}
.app-lang b {
  background: #eef0f2;
  color: var(--app-ink);
}

.app-section {
  margin-bottom: 16px;
}
.app-section:last-child {
  margin-bottom: 0;
}
.app-section-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}
.app-section-head span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--app-ink);
}
.app-section-head em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--app-sub);
  background: var(--app-sand);
  border: 1px solid #ece7e1;
  padding: 1px 7px;
  border-radius: var(--r-pill);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border-radius: var(--r-md);
  background: var(--app-white);
  border: 1px solid var(--app-line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  text-align: center;
}
.tile-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  margin-bottom: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.08);
}
/* marks that are a shape on transparency rather than a coloured tile */
.tile-logo.glyph {
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}
.tile-logo.sm {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  margin-bottom: 0;
}
.tile strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--app-ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile small {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--app-sub);
}
.tile code {
  font-size: 0.62rem;
  color: var(--app-mute);
}
.tile-badge {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #0d7a41;
  background: #e6f9ef;
  border: 1px solid #c9f0da;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tile-badge-warn {
  color: #96620a;
  background: #fdf3e3;
  border-color: #f7e3c2;
}
.tile-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.tile-missing {
  padding-bottom: 10px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  color: #fff;
  background: var(--app-brand);
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.mini-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--app-sub);
  border: 1px solid #e4e0da;
  padding: 3px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- sections ---------- */
.section {
  padding: 110px 24px;
}
.section-tight {
  padding-top: 40px;
  padding-bottom: 40px;
}
.section + .section-tight {
  padding-top: 10px;
}
.section-head {
  max-width: 780px;
  margin: 0 auto 70px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.06rem;
  color: var(--text-secondary);
}

/* ---------- features ---------- */
.features {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 110px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.feature-flip .feature-text {
  order: 2;
}
.feature-flip .feature-visual {
  order: 1;
}
.feature-text,
.feature-visual {
  min-width: 0;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--ic) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 35%, transparent);
  color: var(--ic);
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 25px;
  height: 25px;
}
.feature h3 {
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.feature p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 470px;
}

.feature-visual {
  position: relative;
}

/* shared card look */
.path-card,
.backup-card,
.diff-demo,
.safe-card,
.install-card,
.addprov {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1c1c1c, #151515);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.path-card,
.backup-card,
.safe-card,
.install-card {
  padding: 22px;
}

.path-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.path-line {
  display: block;
  font-size: 0.84rem;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #191919;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.path-line:last-child {
  margin-bottom: 0;
}
.path-line-dim {
  opacity: 0.5;
}

/* add-provider modal (feature 1) */
.addprov {
  padding: 0;
  overflow: hidden;
}
.addprov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.addprov-head strong {
  font-size: 0.94rem;
  font-weight: 600;
}
.addprov-x {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.addprov-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}
.field-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.field-label:not(:first-child) {
  margin-top: 11px;
}
.field-input {
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: #191919;
  padding: 8px 11px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-input.mono {
  color: var(--text-secondary);
}
.secret-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.secret-field em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 1px 7px;
}

.addprov-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.72rem;
  flex-wrap: wrap;
}
.sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #04240f;
  background: var(--accent-bright);
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.sync-btn svg {
  width: 11px;
  height: 11px;
}

.models-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
  margin-bottom: 7px;
}
.models-head span {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}
.models-head em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 175, 93, 0.3);
  padding: 0 6px;
  border-radius: var(--r-pill);
}

.model-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.model-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: #191919;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 5px 8px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.model-row i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  font-style: normal;
  font-size: 0.55rem;
  color: transparent;
  flex-shrink: 0;
}
.model-row.checked {
  color: var(--text-secondary);
  border-color: rgba(30, 175, 93, 0.3);
  background: rgba(30, 175, 93, 0.07);
}
.model-row.checked i {
  background: var(--accent);
  border-color: var(--accent);
  color: #04240f;
}

/* models appear one by one after "Sync models" */
.addprov .model-row {
  opacity: 0;
}
.addprov.play .model-row {
  animation: hk-model-in 0.34s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}
@keyframes hk-model-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .addprov .model-row {
    opacity: 1;
  }
  .addprov.play .model-row {
    animation: none;
  }
}
.addprov-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}

/* diff demo */
.diff-demo {
  padding: 0;
  overflow: hidden;
}
.diff-file {
  padding: 10px 16px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: #191919;
  border-bottom: 1px solid var(--border);
}
.diff-line {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px 8px 38px;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
}
.diff-add {
  background: rgba(49, 207, 118, 0.08);
  color: #7ee2a8;
}
.diff-add::before {
  content: "+";
  position: absolute;
  left: 15px;
  color: var(--ok);
}
.diff-del {
  background: rgba(253, 47, 59, 0.08);
  color: #f68b92;
}
.diff-del::before {
  content: "−";
  position: absolute;
  left: 15px;
  color: var(--danger);
}
.diff-ctx {
  color: var(--text-muted);
}

/* backup */
.backup-head {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #191919;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.backup-row:last-child {
  margin-bottom: 0;
}
.backup-row.active {
  border-color: rgba(30, 175, 93, 0.4);
  background: rgba(30, 175, 93, 0.07);
}
.backup-time {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag-ok {
  color: var(--accent-text);
  background: var(--accent-soft);
  border-color: rgba(30, 175, 93, 0.35);
}

/* install list (feature 5) */
.install-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #191919;
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.install-row:last-child {
  margin-bottom: 0;
}
.install-row > div {
  min-width: 0;
  flex: 1 1 auto;
}
.install-row strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
}
.install-row small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-row .mini-btn {
  font-size: 0.68rem;
  padding: 4px 10px;
}
.install-row.running {
  border-color: rgba(30, 175, 93, 0.4);
  background: rgba(30, 175, 93, 0.06);
  position: relative;
  overflow: hidden;
}
.bar {
  position: relative;
  overflow: hidden;
  width: 62px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 34%;
  border-radius: 999px;
  background: var(--accent);
  animation: hk-bar 1.15s ease-in-out infinite;
}
@keyframes hk-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
@media (prefers-reduced-motion: reduce) {
  .bar::after { animation: none; width: 60%; }
}

/* safe */
.safe-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.safe-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(49, 207, 118, 0.06);
  border: 1px solid rgba(49, 207, 118, 0.2);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ---------- privacy ---------- */
.privacy {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
  padding: 90px 0;
}
.privacy-text .section-title {
  margin-top: 4px;
}
.privacy-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
}
.privacy-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lock-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1c1c1c, #151515);
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.lock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 175, 93, 0.35);
  color: var(--accent-text);
  margin-bottom: 22px;
}
.lock-icon svg {
  width: 27px;
  height: 27px;
}
.lock-line {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.lock-note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ---------- pricing ---------- */
.price-card {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding: 44px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(30, 175, 93, 0.3);
  background: linear-gradient(160deg, #141d18, #121614);
  box-shadow: 0 30px 90px rgba(30, 175, 93, 0.18),
    0 0 60px rgba(30, 175, 93, 0.06) inset;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(30, 175, 93, 0.3), transparent);
  filter: blur(30px);
  pointer-events: none;
}
.price-left,
.price-features {
  position: relative;
  z-index: 1;
}
.price-amount {
  display: block;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.price-desc {
  color: var(--text-secondary);
  margin-bottom: 26px;
  font-size: 0.98rem;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
}

/* ---------- faq ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  transition: background 0.2s ease;
}
.faq-q:hover {
  background: rgba(255, 255, 255, 0.03);
}
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--r-md);
}
.faq-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------- downloads ---------- */
.downloads {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, #1c1c1c, #151515);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 175, 93, 0.5);
  background: linear-gradient(160deg, #17201a, #141815);
}
.dl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  color: var(--c);
}
.dl-icon svg {
  width: 25px;
  height: 25px;
}
.dl-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
.dl-meta strong {
  display: block;
  font-size: 1.16rem;
  font-weight: 700;
}
.dl-meta span {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.dl-badge {
  margin-top: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: #04240f;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  padding: 9px 18px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px var(--accent-glow);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--bg-frame);
  padding: 70px 24px 30px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 60px;
  padding-bottom: 50px;
}
.footer-brand p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 300px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text-primary);
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .feature-flip .feature-text {
    order: 1;
  }
  .feature-flip .feature-visual {
    order: 2;
  }
  .privacy {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .price-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .downloads {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-inner {
    gap: 12px;
    padding: 0 16px;
  }
  .nav-actions .btn-sm {
    font-size: 0.8rem;
    padding: 0.42rem 0.85rem;
  }
  .lang-switch {
    padding: 2px;
  }
  .lang-switch button {
    font-size: 0.72rem;
    padding: 0.22rem 0.46rem;
  }
  .nav-toggle {
    display: flex;
  }
  .mobile-menu.open {
    display: flex;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 88px);
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-sub {
    font-size: 1.02rem;
  }
  .hero-sub {
    margin-bottom: 32px;
  }
  .hero-cta {
    margin-bottom: 40px;
  }
  .chips-label:not(:first-child) {
    margin-top: 28px;
  }
  .hero-chips {
    margin-bottom: 48px;
  }
  .section {
    padding: 70px 20px;
  }
  .features {
    gap: 66px;
  }
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .app {
    padding: 16px 14px 18px;
  }
  .app-top {
    gap: 10px;
  }
  .window-title {
    font-size: 0.7rem;
  }
  .model-list {
    grid-template-columns: 1fr;
  }
  .addprov-foot {
    justify-content: stretch;
  }
  .addprov-foot .mini-btn,
  .addprov-foot .mini-ghost {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 0 8px;
  }
  .hero-cta .btn {
    justify-content: center;
  }
  .chip {
    padding: 4px 11px;
    font-size: 0.76rem;
  }
  .price-card {
    padding: 28px;
  }
  .price-amount {
    font-size: 2.5rem;
  }
  .faq-q {
    padding: 16px 18px;
    font-size: 0.96rem;
  }
  .faq-a p {
    padding: 0 18px 18px;
  }
  .footer-inner {
    gap: 32px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .tile-grid {
    gap: 8px;
  }
  .tile {
    padding: 12px 6px 10px;
  }
  .tile-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .tile strong {
    font-size: 0.78rem;
  }
  .tile small {
    font-size: 0.64rem;
  }
  .banner-pad {
    padding: 0;
  }
}
