/* BakuNotes ClearSpace Modern Architectural System — Apple / Things 3 / Dieter Rams minimalism */
:root {
  color-scheme: light dark;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-subtle: #f7f8f5;
  --ink: #171a18;
  --muted: #6c736d;
  --muted-soft: #969d97;
  --line: rgba(23, 26, 24, 0.08);
  --line-strong: rgba(23, 26, 24, 0.14);
  --green: #53745c;
  --green-hover: #44624c;
  --soft: #ebf1ec;
  --phone-shell: #1d1f1e;
  --phone-bezel-ring: rgba(255, 255, 255, 0.22);

  --shadow-stage:
    0 1px 2px rgba(18, 22, 19, 0.03),
    0 20px 50px rgba(18, 22, 19, 0.045);
  --shadow-phone:
    0 2px 6px rgba(15, 18, 16, 0.08),
    0 28px 64px rgba(15, 18, 16, 0.16);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --ease: 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f0e;
    --surface: #161816;
    --surface-subtle: #1d201d;
    --ink: #f0f2ef;
    --muted: #8c948d;
    --muted-soft: #5f6660;
    --line: rgba(240, 242, 239, 0.08);
    --line-strong: rgba(240, 242, 239, 0.16);
    --green: #6b9376;
    --green-hover: #7ca587;
    --soft: #1f2b22;
    --phone-shell: #2a2d2b;
    --phone-bezel-ring: rgba(255, 255, 255, 0.14);

    --shadow-stage:
      0 1px 2px rgba(0, 0, 0, 0.3),
      0 24px 60px rgba(0, 0, 0, 0.35);
    --shadow-phone:
      0 6px 16px rgba(0, 0, 0, 0.45),
      0 32px 72px rgba(0, 0, 0, 0.65);
  }
}

:root[data-theme="dark"] {
  --bg: #0e0f0e;
  --surface: #161816;
  --surface-subtle: #1d201d;
  --ink: #f0f2ef;
  --muted: #8c948d;
  --muted-soft: #5f6660;
  --line: rgba(240, 242, 239, 0.08);
  --line-strong: rgba(240, 242, 239, 0.16);
  --green: #6b9376;
  --green-hover: #7ca587;
  --soft: #1f2b22;
  --phone-shell: #2a2d2b;
  --phone-bezel-ring: rgba(255, 255, 255, 0.14);

  --shadow-stage:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-phone:
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 32px 72px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--ease), color var(--ease);
}

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

button, input {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.seg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.seg-toggle button,
.seg-toggle a {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.25;
  transition: background-color var(--ease), color var(--ease);
}

.seg-toggle .active {
  background: var(--surface-subtle);
  color: var(--ink);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  border: none;
  cursor: pointer;
  transition: background-color var(--ease), transform 0.16s ease, box-shadow var(--ease);
}

.btn:hover {
  background: var(--green-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn.lg {
  padding: 13px 32px;
  font-size: 15px;
}

.btn.full {
  width: 100%;
  padding: 13px 24px;
  font-size: 15px;
}

/* Realistic Modern iPhone Frame */
.iphone {
  position: relative;
  width: 300px;
  padding: 9px;
  border-radius: 48px;
  background: var(--phone-shell);
  box-shadow:
    inset 0 0 0 1px var(--phone-bezel-ring),
    var(--shadow-phone);
  flex-shrink: 0;
}

.iphone-screen {
  width: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1206 / 2622;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone.crop-top {
  width: 274px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

.iphone.crop-top .iphone-screen {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 1206 / 1760;
}

.iphone.crop-top .iphone-screen img {
  object-position: top center;
}

.iphone.crop-bottom {
  width: 274px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

.iphone.crop-bottom .iphone-screen {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 1206 / 1760;
}

.iphone.crop-bottom .iphone-screen img {
  object-position: bottom center;
}

.iphone.crop-tall {
  width: 296px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

.iphone.crop-tall .iphone-screen {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  aspect-ratio: 1206 / 2060;
}

.iphone.crop-tall .iphone-screen img {
  object-position: top center;
}

/* 1. Hero */
.hero {
  padding: 72px 0 96px;
  text-align: center;
}

.hero-title {
  margin: 0 auto 28px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.hero-stage {
  position: relative;
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

/* 2. Bento Stage Showcase (Zero explanatory prose — UI speaks) */
.bento {
  padding-bottom: 24px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 40px 36px 0;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: background-color var(--ease), border-color var(--ease);
}

.stage-card h2 {
  margin: 0 0 32px;
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stage-card.wide {
  grid-column: 1 / -1;
  padding: 48px 56px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
}

.stage-card.wide .wide-title {
  padding-bottom: 48px;
}

.stage-card.wide h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.025em;
}

/* 3. Stark Architectural Pillars */
.pillars {
  padding: 68px 0;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  align-items: center;
}

.pillar-item {
  position: relative;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 550;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 6px 16px;
}

.pillar-item + .pillar-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

/* 4. Finale Reservation Card */
.finale {
  padding: 8px 0 72px;
}

.finale-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 52px 36px;
  text-align: center;
  box-shadow: var(--shadow-stage);
}

.finale-card h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.inline-reserve {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.inline-input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 14.5px;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease);
}

.inline-input:focus {
  border-color: var(--green);
  background: var(--surface);
}

.finale-link {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.finale-link a {
  color: var(--green);
}

/* Dedicated Waitlist Page (/zh/waitlist/ & /en/waitlist/) */
.waitlist-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 40px 0 72px;
}

.waitlist-grid {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.paper-sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 42px 38px;
  box-shadow: var(--shadow-stage);
}

.paper-sheet h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color var(--ease), background-color var(--ease);
}

.field-input:focus {
  border-color: var(--green);
  background: var(--surface);
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-subtle);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:has(input:checked) {
  border-color: var(--green);
  background: var(--soft);
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}

.chip-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-pill:has(input:checked) {
  background: var(--soft);
  border-color: var(--green);
  color: var(--green);
  font-weight: 550;
}

.waitlist-feedback {
  margin: 16px 0 0;
  font-size: 13.5px;
  padding: 11px 14px;
  border-radius: 12px;
  display: none;
}

.waitlist-feedback.show {
  display: block;
}

.waitlist-feedback.ok {
  background: var(--soft);
  color: var(--green);
}

.waitlist-feedback.err {
  background: color-mix(in srgb, #a33e36 10%, var(--surface));
  color: #a33e36;
}

:root[data-theme="dark"] .waitlist-feedback.err {
  color: #e0736c;
}

.waitlist-receipt {
  display: none;
  text-align: center;
  padding: 12px 0;
}

.waitlist-receipt.show {
  display: block;
}

.receipt-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Privacy Policy Page */
.policy-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px 36px;
  box-shadow: var(--shadow-stage);
}

.policy-card h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.policy-card h2 {
  font-size: 15.5px;
  margin: 26px 0 10px;
  color: var(--green);
}

.policy-card p,
.policy-card li {
  font-size: 14.5px;
  margin: 0 0 10px;
}

.policy-card ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

.policy-summary {
  background: var(--soft);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin: 18px 0 24px;
}

/* Footer */
.site-footer {
  padding: 20px 0 48px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-soft);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}

.footer-row a {
  color: var(--muted);
  transition: color var(--ease);
}

.footer-row a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 860px) {
  .bento-grid,
  .stage-card.wide,
  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .stage-card.wide {
    padding: 40px 28px 0;
    justify-items: center;
    text-align: center;
    gap: 28px;
  }

  .stage-card.wide .wide-title {
    padding-bottom: 0;
  }

  .waitlist-grid {
    gap: 36px;
    justify-items: center;
  }

  .paper-sheet {
    width: 100%;
  }

  .pillar-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pillar-item + .pillar-item::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .wrap,
  .waitlist-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .iphone {
    width: 264px;
  }

  .iphone.crop-top,
  .iphone.crop-bottom,
  .iphone.crop-tall {
    width: 248px;
  }

  .finale-card,
  .paper-sheet,
  .policy-card {
    padding: 30px 22px;
  }

  .inline-reserve,
  .radio-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}
