/* Vedetta landing, dark-first, tokens from docs/design-system.md */
:root {
  --accent:        #8167f0;
  --accent-hover:  #9a82fb;
  --accent-press:  #6c50e0;
  --accent-quiet:  rgba(129,103,240,.16);
  --on-accent:     #14101c;

  --bg:            #14101c;
  --surface:       #1b1626;
  --surface-2:     #221b30;
  --elevated:      #2a2238;
  --border:        #322a44;
  --border-strong: #463b5d;

  --text:          #f4f1fa;
  --text-2:        #b7aecb;
  --text-3:        #897f9e;

  --fatal:   #de6e92;
  --error:   #f87078;
  --warning: #f2a64a;
  --info:    #5c9dff;
  --debug:   #a99fc0;
  --success: #3dd68c;

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --maxw: 1120px;
  --ease: cubic-bezier(.2,0,0,1);
  --shadow-2: 0 18px 50px -12px rgba(0,0,0,.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px;
  border-radius: var(--r-md); font-weight: 600; transition: top .15s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 2px; border-radius: var(--r-sm); }

/* ░░ buttons ░░ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; border-radius: var(--r-pill);
  padding: 11px 20px; cursor: pointer; border: 1px solid transparent;
  transition: background .15s var(--ease), transform .15s var(--ease), border-color .15s var(--ease);
}
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); background: var(--accent-press); }

/* ░░ nav ░░ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,16,28,.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { flex: none; }
.brand__name { font-size: 18px; letter-spacing: -.01em; }
.brand__pill {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  padding: 3px 9px; letter-spacing: .01em;
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links .btn--primary { color: var(--on-accent); }

/* ░░ hero ░░ */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 760px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 22% 12%, rgba(129,103,240,.30), transparent 70%),
    radial-gradient(560px 380px at 88% 0%, rgba(108,80,224,.22), transparent 72%);
  filter: blur(2px);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow {
  color: var(--accent-hover); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.hero__title { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.grad {
  background: linear-gradient(100deg, #b9a6ff 0%, var(--accent) 55%, var(--accent-press) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); margin: 22px 0 30px; max-width: 36ch; }
.hero__sub strong { color: var(--text); font-weight: 600; }

/* store buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: 10px 18px; color: var(--text);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.store:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-1px); }
.store svg { flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10px; color: var(--text-3); font-weight: 500; letter-spacing: .02em; }
.store strong { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.store.is-pending { opacity: .82; }
.store.is-pending::after {
  content: "soon"; margin-left: 4px; align-self: center;
  font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-hover); background: var(--accent-quiet);
  border-radius: var(--r-pill); padding: 2px 7px;
}
.cta-note { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }

/* ░░ phone mockup ░░ */
.hero__art { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 300 / 620;
  background: linear-gradient(180deg, #0f0b16, #15101e);
  border: 1px solid var(--border-strong); border-radius: 40px;
  padding: 12px; box-shadow: var(--shadow-2);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #0d0a13; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone__screen {
  height: 100%; background: var(--bg); border-radius: 30px; overflow: hidden;
  border: 1px solid var(--border);
}
.app { padding: 44px 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.app__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
.app__title { font-size: 19px; font-weight: 700; }
.app__chip {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--accent-hover);
  background: var(--accent-quiet); border-radius: var(--r-pill); padding: 4px 10px;
}
.row {
  display: flex; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 11px 10px 0; overflow: hidden;
}
.row__bar { width: 3px; flex: none; border-radius: 3px; }
.row--error  .row__bar { background: var(--error); }
.row--warning .row__bar { background: var(--warning); }
.row--fatal  .row__bar { background: var(--fatal); }
.row--info   .row__bar { background: var(--info); }
.row__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row__top { display: flex; align-items: center; gap: 7px; }
.row__title {
  font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lvl {
  flex: none; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  border-radius: var(--r-sm); padding: 2px 6px;
}
.lvl--error   { color: var(--error);   background: rgba(248,112,120,.14); }
.lvl--warning { color: var(--warning); background: rgba(242,166,74,.14); }
.lvl--fatal   { color: var(--fatal);   background: rgba(222,110,146,.14); }
.lvl--info    { color: var(--info);    background: rgba(92,157,255,.14); }
.row__culprit { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__meta { font-size: 10.5px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.row__meta .num { color: var(--text-2); font-weight: 600; }
.row__meta .dot { color: var(--border-strong); }

/* ░░ capabilities strip ░░ */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.strip__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  padding: 18px 24px; color: var(--text-2); font-size: 14px;
}
.strip strong { color: var(--text); font-weight: 600; }
.strip__sep { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ░░ generic section ░░ */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section__head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }

/* ░░ features grid ░░ */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-md); background: var(--accent-quiet); margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; }
.card code { font-size: 12.5px; color: var(--accent-hover); background: var(--accent-quiet); padding: 1px 6px; border-radius: var(--r-sm); }

/* ░░ split highlights ░░ */
.section--split { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.section--reverse .split__art { order: -1; }
.split__copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin-bottom: 16px; }
.split__copy > p { color: var(--text-2); font-size: 16.5px; max-width: 44ch; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--accent-quiet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17'%3E%3Cpath fill='none' stroke='%239a82fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5 7 11.5 13 5'/%3E%3C/svg%3E");
}

/* notification mockups */
.split__art { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.notif {
  width: min(380px, 100%); background: rgba(34,27,48,.92); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-2); backdrop-filter: blur(8px);
}
.notif--ghost { opacity: .6; transform: scale(.96); }
.notif__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.notif__app { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.notif__time { font-size: 11px; color: var(--text-3); }
.notif__title { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.notif__body { font-size: 13px; color: var(--text-2); }

/* code/stack mockup */
.code {
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 8px; font-family: "JetBrains Mono", monospace;
  font-size: 12.5px; box-shadow: var(--shadow-2); overflow: hidden;
}
.code__frame { padding: 9px 11px; border-radius: var(--r-sm); color: var(--text-3); }
.code__frame--sys { color: var(--text-3); }
.code__frame.collapsed { color: var(--accent-hover); background: var(--accent-quiet); text-align: center; font-size: 11.5px; }
.code__frame--app {
  background: var(--accent-quiet); border-left: 3px solid var(--accent);
  color: var(--text); padding-left: 12px; margin: 4px 0;
}
.code__path { color: var(--accent-hover); }
.code__fn { color: var(--info); }
.code__ctx { color: var(--text-2); padding: 2px 0 2px 2px; }
.code__ctx--hit { background: rgba(248,112,120,.12); color: var(--text); border-radius: 3px; }
.code__ctx .ln { display: inline-block; width: 22px; color: var(--text-3); user-select: none; }

/* ░░ CTA band ░░ */
.cta { position: relative; padding: clamp(64px, 9vw, 110px) 0; text-align: center; overflow: hidden; border-top: 1px solid var(--border); }
.cta__glow {
  position: absolute; inset: auto 0 -40% 0; height: 520px; z-index: 0; pointer-events: none;
  background: radial-gradient(620px 360px at 50% 100%, rgba(129,103,240,.26), transparent 72%);
}
.cta__inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.cta p { color: var(--text-2); font-size: 17px; max-width: 46ch; margin: 18px auto 28px; }

/* ░░ footer ░░ */
.foot { border-top: 1px solid var(--border); background: var(--surface); padding: 52px 0 36px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.foot__tag { color: var(--text-3); font-size: 14px; margin-top: 12px; max-width: 32ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { color: var(--text-2); font-size: 14.5px; transition: color .15s var(--ease); }
.foot__links a:hover { color: var(--text); }
.foot__legal { padding-top: 24px; }
.foot__legal p { color: var(--text-3); font-size: 12.5px; max-width: 78ch; }
.foot__legal strong { color: var(--text-2); }
.foot__copy { margin-top: 14px; }

/* ░░ responsive ░░ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .section--reverse .split__art { order: 0; }
  .split__copy { text-align: center; }
  .split__copy > p { margin-left: auto; margin-right: auto; }
  .ticks { display: inline-flex; text-align: left; }
}
@media (max-width: 620px) {
  .nav__links a:not(.btn) { display: none; }
  .brand__pill { display: none; }
  .grid { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
}
