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

:root {
  --green: #1e3a5f;
  --green-dark: #152d4a;
  --green-light: #e8eef5;
  --gold: #b8860b;
  --gold-light: #fdf6e3;
  --text: #1a1a2e;
  --text-secondary: #3d3d5c;
  --text-muted: #6b6b8a;
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --bg-alt: #f3f1ed;
  --bg-dark: #1a1a2e;
  --border: #e5e2db;
  --border-light: #eeebe5;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --max-width: 1080px;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section--dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text);
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

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

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.nav-link--active {
  color: var(--green);
  font-weight: 600;
}

.nav-login {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-login:hover {
  color: var(--text);
  border-color: var(--text);
}

.nav-cta {
  display: inline-block;
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
  margin-left: 4px;
}

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

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

.nav-hamburger svg {
  display: block;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile .nav-link {
  padding: 12px 14px;
  font-size: 1rem;
}

.nav-mobile .nav-login {
  margin-top: 8px;
  text-align: center;
}

.nav-mobile .nav-cta {
  margin: 8px 0 0;
  text-align: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn--outline:hover {
  background: var(--green-light);
}

.btn--white {
  background: #fff;
  color: var(--green);
}

.btn--white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn--full {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-proof {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Cards Grid ===== */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step-counter;
}

.step {
  text-align: center;
  counter-increment: step-counter;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  padding: 32px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--green);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  padding: 64px 0;
  background: var(--bg-dark);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  margin-bottom: 24px;
}

.cta-banner .cta-trust {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.cta-banner .btn--white {
  font-size: 1.05rem;
  padding: 16px 36px;
}

/* ===== Early Access Callout ===== */
.callout {
  background: var(--gold-light);
  border: 1px solid #e8d5a0;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 680px;
  margin: 0 auto;
}

.callout h3, .callout .callout-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.callout > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.callout ul {
  margin-bottom: 20px;
}

.callout li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.callout li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ===== Pricing Cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  border-color: var(--green);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Check list */
.check-list {
  margin-bottom: 24px;
  flex: 1;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--green-light);
  border-radius: 50%;
}

.check-list li::after {
  content: "\2713";
  position: absolute;
  left: 3px;
  top: 4px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.pricing-footer-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ===== FAQ Accordion ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover {
  color: var(--green);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Page Header ===== */
.page-header {
  padding: 64px 0 48px;
  text-align: center;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--text);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ===== Product Feature Sections ===== */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.feature-section:nth-child(even) {
  direction: rtl;
}

.feature-section:nth-child(even) > * {
  direction: ltr;
}

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.feature-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-visual {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  min-height: 200px;
}

/* ===== Scenario cards ===== */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.scenario-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.scenario-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.scenario-card-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.scenario-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.scenario-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.8rem; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }

  .feature-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-section:nth-child(even) {
    direction: ltr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .page-header h1 { font-size: 2rem; }

  .callout { padding: 28px 24px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Chat Widget — floating button ===== */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 100;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Chat menu popup */
.chat-menu {
  position: fixed;
  bottom: 88px;
  right: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 101;
  min-width: 180px;
}

.chat-menu.hidden { display: none; }

.chat-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.chat-menu-item:hover { background: var(--bg-warm); }
.chat-menu-item + .chat-menu-item { border-top: 1px solid var(--border); }

/* Voice call overlay */
.voice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.voice-overlay.hidden { display: none; }

.voice-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.voice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.voice-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.voice-name {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 4px 0 20px;
}

.voice-end {
  padding: 10px 32px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.voice-end:hover { background: #b91c1c; }

/* Text chat panel */
.chat-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 360px;
  max-height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  z-index: 150;
  overflow: hidden;
}

.chat-panel.hidden { display: none; }

.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.7;
}

.chat-panel-close:hover { opacity: 1; }

.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 360px;
}

.chat-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-msg-assistant {
  background: #f3f4f6;
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  background: var(--green);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-panel-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.chat-panel-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.chat-panel-input input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(30,58,95,0.15);
}

.chat-panel-input input:disabled {
  background: #f9fafb;
  color: #9ca3af;
}

.chat-panel-input button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel-input button:hover { background: var(--green-dark); }
.chat-panel-input button:disabled { background: #9ca3af; cursor: not-allowed; }

@media (max-width: 420px) {
  .chat-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 80px;
  }
}
