/* WhalePet product site — product-first, screenshot-led
   Job: recognize → trust → download. Not a portfolio, not AI-purple SaaS. */

:root {
  color-scheme: dark;
  --bg: #0b1016;
  --surface: #121a22;
  --surface-2: #18222d;
  --line: rgba(232, 238, 242, 0.1);
  --line-strong: rgba(232, 238, 242, 0.16);
  --text: #e8eef2;
  --muted: #8b9aab;
  --accent: #34d399;
  --accent-ink: #042f22;
  --warm: #f0b48a;
  --max: 1080px;
  --r: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Figtree", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --display: "Outfit", "Figtree", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 90% -5%, rgba(52, 211, 153, 0.08), transparent 55%),
    linear-gradient(180deg, #0e141c 0%, var(--bg) 40%, #080c11 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 100;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 1rem; }

.shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

/* Nav */
.top {
  position: sticky; top: 0; z-index: 40; height: 64px;
  display: flex; align-items: center;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 16, 22, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.03em; cursor: pointer;
}
.brand mark {
  all: unset; width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.4), transparent 42%),
    radial-gradient(circle at 50% 60%, #6ee7b7, var(--accent) 60%, #0d5c44);
  box-shadow: 0 0 0 1px rgba(52,211,153,.35), 0 0 16px rgba(52,211,153,.3);
}
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: nowrap; }
.nav a:not(.btn) {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  white-space: nowrap; cursor: pointer; transition: color 0.2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.6rem; padding: 0.55rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: -0.015em;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: var(--accent-ink); background: var(--accent);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(52, 211, 153, 0.32); }
.btn-ghost {
  color: var(--text); background: transparent; border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); }
.btn-lg { min-height: 3rem; padding-inline: 1.35rem; font-size: 0.95rem; }

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .hero-visual { order: -1; }
}

.kicker {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.9rem;
}
h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.035em;
  max-width: 16ch; margin-bottom: 0.9rem;
}
h1 em { font-style: italic; font-weight: 650; color: var(--accent); }
.lede {
  color: var(--muted); font-size: 1.05rem; max-width: 34rem; margin-bottom: 1.35rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.1rem; }
.meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1rem;
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
}
.meta strong { color: var(--warm); font-weight: 500; }

.hero-visual {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center;
  background: #0a0f14;
}
.hero-caption {
  padding: 0.65rem 0.9rem;
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}

/* Section */
.section { padding: 2.75rem 0 0.5rem; }
.section-head { max-width: 36rem; margin-bottom: 1.5rem; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.5rem;
}
.section-head p { color: var(--muted); font-size: 0.98rem; }

/* Scenario list — what the pet does */
.scenarios {
  display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface);
}
.scenario {
  display: grid; grid-template-columns: 9.5rem 1fr;
  gap: 1rem; padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.scenario:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .scenario { grid-template-columns: 1fr; gap: 0.3rem; }
}
.scenario .when {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.03em; line-height: 1.4;
}
.scenario h3 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 650;
  letter-spacing: -0.02em; margin-bottom: 0.25rem;
}
.scenario p { color: var(--muted); font-size: 0.93rem; }

/* Surfaces grid */
.surfaces {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem;
  margin-top: 1.25rem;
}
@media (max-width: 800px) { .surfaces { grid-template-columns: 1fr; } }
.surface-card {
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); overflow: hidden;
}
.surface-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center;
  background: #0a0f14;
}
.surface-card.tall img { aspect-ratio: 3 / 4; object-fit: contain; padding: 1rem; background: #0a0f14; }
.surface-card .body { padding: 1rem 1.1rem 1.15rem; }
.surface-card h3 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 650;
  margin-bottom: 0.3rem; letter-spacing: -0.02em;
}
.surface-card p { color: var(--muted); font-size: 0.9rem; }

/* Advanced note */
.note {
  margin: 2rem 0 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(52, 211, 153, 0.06);
}
.note strong { color: var(--text); font-weight: 600; }
.note p { color: var(--muted); font-size: 0.93rem; margin-top: 0.25rem; }

/* Download band */
.panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding: 1.5rem 1.6rem; margin: 2.5rem 0 3.25rem;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
}
.panel h2 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 650;
  letter-spacing: -0.025em; margin-bottom: 0.35rem; max-width: 28rem;
}
.panel p { color: var(--muted); font-size: 0.92rem; max-width: 32rem; }
.panel code { font-family: var(--mono); font-size: 0.82em; color: var(--warm); }

/* Inner pages */
.page { padding: 2.75rem 0 4rem; max-width: 38rem; }
.page h1 {
  font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.5rem);
  max-width: none; margin-bottom: 0.7rem;
}
.page .lede { margin-bottom: 1.5rem; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem;
  margin-top: 1.5rem; font-size: 0.92rem;
}
.facts dt {
  font-family: var(--mono); font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.05em; text-transform: uppercase; padding-top: 0.2rem;
}
.facts dd { color: var(--text); font-weight: 500; }
#release-filename {
  font-family: var(--mono); font-size: 0.85rem; color: var(--warm);
  margin-top: 0.65rem; word-break: break-all;
}
#release-status { font-family: var(--mono); color: var(--warm); }

.log-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.75rem; }
.log-item {
  padding: 1.2rem 1.3rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.log-item h3 { font-family: var(--display); font-size: 1.1rem; font-weight: 650; margin-bottom: 0.3rem; }
.log-item .when { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-bottom: 0.7rem; }
.log-item ul { padding-left: 1.1rem; color: var(--muted); font-size: 0.93rem; }
.log-item li { margin-bottom: 0.3rem; }
.log-item code { font-family: var(--mono); font-size: 0.8em; color: var(--warm); }

.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.price-card {
  padding: 1.25rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
}
.price-card h3 { font-family: var(--display); margin-bottom: 0.35rem; }
.price-card p { color: var(--muted); font-size: 0.92rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 1rem; }
.foot-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem;
}
.foot strong { font-family: var(--display); font-size: 1rem; display: block; margin-bottom: 0.3rem; }
.foot p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.15rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.85rem 1.15rem; }
.foot nav a { color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.foot nav a:hover { color: var(--accent); }
.foot a[href^="mailto"], .foot a[href^="http"] { color: var(--accent); }

.sub { color: var(--muted); }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
