/* aimagen.app — MA.GEN landing page.
   Tokens follow the MA.GEN app (~/code/command-center/static/app.css), not Design System V4:
   MA.GEN is white label and has its own look (Majid, 2026-11-21). Keep the two in step. */
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0b0c; --s1: #161618; --s2: #1d1d21; --s3: #27272c; --media: #0e0e10;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
  --ink: #f5f5f4; --ink-2: #b9b9c0; --ink-3: #8c8c95;
  --accent: #f6862f; --accent-hot: #ff9d4d; --accent-soft: rgba(246, 134, 47, .13); --accent-line: rgba(246, 134, 47, .5); --on-accent: #1a0d02;
  --ok: #58d68d;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1); --fast: 160ms; --slow: 280ms;
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, .75);
  --wrap: 1200px; --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(88px, 12vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; inset-inline-start: -999px; top: 10px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { inset-inline-start: 10px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo-ic { width: 18px; height: 18px; flex: none; fill: currentColor; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sec { padding-block: var(--sec) 0; }
.sec:last-of-type { padding-block-end: var(--sec); }
.head { max-width: 760px; margin-inline: auto; text-align: center; margin-block-end: clamp(40px, 6vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-block-end: 18px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(42px, 7.2vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.head .lede { margin-block-start: 18px; }
.muted { color: var(--ink-3); }
.soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 10px; vertical-align: middle; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); font-size: 16px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); white-space: nowrap; touch-action: manipulation; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hot); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--s2); border-color: rgba(255, 255, 255, .24); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; color: var(--ink-3); border-color: var(--line-2); background: transparent; }
.btn[aria-disabled="true"]:hover { background: transparent; }
.btn[aria-disabled="true"]:active { transform: none; }
.btn .tag { font-size: 12px; font-weight: 700; color: var(--ink-3); border-inline-start: 1px solid var(--line-2); padding-inline-start: 10px; margin-inline-start: 2px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .72); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); border-block-end: 1px solid transparent; transition: border-color var(--slow) var(--ease); }
.top.scrolled { border-block-end-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }
.top nav { display: flex; gap: 26px; margin-inline-start: auto; }
.top nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color var(--fast) var(--ease); }
.top nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 9vw, 112px) 0; text-align: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-inline: 0; top: 34%; height: 70%; background: radial-gradient(60% 55% at 50% 40%, rgba(246, 134, 47, .16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero .lede { max-width: 640px; margin: 24px auto 0; }
.dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 36px; }
.dl-note { margin-block-start: 16px; font-size: 14px; color: var(--ink-3); }
.window { margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1120px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--s1); box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, .025); overflow: hidden; }
.window-bar { display: flex; gap: 7px; padding: 12px 14px; border-block-end: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--s3); }
.window img { width: 100%; aspect-ratio: 1800 / 1125; object-fit: cover; }
.remember { margin-block-start: 28px; font-size: 15px; color: var(--ink-3); }
.remember em { font-style: normal; color: var(--ink); font-weight: 700; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pillars li { background: var(--bg); padding: 32px 28px; }
.pillars h3 { margin-block-end: 6px; }
.pillars p { color: var(--ink-2); font-size: 16px; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.tile:hover { border-color: var(--line-2); background: var(--s2); }
.tile .ic { color: var(--ink); margin-block-end: 20px; width: 26px; height: 26px; }
.tile h3 { font-size: 18px; margin-block-end: 6px; }
.tile p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- campaign set ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block-end: 28px; counter-reset: step; }
.flow li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--s1); }
.flow li::before { counter-increment: step; content: counter(step); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--s3); }
.flow h3 { font-size: 17px; }
.flow p { color: var(--ink-2); font-size: 15px; }
.set { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.set figure { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--media); aspect-ratio: 3 / 4; }
.set img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.set figure:hover img { transform: scale(1.03); }
.set figcaption { position: absolute; inset-inline: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(11, 11, 12, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); width: max-content; max-width: calc(100% - 16px); }
.caption { margin-block-start: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------- checks ---------- */
.checks { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.check-list .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); font-weight: 800; }
.check-list h3 { margin-block-end: 4px; }
.check-list p { color: var(--ink-2); font-size: 16px; }
.check-foot { margin-block-start: 20px; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); color: var(--ink-2); font-size: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo img { border-radius: var(--r-lg); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--media); }

/* ---------- tools ---------- */
.shot { border-radius: var(--r-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--s1); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-block-start: 20px; }
.tools li { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--s1); }
.tools .ic { margin-block-end: 14px; }
.tools h3 { font-size: 16px; margin-block-end: 4px; }
.tools p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-block-start: clamp(64px, 9vw, 112px); }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); }
.points { display: grid; gap: 18px; margin-block-start: 26px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.points .ic { color: var(--accent-hot); margin-block-start: 2px; }
.points strong { display: block; font-weight: 700; }
.points span { color: var(--ink-2); font-size: 16px; }

/* ---------- standard ---------- */
.brief { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-block-end: 18px; }
.brief li { background: var(--bg); padding: 22px 24px; display: flex; gap: 14px; align-items: baseline; font-weight: 700; }
.brief li span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.center-note { text-align: center; color: var(--ink-2); font-size: 16px; }

/* ---------- worries ---------- */
.worries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.worries li { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.worries li:last-child { grid-column: 1 / -1; }
.worries q { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-block-end: 8px; quotes: "“" "”"; }
.worries p { color: var(--ink-2); font-size: 16px; }

/* ---------- white label ---------- */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.themes figure { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.themes figcaption { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--s1); border-block-start: 1px solid var(--line); }

/* ---------- privacy ---------- */
.privacy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.privacy li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--s1); }
.privacy h3 { margin-block-end: 6px; }
.privacy p { color: var(--ink-2); font-size: 16px; }
.privacy li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- path ---------- */
.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.path li { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--s1); }
.path .step { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.path h3 { font-size: 24px; margin: 10px 0 8px; }
.path p { color: var(--ink-2); font-size: 16px; }
.path .pill { display: inline-block; margin-block-start: 18px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--ink); }
.path li:first-child .pill { border-color: var(--accent-line); color: var(--accent-hot); background: var(--accent-soft); }

/* ---------- final call ---------- */
.final { position: relative; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gut); border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(70% 90% at 50% 0%, rgba(246, 134, 47, .14), transparent 70%), var(--s1); overflow: hidden; }
.final h2 { max-width: 16ch; margin-inline: auto; }
.final .lede { max-width: 600px; margin: 20px auto 0; }
.final .alt { margin-block-start: 22px; font-size: 15px; color: var(--ink-2); }
.final .alt a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { border-block-start: 1px solid var(--line); padding-block: 40px; margin-block-start: var(--sec); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-3); }
.foot .maker { display: flex; align-items: center; gap: 14px; }
.foot .maker img { width: 40px; height: auto; opacity: .9; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .set { grid-template-columns: repeat(3, 1fr); }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .brief { grid-template-columns: repeat(2, 1fr); }
  .checks, .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .br-wide { display: none; }
  .top nav { display: none; }
  .top .btn { margin-inline-start: auto; }
  .pillars, .flow, .path, .worries, .privacy, .themes { grid-template-columns: 1fr; }
  .worries li:last-child { grid-column: auto; }
  .set { grid-template-columns: repeat(2, 1fr); }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .dl .btn { width: 100%; }
  .foot .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .rv { opacity: 1; transform: none; }
}
