/* ==========================================================================
   ATI 360 — Retail Operating System · Landing
   Design system + premium dark UI. Self-contained, no external deps.
   ========================================================================== */

:root {
  /* Palette */
  --bg:            #08071a;
  --bg-2:          #0d0b22;
  --surface:       #14122e;
  --surface-2:     #1b1838;
  --border:        rgba(167, 139, 250, 0.14);
  --border-strong: rgba(167, 139, 250, 0.30);

  --violet:        #8b5cf6;
  --violet-deep:   #7c3aed;
  --magenta:       #d946ef;
  --cyan:          #22d3ee;
  --green:         #10b981;
  --amber:         #f59e0b;

  --fg:            #f5f3ff;
  --muted:         #b6b3d6;
  --muted-2:       #8f8cb5;

  --grad-brand:  linear-gradient(120deg, #8b5cf6 0%, #7c3aed 45%, #d946ef 100%);
  --grad-text:   linear-gradient(120deg, #c4b5fd 0%, #e879f9 100%);
  --grad-cyan:   linear-gradient(120deg, #22d3ee 0%, #8b5cf6 100%);

  /* Spacing / radius / shadow */
  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-xl: 32px;
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 30px 70px -20px rgba(124, 58, 237, 0.35);
  --ring: 0 0 0 3px rgba(139, 92, 246, 0.45);

  --maxw: 1200px;
  --nav-h: 72px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* Background aurora */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124, 58, 237, 0.28), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(217, 70, 239, 0.20), transparent 60%),
    radial-gradient(45% 50% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.center { text-align: center; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #c4b5fd;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid var(--border-strong);
}
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.12; margin: 18px 0 14px;
}
.section-head p { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); }

h1, h2, h3 { letter-spacing: -0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15.5px; font-weight: 700; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  will-change: transform;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 12px 30px -10px rgba(124,58,237,0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(124,58,237,0.85); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); border-color: var(--violet); }
.btn-lg { padding: 18px 34px; font-size: 16.5px; }
.btn svg { width: 18px; height: 18px; }

/* ============================ NAV ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 8, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-dd { position: relative; }
.nav-dd > a { cursor: pointer; }
.nav-dd > a::after { content: " ▾"; font-size: 11px; opacity: .7; }
.nav-dd-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 250px; background: rgba(13, 11, 34, 0.98);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 16px 10px 10px; display: grid; gap: 2px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 101;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dd-menu a { padding: 9px 13px; border-radius: 8px; font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav-dd-menu a:hover { background: rgba(139, 92, 246, 0.12); color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--fg); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================ HERO ============================ */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); font-weight: 850; line-height: 1.03; margin: 22px 0 20px;
}
.hero p.lead { font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 42px; }
.hero-trust .t { }
.hero-trust .t b { display: block; font-size: 26px; font-weight: 800; }
.hero-trust .t span { font-size: 13.5px; color: var(--muted-2); }

/* Hero dashboard mockup */
.mock {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  padding: 16px; overflow: hidden;
}
.mock::before {
  content:""; position:absolute; inset:0; border-radius: inherit; pointer-events:none;
  background: radial-gradient(80% 60% at 100% 0%, rgba(217,70,239,0.16), transparent 60%);
}
.mock-top { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; }
.mock-top i { width: 11px; height: 11px; border-radius: 50%; background: #3a3660; display: inline-block; }
.mock-top i:nth-child(1){ background:#ff5f57 } .mock-top i:nth-child(2){ background:#febc2e } .mock-top i:nth-child(3){ background:#28c840 }
.mock-top span { margin-left: auto; font-size: 12px; color: var(--muted-2); }
.mock-hero {
  border-radius: var(--r-md); padding: 20px; margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(124,58,237,0.9), rgba(217,70,239,0.85));
}
.mock-hero small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.mock-hero h4 { font-size: 22px; font-weight: 800; margin: 4px 0 2px; }
.mock-hero .row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; }
.mock-hero .big { font-size: 30px; font-weight: 850; }
.mock-hero .pill { font-size: 11px; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 999px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; }
.mock-kpi span { font-size: 11px; color: var(--muted-2); }
.mock-kpi b { display:block; font-size: 18px; font-weight: 800; margin-top: 3px; }
.mock-kpi.g b { color: var(--green); }
.mock-sync { display:flex; align-items:center; gap:8px; margin-top:12px; font-size:12px; color: var(--muted); }
.dot-live { width:8px; height:8px; border-radius:50%; background: var(--green); box-shadow:0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 rgba(16,185,129,.55);} 70%{ box-shadow:0 0 0 8px rgba(16,185,129,0);} 100%{ box-shadow:0 0 0 0 rgba(16,185,129,0);} }

/* Marquee trust strip */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 36px; padding: 22px 24px; }
.strip .chip { display:inline-flex; align-items:center; gap:9px; font-size:14.5px; font-weight:600; color: var(--muted); }
.strip .chip svg { width: 18px; height: 18px; color: var(--violet); }

/* ============================ CARडS / GRID ============================ */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(139,92,246,0.12); border: 1px solid var(--border-strong); color: #c4b5fd;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 750; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .tag { position:absolute; top:16px; right:16px; font-size:11px; font-weight:700; letter-spacing:.5px; color: var(--green); background: rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25); padding: 4px 9px; border-radius: 999px; }

/* Feature list checkmarks */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--muted); }
.checks li b { color: var(--fg); font-weight: 650; }
.checks li .ck { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; background: rgba(16,185,129,0.14); color: var(--green); }
.checks li .ck svg { width: 13px; height: 13px; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split .eyebrow { margin-bottom: 18px; }
.split h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.split .lead { color: var(--muted); font-size: 17px; margin-bottom: 26px; }

/* Fleet panel visual */
.panel {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--r-lg); padding: 22px;
  box-shadow: var(--shadow-md);
}
.panel-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.panel-row:last-child { border-bottom: none; }
.panel-row .l { display:flex; align-items:center; gap: 12px; }
.panel-row .l .rico { width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(34,211,238,0.1);border:1px solid rgba(34,211,238,0.22);color:var(--cyan); }
.panel-row .l .rico svg{width:19px;height:19px}
.panel-row .l b{ font-size:15px; font-weight:700 } .panel-row .l span{ font-size:12.5px; color: var(--muted-2); display:block }
.panel-row .v { font-size: 15px; font-weight: 800; }
.panel-row .v.ok { color: var(--green); } .panel-row .v.uit { color: var(--cyan); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { display:grid; grid-template-columns: 56px 1fr; gap: 18px; align-items:flex-start; }
.step .n {
  counter-increment: s; width: 56px; height: 56px; border-radius: 16px; display:grid; place-items:center;
  font-size: 22px; font-weight: 850; background: var(--grad-brand); color:#fff; box-shadow: 0 10px 24px -10px rgba(124,58,237,.7);
}
.step .n::before { content: counter(s); }
.step h3 { font-size: 19px; font-weight: 750; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 15px; }

/* Differentiators band */
.why { background: linear-gradient(180deg, transparent, rgba(124,58,237,0.05)); }

/* Testimonials */
.quote { display:grid; gap:16px; }
.quote p { font-size: 16.5px; color: var(--fg); line-height: 1.65; }
.quote .who { display:flex; align-items:center; gap:12px; }
.quote .av { width:44px;height:44px;border-radius:50%; background: var(--grad-brand); display:grid;place-items:center;font-weight:800;color:#fff; }
.quote .who b { font-size:14.5px; display:block } .quote .who span{ font-size:13px;color:var(--muted-2) }
.stars { color: var(--amber); font-size: 15px; letter-spacing: 2px; }

/* CTA band */
.cta-band {
  position: relative; border-radius: var(--r-xl); overflow: hidden; text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  background: linear-gradient(120deg, rgba(124,58,237,0.95), rgba(217,70,239,0.9));
  box-shadow: var(--shadow-lg);
}
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(70% 120% at 50% -10%, rgba(255,255,255,0.25), transparent 60%); pointer-events:none; }
.cta-band h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 850; margin-bottom: 14px; position:relative; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 30px; position:relative; }
.cta-band .btn-primary { background: #fff; color: #6d28d9; }
.cta-band .btn-primary:hover { background:#fff; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color:#fff; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style:none; cursor:pointer; padding: 18px 0; font-weight: 700; font-size: 16.5px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary .pm { flex:0 0 auto; width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(139,92,246,.12);color:#c4b5fd;transition:transform .25s; font-weight:700; }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 15.5px; padding: 0 0 20px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer h5 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer a { display:block; color: var(--muted); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer a:hover { color: var(--fg); }
.footer .brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-bot { border-top: 1px solid var(--border); padding-top: 26px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; color: var(--muted-2); font-size: 13.5px; }
.footer-note { font-size: 12.5px; color: var(--muted-2); max-width: 720px; margin-top: 10px; opacity: .8; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s } [data-reveal].d2 { transition-delay: .16s } [data-reveal].d3 { transition-delay: .24s } [data-reveal].d4{ transition-delay:.32s }

/* Mobile menu panel */
.mobile-menu { display:none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mock-wrap { order: 2; }
  .split { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-demo-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
    background: rgba(10,8,26,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 18px 24px 26px;
    transform: translateY(-120%); transition: transform .3s ease; visibility:hidden;
  }
  .mobile-menu.open { transform: none; visibility: visible; }
  .mobile-menu a { display:block; padding: 13px 0; font-size: 17px; font-weight:600; color: var(--fg); border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}
@media (max-width: 620px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero-trust { gap: 20px; }
  .mock-kpis { grid-template-columns: repeat(3, 1fr); }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
