@font-face { font-family: "Inter"; src: url("/site/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #07080c;
  --bg-2: #0d0f16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eceef5;
  --muted: #9aa0b4;
  --dim: #6b7186;
  --accent: #8b7cff;
  --accent-2: #4fd1c5;
  --accent-3: #ff8ad8;
  --ok: #3ddc97;
  --warn: #ffb547;
  --danger: #ff6b6b;
  --radius: 18px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "SF Pro Display",
    "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.bg-glow {
  position: absolute; left: 50%; top: -340px; width: 1100px; height: 720px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(139, 124, 255, 0.38), transparent),
    radial-gradient(closest-side at 30% 60%, rgba(79, 209, 197, 0.18), transparent),
    radial-gradient(closest-side at 75% 55%, rgba(255, 138, 216, 0.16), transparent);
  filter: blur(30px);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, #fff, #dcdcf2);
  color: #0a0a12;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 30px -8px rgba(139,124,255,.6);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 10px 40px -6px rgba(139,124,255,.8); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); border-color: rgba(255,255,255,.24); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(7, 8, 12, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 4px 18px -4px rgba(139,124,255,.7);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 3px;
  background: var(--bg); transform: skewX(-12deg);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel);
  font-size: 13px; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero h1 {
  margin: 28px auto 0; max-width: 980px;
  font-size: clamp(42px, 7.4vw, 92px); font-weight: 750; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 30%, #b8bcd0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 26px auto 0; max-width: 680px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Product mock */
.app {
  margin: 72px auto 0; max-width: 1080px; text-align: left;
  border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20,22,32,.92), rgba(12,13,20,.96));
  box-shadow: 0 40px 120px -30px rgba(139,124,255,.45), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2d3a; }
.app-bar span { margin: 0 auto; font-size: 12px; color: var(--dim); padding: 3px 14px; border-radius: 6px; background: rgba(255,255,255,.04); }
.app-body { display: grid; grid-template-columns: 260px 1fr 310px; min-height: 380px; }
.app-list { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.app-search { font-size: 12.5px; color: var(--dim); padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.04); margin-bottom: 6px; }
.conv { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; }
.conv.active { background: rgba(139,124,255,.12); box-shadow: inset 0 0 0 1px rgba(139,124,255,.3); }
.conv b { display: block; font-size: 13px; font-weight: 600; }
.conv small { display: block; font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.ch { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ch-wa { background: rgba(37,211,102,.15); color: #4be38a; }
.ch-mail { background: rgba(79,140,255,.15); color: #7aa7ff; }
.ch-web { background: rgba(139,124,255,.16); color: var(--accent); }
.tag { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); }
.tag-high { background: rgba(255,107,107,.14); color: #ff8f8f; }
.tag-ai { background: rgba(139,124,255,.16); color: #b3a9ff; }
.tag-ok { background: rgba(61,220,151,.13); color: var(--ok); }
.app-thread { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.in { background: rgba(255,255,255,.06); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: linear-gradient(135deg, #6c5ce7, #8b7cff); border-bottom-right-radius: 5px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); width: fit-content; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.4s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.app-ai { border-left: 1px solid var(--line); padding: 18px; background: linear-gradient(180deg, rgba(139,124,255,.06), transparent 60%); }
.ai-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.spark { width: 16px; height: 16px; border-radius: 5px; background: conic-gradient(var(--accent), var(--accent-2), var(--accent-3), var(--accent)); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; font-size: 12.5px; color: var(--muted); }
.steps li { display: flex; gap: 9px; align-items: center; }
.steps li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; flex: none; }
.steps .done::before { background: rgba(61,220,151,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%233ddc97' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.steps .run { color: var(--text); }
.steps .run::before { border: 2px solid rgba(139,124,255,.3); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.draft { margin-top: 16px; padding: 14px; border-radius: 14px; border: 1px solid rgba(139,124,255,.3); background: rgba(139,124,255,.07); }
.draft small { font-size: 11px; color: #b3a9ff; font-weight: 600; letter-spacing: .01em; }
.draft p { margin-top: 7px; font-size: 13px; line-height: 1.55; }
.draft-actions { display: flex; gap: 6px; margin-top: 12px; }
.btn-mini { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); }
.btn-mini.primary { background: #fff; color: #0a0a12; border-color: #fff; }

/* Strip */
.strip { padding: 56px 0 8px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; color: var(--dim); font-size: 14px; font-weight: 550; letter-spacing: .01em; }

/* Sections */
.section { padding: 120px 0 0; }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section h2 { margin-top: 14px; max-width: 760px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 720; }
.sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 520px; }

.grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139,124,255,.14), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); }
.card:hover::before { opacity: 1; }
.card-wide { grid-column: span 2; }
.card-full { grid-column: 1 / -1; }
.card h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-top: 24px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), rgba(139,124,255,.15)); }

.flow { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, rgba(139,124,255,.3), rgba(79,209,197,.2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.step h3 { margin-top: 20px; font-size: 19px; font-weight: 650; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.security { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks li { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; }
.checks b { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 620; margin-bottom: 6px; }
.checks b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }

.faq { max-width: 820px; }
.faq h2 { margin-bottom: 36px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--muted); max-width: 680px; }

.cta { padding-bottom: 120px; }
.cta-inner {
  text-align: center; padding: 72px 24px; border-radius: 28px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(139,124,255,.28), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.cta-inner h2 { margin: 0 auto; max-width: 720px; }
.cta-inner p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer small { color: var(--dim); font-size: 13px; }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .app-body { grid-template-columns: 1fr 290px; }
  .app-list { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .security { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 56px; }
  .app { margin-top: 48px; }
  .app-body { grid-template-columns: 1fr; }
  .app-ai { border-left: 0; border-top: 1px solid var(--line); }
  .grid, .flow, .checks { grid-template-columns: 1fr; }
  .card-wide, .card-full { grid-column: auto; }
  .section { padding-top: 88px; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
