/* =============================================================
   AN-List — design system
   Identity: purple→orange gradient wordmark, slate ink,
   signature motif = stacked "list rows" (catalog shelves).
   Display: Space Grotesk · Body: Inter · Data: IBM Plex Mono
   ============================================================= */

:root {
  /* brand */
  --purple: #6a2c82;
  --purple-2: #8e3b9e;
  --orange: #ef7211;
  --orange-2: #f6921e;
  --magenta: #e5178e;
  --ink: #2e3440;
  --ink-2: #3b434f;

  /* light theme surfaces */
  --bg: #fbfafc;
  --surface: #ffffff;
  --surface-2: #f5f2f8;
  --border: #ece7f1;
  --text: #24232a;
  --muted: #6b6a75;

  --grad: linear-gradient(100deg, var(--purple) 0%, var(--orange) 62%, var(--magenta) 100%);
  --grad-soft: linear-gradient(120deg, rgba(106,44,130,.10), rgba(239,114,17,.10));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px -12px rgba(46,52,64,.18);
  --shadow-sm: 0 4px 16px -6px rgba(46,52,64,.14);
  --maxw: 1180px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #14121a;
  --surface: #1c1a24;
  --surface-2: #221f2c;
  --border: #2e2a3a;
  --text: #ece9f2;
  --muted: #a49fb3;
  --ink: #ece9f2;
  --shadow: 0 18px 50px -18px rgba(0,0,0,.6);
  --grad-soft: linear-gradient(120deg, rgba(142,59,158,.20), rgba(246,146,30,.16));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
a { color: var(--purple-2); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 92px 0; }
.section-sm { padding: 60px 0; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; padding: .8rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(239,114,17,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(239,114,17,.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple-2); color: var(--purple-2); transform: translateY(-2px); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }

/* ---- signature: stacked list rows ---- */
.listmark { display: inline-flex; flex-direction: column; gap: 3px; }
.listmark span { height: 4px; border-radius: 2px; }
.listmark span:nth-child(1){ width: 26px; background: var(--purple); }
.listmark span:nth-child(2){ width: 20px; background: var(--orange); }
.listmark span:nth-child(3){ width: 14px; background: var(--magenta); }

/* ---- top nav ---- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--grad); transition: width .2s; }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--text); font-size: 1.05rem; }
.nav-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* ---- hero ---- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(60% 60% at 15% 10%, rgba(106,44,130,.16), transparent 60%),
  radial-gradient(50% 50% at 90% 20%, rgba(239,114,17,.16), transparent 60%),
  radial-gradient(40% 60% at 70% 95%, rgba(229,23,142,.10), transparent 60%); }
#hero-particles { position: absolute; inset: 0; z-index: 0; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin: 18px 0 20px; }
.hero p.lead { font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { margin-top: 34px; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .85rem; }
.hero-trust b { color: var(--text); }

/* hero visual: animated catalog shelf */
.shelf { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 22px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.shelf-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.shelf-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 12px; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; opacity: 0; transform: translateY(10px);
  animation: rowin .6s ease forwards; }
.shelf-row:nth-child(2){ animation-delay: .05s; } .shelf-row:nth-child(3){ animation-delay: .15s; }
.shelf-row:nth-child(4){ animation-delay: .25s; } .shelf-row:nth-child(5){ animation-delay: .35s; }
@keyframes rowin { to { opacity: 1; transform: none; } }
.shelf-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; color: var(--purple-2); }
.shelf-row b { font-size: .92rem; } .shelf-row small { color: var(--muted); }
.shelf-tag { font-family: var(--font-mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--purple) 12%, transparent); color: var(--purple-2); }

/* ---- stat band ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat .num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ---- feature / product cards ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--purple) 30%, var(--border)); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center;
  color: var(--purple-2); font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* section heading block */
.sec-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 14px; }

/* ---- split feature ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text); }
.checklist li i { color: var(--orange); margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px; }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; }
.price.featured { border-color: transparent; box-shadow: var(--shadow); position: relative; background:
  linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.price .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color:#fff;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; padding: 5px 14px; border-radius: 999px; text-transform: uppercase; }
.price h3 { font-size: 1.3rem; margin: 0 0 4px; }
.price .amt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 14px 0 2px; }
.price .amt small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; display: flex; gap: 10px; }
.price ul li i { color: var(--orange); }

/* ---- testimonials ---- */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.quote-card p { font-size: 1.05rem; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }

/* ---- partner logos (text marquee) ---- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: slide 26s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--muted); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- CTA band ---- */
.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 12px auto 26px; }
.cta-band .btn-light { background: #fff; color: var(--purple); }

/* ---- newsletter ---- */
.subscribe { display: flex; gap: 10px; max-width: 460px; margin: 22px auto 0; }
.subscribe input { flex: 1; padding: .85rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* ---- footer ---- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .95rem; margin: 0 0 16px; }
.footer a { color: var(--muted); display: block; padding: 5px 0; font-size: .92rem; }
.footer a:hover { color: var(--purple-2); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; flex-wrap: wrap; gap: 10px; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text); }
.social a:hover { background: var(--grad); color: #fff; }

/* ---- generic page hero ---- */
.page-hero { padding: 72px 0 40px; background: var(--grad-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 10px; }

/* ---- forms ---- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--purple) 40%, transparent); border-color: transparent; }
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 18px; font-size: .93rem; }
.alert-success { background: #e9f7ef; color: #1e7e46; }
.alert-error { background: #fdecec; color: #c0392b; }

/* reveal (AOS-lite fallback) */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ---- responsive ---- */
@media (max-width: 940px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .grid-3, .price-grid, .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; background: var(--surface); flex-direction: column;
    padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 14px; display: none; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
}
@media (max-width: 560px) {
  .stats, .grid-3, .price-grid, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
