/* ============================================
   BabelBridge — Warm Sanctuary
   ============================================ */

:root {
  --blue: #4A90E2;
  --blue-dark: #2E5C8A;
  --blue-light: #7EB3F0;
  --blue-mist: #E8F0FA;
  --gold: #E8B44C;
  --gold-light: #F5DFA3;
  --cream: #FBF8F3;
  --text: #2D3748;
  --text-light: #64748B;
  --white: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--blue-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue-dark); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: all 0.3s;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 28px 80px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 60px;
}

.hero-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: breathe 8s ease-in-out infinite;
}

.hero-orb--blue {
  width: 500px; height: 500px;
  background: var(--blue-light);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.hero-orb--gold {
  width: 400px; height: 400px;
  background: var(--gold-light);
  bottom: -50px; left: -50px;
  animation-delay: -3s;
}

.hero-orb--soft {
  width: 300px; height: 300px;
  background: var(--blue-mist);
  top: 40%; left: 40%;
  animation-delay: -5s;
}

@keyframes breathe {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(10px, -10px); }
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-mist);
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease-out) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--blue);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.hero-proof-item { text-align: center; }
.hero-proof-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.hero-proof-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.hero-proof-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--blue-light), transparent);
}

/* ============================================
   Phone Mockup
   ============================================ */

.hero-visual {
  flex: 0 0 320px;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

.phone-frame {
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 20px 60px rgba(46, 92, 138, 0.2),
    0 4px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.phone-frame:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  min-height: 480px;
}

.phone-header {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  padding: 40px 20px 16px;
  text-align: center;
}

.phone-status {
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.phone-conversation { padding: 20px 16px; }

.msg {
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.msg-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  opacity: 0.6;
}

.msg--original {
  background: #F1F5F9;
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.msg--translated {
  background: linear-gradient(135deg, var(--blue), #5A9DE8);
  color: white;
  border-bottom-right-radius: 6px;
}

.msg--translated .msg-label { opacity: 0.8; }

.msg-bridge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  justify-content: center;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #E2E8F0;
}

.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* ============================================
   Sections
   ============================================ */

.section { padding: 100px 0; }
.section--cream { background: var(--cream); }

.section--blue {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: white;
}

.bridge-divider {
  margin-top: -2px;
  line-height: 0;
}

.bridge-divider svg { width: 100%; height: auto; display: block; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title em { font-style: italic; color: var(--blue); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================
   Steps (How It Works)
   ============================================ */

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.step {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  opacity: 0; transform: translateY(30px);
}

.step.in-view { opacity: 1; transform: translateY(0); transition-duration: 0.7s; }
.step:nth-child(3).in-view { transition-delay: 0.1s; }
.step:nth-child(5).in-view { transition-delay: 0.2s; }

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(74, 144, 226, 0.12);
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.step-icon { margin-bottom: 20px; }

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--blue-dark);
}

.step-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 80px;
  opacity: 0.4;
}

/* ============================================
   Features Grid
   ============================================ */

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

.feature {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  opacity: 0; transform: translateY(24px);
  position: relative;
  overflow: hidden;
}

.feature.in-view { opacity: 1; transform: translateY(0); transition-duration: 0.6s; }
.feature:nth-child(2).in-view { transition-delay: 0.05s; }
.feature:nth-child(3).in-view { transition-delay: 0.1s; }
.feature:nth-child(4).in-view { transition-delay: 0.15s; }
.feature:nth-child(5).in-view { transition-delay: 0.2s; }

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.feature--wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-mist), #F0F4FA);
}

.feature-accent {
  flex: 0 0 4px;
  align-self: stretch;
  background: linear-gradient(to bottom, var(--blue), var(--gold));
  border-radius: 4px;
}

.feature-icon { margin-bottom: 20px; }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--blue-dark);
}

.feature-desc { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }
.feature-desc strong { color: var(--text); font-weight: 500; }

.feature-layers {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.layer {
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.layer--1 { background: #FECACA; color: #991B1B; }
.layer--2 { background: #FED7AA; color: #9A3412; }
.layer--3 { background: #FEF08A; color: #854D0E; }
.layer--4 { background: #BBF7D0; color: #166534; }
.layer--5 { background: #BFDBFE; color: #1E40AF; }

/* ============================================
   Quote
   ============================================ */

.quote {
  text-align: center;
  padding: 20px 0;
  opacity: 0; transform: translateY(20px);
  transition: all 0.7s var(--ease-out);
}

.quote.in-view { opacity: 1; transform: translateY(0); }

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 20px;
  opacity: 0.95;
}

.quote cite {
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  opacity: 0; transform: translateY(16px);
  transition: all 0.5s var(--ease-out);
}

.faq-item.in-view { opacity: 1; transform: translateY(0); }
.faq-item:nth-child(2).in-view { transition-delay: 0.05s; }
.faq-item:nth-child(3).in-view { transition-delay: 0.1s; }
.faq-item:nth-child(4).in-view { transition-delay: 0.15s; }
.faq-item:nth-child(5).in-view { transition-delay: 0.2s; }
.faq-item:nth-child(6).in-view { transition-delay: 0.25s; }

.faq-question {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-item[open] .faq-question { color: var(--blue-dark); }

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-answer a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================
   CTA
   ============================================ */

.section--cta {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-mist) 100%);
  text-align: center;
  padding: 100px 0 120px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }
.cta-note { font-size: 0.82rem; color: var(--text-light); margin-top: 20px; }

/* ============================================
   Support
   ============================================ */

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.support-grid > div {
  opacity: 0; transform: translateY(20px);
  transition: all 0.6s var(--ease-out);
}

.support-grid > div.in-view { opacity: 1; transform: translateY(0); }
.support-grid > div:nth-child(2).in-view { transition-delay: 0.1s; }

.support-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.support-desc { font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; }

.support-email {
  display: inline-block;
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid var(--blue-light);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.support-email:hover { border-color: var(--blue-dark); }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer .nav-logo { color: white; font-size: 1.1rem; }

.footer-tagline { font-size: 0.82rem; margin-top: 4px; opacity: 0.5; }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-legal { font-size: 0.78rem; opacity: 0.4; }

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 28px 60px;
    min-height: auto;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-proof { justify-content: center; }

  .hero-visual { flex: none; width: 280px; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .feature--wide { flex-direction: column; }

  .support-grid { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 28px;
    gap: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-title { font-size: 2.4rem; }
  .hero-visual { width: 260px; }
  .phone-frame { border-radius: 28px; padding: 8px; }
  .phone-screen { border-radius: 22px; min-height: 400px; }

  .section { padding: 72px 0; }
  .feature { padding: 28px 24px; }
}
