/* ============================================================
   Landing — მოდერნული SaaS სტილი (სუფთა)
   ბრენდი: ChatAssist (placeholder — შეცვლა ერთ ადგილას, იხ. landing.html)
   ============================================================ */

:root {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-light: #eef2ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ok: #16a34a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, .07), 0 10px 24px -8px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -16px rgba(79, 70, 229, .25);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Georgian", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.hidden { display: none !important; }

/* ---------- ღილაკები ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(99, 102, 241, .7); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 22px -6px rgba(99, 102, 241, .8); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #cbd5e1; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- ჰედერი / ნავიგაცია ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #fff; font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a.navlink:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 55% at 80% -5%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(50% 50% at 10% 10%, rgba(99, 102, 241, .14), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 76px 0 84px;
}
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  color: var(--brand-dark); background: var(--brand-light); border: 1px solid #dfe3ff;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 18px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), #8b5cf6); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.16rem; color: var(--muted); margin: 0 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }

/* Hero mock chat */
.chat-mock {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 18px; max-width: 380px; margin-left: auto;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #8b5cf6); display: grid; place-items: center; color: #fff; }
.chat-head .who { font-weight: 700; font-size: .95rem; }
.chat-head .stat { font-size: .78rem; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.chat-head .stat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.bubbles { display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 10px 14px; border-radius: 15px; font-size: .92rem; max-width: 82%; }
.bubble.in { background: var(--bg-soft); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }

/* ---------- სექციები ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.025em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Features grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.4rem; background: var(--brand-light); margin-bottom: 16px;
}
.feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(99, 102, 241, .7);
}
.step h3 { margin: 0 0 8px; font-size: 1.14rem; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); transform: scale(1.03); }
.price-card .pop {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; letter-spacing: .02em;
}
.price-card .plan { font-weight: 700; font-size: 1.05rem; color: var(--muted); }
.price-card .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; min-height: 40px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-card li { font-size: .93rem; display: flex; align-items: flex-start; gap: 9px; }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 800; flex-shrink: 0; }
.price-card li.off { color: #94a3b8; }
.price-card li.off::before { content: "–"; color: #cbd5e1; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand-dark), #7c3aed); color: #fff; border-radius: 24px; padding: 56px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; letter-spacing: -.02em; }
.cta-band p { margin: 0 0 26px; opacity: .92; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #f1f5f9; }

/* ---------- იურიდიული გვერდები (Privacy / Terms) ---------- */
.legal { padding: 56px 0 72px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.025em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 0 0 34px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; letter-spacing: -.01em; }
.legal p, .legal li { color: #334155; font-size: 1rem; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--brand-dark); font-weight: 600; }
.legal .back { display: inline-block; margin-top: 40px; }
.confirm-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 16px 20px; margin: 0 0 28px; }
.confirm-box b { color: #065f46; }
.confirm-box p { margin: 8px 0 0; color: #334155; }
.confirm-box .conf-code { margin-top: 12px; }
.legal code { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 1.05rem; color: var(--ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ---------- რესპონსივი ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .chat-mock { margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 22px; }
}
