/* ===== Variables & Reset ===== */
:root {
  --blue: #2c6bed;
  --blue-dark: #1e4fc4;
  --blue-soft: #e8f0fe;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --ease: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(44, 107, 237, .3);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 16px;
}

.text-link:hover { text-decoration: underline; }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(15, 23, 42, .04);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-menu a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color var(--ease), background var(--ease);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-cta {
  display: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

.nav-cta:hover { background: var(--blue-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
  background: linear-gradient(180deg, #f0f5ff 0%, #fff 60%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.lead {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: .45;
  pointer-events: none;
}

.orb-a {
  width: 260px;
  height: 260px;
  background: #93c5fd;
  top: 5%;
  left: 0;
}

.orb-b {
  width: 200px;
  height: 200px;
  background: #c4b5fd;
  bottom: 8%;
  right: 0;
}

/* Two real phone mockups */
.phone-stack {
  position: relative;
  width: 360px;
  height: 440px;
  z-index: 1;
}

.phone-img {
  position: absolute;
  width: 230px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(15, 23, 42, .28));
  user-select: none;
  pointer-events: none;
}

.phone-back {
  left: 0;
  top: 36px;
  transform: rotate(-7deg);
  z-index: 1;
}

.phone-front {
  right: 0;
  top: 0;
  transform: rotate(5deg);
  z-index: 2;
}

/* Why */
.why {
  padding: 72px 0;
}

.why-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
}

.why h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.why h2 span { color: var(--blue); }

.why p {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 520px;
  line-height: 1.7;
}

/* Features */
.features {
  padding: 0 0 72px;
}

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

.feature-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card.dark {
  background: #0f172a;
  color: #e2e8f0;
}

.feature-card.blue {
  background: var(--blue);
  color: #fff;
}

.feature-card.light {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.num {
  font-size: 13px;
  font-weight: 700;
  opacity: .6;
}

.icon {
  font-size: 22px;
  opacity: .9;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: .95rem;
  opacity: .85;
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
}

.card-link:hover { text-decoration: underline; }

.feature-card.dark .card-link,
.feature-card.blue .card-link { color: #fff; }

.feature-card.light .card-link { color: var(--blue); }

/* Statement */
.statement {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
}

.statement .eyebrow {
  color: #93c5fd;
}

.statement h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.statement p {
  font-size: 1.05rem;
  opacity: .8;
  max-width: 400px;
  margin: 0 auto;
}

/* Groups */
.groups {
  padding: 80px 0;
}

.groups-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.groups h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.groups h2 span { color: var(--blue); }

.groups p {
  color: var(--ink-2);
  max-width: 420px;
  line-height: 1.7;
}

.chat-stack {
  position: relative;
  height: 220px;
}

.stack-card {
  position: absolute;
  left: 50%;
  width: 280px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--ease);
}

.stack-card span {
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}

.stack-card.c1 {
  top: 0;
  transform: translateX(-50%) rotate(-3deg);
  z-index: 3;
}

.stack-card.c2 {
  top: 56px;
  transform: translateX(-42%) rotate(2deg);
  z-index: 2;
}

.stack-card.c3 {
  top: 112px;
  transform: translateX(-58%) rotate(-1deg);
  z-index: 1;
}

/* Download */
.download {
  padding: 80px 0;
  background: var(--bg-soft);
  text-align: center;
}

.download h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.download h2 span { color: var(--blue); }

.download-lead {
  color: var(--ink-2);
  margin-bottom: 28px;
}

.dl-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.dl-btn b {
  color: var(--blue);
  font-weight: 700;
}

.dl-btn:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* FAQ */
.faq {
  padding: 64px 0 80px;
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  transition: background var(--ease);
}

.faq-item button:hover { background: #fafafa; }

.plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform var(--ease), opacity var(--ease);
}

.plus::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
}

.plus::after {
  top: 2px;
  left: 8px;
  width: 2px;
  height: 14px;
}

.faq-item.open .plus::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-item.open .faq-answer { max-height: 160px; }

.faq-answer p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

.faq-answer a {
  color: var(--blue);
  font-weight: 500;
}

.faq-answer a:hover { text-decoration: underline; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.footer .logo { font-size: 1rem; }

.footer-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--ease);
}

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

.copyright {
  font-size: 13px;
  color: var(--muted);
  width: 100%;
}

/* Back top & Toast */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(44, 107, 237, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--ease);
  z-index: 50;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--blue-dark); }

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .groups-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lead { margin-left: auto; margin-right: auto; }

  .hero-art { order: -1; min-height: 360px; }

  .phone-stack {
    width: 300px;
    height: 360px;
  }

  .phone-img { width: 190px; }

  .phone-back { top: 28px; }
  .phone-front { top: 0; }

  .why-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why p { margin: 0 auto; }

  .groups p { margin: 0 auto; }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .chat-stack {
    height: 200px;
    margin: 0 auto;
    max-width: 320px;
  }

  .stack-card {
    left: 50%;
    width: 260px;
  }
}

@media (max-width: 640px) {
  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 16px;
  }

  .menu-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .why, .features, .groups, .download, .faq {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}

@media (min-width: 901px) {
  .nav-cta { display: inline-flex; }
}
