/* AI Kommon landing page — "Night Court" (dark).
   One accent (gold) on graphite, paper-white type, translucent hairlines.
   No JS: every effect is CSS and is switched off under reduced motion. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #111113;
  --bg-deep: #0b0b0c;
  --panel: #18181a;
  --raised: #1c1c1e;
  --raised-2: #26262a;
  --hair: rgba(245, 243, 239, 0.07);
  --hair-2: rgba(245, 243, 239, 0.13);
  --hair-3: rgba(245, 243, 239, 0.24);

  --tx: #f5f3ef;
  --tx-2: #b4b1aa;
  --tx-3: #8d8a84;

  --gold: #ecb526;
  --gold-hi: #f6d27a;
  --gold-lo: #c9921a;
  --gold-soft: rgba(236, 181, 38, 0.12);
  --gold-line: rgba(236, 181, 38, 0.45);
  --gold-glow: rgba(236, 181, 38, 0.2);
  --on-gold: #1c1c1e;
  --gold-gradient: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%);

  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-ui: "Inter Tight", var(--font-jp);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius: 16px;
  --header-h: 64px;
  --section-gap: 150px;

  font-family: var(--font-ui);
  color: var(--tx);
  background: var(--bg);
  line-height: 1.7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* ─── Base ─── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  word-break: auto-phrase;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: auto-phrase;
  text-wrap: balance;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p a {
  color: var(--tx);
  text-decoration: underline;
  text-decoration-color: var(--hair-3);
  text-underline-offset: 4px;
  transition: text-decoration-color 140ms var(--ease);
}
p a:hover {
  text-decoration-color: var(--gold);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}
::selection {
  background: rgba(236, 181, 38, 0.3);
  color: var(--tx);
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 30;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--tx);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ─── Header ─── */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 17, 19, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--hair-2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--tx-2);
}
.nav a:not(.button) {
  transition: color 140ms var(--ease);
}
.nav a:not(.button):hover {
  color: var(--tx);
}

/* ─── Buttons ─── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition:
    transform 140ms var(--ease),
    background-color 140ms var(--ease),
    border-color 140ms var(--ease),
    box-shadow 200ms var(--ease);
}
.button:hover {
  transform: translateY(-1px);
}
.button.small {
  min-height: 36px;
  padding: 6px 18px;
  font-size: 14px;
}
.button.gold {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow:
    0 0 0 1px rgba(246, 210, 122, 0.55) inset,
    0 10px 30px var(--gold-glow);
}
.button.gold:hover {
  background: #f2c445;
  box-shadow:
    0 0 0 1px rgba(246, 210, 122, 0.7) inset,
    0 14px 44px rgba(236, 181, 38, 0.34);
}
.button.ghost {
  background: rgba(245, 243, 239, 0.03);
  border-color: var(--hair-2);
  color: var(--tx);
}
.button.ghost:hover {
  background: rgba(245, 243, 239, 0.06);
  border-color: var(--hair-3);
}

/* ─── Hero ─── */

.hero {
  position: relative;
  padding-top: 96px;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -64px 0 auto;
  height: 1000px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 50% 68%, rgba(236, 181, 38, 0.2), transparent 70%),
    radial-gradient(ellipse 60% 44% at 50% 22%, rgba(245, 243, 239, 0.05), transparent 70%);
  animation: glow 7s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 243, 239, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 62% 52% at 50% 38%, #000 18%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 38%, #000 18%, transparent 75%);
}
@keyframes glow {
  from {
    opacity: 0.75;
  }
  to {
    opacity: 1;
  }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(24, 24, 26, 0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tx-2);
  transition:
    border-color 140ms var(--ease),
    color 140ms var(--ease);
}
.pill:hover {
  border-color: var(--gold-line);
  color: var(--tx);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.hero h1 {
  margin: 30px 0 26px;
  font-size: clamp(38px, 7.4vw, 92px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 600px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--tx-2);
  word-break: auto-phrase;
  text-wrap: balance;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.cta-meta {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tx-3);
}

/* ─── Screenshot frames ─── */

.window,
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 0 0 1px var(--hair-2),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(0, 0, 0, 0.55);
}
.hero-shot {
  margin-top: 76px;
  box-shadow:
    0 0 0 1px var(--hair-2),
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 180px rgba(236, 181, 38, 0.14);
}
.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(180deg, #1f1f22, #1a1a1c);
  border-bottom: 1px solid var(--hair);
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--raised-2);
  box-shadow: 0 0 0 1px var(--hair-2) inset;
}
.window-url {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.04);
  border: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-3);
}
/* The frame keeps a 16:10 box before (or without) the image, so the layout
   never jumps; the gradient doubles as a placeholder surface. */
.shot-frame,
.shot {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(236, 181, 38, 0.06), transparent 70%),
    linear-gradient(160deg, #1c1c1f, #141416);
}
.shot-frame img,
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
}

/* ─── Section heads ─── */

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.section-head h2,
.feature-copy h3,
.final h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head > p:not(.eyebrow),
.feature-copy > p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.9;
  color: var(--tx-2);
}

/* ─── Concept cards ─── */

.concept {
  padding-top: var(--section-gap);
}
.concept-grid {
  list-style: none;
  padding: 0;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  padding: 28px 28px 32px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(236, 181, 38, 0.07), transparent 60%),
    var(--panel);
  overflow: hidden;
  transition:
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 80%);
  opacity: 0.85;
}
.card:hover {
  border-color: var(--hair-2);
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.card-icon {
  width: 44px;
  height: 44px;
  margin-top: 28px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: var(--raised);
  fill: none;
  stroke: var(--tx);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  margin-top: 20px;
  font-size: 28px;
  font-weight: 800;
}
.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--tx-2);
}

/* ─── Feature rows ─── */

.features {
  padding-top: 40px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
  padding-top: 120px;
}
.feature.reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.reverse .feature-copy {
  order: 2;
}

/* ─── Steps ─── */

.how {
  padding-top: var(--section-gap);
}
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--panel);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-hi);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  left: calc(26px + 36px + 14px);
  right: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), transparent);
}
.steps h3 {
  font-size: 20px;
  font-weight: 700;
}
.steps p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--tx-2);
}

/* ─── Pilot & data notice ─── */

.data {
  padding-top: var(--section-gap);
}
.data-panel {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  padding: 56px;
  border: 1px solid var(--hair-2);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(236, 181, 38, 0.08), transparent 55%),
    var(--panel);
}
.data-panel .section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.data-panel .section-head > p:not(.eyebrow) {
  font-size: 14px;
}
.facts {
  border-top: 1px solid var(--hair-2);
}
.facts div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.facts dd {
  font-size: 15px;
  line-height: 1.8;
  color: var(--tx);
}

/* ─── FAQ ─── */

.faq {
  padding-top: var(--section-gap);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px;
}
.questions {
  border-top: 1px solid var(--hair-2);
}
details {
  border-bottom: 1px solid var(--hair-2);
}
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  transition: color 140ms var(--ease);
}
summary::-webkit-details-marker {
  display: none;
}
summary:hover {
  color: var(--gold-hi);
}
summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hair-2);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--tx-2);
  transition:
    transform 200ms var(--ease),
    border-color 140ms var(--ease),
    color 140ms var(--ease);
}
details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--gold-line);
  color: var(--gold);
}
details p {
  max-width: 40em;
  padding-bottom: 26px;
  margin-top: -6px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--tx-2);
}

/* ─── Final CTA band ─── */

.final {
  position: relative;
  margin-top: var(--section-gap);
  padding: 140px 0 150px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--bg), var(--bg-deep));
  isolation: isolate;
  overflow: hidden;
}
.final-glow {
  position: absolute;
  inset: auto 0 -200px;
  height: 680px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 56% at 50% 72%, rgba(236, 181, 38, 0.24), transparent 70%);
  animation: glow 7s ease-in-out infinite alternate;
}
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.final h2 {
  font-size: clamp(34px, 5.6vw, 72px);
}

/* ─── Footer ─── */

.footer {
  border-top: 1px solid var(--hair);
  background: var(--bg-deep);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 36px 0 44px;
}
.footer-nav {
  gap: 24px;
  margin-left: auto;
}
.copyright {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--tx-3);
}

/* ─── Scroll reveal (progressive enhancement, Chromium-only today) ─── */

@supports (animation-timeline: view()) {
  @media screen and (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Responsive ─── */

@media (max-width: 960px) {
  .feature,
  .feature.reverse,
  .faq,
  .data-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .feature.reverse .feature-copy {
    order: 0;
  }
  .data-panel {
    padding: 40px;
  }
}
@media (max-width: 720px) {
  :root {
    --section-gap: 104px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .nav-optional {
    display: none;
  }
  .hero {
    padding-top: 60px;
  }
  .lead br {
    display: none;
  }
  .cta {
    width: 100%;
  }
  .cta .button {
    flex: 1 1 100%;
  }
  .hero-shot {
    margin-top: 52px;
    border-radius: 12px;
  }
  .window-bar {
    height: 30px;
    padding: 0 12px;
  }
  .window-dots span {
    width: 8px;
    height: 8px;
  }
  .window-url {
    font-size: 10.5px;
    padding: 1px 10px;
  }
  .concept-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li:not(:last-child)::after {
    display: none;
  }
  .feature {
    padding-top: 80px;
  }
  .shot {
    border-radius: 12px;
  }
  .data-panel {
    padding: 28px 22px;
    border-radius: 18px;
  }
  .facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .final {
    padding: 104px 0 112px;
  }
  .footer-nav {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
