/* Chato marketing landing page styles */

:root {
  --navy:    #0A1628;
  --surface: #142033;
  --card:    #1A2D4A;
  --aqua:    #5ED6D3;
  --coral:   #FF8A7A;
  --text:    #F5F5F7;
  --muted:   rgba(245,245,247,0.55);
  --rule:    rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Nav ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(10,22,40,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.lang-picker {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
}
.lang-picker button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.lang-picker button:hover { color: var(--text); }
.lang-picker button.active {
  background: var(--aqua);
  color: var(--navy);
  font-weight: 700;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-aqua {
  width: 640px; height: 640px;
  top: -120px; left: -120px;
  background: radial-gradient(ellipse, rgba(94,214,211,0.18) 0%, transparent 70%);
  animation: driftA 11s ease-in-out infinite alternate;
}
.glow-coral {
  width: 500px; height: 500px;
  bottom: -80px; right: -80px;
  background: radial-gradient(ellipse, rgba(255,138,122,0.14) 0%, transparent 70%);
  animation: driftB 14s ease-in-out infinite alternate;
}
.glow-center {
  width: 700px; height: 400px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(94,214,211,0.1) 0%, transparent 70%);
}

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.04); }
}
@keyframes driftB {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, -50px) scale(1.05); }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  max-width: 1100px;
  width: 100%;
}

@media (min-width: 800px) {
  .hero-inner {
    flex-direction: row;
    gap: 72px;
    align-items: center;
  }
}

.hero-text { flex: 1; max-width: 520px; }

.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
}
.hero-app-badge img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero-headline em {
  font-style: normal;
  color: var(--aqua);
}

.hero-subtext {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--muted);
  line-height: 1.58;
  margin-bottom: 40px;
  max-width: 400px;
}

/* ---- Download button ---- */

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0A1628;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(94,214,211,0.3);
}
.download-btn svg { flex-shrink: 0; }

/* ---- Device shot (screenshot pre-composited into the iPhone mockup) ---- */

.device-shot {
  width: 100%;
  display: block;
  /* Soft drop shadow + brand glow hugging the rounded device silhouette */
  filter:
    drop-shadow(0 40px 70px rgba(0,0,0,0.5))
    drop-shadow(0 0 50px rgba(94,214,211,0.12));
}

.hero-device {
  flex-shrink: 0;
  width: min(250px, 60vw);
}

/* ---- Feature sections ---- */

.features {
  padding: 80px 32px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-direction: column;
}

@media (min-width: 800px) {
  .feature { flex-direction: row; }
  .feature.reverse { flex-direction: row-reverse; }
}

.feature-device {
  flex-shrink: 0;
  width: min(210px, 55vw);
}

.feature-text { flex: 1; }

.feature-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}

.feature-headline {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.feature-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.62;
  max-width: 400px;
}

/* ---- Languages grid ---- */

.languages-section {
  padding: 100px 32px;
  text-align: center;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 14px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 52px;
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.lang-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 18px;
  min-width: 92px;
  transition: border-color 0.15s, background 0.15s;
}
.lang-chip:hover {
  background: var(--card);
  border-color: rgba(94,214,211,0.3);
}
.lang-chip-native {
  font-size: 15px;
  font-weight: 600;
}
.lang-chip-en {
  font-size: 11px;
  color: var(--muted);
}

/* ---- CTA ---- */

.cta-section {
  position: relative;
  padding: 120px 32px;
  text-align: center;
  overflow: hidden;
}

.cta-headline {
  position: relative;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.cta-sub {
  position: relative;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---- Footer ---- */

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 60px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ---- Legal content ---- */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.legal-content .updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  color: rgba(245,245,247,0.75);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal-content li { margin-bottom: 8px; }

.legal-content a {
  color: var(--aqua);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }

.legal-content strong {
  font-weight: 600;
  color: var(--text);
}

.legal-content em { font-style: italic; }

.legal-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--aqua);
}

.legal-content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

/* ---- Language switching ---- */

[data-section][lang]        { display: none; }
[data-section-inline][lang] { display: none; }

body[data-lang="en"]      [data-section][lang="en"]        { display: block; }
body[data-lang="zh-Hant"] [data-section][lang="zh-Hant"]   { display: block; }
body[data-lang="ja"]      [data-section][lang="ja"]        { display: block; }

body[data-lang="en"]      [data-section-inline][lang="en"]       { display: inline; }
body[data-lang="zh-Hant"] [data-section-inline][lang="zh-Hant"]  { display: inline; }
body[data-lang="ja"]      [data-section-inline][lang="ja"]       { display: inline; }
