:root {
  --bg: #0c0d10;
  --bg-soft: #14161b;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3efe6;
  --muted: #b9b2a6;
  --accent: #d67a3c;
  --accent-soft: #f0c48a;
  --accent-cool: #9db7c3;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
  --font-ui: "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --body-letter-spacing: 0;
  --ui-letter-spacing: 0.06em;
  --hero-max: 11ch;
  --hero-size: clamp(54px, 8vw, 96px);
  --hero-line: 0.98;
  --section-size: clamp(34px, 5vw, 56px);
  --card-title-size: 28px;
  --body-size: 16px;
  --hero-body-size: 17px;
  --body-line: 1.8;
}

html[lang="ja"] {
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-ui: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Yu Mincho", "Hiragino Mincho ProN", "BIZ UDPMincho", serif;
  --body-letter-spacing: 0.02em;
  --ui-letter-spacing: 0.08em;
  --hero-max: 12ch;
  --hero-size: clamp(46px, 7.2vw, 82px);
  --hero-line: 1.08;
  --section-size: clamp(30px, 4.4vw, 48px);
  --card-title-size: 25px;
  --body-size: 15px;
  --hero-body-size: 16px;
  --body-line: 1.95;
}

html[lang="zh-CN"] {
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --body-letter-spacing: 0.01em;
  --ui-letter-spacing: 0.04em;
  --hero-max: 10ch;
  --hero-size: clamp(48px, 7.4vw, 86px);
  --hero-line: 1.04;
  --section-size: clamp(31px, 4.6vw, 50px);
  --card-title-size: 26px;
  --body-size: 16px;
  --hero-body-size: 16px;
  --body-line: 1.9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  letter-spacing: var(--body-letter-spacing);
  background:
    radial-gradient(circle at top left, rgba(214, 122, 60, 0.16), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(157, 183, 195, 0.12), transparent 18%),
    linear-gradient(180deg, #111216 0%, #0c0d10 100%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  backdrop-filter: blur(18px);
  background: rgba(12, 13, 16, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: var(--ui-letter-spacing);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 24px rgba(214, 122, 60, 0.4);
}

.brand-text {
  font-size: 14px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.lang-button {
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-ui);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: calc(var(--ui-letter-spacing) * 0.7);
  box-shadow: none;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: var(--text);
  border-color: var(--line);
}

.lang-button.is-active {
  background: linear-gradient(135deg, var(--accent), #9b4a2b);
  color: #fff7ed;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: var(--ui-letter-spacing);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.hero,
.section,
.newsletter {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  padding: 62px 0 38px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: calc(var(--ui-letter-spacing) + 0.08em);
  text-transform: uppercase;
}

.hero h1,
.section h2,
.signal-card strong,
.mini-grid h2,
.app-card h3,
.info-card h3,
.value-card h3,
.fly-step h3,
.contact-note h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero h1,
.section h2 {
  margin: 0;
}

.hero h1 {
  max-width: var(--hero-max);
  font-size: var(--hero-size);
  line-height: var(--hero-line);
  text-wrap: balance;
}

.section h2 {
  line-height: 1.08;
  text-wrap: balance;
}

.hero-text,
.section-note,
.info-card p,
.fly-step p,
.value-card p,
.newsletter-copy p,
.signal-card p,
.mini-grid p,
.founder-card p,
.app-card p,
.contact-note p {
  color: var(--muted);
  line-height: var(--body-line);
}

.hero-text {
  max-width: 61ch;
  margin: 24px 0 0;
  font-size: var(--hero-body-size);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 15px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: var(--ui-letter-spacing);
}

.primary-link {
  background: linear-gradient(135deg, var(--accent), #9b4a2b);
  color: #fff7ed;
  box-shadow: 0 18px 36px rgba(214, 122, 60, 0.2);
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.text-link {
  text-decoration: none;
  color: var(--accent-soft);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: calc(var(--ui-letter-spacing) * 0.7);
}

.hero-panel,
.signal-card,
.info-card,
.fly-step,
.value-card,
.newsletter-panel,
.founder-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
  border-radius: 30px;
}

.signal-card {
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(214, 122, 60, 0.12), rgba(157, 183, 195, 0.08)),
    var(--panel-strong);
}

.signal-label {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: calc(var(--ui-letter-spacing) + 0.06em);
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  font-size: 32px;
  line-height: 1.22;
  text-wrap: balance;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini-grid article {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.mini-grid span,
.fly-step span {
  color: var(--accent-cool);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: calc(var(--ui-letter-spacing) + 0.04em);
}

.mini-grid h2 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.section,
.newsletter {
  padding: 66px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: var(--section-size);
}

.vision-grid,
.value-grid,
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.value-card,
.founder-card {
  padding: 24px;
  border-radius: 26px;
}

.info-card h3,
.value-card h3,
.contact-note h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.24;
}

.section-dark {
  padding: 78px 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    transparent;
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(240, 196, 138, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.app-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.app-type {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cool);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ui-letter-spacing);
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0 0 10px;
  font-size: var(--card-title-size);
  line-height: 1.22;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #ded8ce;
  font-size: 12px;
}

.founder-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.founder-story {
  display: grid;
  gap: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.founder-story p:first-child {
  margin-top: 0;
}

.founder-story p:last-child {
  margin-bottom: 0;
}

.flywheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fly-step {
  padding: 22px;
  border-radius: 24px;
}

.fly-step span {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 13px;
}

.fly-step h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.24;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 22px;
  align-items: start;
}

.newsletter-panel {
  padding: 24px;
  border-radius: 28px;
}

.contact-note {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.community-stat {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.community-stat span {
  color: var(--muted);
  font-size: 14px;
}

.community-stat strong {
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: var(--body-letter-spacing);
  outline: none;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(240, 196, 138, 0.08);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent), #9b4a2b);
  color: #fff7ed;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--ui-letter-spacing);
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b6f1cf;
  font-size: 14px;
}

.message.error {
  color: #ffbbb6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 42px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .hero,
  .founder-layout,
  .newsletter,
  .flywheel,
  .vision-grid,
  .value-grid,
  .apps-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .hero-actions,
  .language-switcher,
  .signup-form {
    width: 100%;
  }

  .language-switcher {
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .newsletter {
    width: min(100%, calc(100% - 28px));
  }

  .hero {
    padding-top: 38px;
  }

  .community-stat {
    flex-direction: column;
    align-items: flex-start;
  }
}
