/* ============================================================
   Themis Valtinos — design system
   Shared by index, app pages, and privacy pages.
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-soft: #0c1422;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(125, 211, 252, 0.4);
  --text: #edf2ff;
  --text-muted: rgba(237, 242, 255, 0.65);
  --text-subtle: rgba(237, 242, 255, 0.4);
  --brand: #7dd3fc;
  --brand-2: #34d399;
  --accent: #a78bfa;
  --warm: #fbbf24;
  --danger: #f87171;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.25);
  --max-w: 1100px;
  --max-w-narrow: 760px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  cursor: none;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font: inherit; }

/* ── Custom cursor ── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.25s var(--ease-out-expo), height 0.25s var(--ease-out-expo), opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(125, 211, 252, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}
body.cursor-hover .cursor-dot { width: 20px; height: 20px; }
body.cursor-hover .cursor-ring { width: 60px; height: 60px; border-color: rgba(125, 211, 252, 0.7); }

/* ── Loading screen ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-brand {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.loader-bar-track {
  width: min(260px, 60vw);
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
  transition: width 0.1s linear;
}
.loader-pct {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ── Grain overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Parallax glow orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
}
.orb-1 { width: 600px; height: 600px; top: -15%; left: -8%; background: rgba(125,211,252,0.15); }
.orb-2 { width: 500px; height: 500px; top: 30%; right: -12%; background: rgba(167,139,250,0.12); }
.orb-3 { width: 400px; height: 400px; bottom: 5%; left: 20%; background: rgba(52,211,153,0.1); }

/* Theme overrides for orb tints */
body.theme-xeri    .orb-1 { background: rgba(52,211,153,0.18); }
body.theme-xeri    .orb-3 { background: rgba(125,211,252,0.10); }
body.theme-habits  .orb-1 { background: rgba(52,211,153,0.18); }
body.theme-diloti  .orb-1 { background: rgba(251,191,36,0.18); }
body.theme-diloti  .orb-2 { background: rgba(167,139,250,0.10); }
body.theme-diloti  .orb-3 { background: rgba(251,191,36,0.10); }

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s;
}
.site-header.visible { transform: translateY(0); opacity: 1; }

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav .brand {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
  transition: color 0.25s;
}
.nav .brand:hover { color: var(--text); }

.nav-links { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a:focus-visible {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(125,211,252,0.08);
  outline: none;
}

/* ── Layout ── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem 6rem; }
.wrap.narrow { max-width: var(--max-w-narrow); }
section { scroll-margin-top: 80px; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ── Hero (homepage) ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.7s var(--ease-out-expo) 1.6s forwards;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero h1 .word-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: wordReveal 0.9s var(--ease-out-expo) forwards;
}

.hero-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.7s var(--ease-out-expo) 2.8s forwards;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.7s var(--ease-out-expo) 3.1s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.5s var(--ease-out-expo) 3.6s forwards;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes wordReveal {
  to { transform: translateY(0); }
}
@keyframes fadeSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Page hero (sub-pages) ── */
.page-hero {
  position: relative;
  padding: 9rem 0 3rem;
  text-align: left;
}
.page-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--brand);
  border: 1px solid rgba(125,211,252,0.3);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
}
.page-hero .back:hover {
  background: rgba(125,211,252,0.08);
  border-color: var(--brand);
  color: var(--text);
  transform: translateX(-2px);
}
.page-hero .hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.page-hero .hero-icon.xeri    { background: linear-gradient(145deg, #166534, #0d3320); color: #d1fae5; }
.page-hero .hero-icon.habits  { background: linear-gradient(145deg, #22c55e, #15803d); color: #052e16; }
.page-hero .hero-icon.diloti  { background: linear-gradient(145deg, #f59e0b, #b45309); color: #1f1605; }
.page-hero .hero-icon.privacy { background: linear-gradient(145deg, #1e3a8a, #1e293b); color: #bfdbfe; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.page-hero h1 .greek {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7em;
  margin-left: 0.25em;
}
.page-hero .tagline {
  margin-top: 0.6rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  max-width: 52ch;
}
.page-hero .updated {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}

/* Theme accent for page hero back link */
body.theme-diloti .page-hero .back {
  color: var(--warm);
  border-color: rgba(251,191,36,0.3);
}
body.theme-diloti .page-hero .back:hover {
  background: rgba(251,191,36,0.08);
  border-color: var(--warm);
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.3s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.15), transparent 60%);
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn.primary {
  color: #061019;
  background: linear-gradient(120deg, var(--brand), #c4b5fd);
  box-shadow: 0 6px 28px rgba(125,211,252,0.3);
}
.btn.primary:hover { box-shadow: 0 10px 40px rgba(125,211,252,0.45); transform: translateY(-2px); }

.btn.ghost {
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}
.btn.ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(125,211,252,0.06);
  transform: translateY(-2px);
}

.btn.appstore {
  background: #000;
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.btn.appstore:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.6); }

.btn.email {
  background: var(--brand-2);
  color: #052e16;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
}
.btn.email:hover { background: #6ee7b7; transform: translateY(-2px); }

body.theme-diloti .btn.email {
  background: var(--warm);
  color: #1f1605;
}
body.theme-diloti .btn.email:hover { background: #fcd34d; }

/* ── Marquee ── */
.marquee-strip {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1rem 0;
  margin: 1rem 0 2rem;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0 2.5rem;
}
.marquee-track .dot {
  color: var(--brand);
  padding: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section common ── */
.section { margin-top: 3rem; padding-top: 1rem; }
.section-num {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  margin-bottom: -0.6rem;
  user-select: none;
}
.eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
body.theme-diloti .eyebrow { color: var(--warm); }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-bottom: 1.2rem;
}

/* ── Cards ── */
.grid { display: grid; gap: 1rem; }
.grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s, background 0.3s;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(125,211,252,0.08), transparent 40%);
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}
body.theme-diloti .card::before {
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(251,191,36,0.08), transparent 40%);
}
body.theme-diloti .card:hover {
  border-color: rgba(251,191,36,0.4);
}

.card.feature {
  border-color: rgba(125,211,252,0.25);
  background: linear-gradient(180deg, rgba(125,211,252,0.06) 0%, rgba(255,255,255,0.03) 100%);
}
body.theme-diloti .card.feature {
  border-color: rgba(251,191,36,0.25);
  background: linear-gradient(180deg, rgba(251,191,36,0.06) 0%, rgba(255,255,255,0.03) 100%);
}

.card .meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.card h2 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.theme-diloti .card h2 { color: var(--warm); }
.card h2 .icon { font-size: 1.05rem; }
.card h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.card h3 .greek { font-weight: 500; opacity: 0.6; font-size: 0.92em; }
.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.card p:last-child { margin-bottom: 0; }
.card p a {
  color: var(--brand);
  border-bottom: 1px solid rgba(125,211,252,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.card p a:hover { border-color: var(--brand); color: #bae6fd; }
body.theme-diloti .card p a {
  color: var(--warm);
  border-color: rgba(251,191,36,0.3);
}
body.theme-diloti .card p a:hover { border-color: var(--warm); color: #fcd34d; }

.card.center { text-align: center; }
.card.center h2 { justify-content: center; }
.card.center p { margin-left: auto; margin-right: auto; max-width: 38ch; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; margin-bottom: 0.8rem; }
.tag {
  font-size: 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,0.2);
  color: #bae6fd;
  background: rgba(125,211,252,0.08);
  padding: 0.18rem 0.48rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag.green {
  border-color: rgba(52,211,153,0.25);
  background: rgba(52,211,153,0.1);
  color: #6ee7b7;
}
.tag.amber {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.1);
  color: #fcd34d;
}
.tag.purple {
  border-color: rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.1);
  color: #c4b5fd;
}

.card-link {
  font-size: 0.82rem;
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s, gap 0.3s var(--ease-out-expo);
  margin-top: 0.3rem;
}
.card-link::after { content: "->"; font-family: monospace; transition: transform 0.3s var(--ease-out-expo); }
.card-link:hover { color: #86efac; gap: 0.6rem; }
.card-link:hover::after { transform: translateX(2px); }

.card-link.external::after { content: "↗"; font-family: inherit; }

/* Suits ornament */
.suits {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0;
  font-size: 1.4rem;
  opacity: 0.18;
}
.suits .red { color: var(--danger); }

/* ── Timeline (small lists) ── */
.timeline { display: grid; gap: 0.8rem; margin-top: 0.9rem; }
.timeline .item {
  border-left: 2px solid rgba(125,211,252,0.2);
  padding: 0.15rem 0 0.15rem 0.8rem;
}
.timeline .item .when {
  font-size: 0.72rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.timeline .item p { color: var(--text-muted); font-size: 0.88rem; }

/* ── Contact / CTA panel ── */
.contact-section {
  margin-top: 4rem;
  position: relative;
  border: 1px solid rgba(125,211,252,0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(125,211,252,0.12), transparent 70%),
              radial-gradient(ellipse at 50% 100%, rgba(52,211,153,0.08), transparent 60%);
  pointer-events: none;
}
.contact-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  position: relative;
}
.contact-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 48ch;
  margin-inline: auto;
  position: relative;
}
.contact-section .btn { position: relative; }

/* ── Footer ── */
footer.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-subtle);
}
footer.site-footer a { transition: color 0.2s; }
footer.site-footer a:hover { color: var(--brand); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid.two-col,
  .grid.three-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { min-height: 85vh; padding: 6rem 0 3rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .wrap { padding-inline: 1rem; }
  .contact-section { padding: 2rem 1rem; }
  .nav-links { gap: 0.4rem; }
  .nav-links a { font-size: 0.7rem; padding: 0.25rem 0.5rem; }
  .section-num { font-size: 2.5rem; }
  .page-hero { padding: 7.5rem 0 2rem; }
  .page-hero .hero-icon { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
}
@media (max-width: 600px), (hover: none) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .word-inner { transform: none; }
  .hero-kicker, .hero-body, .hero-actions, .hero-scroll-hint { opacity: 1; transform: none; }
}

/* ============================================================
   Apps deck — scroll-driven horizontal fan
   ============================================================ */
@property --deck-open {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.3;
}

.apps-deck {
  --deck-stick-top: 88px;
  --deck-open: 0.3;
  margin-bottom: -1rem;
  padding-bottom: 0;
}

.apps-deck + .section {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.apps-deck .section-intro {
  margin-bottom: 0.35rem;
}

.apps-deck .deck-hint {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.65;
}

.apps-deck .deck-pin {
  position: relative;
  margin-top: 0;
  margin-bottom: -4.5rem;
}

.apps-deck .deck-scroll-track {
  height: 4.5rem;
  margin-top: -3.25rem;
  margin-bottom: -4rem;
  pointer-events: none;
}

.apps-deck .deck-stage {
  --deck-spread: clamp(6.5rem, 22vw, 12rem);
  --deck-rotate: 8deg;
  position: sticky;
  top: var(--deck-stick-top);
  height: 18rem;
  display: grid;
  place-items: center;
  perspective: 1000px;
  pointer-events: none;
}

.apps-deck .deck-card {
  --slot: calc(var(--i) - 1);
  --slot-abs: max(var(--slot), calc(-1 * var(--slot)));
  position: absolute;
  width: min(20rem, 86vw);
  max-width: 20rem;
  padding: 1.2rem 1.15rem;
  transform-origin: 50% 85%;
  z-index: calc(10 + var(--i));
  pointer-events: auto;
  will-change: transform, opacity;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%),
    rgba(12, 18, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transform:
    translateX(calc(var(--slot) * (8px + var(--deck-open) * var(--deck-spread))))
    translateY(calc((1 - var(--deck-open)) * var(--i) * 4px))
    rotateZ(calc(var(--slot) * (1.5deg + var(--deck-open) * var(--deck-rotate) * -1)))
    scale(calc(1 - (1 - var(--deck-open)) * var(--slot-abs) * 0.028));
  opacity: calc(1 - (1 - var(--deck-open)) * var(--slot-abs) * 0.06);
}

.apps-deck .deck-card::after {
  content: "";
  position: absolute;
  left: 1.55rem;
  right: 1.55rem;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    rgba(125,211,252,0) 0%,
    rgba(125,211,252,0.5) 30%,
    rgba(167,139,250,0.5) 70%,
    rgba(125,211,252,0) 100%);
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 720px) {
  .apps-deck .deck-hint { display: none; }

  .apps-deck {
    margin-bottom: 0;
  }

  .apps-deck + .section {
    margin-top: 3rem;
    padding-top: 1rem;
  }

  .apps-deck .deck-pin {
    margin-top: 0;
    margin-bottom: 0;
  }

  .apps-deck .deck-scroll-track {
    display: none;
  }

  .apps-deck .deck-stage {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
    overflow: visible;
    perspective: none;
    pointer-events: auto;
    place-items: stretch;
  }

  .apps-deck .deck-card {
    position: relative;
    width: 100%;
    max-width: none;
    z-index: auto;
    will-change: auto;
    transform: none !important;
    opacity: 1 !important;
    padding: 1.4rem 1.3rem;
    background: var(--surface);
    box-shadow: var(--shadow-card);
  }

  .apps-deck .deck-card::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apps-deck .deck-scroll-track { display: none; }

  .apps-deck .deck-pin { margin-bottom: 0; }

  .apps-deck .deck-stage {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    perspective: none;
    pointer-events: auto;
    place-items: stretch;
  }

  .apps-deck .deck-card {
    position: relative;
    width: 100%;
    max-width: none;
    transform: none !important;
    opacity: 1 !important;
  }
}
