/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #f8faff;
  --bg-card:     #ffffff;
  --bg-subtle:   #f0f4ff;
  --border:      #dce3f5;
  --green:       #16a34a;
  --green-dim:   #15803d;
  --green-glow:  rgba(22,163,74,0.12);
  --text:        #0f172a;
  --text-muted:  #475569;
  --text-dim:    #94a3b8;
  --accent:      #7c3aed;
  --radius:      12px;
  --radius-sm:   8px;
  --font:        system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.3; }
p  { color: var(--text-muted); }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section + .section { border-top: 1px solid var(--border); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,255,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
}
.btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(22,163,74,0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-glow); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(22,163,74,0.18) 0%, rgba(124,58,237,0.06) 50%, transparent 75%);
  pointer-events: none;
}

.hero .label { margin-bottom: 1.25rem; }

.hero h1 { margin-bottom: 1.25rem; }

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

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Strip ────────────────────────────────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-block: 1.5rem;
}

.strip-inner {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.strip-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.strip-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Cards / Grid ─────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

.card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,0.12); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-glow);
  border: 1.5px solid rgba(22,163,74,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 0.5rem; color: var(--text); }
.card p  { font-size: 0.9rem; line-height: 1.6; }

/* ── Section header ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .label { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  max-width: 520px;
  margin-inline: auto;
  font-size: 1rem;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

.step h3 { color: var(--text); }
.step p  { font-size: 0.9rem; }

/* ── Use cases ────────────────────────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.usecase {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.usecase:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,0.1); }

.usecase-persona {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.usecase h3 { color: var(--text); margin-bottom: 0.5rem; }
.usecase p  { font-size: 0.9rem; }

/* ── CTA strip ────────────────────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 100%, rgba(22,163,74,0.12) 0%, rgba(124,58,237,0.05) 60%, transparent 80%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p  { margin-bottom: 2rem; }

/* ── Feature detail ───────────────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }

@media (max-width: 720px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; direction: ltr; }
  .feature-row.flip > * { direction: ltr; }
}

.feature-text .label { margin-bottom: 0.6rem; }
.feature-text h2 { margin-bottom: 0.75rem; }
.feature-text p  { margin-bottom: 1.25rem; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.feature-visual {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

/* ── Mock UI snippets ─────────────────────────────────────────────────────── */
.mock-message {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.mock-message.inbound { border-left: 3px solid var(--text-dim); }
.mock-message.outbound { border-left: 3px solid var(--green); }
.mock-message.ai { border-left: 3px solid #7c3aed; }

.mock-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.mock-label.inbound  { color: var(--text-dim); }
.mock-label.outbound { color: var(--green); }
.mock-label.ai       { color: #a78bfa; }

.mock-text { color: var(--text); }

.mock-rule {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mock-rule-keyword { color: var(--green); font-weight: 600; font-family: monospace; font-size: 0.8rem; }
.mock-rule-arrow   { color: var(--text-dim); }
.mock-rule-reply   { color: var(--text-muted); font-size: 0.8rem; }

.mock-route-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.mock-route-row:last-child { border-bottom: none; }

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-dot.green  { background: var(--green); }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.gray   { background: var(--text-dim); }

.mock-number { color: var(--text); }
.mock-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--green-glow);
  color: var(--green);
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}

.pricing-card.featured {
  border-color: var(--green);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.9rem;
  border-radius: 0 0 8px 8px;
}

.pricing-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.87rem;
  margin-bottom: 1.75rem;
  min-height: 2.8em;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-features li .check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li .cross { color: var(--text-dim); font-weight: 700; flex-shrink: 0; }

.pricing-cta { width: 100%; justify-content: center; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}

.faq-q {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-a {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
}

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

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Language switcher ────────────────────────────────────────────────────── */
#lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  font-family: var(--font);
}
#lang-toggle:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
