/* ============ E. TOKYO NIGHT ============ */
:root {
  --bg: #1a1b26;
  --bg-dark: #16161e;
  --bg-card: #24283b;
  --bg-elev: #2f334d;
  --fg: #c0caf5;
  --fg-mute: #a9b1d6;
  --comment: #565f89;
  --blue: #7aa2f7;
  --cyan: #7dcfff;
  --purple: #bb9af7;
  --magenta: #ff79c6;
  --orange: #ff9e64;
  --green: #9ece6a;
  --red: #f7768e;

  --serif: "Lora", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(122, 162, 247, 0.08), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(187, 154, 247, 0.06), transparent 50%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus-visible { outline: 1.5px solid var(--cyan); outline-offset: 3px; }

.meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--comment);
  margin: 0 0 1rem;
}
.meta--accent { color: var(--cyan); }
.serif { font-family: var(--serif); font-weight: 500; }
.serif.italic { font-style: italic; color: var(--purple); padding-bottom: 0.06em; display: inline-block; line-height: 1.1; }

/* HEADER */
.site-header {
  position: sticky;
  top: 38px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bg-elev);
}
.wordmark {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.wordmark .bracket { color: var(--blue); }
.wordmark .op { color: var(--magenta); margin: 0 0.1em; }
.site-header nav ul {
  display: flex;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--fg-mute);
}
.site-header nav a:hover { color: var(--cyan); }

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 3vw, 2rem) clamp(4rem, 7vw, 6rem);
}
.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1.5rem;
  color: var(--fg);
  font-weight: 500;
  gap: 0.05em;
}
.hero__title .serif:not(.italic) { color: var(--fg); font-weight: 500; }
.lede {
  font-size: 1.0625rem;
  color: var(--fg-mute);
  max-width: 44ch;
  margin: 0 0 2rem;
  line-height: 1.55;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.5em;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--blue); color: var(--bg); border: 1px solid var(--blue); }
.btn--solid:hover { background: var(--cyan); border-color: var(--cyan); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--bg-elev); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--large { padding: 1.1em 2.25em; font-size: 0.9375rem; }

.hero__media { margin: 0; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--bg-elev);
  filter: saturate(0.95) brightness(0.95);
}
.hero__media figcaption { margin-top: 0.75rem; font-family: var(--mono); font-size: 0.75rem; color: var(--comment); }

/* KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bg-elev);
  border-block: 1px solid var(--bg-elev);
}
.kpis > div {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.kpis strong {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 500;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.01em;
}
.kpis span { font-family: var(--mono); font-size: 0.75rem; color: var(--comment); }

/* MANIFESTO */
.manifesto {
  text-align: center;
  padding: clamp(6rem, 11vw, 9rem) clamp(1.25rem, 3vw, 2rem);
  max-width: 60rem;
  margin: 0 auto;
}
.manifesto__line {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 2.5rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.manifesto__body { max-width: 52ch; margin: 0 auto; color: var(--fg-mute); }

/* HEAD shared */
.head {
  max-width: 1320px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.head h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

/* SERIES bento */
.series {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
  border-top: 1px solid var(--bg-elev);
}
.series__bento {
  display: grid;
  grid-template-columns: 8fr 4fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.bento {
  background: var(--bg-card);
  border: 1px solid var(--bg-elev);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.bento:hover { border-color: var(--purple); transform: translateY(-2px); }
.bento--big { grid-row: 1 / span 2; }
.bento--big figure { aspect-ratio: 4 / 5; }
.bento figure { margin: 0; aspect-ratio: 4 / 3; background: var(--bg-dark); overflow: hidden; }
.bento figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.95); }
.bento__meta { padding: 1.25rem 1.5rem 1.5rem; }
.bento__meta h3 { font-family: var(--sans); font-weight: 500; font-size: 1.125rem; margin: 0 0 0.4rem; color: var(--fg); letter-spacing: -0.01em; }
.bento__meta p { font-family: var(--mono); font-size: 0.75rem; color: var(--comment); margin: 0; }

/* PRICING */
.pricing {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--bg-dark);
  border-block: 1px solid var(--bg-elev);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--bg-elev);
  border-radius: 6px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.3s;
}
.plan:hover { border-color: var(--cyan); transform: translateY(-3px); }
.plan--featured {
  border-color: var(--purple);
  background: linear-gradient(160deg, color-mix(in oklab, var(--purple) 12%, var(--bg-card)), var(--bg-card));
}
.plan h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--orange);
  margin: 0;
  letter-spacing: 0;
}
.plan__price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  color: var(--cyan);
  margin: 0.25rem 0;
  line-height: 1;
}
.plan__price span { color: var(--purple); font-size: 0.65em; margin-left: 0.18em; }
.plan ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--fg-mute);
  margin-top: 0.5rem;
}
.plan ul li { line-height: 1.5; }

/* CONTACT */
.contact {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}
.contact__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  line-height: 1.05;
}
.contact__body { color: var(--fg-mute); max-width: 42ch; margin: 0 auto 2.25rem; font-size: 1.0625rem; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--bg-elev);
  padding: 2rem clamp(1.25rem, 3vw, 2rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem 2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--comment);
}
.footer__brand { font-family: var(--mono); font-size: 0.9375rem; color: var(--fg); margin: 0; }
.footer__brand .bracket { color: var(--blue); }
.footer__brand .op { color: var(--magenta); margin: 0 0.08em; }
.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--cyan); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .series__bento { grid-template-columns: 1fr; }
  .bento--big { grid-row: auto; }
  .bento--big figure { aspect-ratio: 4 / 3; }
  .plans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  body { background-image: none; }
}
