/* Ainz Alerts landing — dark zinc base, single calm violet accent, RTL-first. */
:root {
  --bg: #0b0b0f;
  --bg-raise: #111116;
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #63636b;
  --accent: #8b5cf6;
  --accent-deep: #6d43d8;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --green: #22c55e;
  --pink: #f472b6;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* soft violet wash behind the hero only — no neon */
body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background: radial-gradient(55% 60% at 72% 18%, rgba(109, 67, 216, 0.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; backdrop-filter: blur(14px); background: rgba(11, 11, 15, 0.72); border-bottom: 1px solid var(--border); z-index: 10; }
.nav-inner { max-width: 1760px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand.small .brand-mark { width: 20px; height: 20px; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-cta {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 7px 18px;
  transition: background 0.25s var(--ease), transform 0.15s var(--ease);
}
.nav-cta:hover { background: var(--accent-soft); border-color: var(--accent-deep); }
.nav-cta:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.wordmark { grid-column: 1 / -1; justify-self: center; width: min(150px, 34vw); height: auto; margin: -8px 0 -6px; }
.hero {
  max-width: 1760px; margin: 0 auto; padding: 56px 40px 84px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center;
}
.kicker { color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; }
h1 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; }
h1 .accent { color: var(--accent); }
.lede { color: var(--text-dim); font-size: 18px; max-width: 54ch; margin-top: 18px; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-deep); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 14px 30px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px -14px rgba(109, 67, 216, 0.55);
  transition: background 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn-download:hover { background: var(--accent); }
.btn-download:active { transform: translateY(1px) scale(0.985); }
.btn-download svg { flex-shrink: 0; }
.version-chip { color: var(--text-faint); font-size: 14.5px; min-width: 130px; }
.version-chip .en { color: var(--text-dim); }
.chip-skeleton { display: inline-block; width: 110px; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #1c1c22 25%, #26262e 50%, #1c1c22 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fineprint { color: var(--text-faint); font-size: 15px; margin-top: 14px; }

/* load-in cascade */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

/* ---------- hero demo (mock OBS overlay) ---------- */
.stage {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raise);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  direction: ltr; /* the stage mimics OBS — an LTR surface */
}
.stage-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.stage-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #26262e; }
.stage-label { margin-left: auto; color: var(--text-faint); font-size: 14px; }
.stage-view { aspect-ratio: 16 / 9; position: relative; background: repeating-conic-gradient(#101015 0% 25%, #0c0c11 0% 50%) 0 0 / 22px 22px; }
.alert-box {
  position: absolute; inset: 12% 18%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  opacity: 0; transition: opacity 0.45s ease;
}
.alert-box.show { opacity: 1; }
.alert-media { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, #17171e, #101016 55%, #17171e); border: 1px solid var(--border); }
.media-shimmer { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 42%, rgba(139, 92, 246, 0.10) 50%, transparent 58%); background-size: 260% 100%; animation: sweep 3.4s linear infinite; }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.alert-text { position: relative; padding: 0 12px 16px; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.alert-user { display: block; font-weight: 700; font-size: 22px; color: #fff; letter-spacing: 0.01em; }
.alert-action { display: block; font-weight: 600; font-size: 16.5px; margin-top: 2px; color: var(--accent); }
.stage-queue { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 14px; }
.stage-queue .en { color: var(--text-dim); }
.queue-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.queue-dot.live { animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.35; } }

/* ---------- hero extras: downloads count + trust checks ---------- */
.dl-count { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 15.5px; margin-top: 14px; }
.dl-count svg { color: var(--accent); }
.dl-count strong { color: var(--text); font-weight: 700; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 230px)); gap: 10px 26px; margin-top: 18px; }
.checks li { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 15px; font-weight: 500; }
.checks .ck { width: 19px; height: 19px; flex-shrink: 0; color: var(--green); background: rgba(34, 197, 94, 0.12); border-radius: 6px; padding: 2px; }

/* ---------- carousel ---------- */
.car-track { position: relative; aspect-ratio: 16 / 10; }
.car-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.55s var(--ease); pointer-events: none; }
.car-slide.show { opacity: 1; pointer-events: auto; }
.car-slide .stage-view { position: absolute; inset: 0; aspect-ratio: auto; }
.stage-view.solid { background: linear-gradient(160deg, #121218, #0d0d12); }
.car-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0 14px; border-top: 1px solid var(--border); }
.car-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: #2c2c35; cursor: pointer; transition: background 0.25s, transform 0.25s; padding: 0; }
.car-dot.on { background: var(--accent); transform: scale(1.25); }
.car-dot:hover { background: var(--text-faint); }
.car-dot.on:hover { background: var(--accent); }

/* mock: editor (3 panes) */
.mock-editor { position: absolute; inset: 0; display: grid; grid-template-columns: 88px 1fr 96px; gap: 8px; padding: 12px; }
.me-list, .me-props { background: #14141a; border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.me-row { height: 12px; border-radius: 6px; background: #22222b; }
.me-row.on { background: var(--accent-soft); border: 1px solid var(--accent-deep); }
.me-canvas { position: relative; border: 1px solid var(--border); border-radius: 10px; background: repeating-conic-gradient(#101015 0% 25%, #0c0c11 0% 50%) 0 0 / 18px 18px; overflow: hidden; }
.me-media { position: absolute; inset: 14% 12%; border: 1.5px dashed rgba(139, 92, 246, 0.55); border-radius: 8px; background: rgba(139, 92, 246, 0.06); }
.me-text { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-weight: 700; font-size: clamp(13px, 1.3vw, 18px); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.me-field { height: 11px; border-radius: 6px; background: #22222b; }
.me-field.w60 { width: 60%; } .me-field.w80 { width: 80%; }
.me-slider { position: relative; height: 5px; border-radius: 3px; background: #22222b; margin: 6px 0; }
.me-slider i { position: absolute; top: 50%; left: 40%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }

/* mock: dock rows */
.mock-dock { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.md-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.md-title { font-weight: 700; font-size: 15px; }
.md-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: breathe 2.2s ease-in-out infinite; }
.md-row { display: flex; align-items: center; gap: 10px; background: #14141a; border: 1px solid var(--border); border-radius: 9px; padding: 9px 13px; font-size: clamp(12px, 1.15vw, 15px); }
.md-row b { color: #fff; font-weight: 600; }

/* mock: settings toggles */
.mock-settings { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; gap: 11px; }
.ms-box { display: flex; align-items: center; justify-content: space-between; background: #14141a; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.ms-box.tall { flex: 1; align-items: flex-start; }
.ms-label { display: block; height: 12px; width: 60%; border-radius: 6px; background: #22222b; }
.ms-label.w50 { width: 50%; } .ms-label.w40 { width: 40%; } .ms-label.w70 { width: 70%; }
.ms-toggle { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #2c2c35; flex-shrink: 0; }
.ms-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #63636b; }
.ms-toggle.on { background: var(--accent-deep); }
.ms-toggle.on::after { left: 21px; background: #fff; }
.ms-btns { display: flex; gap: 8px; }
.ms-btns i { display: block; width: 64px; height: 26px; border-radius: 8px; background: #22222b; border: 1px solid var(--border); }

/* mock: subathon + goal */
.mock-sub { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 20px; background: linear-gradient(160deg, #121218, #0d0d12); }
.sub-timer { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sub-label { font-size: 12px; font-weight: 700; letter-spacing: 0.35em; color: var(--text-faint); }
.sub-time { font-size: clamp(34px, 3.4vw, 52px); font-weight: 800; letter-spacing: 0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.sub-plus { font-size: 14px; font-weight: 600; color: var(--green); animation: breathe 2.6s ease-in-out infinite; }
.goal-card { width: min(78%, 420px); background: #14141a; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; }
.goal-head { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-dim); margin-bottom: 9px; }
.goal-head b { color: #fff; font-weight: 700; }
.goal-bar { height: 12px; border-radius: 7px; background: #22222b; overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 74%; border-radius: 7px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }

/* ---------- comparison table ---------- */
.compare { max-width: 1760px; margin: 0 auto; padding: 20px 24px 90px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius); max-width: 1100px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; background: var(--bg-raise); font-size: 15.5px; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.compare th { font-size: 15px; font-weight: 700; color: var(--text); background: #14141a; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 170px; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.compare td:first-child { color: var(--text-dim); font-weight: 500; }
.th-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.ic { display: inline-block; width: 24px; height: 24px; border-radius: 8px; background-position: center; background-repeat: no-repeat; background-size: 15px; }
.ic.yes { background-color: rgba(34, 197, 94, 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.ic.no { background-color: rgba(244, 63, 94, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f43f5e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }
.ic.warn { background-color: rgba(245, 158, 11, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E"); }

/* ---------- feature icon tints ---------- */
.i-violet { background: rgba(139, 92, 246, 0.14) !important; color: #a78bfa !important; }
.i-green { background: rgba(34, 197, 94, 0.14) !important; color: #4ade80 !important; }
.i-orange { background: rgba(251, 146, 60, 0.14) !important; color: #fb923c !important; }
.i-red { background: rgba(244, 63, 94, 0.13) !important; color: #fb7185 !important; }
.i-blue { background: rgba(125, 211, 252, 0.13) !important; color: #7dd3fc !important; }
.i-pink { background: rgba(244, 114, 182, 0.13) !important; color: #f472b6 !important; }

/* ---------- sections ---------- */
.section-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 34px; }

.features { max-width: 1760px; margin: 0 auto; padding: 40px 24px 80px; }
.feat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feat { grid-column: span 2; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; background: var(--bg-raise); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.feat-wide { grid-column: span 3; }
.feat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feat-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.feat h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--text-dim); font-size: 15.5px; }

.steps { max-width: 1760px; margin: 0 auto; padding: 20px 24px 80px; }
.steps-row { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 30px 28px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-raise); }
.step-num { color: var(--accent); font-weight: 600; font-size: 15px; }
.step h3 { font-size: 18.5px; font-weight: 700; margin: 9px 0 5px; }
.step p { color: var(--text-dim); font-size: 15px; }

.note { max-width: 1760px; margin: 0 auto; padding: 0 24px 90px; }
.note-box { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), transparent); }
.note-icon { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.note-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.note-box p { color: var(--text-dim); font-size: 15px; }
.note-box strong { color: var(--text); font-weight: 600; }

.footer { border-top: 1px solid var(--border); }
.footer-inner { max-width: 1760px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; }
.footer .brand-name { font-size: 16px; }
.footer-by { color: var(--text-faint); font-size: 15px; }
.footer-by a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.footer-by a:hover { color: var(--accent); }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 48px 20px 64px; gap: 40px; min-height: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat, .feat-wide { grid-column: auto; }
  .steps-row { grid-template-columns: 1fr; border-top: none; }
  .step { padding: 24px 22px; }
  .footer-inner { flex-direction: column; gap: 10px; }
}
