/* Risebox — riseboxai.com */
:root {
  --purple: #5e17eb;
  --purple-dark: #3F0DA8;
  --purple-light: #8c52ff;
  --blue-purple: #5271ff;
  --teal: #5ce1e6;
  --tint: #F0EBFF;
  --tint-2: #EEE8FF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;
  --surface: #F9FAFB;
  --night: #120B2E;
  --night-2: #0B0720;
  --night-line: #2E2552;
  --night-text: #C7C2DD;
  --night-muted: #A9A3C4;
  --ok-bg: #D1FAE5; --ok-fg: #065F46;
  --warn-bg: #FEF3C7; --warn-fg: #92400E;
  --info-bg: #E0F2FE; --info-fg: #075985;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 88px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); font-weight: 500; }
.eyebrow--teal { color: var(--teal); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.section { padding: var(--section) 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--night { background: var(--night); }
.stack { display: flex; flex-direction: column; gap: 48px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid #D1D5DB; }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--light { background: #fff; color: var(--purple-dark); font-weight: 700; font-size: 17px; min-height: 56px; padding: 0 28px; }
.btn--light:hover { background: var(--tint); color: var(--purple-dark); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; line-height: 1.4; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--purple); }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--purple); }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.hero__benefit { font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 500; max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__visual { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.caption { font-size: 12px; color: var(--muted); text-align: right; }

/* Product tour */
.tour { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(31,17,71,.08); overflow: hidden; }
.tour__bar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.tour__tabs { flex: 1 1 auto; display: flex; min-width: 0; }
.tour__tab { position: relative; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); background: #FAFAFB; color: var(--muted); font: 500 13px/1.3 var(--body); display: flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; }
.tour__tab[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; }
.tour__tab .n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tour__track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line-soft); }
.tour__prog { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--purple); }
.tour__tab[aria-pressed="true"] .tour__prog { animation: tourProg 5s linear forwards; }
.tour.is-paused .tour__prog { animation-play-state: paused; }
@keyframes tourProg { from { width: 0; } to { width: 100%; } }
.tour__pause { flex: 0 0 auto; width: 48px; min-height: 48px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tour__pause .i-play { display: none; }
.tour.is-paused .tour__pause .i-play { display: block; }
.tour.is-paused .tour__pause .i-pause { display: none; }
.tour__stage { background: var(--surface); padding: clamp(14px, 2.2vw, 22px); min-height: 410px; }
.scene { display: none; }
.scene.is-active { display: block; animation: sceneIn .55s ease both; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scene.is-active, .tour__tab[aria-pressed="true"] .tour__prog { animation: none; } }
@media (max-width: 520px) { .tour__tab { font-size: 12px; padding: 8px 10px; gap: 6px; } .tour__stage { min-height: 460px; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px; }
.panel__kicker { font-size: 12px; color: var(--muted); }
.panel__title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.panel__foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }
.chip { flex: 0 0 auto; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 4px 8px; line-height: 1.4; }
.chip--ok { background: var(--ok-bg); color: var(--ok-fg); }
.chip--warn { background: var(--warn-bg); color: var(--warn-fg); }
.chip--crit { background: var(--tint); color: var(--purple); }
.chip--info { background: var(--info-bg); color: var(--info-fg); }
.chip--status { min-width: 92px; text-align: center; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.legend::before { content: ""; width: 2px; height: 14px; background: var(--ink); }
.rows { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.row__name { flex: 1 1 150px; font-size: 14px; color: var(--ink); font-weight: 500; }
.segs { display: flex; gap: 3px; }
.segs i { width: 16px; height: 8px; border-radius: 2px; background: var(--line); }
.segs i.on { background: var(--purple); }
.bar { position: relative; flex: 1 1 140px; height: 10px; background: var(--tint-2); border-radius: 5px; }
.bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--purple); }
.bar__fill--soft { background: var(--purple-light); }
.bar__mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.kpi { flex: 1 1 130px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.2; }
.kpi span { font-size: 12px; color: var(--ink-2); }
.fam { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 7px 0; }
.fam__name { flex: 0 0 110px; font-size: 13px; color: var(--ink); }
.fam__val { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Cards */
.grid4 { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card svg { color: var(--purple); }

/* Stats band */
.band .wrap { display: flex; flex-direction: column; gap: 40px; }
.band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.18; color: #fff; max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; }
.stat { background: var(--night); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-size: 15px; color: var(--night-text); }
.band p { font-size: 16px; line-height: 1.6; color: var(--night-text); max-width: 760px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 230px; border-top: 2px solid var(--purple); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.steps li:nth-child(2) { border-color: var(--purple-light); }
.steps li:nth-child(3) { border-color: var(--blue-purple); }
.steps li:nth-child(4) { border-color: var(--teal); }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--purple); font-weight: 500; }
.steps h3 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); }
.steps p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* Insights */
.insights { display: flex; flex-wrap: wrap; gap: 20px; }
.depth { flex: 1 1 360px; background: var(--night); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.depth h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; }
.depth p { font-size: 15px; line-height: 1.6; color: var(--night-text); margin-top: 10px; }
.depth__val { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.depth__val b { font-family: var(--display); font-size: clamp(56px, 6vw, 80px); font-weight: 800; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.depth__val span { font-size: 13px; color: var(--teal); }
.insights__cards { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.insights__cards .card { flex: 1 1 240px; padding: 26px; gap: 10px; }
.insights__cards .card h3 { font-size: 18px; }

/* About */
.about .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.about__head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about__head .h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; }
.about__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 30px; }
.about__copy p { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.about__copy .note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.about__link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 15px; font-weight: 600; padding: 10px 0; text-decoration: none; }
.about__link:hover { text-decoration: underline; }
@media (max-width: 960px) { .about__copy { padding-top: 0; } }

/* CTA */
.cta { padding: clamp(64px, 9vw, 104px) 0; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.cta__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.cta p { font-size: 18px; line-height: 1.6; color: var(--night-text); max-width: 620px; }
.cta__action { flex: 0 1 auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta__mail { font-family: var(--mono); font-size: 13px; color: var(--night-text); text-decoration: none; }
.cta__mail:hover { color: #fff; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--night-2); padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer__brand { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.site-footer__brand b { font-family: var(--display); font-size: 16px; font-weight: 800; letter-spacing: 0.08em; color: #fff; }
.site-footer__brand span, .site-footer small { font-size: 13px; color: var(--night-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
.site-footer a { font-size: 13px; color: var(--night-text); padding: 12px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* Legal page */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 8px; }
.legal .meta { font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 40px 0 12px; line-height: 1.3; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-top: 12px; }
.legal .box p { margin: 0; }
.legal .back { display: inline-flex; margin-top: 48px; font-weight: 600; text-decoration: none; }
.legal .back:hover { text-decoration: underline; }
