/* Atrak AI Studio — coming-soon page. Tokens follow CRM (crm.css) and ERP (erp.css). */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Dark is the default (CRM). */
:root {
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --bg: #05070d;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --text: #eaf0ff;
  --muted: #8b96b0;
  --c1: #3ddbd9;
  --c2: #7c5cff;
  --c3: #ff8a5c;
  --ok: #37d69a;
  --grad: linear-gradient(120deg, var(--c1), var(--c2));
  --orb1: rgba(61, 219, 217, .22);
  --orb2: rgba(124, 92, 255, .26);
  --gridline: rgba(255, 255, 255, .04);
  --btn-ink: #05070d;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, .78);
  --surface-2: #ffffff;
  --line: rgba(13, 20, 40, .10);
  --text: #0d1428;
  --muted: #4d5874;
  --c1: #0aa6b8;
  --c2: #5b3ff0;
  --ok: #12855f;
  --orb1: rgba(10, 166, 184, .16);
  --orb2: rgba(91, 63, 240, .14);
  --gridline: rgba(13, 20, 40, .05);
  --btn-ink: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fb;
    --surface: rgba(255, 255, 255, .78);
    --surface-2: #ffffff;
    --line: rgba(13, 20, 40, .10);
    --text: #0d1428;
    --muted: #4d5874;
    --c1: #0aa6b8;
    --c2: #5b3ff0;
    --ok: #12855f;
    --orb1: rgba(10, 166, 184, .16);
    --orb2: rgba(91, 63, 240, .14);
    --gridline: rgba(13, 20, 40, .05);
    --btn-ink: #ffffff;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--c1); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.orb--1 { width: 520px; height: 520px; background: var(--orb1); top: -160px; inset-inline-end: -120px; }
.orb--2 { width: 560px; height: 560px; background: var(--orb2); bottom: -220px; inset-inline-start: -160px; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Header */
.top {
  width: 100%; max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand__logo {
  width: 36px; height: 36px; background: var(--grad);
  -webkit-mask: url("/img/logo-mask.png") center / contain no-repeat;
  mask: url("/img/logo-mask.png") center / contain no-repeat;
}
.theme {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.theme:hover { background: var(--surface-2); }
.theme:active { transform: scale(.96); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
:root[data-theme="light"] .theme .i-sun { display: block; }
:root[data-theme="light"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme .i-moon { display: none; }
}

/* Hero */
.hero {
  flex: 1; width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 40px 16px 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 6px 14px; border-radius: 999px; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

.title { margin: 0; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon {
  margin: 14px 0 0; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 700;
  color: var(--c1);
}
.lead { margin: 18px auto 0; max-width: 620px; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }

.cards {
  list-style: none; margin: 44px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.card {
  text-align: start; padding: 22px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c1) 40%, var(--line)); }
.card__ic {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: color-mix(in srgb, var(--c1) 14%, transparent); color: var(--c1);
}
.card:nth-child(2) .card__ic { background: color-mix(in srgb, var(--c2) 16%, transparent); color: var(--c2); }
.card:nth-child(3) .card__ic { background: color-mix(in srgb, var(--c3) 16%, transparent); color: var(--c3); }
:root[data-theme="light"] .card:nth-child(3) .card__ic { color: #c2410c; }
.card__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h2 { margin: 14px 0 4px; font-size: 1.08rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }

.cta { margin: 40px 0 0; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: var(--r-sm);
  background: var(--grad); color: var(--btn-ink); font-weight: 700; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--c2); }

.foot { text-align: center; padding: 20px 16px 28px; color: var(--muted); font-size: .88rem; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
