/* ev — Apple-minimal landing. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-ink: #06c;
  --radius: 18px;
  --maxw: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

b { font-weight: 600; }

.muted { color: var(--ink-soft); }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 52px;
}
.nav__brand { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

/* ── shared ──────────────────────────────────────── */
section { padding: 0 24px; }

.h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.lead {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--ink-soft); margin-top: 14px; line-height: 1.45;
}

/* ── hero ────────────────────────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  text-align: center;
  padding-top: clamp(48px, 8vh, 92px);
  padding-bottom: clamp(32px, 5vh, 62px);
}
.hero__eyebrow {
  font-size: 15px; font-weight: 600; color: var(--accent-ink);
  letter-spacing: 0; margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(56px, 11vw, 116px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.96;
}
.hero__sub {
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--ink-soft); margin: 26px auto 0; max-width: 620px;
  line-height: 1.4;
}
.hero__cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px;
}
.hero__note { margin-top: 34px; font-size: 13px; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #0077ed; }
.btn--ghost { color: var(--accent-ink); }
.btn--ghost:hover { opacity: 0.7; }

/* ── showcase ────────────────────────────────────── */
.showcase {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(22px, 4vh, 46px);
  text-align: center;
}
.showcase__head { margin-bottom: 44px; }

/* real-screenshot toggle */
.shot { max-width: 980px; margin: 0 auto; }
.shot__toggle {
  display: inline-flex; gap: 4px; margin-bottom: 22px;
  padding: 4px; border-radius: 999px; background: var(--bg-soft);
}
.shot__btn {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-soft); background: transparent; border: 0;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.shot__btn.is-active {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.shot__frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.5), 0 8px 24px -8px rgba(0, 0, 0, 0.25);
  background: #1c1c1e;
}
.shot__frame img { display: block; width: 100%; height: auto; }
.showcase__cap { margin-top: 26px; font-size: 14px; color: var(--ink-soft); }

/* ── scale (brag) ────────────────────────────────── */
.scale {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding-top: clamp(36px, 6vh, 76px);
  padding-bottom: clamp(20px, 3vh, 40px);
}
.scale__num {
  font-size: clamp(56px, 12vw, 128px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(180deg, var(--ink) 30%, var(--ink-soft));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.scale__line {
  font-size: clamp(22px, 3.4vw, 34px); font-weight: 600;
  letter-spacing: -0.02em; margin-top: 18px;
}
.scale__sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft);
  margin: 18px auto 0; max-width: 560px; line-height: 1.5;
}

/* ── features ────────────────────────────────────── */
.features {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(20px, 3vh, 40px);
  padding-bottom: clamp(36px, 6vh, 72px);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
}
.feature__title {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 600;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.feature__desc { font-size: 17px; color: var(--ink-soft); line-height: 1.55; }

/* ── install ─────────────────────────────────────── */
.install {
  background: var(--bg-soft);
  text-align: center;
  padding-top: clamp(36px, 6vh, 66px);
  padding-bottom: clamp(36px, 6vh, 66px);
  border-radius: 0;
}
.install .lead { margin-bottom: 36px; }
.code-card {
  position: relative; max-width: 720px; margin: 0 auto;
  background: #1c1c1e; border-radius: 14px;
  padding: 22px 24px; text-align: left;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.3);
}
.code-card pre { overflow-x: auto; }
.code-card code {
  font-family: var(--mono); font-size: 15px; color: #f2f2f2;
  white-space: pre; line-height: 1.7;
}
.copy {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: #c7c7cc; background: #3a3a3c; border: 0;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.copy:hover { background: #48484a; color: #fff; }
.copy.is-done { background: #28c840; color: #04280f; }
.install__alt { margin-top: 26px; font-size: 15px; color: var(--ink-soft); }
.install__alt code, .install__opt code {
  font-family: var(--mono); font-size: 13.5px;
  background: #e8e8ed; padding: 2px 7px; border-radius: 6px; color: #333;
}
.install__opt { margin-top: 14px; font-size: 13px; }

/* ── keys ────────────────────────────────────────── */
.keys {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(36px, 6vh, 66px);
  padding-bottom: clamp(22px, 4vh, 46px);
  text-align: center;
}
.keys .h2 { margin-bottom: 44px; }
.keys__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0 56px; text-align: left;
}
.keys__row {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.keys__row span { font-size: 16px; color: var(--ink-soft); }
.keys__row code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; color: var(--ink);
}
kbd {
  flex-shrink: 0; min-width: 96px; text-align: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 8px; padding: 7px 10px;
}

/* ── cli ─────────────────────────────────────────── */
.cli {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(26px, 4vh, 46px);
  padding-bottom: clamp(40px, 6vh, 76px);
  text-align: center;
}
.cli__head { margin-bottom: 40px; }
.code-card--plain { max-width: 640px; background: #1c1c1e; }
.code-card--plain code { font-size: 14px; line-height: 1.85; }
.c-cmd { color: #6cc7ff; font-weight: 600; }
.c-cmt { color: #6e6e73; }

/* ── footer ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  text-align: center; padding: 56px 24px 64px;
}
.footer__brand { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.footer__line { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.footer__links { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.footer__links a { color: var(--accent-ink); }
.footer__links a:hover { text-decoration: underline; }
.footer__sep { margin: 0 8px; opacity: 0.5; }

/* ── reveal animation ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 720px) {
  .nav__links { gap: 18px; }
  .nav__links a:nth-child(2) { display: none; }
  .features { grid-template-columns: 1fr; gap: 44px; }
  .keys__grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --bg-soft: #111113; --ink: #f5f5f7; --ink-soft: #98989d;
    --line: #2a2a2c; --accent: #0a84ff; --accent-ink: #409cff;
  }
  .nav { background: rgba(0, 0, 0, 0.72); }
  kbd { background: #1c1c1e; }
  .install__alt code, .install__opt code { background: #1c1c1e; color: #ddd; }
  .shot__btn.is-active {
    background: #2c2c2e; color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  }
}

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