/* Stage Digital Group LLC — site styles. Plain CSS, no build. */

:root {
  --bg: #f8f7f4;
  --bg-alt: #f1efea;
  --surface: #ffffff;
  --text: #16161a;
  --muted: #56565e;
  --faint: #84848b;
  --line: #e6e3dc;
  --line-strong: #d2cec5;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-ink: #ffffff;
  --accent-soft: #fbede5;
  --hero-bg: #141416;
  --hero-text: #f3f1ee;
  --hero-muted: #a8a7ad;
  --hero-line: rgba(255, 255, 255, .1);
  --hero-accent: #fb8a4e;
  --shadow: 0 1px 2px rgba(22, 22, 26, .05), 0 10px 28px -14px rgba(22, 22, 26, .16);
  --radius: 16px;
  --wrap: 1120px;
  --read: 720px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f11;
    --bg-alt: #141417;
    --surface: #18181c;
    --text: #f1f0ee;
    --muted: #a9a8ad;
    --faint: #85848a;
    --line: #26262b;
    --line-strong: #34343a;
    --accent: #fb8a4e;
    --accent-hover: #fda574;
    --accent-ink: #1c0e06;
    --accent-soft: rgba(251, 138, 78, .12);
    --hero-bg: #08080a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f11;
  --bg-alt: #141417;
  --surface: #18181c;
  --text: #f1f0ee;
  --muted: #a9a8ad;
  --faint: #85848a;
  --line: #26262b;
  --line-strong: #34343a;
  --accent: #fb8a4e;
  --accent-hover: #fda574;
  --accent-ink: #1c0e06;
  --accent-soft: rgba(251, 138, 78, .12);
  --hero-bg: #08080a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 680; }
p { margin: 0 0 1em; }
strong { font-weight: 620; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 680; letter-spacing: -0.02em; font-size: 17px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-alt); }
.theme-btn {
  width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 10px; cursor: pointer; padding: 0;
}
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; font: 620 15.5px/1 var(--font);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: var(--faint); }
.hero .btn-primary { background: var(--hero-accent); color: #1c0e06; }
.hero .btn-primary:hover { background: #fda574; color: #1c0e06; }
.hero .btn-ghost { background: transparent; color: var(--hero-text); border-color: rgba(255, 255, 255, .22); }
.hero .btn-ghost:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Hero (dark band in both themes) */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 96px 0 104px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 35%; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251, 138, 78, .18), transparent);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-muted); }
.label::before { content: ""; width: 28px; height: 2px; background: var(--hero-accent); border-radius: 2px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 24px; }
.hero h1 span { color: var(--hero-accent); }
.lead { font-size: 19.5px; color: var(--hero-muted); max-width: 32em; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero art: a browser window and a phone with app tiles (abstract, no real data) */
.devices { position: relative; height: 430px; }
.browser {
  position: absolute; left: 0; top: 34px; width: 78%; height: 330px;
  border: 1px solid var(--hero-line); border-radius: 14px; background: #1b1b1f; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.browser .bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--hero-line); }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.browser .bar b { margin-left: 12px; height: 14px; width: 46%; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.browser .body { display: grid; grid-template-columns: 26% 1fr; height: calc(100% - 34px); }
.browser .side { border-right: 1px solid var(--hero-line); padding: 16px 12px; display: grid; align-content: start; gap: 10px; }
.browser .side i { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.browser .side i:first-child { background: rgba(251, 138, 78, .55); width: 70%; }
.browser .side i:nth-child(3) { width: 80%; }
.browser .side i:nth-child(4) { width: 60%; }
.browser .main { padding: 16px; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.browser .main .h { height: 14px; width: 42%; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.browser .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.browser .cards i { height: 54px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hero-line); }
.browser .chart { border-radius: 9px; border: 1px solid var(--hero-line); background: linear-gradient(180deg, rgba(251, 138, 78, .14), rgba(251, 138, 78, 0) 70%); position: relative; overflow: hidden; }
.browser .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone {
  position: absolute; right: 0; top: 0; width: 212px; height: 430px; padding: 14px 12px;
  border-radius: 34px; background: #0c0c0e; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), inset 0 0 0 5px #1a1a1e;
}
.phone .notch { width: 64px; height: 18px; border-radius: 10px; background: #1a1a1e; margin: 4px auto 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 8px; }
.tiles i { aspect-ratio: 1; border-radius: 11px; background: rgba(255, 255, 255, .08); }
.tiles i:nth-child(3n+2) { background: rgba(255, 255, 255, .13); }
.tiles i:nth-child(5) { background: var(--hero-accent); }
.tiles i:nth-child(10) { background: rgba(251, 138, 78, .45); }
.tiles i:nth-child(15) { background: rgba(255, 255, 255, .2); }
.tiles .app-mark { background: #f3f1ee; display: grid; place-items: center; }
.tiles .app-mark svg { width: 62%; height: 62%; }
.dock { position: absolute; left: 14px; right: 14px; bottom: 16px; padding: 10px; border-radius: 18px; background: rgba(255, 255, 255, .07); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dock i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .12); }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.kicker { font-size: 13px; font-weight: 680; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0; }

/* What we do */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.service .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.service .ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.015em; }
.service p { color: var(--muted); margin: 0; font-size: 16px; }

/* Products */
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 30px 32px; border-bottom: 1px solid var(--line); }
.product-head .app-icon { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(145deg, #2a2a30, #121215); color: #f3f1ee; display: grid; place-items: center; flex: none; }
.product-head .app-icon svg { width: 30px; height: 30px; }
.product-head .name { flex: 1 1 260px; }
.product-head h3 { font-size: 26px; letter-spacing: -0.02em; }
.product-head .name p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.product-body { display: grid; grid-template-columns: 1.15fr .85fr; }
.product-body > div { padding: 30px 32px; }
.product-body > div + div { border-left: 1px solid var(--line); background: color-mix(in srgb, var(--bg-alt) 50%, var(--surface)); }
.product-body p { color: var(--muted); }
.product-body h4 { margin: 0 0 14px; font-size: 13px; font-weight: 680; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; }
.checks li svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: 3px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 14.5px; font-weight: 650; }
.facts dd { margin: 0; font-size: 15px; color: var(--muted); }
.more { margin-top: 22px; color: var(--faint); font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 2px solid var(--text); padding: 20px 4px 0; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .04em; margin-bottom: 12px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.012em; }
.steps p { color: var(--muted); font-size: 15.5px; margin: 0; }
.note { margin-top: 34px; color: var(--muted); font-size: 15.5px; }

/* Company + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 20px; margin-bottom: 18px; letter-spacing: -0.012em; }
.info { margin: 0; display: grid; }
.info div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.info div:first-child { border-top: 0; padding-top: 0; }
.info dt { color: var(--faint); font-size: 15px; }
.info dd { margin: 0; font-size: 15.5px; }
.contact-card { display: flex; flex-direction: column; }
.contact-card p { color: var(--muted); }
.email-big { font-size: clamp(20px, 2.4vw, 25px); font-weight: 680; letter-spacing: -0.02em; text-decoration: none; word-break: break-all; margin: 6px 0 14px; display: inline-block; }
.contact-card .small { font-size: 14.5px; color: var(--faint); margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 40px; font-size: 14.5px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand p { margin: 12px 0 0; max-width: 340px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--faint); font-size: 13.5px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: calc(var(--read) + 48px); }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.legal h1 { font-size: clamp(32px, 4.4vw, 44px); letter-spacing: -0.03em; margin-bottom: 10px; }
.legal .updated { color: var(--faint); font-size: 15px; margin-bottom: 30px; }
.summary { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 36px; }
.summary h2 { font-size: 16px; margin-bottom: 10px; letter-spacing: 0; }
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 5px 0; }
.summary .fine { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.legal article h2 { font-size: 21px; margin: 38px 0 12px; letter-spacing: -0.012em; }
.legal article h3 { font-size: 17px; margin: 24px 0 8px; letter-spacing: 0; }
.legal article ul { padding-left: 22px; margin: 0 0 1em; }
.legal article li { margin: 6px 0; }
.legal .contact-box { margin-top: 40px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal .contact-box p:last-child { margin-bottom: 0; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: 40px; margin-bottom: 12px; }
.notfound p { color: var(--muted); }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .devices { height: 400px; max-width: 560px; }
  .services { grid-template-columns: 1fr; }
  .product-body { grid-template-columns: 1fr; }
  .product-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 58px; gap: 10px; }
  .nav a.hide-sm { display: none; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .brand { font-size: 16px; }
  .hero { padding: 52px 0 60px; }
  .label { margin-bottom: 20px; font-size: 12px; }
  .lead { font-size: 17.5px; }
  .actions .btn { flex: 1 1 auto; }
  .devices { height: 360px; }
  .browser { width: 86%; height: 250px; top: 40px; }
  .browser .side { display: none; }
  .browser .body { grid-template-columns: 1fr; }
  .phone { width: 168px; height: 340px; border-radius: 28px; padding: 12px 10px; }
  .phone .notch { margin-bottom: 14px; }
  .tiles { gap: 9px; padding: 0 4px; }
  .tiles i { border-radius: 9px; }
  .dock { gap: 9px; padding: 8px; left: 12px; right: 12px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .service { padding: 24px 20px; }
  .product-head, .product-body > div { padding: 22px 20px; }
  .steps { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .legal { padding: 36px 0 60px; }
  .summary { padding: 18px; }
}
@media (max-width: 380px) {
  .theme-btn { width: 34px; height: 34px; }
  .nav a { padding: 8px 7px; }
}
