/* MODAX — modax.app marketing site. Self-contained, no build step. */
:root {
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --panel: #ffffff;
  --border: #e6e8ee;
  --ink: #0d1017;
  --muted: #5b6472;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12; --bg-2: #0f1218; --panel: #141821; --border: #232833;
    --ink: #eef1f6; --muted: #9aa4b2; --accent: #7c8bff; --accent-2: #a78bfa;
    --accent-soft: rgba(124, 139, 255, .12);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .4); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  border-radius: 11px; padding: 11px 20px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 36%, transparent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* logo */
.logo { font-size: 21px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.logo b { color: var(--accent); font-weight: 800; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.5) blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 55%, transparent); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-actions .link { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 6px; }
.nav-actions .link:hover { color: var(--ink); }

/* hero */
.hero { position: relative; padding: clamp(56px, 10vw, 108px) 0 clamp(48px, 8vw, 90px); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 640px; z-index: 0; pointer-events: none;
  background: radial-gradient(720px 380px at 22% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%),
              radial-gradient(560px 320px at 92% 8%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 66%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); padding: 6px 13px; border-radius: 30px; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
h1.hero-h { font-size: clamp(38px, 6vw, 66px); font-weight: 820; letter-spacing: -.045em; line-height: 1.02; margin: 22px 0 0; text-wrap: balance; }
h1.hero-h em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 34em; margin-top: 20px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* product mock */
.frame { border: 1px solid var(--border); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.frame-bar .url { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.frame-body { padding: 16px; display: grid; gap: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: var(--bg); }
.mock-stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.mock-stat b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.mock-chart { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--bg); display: grid; gap: 9px; }
.mock-bar { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; }
.mock-bar span { font-size: 11px; color: var(--muted); }
.mock-bar .track { height: 15px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.mock-bar .fill { height: 100%; border-radius: 5px; background: var(--accent); transform-origin: left; animation: grow 1s var(--ease) both; }
.mock-bar .fill.win { background: #16a34a; } .mock-bar .fill.lost { background: #dc2626; opacity: .55; }
@keyframes grow { from { transform: scaleX(0); } }

/* generic section */
section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.s-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.s-head h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.035em; margin-top: 10px; text-wrap: balance; }
.s-head p { color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); margin-top: 14px; }

/* modules */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 14px; }
.mod { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 26%, var(--border)); }
.mod .ico { font-size: 26px; }
.mod h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 12px 0 5px; }
.mod p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* split showcase (web + kiosk) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.alt { direction: rtl; } .split.alt > * { direction: ltr; }
.split h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.split p { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 40ch; }
.split ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.split li { position: relative; padding-left: 26px; }
.split li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.showcase { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; background: var(--panel); }
/* kiosk visual */
.kiosk-vis { aspect-ratio: 16/11; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  color: #fff; box-shadow: var(--shadow-md); background: radial-gradient(600px 340px at 50% -10%, color-mix(in srgb, var(--accent) 60%, #000), transparent 62%), linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #000)); }
.kiosk-vis .q { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.kiosk-faces { display: flex; gap: clamp(6px, 1.4vw, 16px); }
.kiosk-faces span { font-size: clamp(30px, 4vw, 52px); background: rgba(255,255,255,.12); border-radius: 16px; padding: 10px clamp(6px, 1vw, 14px); }

/* marketplace strip */
.market { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 8px; }
.market-grid .v b { color: var(--accent); font-size: 17px; font-weight: 700; }
.market-grid .v p { color: var(--muted); margin-top: 7px; line-height: 1.6; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.tier { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.tier.hot { border-color: var(--accent); box-shadow: 0 14px 40px color-mix(in srgb, var(--accent) 20%, transparent); transform: translateY(-8px); }
.tier .tag { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
.tier .name { font-weight: 700; color: var(--muted); }
.tier .price { font-size: 40px; font-weight: 820; letter-spacing: -.03em; margin: 6px 0; }
.tier .price em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); }
.tier .tl { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.tier ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.tier li { position: relative; padding-left: 24px; font-size: 14px; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.tier .btn { width: 100%; justify-content: center; }

/* final CTA */
.final { text-align: center; }
.final-card { border-radius: 22px; padding: clamp(40px, 7vw, 76px) 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 300px at 50% -30%, color-mix(in srgb, var(--accent) 70%, #fff 12%), transparent 60%), linear-gradient(150deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow-lg); }
.final-card h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 820; letter-spacing: -.035em; text-wrap: balance; }
.final-card p { opacity: .9; margin: 14px 0 28px; font-size: 17px; }
.final-card .btn-primary { background: #fff; color: var(--accent); }
.final-card .btn-primary:hover { box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); }

/* Motion is enhancement only — content is always visible (no JS-gated hiding,
   which breaks in headless/background renderers). One signature entrance on the
   hero; everything else earns motion through hover, not scroll reveals. */
.hero-grid > div:first-child { animation: heroIn .6s var(--ease-expo) both; }
.hero .frame { animation: heroIn .7s .08s var(--ease-expo) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero .frame { animation-name: heroFrameIn; }
@keyframes heroFrameIn { from { opacity: 0; transform: perspective(1600px) rotateY(-9deg) rotateX(3deg) translateY(16px); } }
@media (max-width: 900px) { @keyframes heroFrameIn { from { opacity: 0; transform: translateY(16px); } } }
@media (prefers-reduced-motion: reduce) { .hero-grid > div:first-child, .hero .frame { animation: none; } }

/* mobile */
.nav-burger { display: none; background: none; border: none; cursor: pointer; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .frame { transform: none; }
  .split, .split.alt { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock-bar .fill { animation: none; }
}
