/* Syde LP — アプリの theme.ts と同じパレットで世界観を揃える。 */
:root {
  --bg: #0e0f13;
  --surface: #1a1c23;
  --surface-light: #262934;
  --primary: #ff7a45;
  --primary-text: #ffffff;
  --text: #f2f3f5;
  --muted: #9aa0ae;
  --border: #2e323e;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 960px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 50% -200px, rgba(255, 122, 69, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* 見出しは語/文節の途中で改行しない。日本語は CJK 文字間の自動改行を抑え、
   意図した <br> の位置だけで折り返す（英語は従来どおりスペースで折り返す）。
   万一1行が収まらない場合のみ overflow-wrap で破綻を防ぐ。 */
.hero-title,
.band-lead,
.section-title,
.final-cta h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------------- Header ---------------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 22px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-btn.is-active {
  background: var(--surface-light);
  color: var(--text);
}

/* ---------------- Hero ---------------- */
.hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 122, 69, 0.1);
  border: 1px solid rgba(255, 122, 69, 0.25);
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  margin: 0 auto 20px;
  max-width: 16ch;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 56ch;
  margin: 0 auto 32px;
}

/* ---------------- Waitlist form ---------------- */
.waitlist {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input:focus {
  border-color: var(--primary);
}

.waitlist-input::placeholder {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.waitlist-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.waitlist-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.waitlist-status.is-ok {
  color: var(--primary);
}

.waitlist-status.is-error {
  color: #ff8a8d;
}

/* ---------------- Principles band ---------------- */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band-lead {
  text-align: center;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
  max-width: 24ch;
  margin: 0 auto 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-icon {
  font-size: 28px;
}

.card h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ---------------- The Loop ---------------- */
.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin: 0 0 40px;
}

.loop-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.loop-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.loop-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.14);
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.loop-emoji {
  font-size: 24px;
  flex: none;
}

.loop-steps p {
  margin: 0;
  font-size: 16px;
}

/* ---------------- Examples ---------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--text);
}

/* ---------------- Final CTA ---------------- */
.final-cta {
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 800;
  margin: 0 0 12px;
}

.final-cta p {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 17px;
}

.coming-soon {
  margin-top: 22px !important;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 20px 56px;
}

.footer-tagline {
  color: var(--muted);
  max-width: 40ch;
  margin: 12px auto;
  font-size: 15px;
}

.footer-legal {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* ---------------- Hero promo video ---------------- */
.hero-video-wrap {
  margin: 44px auto 0;
  width: min(320px, 80vw);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ---------------- Real moments strip ---------------- */
.moments-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.moments-track::-webkit-scrollbar {
  height: 6px;
}
.moments-track::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 999px;
}

.moment {
  flex: 0 0 auto;
  width: 160px;
  margin: 0;
  scroll-snap-align: start;
}

.moment img {
  display: block;
  width: 160px;
  height: 284px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------------- Screenshots gallery ---------------- */
.shots {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots::-webkit-scrollbar {
  height: 6px;
}
.shots::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 999px;
}

.shot {
  flex: 0 0 auto;
  width: 230px;
  margin: 0;
  text-align: center;
  scroll-snap-align: center;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  section {
    padding: 48px 20px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .waitlist {
    flex-direction: column;
  }
  .btn-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn-primary:hover {
    transform: none;
  }
}
