:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #eff4ff;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --whatsapp: #25d366;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
}

html[lang="ka"] {
  --font: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Noto Serif Georgian", "Noto Sans Georgian", Georgia, serif;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html[lang="ka"] body {
  line-height: 1.75;
  letter-spacing: 0.01em;
}

h1, h2, h3, .logo, .hero h1, .section h2, .monthLabel {
  font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.container.narrow { max-width: 800px; }

.center { text-align: center; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-right: auto;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--primary); }

.site-nav a.nav-login {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.site-nav a.nav-login:hover {
  color: #fff;
  opacity: 0.92;
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: 10px;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--surface-alt);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 70%);
}

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

.eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

html[lang="ka"] .hero h1 {
  letter-spacing: 0;
  font-weight: 600;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border);
}

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

.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Phone mock */
.phone-mock {
  background: #0f172a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow), 0 24px 48px rgba(15, 23, 42, 0.2);
  max-width: 280px;
  margin-inline: auto;
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 20px 14px;
  min-height: 420px;
}

.mock-header {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 12px;
}

.mock-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.mock-tabs button {
  border: none;
  background: transparent;
  padding: 10px 4px;
  text-align: center;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.mock-tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.mock-tabs span {
  padding: 10px 4px;
  text-align: center;
  color: var(--text-muted);
}

.mock-tabs span.on {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.phone-mock-wrap {
  max-width: 300px;
  margin-inline: auto;
}

.mock-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.mock-card.muted { opacity: 0.85; }

.mock-route { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }

.mock-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }

.mock-wa {
  background: var(--whatsapp);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* WhatsApp demo */
.whatsapp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.whatsapp-demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.wa-card-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.wa-card-badge.logistics {
  background: #ecfdf5;
  color: #047857;
}

.wa-who {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 600;
}

.wa-prefill-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 12px 0 8px;
}

.wa-prefill-box {
  background: #e7fce8;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #14532d;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.wa-prefill-box.sm {
  font-size: 0.72rem;
  padding: 10px;
  margin-bottom: 10px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}

.wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.wa-btn.sm {
  font-size: 0.75rem;
  padding: 8px 10px;
}

.whatsapp-demo-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

.sm-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Stats */
.stats-bar {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Sections */
.section { padding: 72px 0; }

.section-alt { background: var(--surface-alt); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

html[lang="ka"] .section h2 {
  font-weight: 600;
  line-height: 1.35;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 32px;
  max-width: 680px;
}

.center .section-lead { margin-inline: auto; }

/* Account cards */
.account-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.account-card.highlight {
  border-color: var(--primary);
  background: var(--primary-light);
}

.account-icon { font-size: 2rem; margin-bottom: 12px; }

.account-card h3 { margin: 0 0 8px; font-size: 1.05rem; }

.account-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Structure */
.structure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.structure-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.structure-card h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.structure-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.structure-card li { margin-bottom: 8px; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.process-step h3 { margin: 0 0 8px; font-size: 1rem; }

.process-step p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* Modules */
.module-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.module-block.reverse .module-info { order: 2; }
.module-block.reverse .screen-mock { order: 1; }

.module-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.module-info h3 {
  font-size: 1.5rem;
  margin: 8px 0 12px;
}

.module-info p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.feature-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-chips li {
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Screen mocks */
.screen-mock {
  background: #0f172a;
  border-radius: 28px;
  padding: 10px;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.screen-mock-inner {
  background: var(--bg);
  border-radius: 22px;
  padding: 16px;
  height: 100%;
  min-height: 340px;
}

.sm-title { font-weight: 700; margin-bottom: 12px; font-size: 0.95rem; }

.sm-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sm-route { font-weight: 700; margin-bottom: 4px; }

.sm-badge {
  display: inline-block;
  background: var(--surface-alt);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  margin-right: 4px;
}

.sm-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

.sm-tabs span { color: var(--text-muted); }
.sm-tabs span.on { color: var(--primary); }

.sm-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 3px;
  margin: 12px 0;
  font-size: 0.72rem;
  font-weight: 600;
}

.sm-segment span {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-muted);
}

.sm-segment span.on {
  background: var(--surface);
  color: var(--primary);
}

/* Download */
.download-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--primary-light) 100%);
}

.download-meta {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-card strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #94a3b8;
  padding: 24px 0;
  font-size: 0.85rem;
}

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

.footer-inner .logo { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .structure-grid,
  .module-block,
  .module-block.reverse {
    grid-template-columns: 1fr;
  }

  .module-block.reverse .module-info,
  .module-block.reverse .screen-mock { order: unset; }

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

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

  .account-cards { grid-template-columns: 1fr; }

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

  .whatsapp-demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, var(--max)); }

  .menu-toggle { display: block; order: 2; }

  .logo { font-size: 1.15rem; order: 1; flex: 1; min-width: 0; }

  .lang-switch { order: 3; margin-left: 0; }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    position: static;
    background: var(--surface);
    flex-direction: column;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    box-shadow: none;
    gap: 4px;
  }

  .site-nav a {
    padding: 12px 4px;
    font-size: 1rem;
  }

  .site-nav.open { display: flex; }

  .hero { padding-top: 32px; }

  .hero-grid { gap: 28px; }

  .hero-lead { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-visual { order: -1; }

  .phone-mock { max-width: min(260px, 88vw); }

  .phone-screen { min-height: 360px; }

  .whatsapp-demo-card { padding: 18px; }

  .wa-btn {
    min-height: 48px;
    width: 100%;
  }

  .btn-lg {
    width: 100%;
    max-width: 360px;
    min-height: 52px;
  }

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

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .stat strong { font-size: 1.6rem; }

  .section { padding: 40px 0; }

  .module-block { gap: 28px; margin-bottom: 48px; }

  .screen-mock { min-height: 300px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .lang-switch button { padding: 6px 7px; font-size: 0.7rem; }

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