:root {
  color-scheme: dark;
  --bg: #050b16;
  --panel: #0b1728;
  --text: #eef5ff;
  --muted: #9fb1c8;
  --blue: #4db8ff;
  --gold: #ffd166;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 5%, rgba(35, 117, 255, .18), transparent 32rem),
    radial-gradient(circle at 8% 35%, rgba(255, 174, 66, .09), transparent 25rem),
    var(--bg);
}
a { color: inherit; }
.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid rgba(255,209,102,.7); border-radius: 10px; color: var(--gold); background: linear-gradient(145deg, #16273d, #09111e); box-shadow: 0 0 30px rgba(255,209,102,.12); }
.contact-link { padding: 9px 15px; border: 1px solid #29415f; border-radius: 999px; text-decoration: none; color: #d8e6f7; }
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(76px, 10vw, 125px); max-width: 900px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3.4rem, 9vw, 7.7rem); line-height: .92; letter-spacing: -.07em; }
h1 span { color: var(--blue); text-shadow: 0 0 50px rgba(77,184,255,.22); }
.hero-copy { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.35rem); line-height: 1.65; }
.section-heading h2 { margin: 0 0 32px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { position: relative; overflow: hidden; min-height: 390px; padding: 34px; border: 1px solid #1d3552; border-radius: 28px; background: linear-gradient(145deg, rgba(17,37,63,.92), rgba(7,16,30,.98)); box-shadow: 0 20px 70px rgba(0,0,0,.22); }
.app-card::after { content: ""; position: absolute; width: 260px; aspect-ratio: 1; right: -95px; top: -100px; border-radius: 50%; background: var(--glow); filter: blur(2px); opacity: .22; }
.stellar { --glow: #168cff; }
.facttempo { --glow: #ff9b42; }
.duoneme { --glow: #54e0c2; }
.qwizia { --glow: #bd72ff; }
.app-symbol { position: relative; z-index: 1; display: grid; place-items: center; width: 74px; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--glow) 65%, white 10%); border-radius: 22px; color: white; background: color-mix(in srgb, var(--glow) 23%, #07101e); font-size: 1.1rem; font-weight: 900; box-shadow: 0 0 40px color-mix(in srgb, var(--glow) 28%, transparent); }
.app-type { margin: 35px 0 8px; color: var(--muted); font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.app-card h3 { margin: 0; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.05em; }
.app-card > p:last-of-type { max-width: 470px; min-height: 76px; color: #b8c9dc; line-height: 1.6; }
.card-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; }
.card-links a { position: relative; z-index: 1; color: #dcecff; font-size: .9rem; font-weight: 700; text-underline-offset: 5px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 100px; padding: 28px 0 48px; border-top: 1px solid #1a2d46; color: var(--muted); font-size: .9rem; }

.legal-shell { width: min(820px, calc(100% - 40px)); margin: 70px auto 100px; }
.legal-shell .back { color: var(--blue); font-weight: 700; text-decoration: none; }
.legal-shell h1 { margin: 50px 0 16px; font-size: clamp(2.7rem, 8vw, 5rem); line-height: 1; }
.legal-shell h2 { margin-top: 42px; font-size: 1.45rem; }
.legal-shell p, .legal-shell li { color: #c0d0e2; line-height: 1.75; }
.legal-shell .meta { color: var(--muted); }
.legal-shell .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 50px; }
.button { display: inline-flex; padding: 12px 18px; border: 1px solid #31547b; border-radius: 12px; background: #10253f; text-decoration: none; font-weight: 750; }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 72px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: auto; padding: 26px; }
  .app-card > p:last-of-type { min-height: 0; }
}
