/* ===== تیزهوشیار — standalone landing styles ===== */

:root {
  --bg: #f6faf9;
  --bg-2: #eef5f5;
  --fg: #15283c;
  --muted: #55677a;
  --card: #ffffff;
  --border: #d9e6e5;
  --primary: #386995;
  --primary-2: #2f5678;
  --primary-3: #274c68;
  --violet: #386995;
  --fuchsia: #67bb80;
  --cyan: #3f8fb5;
  --amber: #e08a2e;
  --emerald: #2f9e63;
  --rose: #d95a5a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(21, 40, 60, .06);
  --shadow: 0 10px 30px -10px rgba(56, 105, 149, .18);
  --shadow-lg: 0 24px 60px -20px rgba(56, 105, 149, .28);
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101b28;
    --bg-2: #152435;
    --fg: #eef4f5;
    --muted: #9aabb8;
    --card: #17283c;
    --border: rgba(255,255,255,.09);
    --shadow: 0 10px 30px -10px rgba(0,0,0,.5);
    --shadow-lg: 0 24px 60px -20px rgba(56, 105, 149, .4);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.ic { width: 22px; height: 22px; flex-shrink: 0; }
.ic.sm { width: 16px; height: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ===== Grad text ===== */
.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--cyan) 55%, var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Aurora ===== */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.blob.b1 { width: 540px; height: 540px; background: #7fb4c8; top: -160px; right: -120px; animation: aurora 28s ease-in-out infinite; }
.blob.b2 { width: 480px; height: 480px; background: #8bd4a0; top: 30%; left: -140px; animation: aurora 32s ease-in-out infinite reverse; }
.blob.b3 { width: 460px; height: 460px; background: #9cc7e0; bottom: -160px; right: 20%; animation: aurora 36s ease-in-out infinite; opacity: .35; }
.aurora .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(56,105,149,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56,105,149,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
}
@media (prefers-color-scheme: dark) {
  .blob.b1 { opacity: .35; } .blob.b2 { opacity: .3; } .blob.b3 { opacity: .25; }
}

@keyframes aurora {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.1); }
  66% { transform: translate(-30px,40px) scale(.95); }
}

/* ===== Layout shell (sticky footer) ===== */
.nav, main, .footer { position: relative; z-index: 1; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.footer { margin-top: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-3)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-ghost-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }

/* ===== Navbar ===== */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255,255,255,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .nav.scrolled { background: rgba(20,18,31,.75); } }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-3)); color: #fff; box-shadow: var(--shadow); }
.brand-mark .ic { width: 22px; height: 22px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: linear-gradient(90deg,var(--primary),var(--cyan)); transition: width .25s; }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 9px; cursor: pointer; color: var(--fg); }
.nav-toggle .ic { width: 22px; height: 22px; }

.drawer {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; z-index: 60;
  background: var(--card); padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: -10px 0 40px rgba(0,0,0,.15); transition: right .3s ease; border-left: 1px solid var(--border);
}
.drawer.open { right: 0; }
.drawer a { font-size: 16px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--border); }
.drawer .btn { border-bottom: none; }
.drawer-close { position: absolute; top: 18px; left: 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--fg); }
.overlay { position: fixed; inset: 0; z-index: 55; background: rgba(20,18,31,.5); opacity: 0; visibility: hidden; transition: opacity .3s; }
.overlay.open { opacity: 1; visibility: visible; }

/* ===== Section ===== */
.section { padding: 80px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); background: rgba(56,105,149,.08); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(56,105,149,.15); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--emerald)); }
.sec-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.25; margin-top: 16px; letter-spacing: -.02em; }
.sec-desc { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ===== Hero ===== */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; line-height: 1.18; letter-spacing: -.03em; margin: 18px 0; }
.hero-desc { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 26px; font-weight: 800; background: linear-gradient(135deg,var(--primary),var(--primary-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-trust span { font-size: 13px; color: var(--muted); }

/* Hero visual / orb */
.hero-visual { display: grid; place-items: center; min-height: 420px; }
.orb-wrap { position: relative; width: 360px; height: 360px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 2px dashed rgba(56,105,149,.28); }
.ring-1 { width: 200px; height: 200px; animation: spin 24s linear infinite; }
.ring-2 { width: 280px; height: 280px; border-color: rgba(47,158,99,.22); animation: spin 32s linear infinite reverse; }
.ring-3 { width: 360px; height: 360px; border-color: rgba(63,143,181,.16); animation: spin 40s linear infinite; }
.orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.orb-core { position: relative; z-index: 2; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-3)); display: grid; place-items: center; color: #fff; box-shadow: 0 20px 50px -10px rgba(56,105,149,.6), inset 0 -8px 20px rgba(0,0,0,.2); animation: float 6s ease-in-out infinite; }
.orb-core .ic { width: 50px; height: 50px; animation: pulse 3s ease-in-out infinite; }
.orb-halo { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(circle, rgba(56,105,149,.45), transparent 65%); filter: blur(20px); animation: pulseGlow 4s ease-in-out infinite; }
.chip {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px;
  display: grid; place-items: center; border-radius: 14px; background: var(--card); color: var(--primary);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0;
  transform: rotate(0deg) translateX(var(--r)) rotate(0deg);
  animation: orbit 20s linear infinite; animation-delay: var(--d);
}
.chip .ic { width: 24px; height: 24px; }
.chip:nth-child(5n+1) { color: var(--primary); }
.chip:nth-child(5n+2) { color: var(--cyan); }
.chip:nth-child(5n+3) { color: var(--emerald); }
.chip:nth-child(5n+4) { color: var(--amber); }
.chip:nth-child(5n) { color: var(--primary-3); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pulseGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.12); } }
@keyframes orbit { to { transform: rotate(360deg) translateX(var(--r)) rotate(-360deg); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Marquee ===== */
.marquee { overflow: hidden; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee::before { right: 0; background: linear-gradient(to left, var(--bg-2), transparent); }
.marquee::after { left: 0; background: linear-gradient(to right, var(--bg-2), transparent); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 16px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.marquee-track span:nth-child(odd) { background: linear-gradient(120deg,var(--primary),var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ===== Features ===== */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.feat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent, var(--accent-soft, rgba(56,105,149,.06))); opacity: 0; transition: opacity .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat:hover::before { opacity: 1; }
.feat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-bg, rgba(56,105,149,.12)); color: var(--accent, var(--primary)); margin-bottom: 16px; }
.feat-ic.big { width: 56px; height: 56px; }
.feat-ic .ic { width: 24px; height: 24px; }
.feat-tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent, var(--primary)); background: var(--accent-bg, rgba(56,105,149,.12)); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.feat p { font-size: 14px; color: var(--muted); line-height: 1.7; position: relative; z-index: 1; }
.feat[data-accent="violet"] { --accent: var(--primary); --accent-bg: rgba(56,105,149,.12); --accent-soft: rgba(56,105,149,.08); }
.feat[data-accent="fuchsia"] { --accent: var(--emerald); --accent-bg: rgba(47,158,99,.12); --accent-soft: rgba(47,158,99,.08); }
.feat[data-accent="cyan"] { --accent: var(--cyan); --accent-bg: rgba(63,143,181,.12); --accent-soft: rgba(63,143,181,.08); }
.feat[data-accent="amber"] { --accent: var(--amber); --accent-bg: rgba(224,138,46,.12); --accent-soft: rgba(224,138,46,.08); }
.feat[data-accent="emerald"] { --accent: var(--emerald); --accent-bg: rgba(47,158,99,.12); --accent-soft: rgba(47,158,99,.08); }
.feat[data-accent="rose"] { --accent: var(--rose); --accent-bg: rgba(217,90,90,.12); --accent-soft: rgba(217,90,90,.08); }
.feat-cta { background: linear-gradient(135deg, rgba(56,105,149,.08), rgba(47,158,99,.08)); border-color: rgba(56,105,149,.2); display: flex; flex-direction: column; align-items: flex-start; }
.feat-cta .feat-ic { background: linear-gradient(135deg,var(--primary),var(--primary-3)); color: #fff; }
.feat-cta p { color: var(--muted); margin-bottom: 16px; }

/* ===== Tabs / showcase ===== */
.tabs { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 12px; box-shadow: var(--shadow); }
.tab-list { display: flex; gap: 6px; padding: 6px; background: var(--bg-2); border-radius: 16px; margin-bottom: 12px; overflow-x: auto; }
.tab { flex: 1; min-width: 110px; padding: 12px 16px; border: none; background: transparent; color: var(--muted); font-family: inherit; font-size: 15px; font-weight: 600; border-radius: 11px; cursor: pointer; transition: all .2s; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; padding: 28px; min-height: 420px; }
.tab-panel.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Chat mock */
.chat-mock { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.chat-bubble { padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.7; max-width: 85%; }
.chat-bubble.bot { background: var(--bg-2); border-bottom-right-radius: 4px; align-self: flex-start; }
.chat-bubble.user { background: linear-gradient(135deg,var(--primary),var(--primary-3)); color: #fff; border-bottom-left-radius: 4px; align-self: flex-end; }
.chat-bubble .cursor { display: inline-block; width: 7px; height: 16px; background: var(--primary); border-radius: 2px; margin-right: 3px; vertical-align: middle; animation: blink 1s step-end infinite; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-chips span { font-size: 13px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--primary); background: var(--card); cursor: pointer; transition: all .2s; }
.chat-chips span:hover { background: rgba(56,105,149,.08); border-color: var(--primary); }
.chat-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 10px; background: var(--bg-2); border-radius: 14px; }
.chat-input input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 15px; color: var(--fg); padding: 8px; outline: none; }
.chat-input input::placeholder { color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--card); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.icon-btn.primary { background: linear-gradient(135deg,var(--primary),var(--primary-3)); color: #fff; border-color: transparent; }
.icon-btn .ic { width: 18px; height: 18px; }

/* KB mock */
.kb-mock { max-width: 620px; margin: 0 auto; }
.kb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.badge { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(56,105,149,.12); color: var(--primary); font-weight: 700; }
.kb-search { margin-bottom: 14px; }
.kb-search input { width: 100%; padding: 11px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); font-family: inherit; color: var(--fg); outline: none; }
.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.kb-row:hover { border-color: var(--primary); }
.kb-row .file { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; flex-shrink: 0; }
.file.pdf { background: #dc2626; } .file.doc { background: #2563eb; } .file.audio { background: #e08a2e; } .file.video { background: #386995; } .file.dup { background: #6b7280; }
.kb-row > div { flex: 1; min-width: 0; }
.kb-row strong { display: block; font-size: 14px; font-weight: 600; }
.kb-row small { font-size: 12px; color: var(--muted); }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.status.ok { background: rgba(47,158,99,.12); color: var(--emerald); }
.status.warn { background: rgba(224,138,46,.12); color: var(--amber); }
.status.bad { background: rgba(217,90,90,.12); color: var(--rose); }

/* Flow mock */
.flow-mock { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 360px; margin: 0 auto; padding: 20px 0; }
.flow-node { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 15px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); }
.flow-node .ic { width: 20px; height: 20px; }
.flow-node .fn-dot { width: 10px; height: 10px; border-radius: 50%; }
.flow-node.start { background: rgba(47,158,99,.1); color: var(--emerald); border-color: rgba(47,158,99,.3); }
.flow-node.start .fn-dot { background: var(--emerald); }
.flow-node.end { background: rgba(217,90,90,.1); color: var(--rose); border-color: rgba(217,90,90,.3); }
.flow-node.end .fn-dot { background: var(--rose); }
.flow-node.ai { color: var(--primary); border-color: rgba(56,105,149,.3); }
.flow-node.cond { color: var(--amber); border-color: rgba(224,138,46,.3); }
.flow-node.web { color: var(--cyan); border-color: rgba(63,143,181,.3); }
.flow-line { width: 2px; height: 32px; background: linear-gradient(to bottom, var(--primary), var(--emerald)); border-radius: 2px; }

/* Media mock */
.media-mock { max-width: 560px; margin: 0 auto; }
.media-prompt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.media-prompt code { background: var(--bg-2); padding: 8px 14px; border-radius: 10px; color: var(--fg); font-family: inherit; font-size: 13px; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.media-tile { aspect-ratio: 1; border-radius: 14px; }
.media-tile.t1 { background: linear-gradient(135deg, #386995, #2f7a86); }
.media-tile.t2 { background: linear-gradient(135deg, #3f8fb5, #67bb80); }
.media-tile.t3 { background: linear-gradient(135deg, #e08a2e, #d95a5a); }
.media-tile.t4 { background: linear-gradient(135deg, #2f9e63, #3f8fb5); }
.tts { background: var(--bg-2); border-radius: 14px; padding: 16px; }
.tts-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; color: var(--primary); }
.tts-head .ic { width: 18px; height: 18px; }
.tts-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.tts-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--emerald)); border-radius: 999px; transition: width .5s; }
.tts small { color: var(--muted); }

/* ===== Stats ===== */
.stats-sec { padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: linear-gradient(135deg, rgba(56,105,149,.06), rgba(47,158,99,.06)); border: 1px solid var(--border); border-radius: 24px; padding: 36px 28px; position: relative; overflow: hidden; }
.stat { text-align: center; position: relative; z-index: 1; }
.stat-num { font-size: clamp(32px, 5vw, 48px); font-weight: 900; background: linear-gradient(135deg,var(--primary),var(--primary-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; top: 36px; right: 12%; left: 12%; height: 2px; background: linear-gradient(90deg, var(--primary), var(--emerald), var(--cyan)); opacity: .3; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; transition: transform .25s, box-shadow .25s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-3)); color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 16px; box-shadow: var(--shadow); }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 20px; font-weight: 800; }
.price { font-size: 34px; font-weight: 900; margin: 12px 0 4px; letter-spacing: -.02em; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.plan ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.plan li { font-size: 14px; color: var(--muted); padding-right: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--emerald); font-weight: 800; }
.plan.popular { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, var(--primary), var(--emerald)) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan.popular:hover { transform: scale(1.03) translateY(-4px); }
.pop-badge { position: absolute; top: -13px; right: 28px; background: linear-gradient(135deg,var(--primary),var(--emerald)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: var(--shadow); }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: rgba(56,105,149,.3); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: none; background: transparent; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--fg); cursor: pointer; text-align: right; }
.faq-ic { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .25s; }
.faq-ic::before { top: 10px; left: 4px; right: 4px; height: 2px; }
.faq-ic::after { left: 10px; top: 4px; bottom: 4px; width: 2px; }
.faq-item.open .faq-ic::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 22px 20px; font-size: 15px; color: var(--muted); line-height: 1.8; }

/* ===== CTA band ===== */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 32px; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-3) 60%, #67bb80); color: #fff; box-shadow: var(--shadow-lg); }
.cta-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-blobs span:nth-child(1) { width: 300px; height: 300px; background: rgba(255,255,255,.18); top: -100px; right: -60px; animation: float 8s ease-in-out infinite; }
.cta-blobs span:nth-child(2) { width: 260px; height: 260px; background: rgba(47,158,99,.4); bottom: -100px; left: -40px; animation: float 10s ease-in-out infinite reverse; }
.cta-band h2 { position: relative; z-index: 1; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { position: relative; z-index: 1; font-size: 17px; opacity: .92; max-width: 560px; margin: 0 auto 26px; }
.cta-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== Footer ===== */
.footer { background: var(--card); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.foot-brand p { margin: 16px 0; font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 340px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); background: var(--bg-2); transition: all .2s; }
.social a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.social .ic { width: 18px; height: 18px; }
.foot-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.foot-col a, .foot-col span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; transition: color .2s; }
.foot-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 22px 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a:hover { color: var(--primary); }
.enamad { display: flex; justify-content: center; padding: 24px 20px 36px; background: var(--card); border-top: 1px solid var(--border); }
.enamad a { display: inline-flex; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); transition: border-color .2s, transform .2s; }
.enamad a:hover { border-color: var(--primary); transform: translateY(-2px); }
.enamad img { width: 150px; height: auto; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56,105,149,.35); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,105,149,.55); background-clip: padding-box; }

/* ===== Hero playground (live AI demo) ===== */
.hero-playground { grid-column: 1 / -1; display: grid; place-items: center; }
.pg-card { width: 100%; max-width: 680px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.pg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.pg-avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg,var(--primary),var(--primary-3)); color: #fff; flex-shrink: 0; }
.pg-avatar .ic { width: 22px; height: 22px; }
.pg-head strong { display: block; font-size: 15px; font-weight: 700; }
.pg-head small { font-size: 12px; color: var(--muted); }
.pg-log { display: flex; flex-direction: column; gap: 12px; min-height: 120px; max-height: 320px; overflow-y: auto; padding: 4px 2px; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pg-chips button { font-family: inherit; font-size: 13px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--primary); background: var(--card); cursor: pointer; transition: all .2s; }
.pg-chips button:hover { background: rgba(56,105,149,.08); border-color: var(--primary); }
.pg-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; padding: 10px; background: var(--bg-2); border-radius: 14px; }
.pg-form input { flex: 1; border: none; background: transparent; font-family: inherit; font-size: 15px; color: var(--fg); padding: 8px; outline: none; }
.pg-form input::placeholder { color: var(--muted); }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingDot 1.2s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typingDot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ===== Pipeline (scroll-driven RAG story) ===== */
.pipeline-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pipeline-stage {
  position: sticky; top: 90px; min-height: 420px;
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  box-shadow: var(--shadow); display: grid; place-items: center; padding: 32px; overflow: hidden;
}
.p-step { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; opacity: .14; filter: grayscale(.6); transform: scale(.94); transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.p-step.active { opacity: 1; filter: none; transform: none; }
.p-doc { display: inline-flex; align-items: center; gap: 12px; padding: 18px 26px; border: 1px dashed rgba(56,105,149,.45); border-radius: 16px; background: rgba(56,105,149,.07); color: var(--primary); font-weight: 700; font-size: 16px; }
.p-doc .ic { width: 28px; height: 28px; }
.p-doc.sm { padding: 12px 18px; font-size: 13px; }
.p-chunks { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.p-arrow { font-size: 22px; color: var(--muted); }
.p-chunk-col { display: flex; flex-direction: column; gap: 8px; }
.p-chunk-col.wide { width: 100%; max-width: 340px; }
.p-chunk { display: block; padding: 10px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-2); font-size: 14px; color: var(--muted); transition: all .3s; }
.p-chunk.hit { border-color: rgba(63,143,181,.5); background: rgba(63,143,181,.1); color: var(--cyan); font-weight: 600; }
.p-chunk.hit b { color: var(--cyan); }
.pipeline-track { display: flex; flex-direction: column; gap: 24px; padding: 40px 0; }
.pipeline-track .step { text-align: right; }

/* ===== Workflow playground ===== */
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.wf-canvas { background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 32px 20px; display: flex; flex-direction: column; align-items: center; }
.wf-node { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; font-weight: 600; font-size: 15px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-sm); transition: box-shadow .3s, border-color .3s; }
.wf-node .ic { width: 20px; height: 20px; }
.wf-node .fn-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-node.sm { padding: 10px 18px; font-size: 14px; }
.wf-node.start { background: rgba(47,158,99,.1); color: var(--emerald); border-color: rgba(47,158,99,.3); }
.wf-node.start .fn-dot { background: var(--emerald); }
.wf-node.end { background: rgba(217,90,90,.1); color: var(--rose); border-color: rgba(217,90,90,.3); }
.wf-node.end .fn-dot { background: var(--rose); }
.wf-node.ai { color: var(--primary); border-color: rgba(56,105,149,.3); }
.wf-node.cond { color: var(--amber); border-color: rgba(224,138,46,.3); }
.wf-node.web { color: var(--cyan); border-color: rgba(63,143,181,.3); }
.wf-node.skip { color: var(--muted); border-style: dashed; }
.wf-status { font-size: 11px; font-weight: 700; color: var(--cyan); margin-right: 6px; }
.wf-status.done { color: var(--emerald); }
.wf-node.running { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(63,143,181,.18), var(--shadow); }
.wf-node.done { border-color: rgba(47,158,99,.55); }
.wf-line { width: 2px; height: 26px; background: var(--border); border-radius: 2px; position: relative; transition: background .3s; }
.wf-line.active { background: linear-gradient(to bottom, var(--cyan), var(--emerald)); }
.wf-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.wf-branch-col { display: flex; flex-direction: column; align-items: center; }
.wf-branch-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; margin: 4px 0; }
.wf-branch-labels span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.wf-side { display: flex; flex-direction: column; gap: 18px; }
.wf-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.wf-log-panel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.wf-log-head { padding: 12px 18px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.wf-log { padding: 14px 18px; min-height: 180px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.wf-log-line { font-size: 13px; color: var(--fg); display: flex; gap: 8px; }
.wf-log-line .wf-time { color: var(--muted); flex-shrink: 0; }
.wf-log-line.muted { color: var(--muted); }
.wf-log-line.branch { color: var(--amber); font-weight: 600; }

/* ===== Pricing calculator ===== */
.calc-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 40px; }
.calc-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.calc-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(224,138,46,.12); color: var(--amber); flex-shrink: 0; }
.calc-ic .ic { width: 24px; height: 24px; }
.calc-head strong { display: block; font-size: 17px; font-weight: 700; }
.calc-head small { font-size: 13px; color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.calc-sliders { display: flex; flex-direction: column; gap: 20px; }
.calc-row { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.calc-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.calc-label b { color: var(--primary); font-size: 15px; }
.calc-row input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(to left, var(--primary) var(--fill, 0%), var(--border) var(--fill, 0%)); outline: none; cursor: pointer; }
.calc-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-row input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-out { background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.calc-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-nums small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.calc-nums strong { font-size: 22px; font-weight: 800; background: linear-gradient(135deg,var(--primary),var(--primary-3)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calc-plan-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--border); }
.calc-plan-badge { display: inline-block; background: linear-gradient(135deg,var(--primary),var(--emerald)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; box-shadow: var(--shadow); }

/* ===== Reduced motion (new components) ===== */
@media (prefers-reduced-motion: reduce) {
  .p-step { opacity: 1; filter: none; transform: none; transition: none; }
  .pipeline-stage { display: flex; flex-direction: column; gap: 24px; position: static; min-height: 0; }
  .typing-dots span { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 360px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pipeline-wrap, .wf-grid, .calc-grid { grid-template-columns: 1fr; }
  .pipeline-stage { position: static; min-height: 0; display: flex; flex-direction: column; gap: 24px; }
  .p-step { opacity: 1; filter: none; transform: none; }
  .pipeline-track { padding: 0; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .brand { margin-left: 0; }
  .section { padding: 56px 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .pricing { grid-template-columns: 1fr; }
  .plan.popular { transform: none; }
  .plan.popular:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-trust { gap: 20px; }
  .tab-panel { padding: 18px; min-height: auto; }
  .calc-nums { grid-template-columns: 1fr; }
  .wf-branch, .wf-branch-labels { gap: 12px; }
  .wf-node { font-size: 13px; padding: 11px 16px; }
}
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .orb-wrap { width: 280px; height: 280px; }
  .ring-3 { width: 280px; height: 280px; }
  .ring-2 { width: 220px; height: 220px; }
  .ring-1 { width: 160px; height: 160px; }
  .chip { width: 44px; height: 44px; margin: -22px; }
  .chip { --r: 100px; }
  .hero-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
