@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-Variable.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-Medium.woff2') format('woff2');
}

:root {
  --bg: #0D0F12;
  --bg-raised: #16191E;
  --text: #EDEDED;
  --text-dim: #9DA3AC;
  --accent: #6B8CAE;
  --accent-dim: #4C637A;
  --border: #2A2E35;
  --font-sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.locked { overflow: hidden; height: 100vh; }

::selection { background: var(--accent); color: #0D0F12; }

a { color: inherit; }

/* ---------- Waitlist button ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: btn-in 0.6s ease 0.8s forwards;
}

.header-logo {
  height: 56px;
  width: auto;
}

.waitlist-btn {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0D0F12;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 11px 22px;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.waitlist-btn:hover {
  background: #7d9dbc;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px rgba(107, 140, 174, 0.5);
}
.waitlist-btn:active {
  transform: translateY(0);
}
.waitlist-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes btn-in { to { opacity: 1; } }

/* ---------- Boot stage: iMac reveal ---------- */
.boot-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  z-index: 100;
  background: var(--bg);
}

.boot-stage.dismissed {
  display: none;
}

.rig {
  position: relative;
  width: min(58vw, 680px);
  aspect-ratio: 16 / 10.2;
  transform-style: preserve-3d;
  animation: spin-in 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.rig.zooming {
  animation: none;
  transition: transform 1.15s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.9s ease 0.35s;
}

@keyframes spin-in {
  0% { transform: rotateY(-1080deg) rotateX(10deg) scale(0.32); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: rotateY(0deg) rotateX(0deg) scale(1); opacity: 1; }
}

.imac {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(160deg, #e4e5e7, #c7c9cd 55%, #b7b9bd);
  padding: 16px 16px 22px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.08) inset,
    0 50px 100px -30px rgba(0,0,0,0.75),
    0 0 140px -50px rgba(107, 140, 174, 0.3);
}

.imac-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8b8d91;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06) inset;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stand {
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: 64px;
  height: 46px;
  background: linear-gradient(180deg, #d3d4d7, #b3b5b9);
  clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
}

.base {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  width: 200px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #cacbcf, #a9abaf);
}

.scroll-cue {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  opacity: 0;
  animation: cue-in 0.8s ease 1.6s forwards, cue-bob 2s ease-in-out 2.4s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue svg { width: 14px; height: 20px; opacity: 0.8; }

@keyframes cue-in { to { opacity: 1; } }
@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.boot-stage.zoom-active .scroll-cue { animation: none; opacity: 0; transition: opacity 0.3s ease; }

/* ---------- Main content ---------- */
.site {
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.site.visible { opacity: 1; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px;
  position: relative;
  gap: 30px;
}

h1.typed-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0;
  text-wrap: balance;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-title .cursor {
  display: inline-block;
  width: 0.05em;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.subhead {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 50ch;
  line-height: 1.7;
  margin: 0;
  opacity: 0;
}

.site.visible .subhead { animation: fade-up 0.7s ease 0.5s forwards; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- How it works (full-screen split) ---------- */
.how {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  border-top: 1px solid var(--border);
}

.how-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 80px;
  border-right: 1px solid var(--border);
}

.how-left h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin: 0 0 28px;
  text-wrap: balance;
}

.how-left p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 38ch;
  margin: 0;
}

.how-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
}

.how-step {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }

.how-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.how-step p {
  font-size: 0.96rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; min-height: 0; }
  .how-left { border-right: none; border-bottom: 1px solid var(--border); padding: 80px 0 48px; }
  .how-right { padding: 48px 0 80px; }
}

/* ---------- A meeting, translated (laptop + live caption sidebar) ---------- */
.meeting {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.meeting-head {
  margin-bottom: 64px;
}

.meeting-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}

.meeting-stage {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.meeting-laptop {
  width: 100%;
}

.laptop-image {
  width: 100%;
  height: auto;
  display: block;
}

.sidebar {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 460px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.sidebar-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.sidebar-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-sub::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}

.caption-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.caption-feed::-webkit-scrollbar { width: 6px; }
.caption-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cap-bubble {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0;
}

.cap-bubble .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cap-bubble.jp {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-top-left-radius: 2px;
  align-self: flex-start;
  max-width: 92%;
}
.cap-bubble.jp .tag { color: var(--text-dim); }

.cap-bubble.en {
  background: rgba(107, 140, 174, 0.12);
  border: 1px solid var(--accent-dim);
  border-top-right-radius: 2px;
  align-self: flex-end;
  max-width: 92%;
}
.cap-bubble.en .tag { color: var(--accent); }

.cap-bubble.fade-in {
  animation: cap-fade-in 0.3s ease forwards;
}

@keyframes cap-fade-in { to { opacity: 1; } }

.cap-text .cursor-blink {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -0.1em;
  animation: caret-blink 0.9s step-end infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.typing-dots {
  display: inline-flex;
  gap: 3px;
  padding: 2px 0;
}
.typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 900px) {
  .meeting-stage { grid-template-columns: 1fr; }
  .sidebar { height: 360px; }
}

/* ---------- Coverage (full-screen word wall) ---------- */
.langs-wall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.langs-wall-head {
  margin-bottom: 64px;
}

.langs-wall-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 20ch;
  text-wrap: balance;
}

.langs-wall-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin: 16px 0 0;
}

.word-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.word-wall span {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-dim);
  line-height: 1.25;
  transition: color 0.2s ease;
  cursor: default;
}

.word-wall span:hover { color: var(--accent); }
.word-wall span.accent-word { color: var(--text); }

.word-wall .sep {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--border);
  line-height: 1.25;
}

.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 48px 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  width: 178px;
  height: auto;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 34ch;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .site-footer { padding: 80px 24px 32px; }
}

@media (max-width: 760px) {
  .rig { width: 84vw; }
  .langs-wall { padding: 80px 24px; }

  .word-wall {
    flex-direction: column;
    gap: 4px;
  }

  .word-wall .sep {
    display: none;
  }

  .word-wall span {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

/* ---------- Page transition: curtain wipe ---------- */
.curtain-top,
.curtain-bottom {
  position: fixed;
  left: 0;
  right: 0;
  background: var(--bg);
  z-index: 2000;
  pointer-events: none;
}

.curtain-top { top: 0; height: 50%; transform: translateY(-100%); }
.curtain-bottom { bottom: 0; height: 50%; transform: translateY(100%); }

.curtain-top.closing { animation: curtain-top-in 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards; }
.curtain-bottom.closing { animation: curtain-bottom-in 0.5s cubic-bezier(0.76, 0, 0.24, 1) forwards; }

/* starts fully closed (covering the page), then opens on load */
.curtain-top.open { transform: translateY(0); animation: curtain-top-out 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.05s forwards; }
.curtain-bottom.open { transform: translateY(0); animation: curtain-bottom-out 0.5s cubic-bezier(0.76, 0, 0.24, 1) 0.05s forwards; }

@keyframes curtain-top-in { to { transform: translateY(0); } }
@keyframes curtain-bottom-in { to { transform: translateY(0); } }
@keyframes curtain-top-out { to { transform: translateY(-100%); } }
@keyframes curtain-bottom-out { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
