/* ============================================
   Str4toX Studio — Design System
   ============================================ */

:root {
  /* Backgrounds */
  --color-bg-primary: #000000;
  --color-bg-secondary: #0B0B0C;
  --color-bg-tertiary: #141616;
  --color-bg-quaternary: #1C1C1C;

  /* Text */
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #E7E7E8;
  --color-text-tertiary: #98999B;
  --color-text-muted: #6B6C6E;

  /* Brand */
  --color-brand-primary: #E8390E;
  --color-brand-hover: #FF4A1C;
  --color-brand-dark: #B82E0B;
  --color-brand-glow: rgba(232, 57, 14, 0.08);

  /* Semantic */
  --color-success: #27AE60;
  --color-warning: #F39C12;
  --color-error: #E74C3C;
  --color-info: #2E86C1;

  --color-border: #1C1C1C;
  --color-border-strong: #3B3B3B;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --t-fast: 0.15s ease;
  --t-med: 0.2s ease;
  --t-slow: 0.3s ease-out;
}

/* ============================================
   Reveal / entrance animations
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero__content > * {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__content > .eyebrow      { animation-delay: 0.05s; }
.hero__content > .hero__title  { animation-delay: 0.15s; }
.hero__content > .hero__sub    { animation-delay: 0.25s; }
.hero__content > .hero__actions{ animation-delay: 0.35s; }
.hero__content > .hero__stats  { animation-delay: 0.45s; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--color-bg-primary);
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--color-text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 48px; font-weight: 700; line-height: 1.1; }
h2 { font-size: 32px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-tertiary); font-weight: 500; }

.text-accent { color: var(--color-brand-primary); }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: rgba(232, 57, 14, 0.12);
  border: 1px solid rgba(232, 57, 14, 0.22);
  border-radius: var(--radius-sm);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ============================================
   Logo
   ============================================ */
.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.logo__bracket {
  color: var(--color-brand-primary);
  font-weight: 700;
  display: inline-block;
  transform: scaleX(-1);
  margin-right: 2px;
}
.logo__accent { color: var(--color-brand-primary); }
.logo__suffix {
  color: var(--color-text-tertiary);
  font-weight: 500;
  margin-left: 6px;
  font-size: 13px;
}
.logo__img {
  height: 26px;
  width: auto;
  display: block;
}
.footer .logo__img { height: 18px; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--color-brand-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(232, 57, 14, 0.15);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -200% 0;
  pointer-events: none;
}
.btn--primary:hover::before { animation: shimmer 1.1s ease forwards; }
.btn--primary:hover { background: var(--color-brand-hover); transform: translateY(-1px); box-shadow: 0 4px 24px rgba(232, 57, 14, 0.30); }
.btn--primary:active { background: var(--color-brand-dark); }

.btn--secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-strong);
}
.btn--secondary:hover { border-color: var(--color-brand-primary); color: var(--color-text-primary); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-tertiary);
  padding: 6px 12px;
}
.btn--ghost:hover { color: var(--color-text-primary); }

.btn--lg { padding: 14px 22px; font-size: 15px; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  background: transparent;
  transition: background var(--t-slow), border-color var(--t-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__menu {
  display: flex;
  gap: var(--space-6);
}
.nav__menu a {
  font-size: 14px;
  color: var(--color-text-tertiary);
  transition: color var(--t-fast);
  position: relative;
  padding: 4px 0;
}
.nav__menu a:hover { color: var(--color-text-primary); }
.nav__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--color-brand-primary);
  transition: width var(--t-med);
}
.nav__menu a:hover::after { width: 100%; }

.nav__cta { display: flex; gap: var(--space-3); align-items: center; }

.lang-switch {
  display: inline-flex;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--color-text-tertiary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch button:hover { color: var(--color-text-primary); }
.lang-switch button.is-active {
  background: var(--color-brand-primary);
  color: #fff;
}

.nav__burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--t-med);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232, 57, 14, 0.10), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232, 57, 14, 0.04), transparent 50%);
  pointer-events: none;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero__title {
  font-size: 56px;
  margin-bottom: var(--space-5);
}
.hero__sub {
  font-size: 16px;
  color: var(--color-text-tertiary);
  max-width: 540px;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  max-width: 600px;
}
.stat strong {
  display: block;
  font-size: 24px;
  color: var(--color-text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Hero phones */
.hero__visual {
  position: relative;
  height: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--color-brand-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.phone {
  position: absolute;
  width: 240px;
  height: 480px;
  background: var(--color-bg-tertiary);
  border-radius: 32px;
  border: 2px solid var(--color-border-strong);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 1;
  opacity: 0;
  will-change: transform, opacity;
}
.phone--back {
  --rest-x: -90px;
  --rest-y: -10px;
  --rest-rot: -8deg;
  transform: translate(-160px, 80px) rotate(-20deg) scale(0.92);
  animation: phone-in-back 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards,
             phone-float-back 7s ease-in-out 1.5s infinite;
}
.phone--front {
  --rest-x: 70px;
  --rest-y: 30px;
  --rest-rot: 6deg;
  z-index: 2;
  transform: translate(160px, 120px) rotate(20deg) scale(0.92);
  animation: phone-in-front 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards,
             phone-float-front 6s ease-in-out 1.7s infinite;
}

@keyframes phone-in-back {
  to { opacity: 0.85; transform: translate(-90px, -10px) rotate(-8deg) scale(1); }
}
@keyframes phone-in-front {
  to { opacity: 1; transform: translate(70px, 30px) rotate(6deg) scale(1); }
}
@keyframes phone-float-back {
  0%, 100% { transform: translate(-90px, -10px) rotate(-8deg); }
  50%      { transform: translate(-90px, -22px) rotate(-9.5deg); }
}
@keyframes phone-float-front {
  0%, 100% { transform: translate(70px, 30px) rotate(6deg); }
  50%      { transform: translate(70px, 16px) rotate(7.5deg); }
}
.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 5;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg-secondary);
  border-radius: 22px;
  padding: 36px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone__bar {
  height: 8px;
  background: var(--color-bg-quaternary);
  border-radius: 4px;
  width: 70%;
}
.phone__row {
  height: 28px;
  background: var(--color-bg-quaternary);
  border-radius: 6px;
}
.phone__row.short { width: 60%; }
.phone__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.phone__grid > div {
  height: 70px;
  background: var(--color-bg-quaternary);
  border-radius: 8px;
  border-left: 2px solid var(--color-brand-primary);
}

/* Status bar in back phone */
.phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 600;
  padding: 0 4px;
  margin-bottom: 6px;
}
.phone__statusbar-icons { display: inline-flex; gap: 4px; align-items: center; }
.phone__statusbar-icons .material-symbols-outlined { font-size: 12px; }

/* Notification cards in back phone */
.phone__notif {
  display: flex;
  gap: 10px;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px;
  animation: notif-slide-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.phone__notif:nth-child(2) { animation-delay: 1.4s; }
.phone__notif:nth-child(3) { animation-delay: 1.65s; }
.phone__notif:nth-child(4) { animation-delay: 1.9s; }
@keyframes notif-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.phone__notif--muted { opacity: 0.7; }
.phone__notif-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(232, 57, 14, 0.15);
  color: var(--color-brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone__notif-icon .material-symbols-outlined { font-size: 16px; }
.phone__notif-body { flex: 1; min-width: 0; font-size: 10px; line-height: 1.35; color: var(--color-text-tertiary); }
.phone__notif-body p { margin: 2px 0 0; font-size: 10px; }
.phone__notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.phone__notif-head strong { font-size: 11px; color: var(--color-text-primary); font-weight: 600; }
.phone__notif-head em { font-style: normal; font-size: 9px; color: var(--color-text-muted); }

/* Game screen in front phone */
.phone__screen--game {
  padding: 0;
  background: linear-gradient(180deg, #0a0612 0%, #1a0e16 50%, #2a1410 100%);
  position: relative;
  overflow: hidden;
}
.game-scene {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  overflow: hidden;
}
.game-scene__moon {
  position: absolute;
  top: 28px; right: 20px;
  width: 36px; height: 36px;
  background: radial-gradient(circle, #f5e8c8 0%, #d4b97a 70%, transparent 71%);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(245, 232, 200, 0.4);
  animation: moon-glow 4s ease-in-out infinite;
}
@keyframes moon-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(245, 232, 200, 0.4); }
  50%      { box-shadow: 0 0 50px rgba(245, 232, 200, 0.65); }
}
.game-scene__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 50px, #fff, transparent),
    radial-gradient(1px 1px at 60px 30px, #fff, transparent),
    radial-gradient(1px 1px at 100px 70px, #fff, transparent),
    radial-gradient(1px 1px at 150px 40px, #fff, transparent),
    radial-gradient(1px 1px at 180px 80px, #fff, transparent),
    radial-gradient(1px 1px at 40px 100px, #fff, transparent);
  opacity: 0.5;
  animation: stars-twinkle 3s ease-in-out infinite alternate;
}
@keyframes stars-twinkle {
  from { opacity: 0.3; }
  to   { opacity: 0.7; }
}
.game-scene__hills {
  position: absolute;
  bottom: 0; left: -10%; right: -10%;
  height: 50%;
  background:
    radial-gradient(ellipse at 30% 100%, #1a0e1a 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, #14081a 0%, transparent 55%);
}
.game-scene__hills::before, .game-scene__hills::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 60%;
  background: #0a0610;
  border-radius: 50% 50% 0 0;
}
.game-scene__hills::before { left: -20%; right: 30%; }
.game-scene__hills::after { left: 30%; right: -20%; height: 70%; background: #050308; }
.game-scene__village {
  position: absolute;
  bottom: 8px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  align-items: flex-end;
}
.house {
  display: block;
  width: 22px; height: 24px;
  background: #1a0e10;
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(232, 57, 14, 0.4);
}
.house::before {
  content: '';
  position: absolute;
  top: -8px; left: -2px; right: -2px;
  height: 10px;
  background: #0a0608;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
}
.house::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 7px;
  width: 6px; height: 8px;
  background: #ffb070;
  box-shadow: 0 0 8px rgba(255, 176, 112, 0.6);
  animation: window-flicker 1.6s ease-in-out infinite;
}
.house.h2 { height: 28px; }
.house.h2::after { animation-delay: 0.4s; }
.house.h3 { height: 22px; width: 24px; }
.house.h3::after { animation-delay: 0.8s; background: #ff9050; }
.house.h4 { height: 20px; }
.house.h4::after { animation-delay: 1.2s; }
@keyframes window-flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.7; }
  50% { opacity: 0.4; }
  55% { opacity: 0.85; }
}
.game-scene__fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(232, 57, 14, 0.08) 80%, rgba(232, 57, 14, 0.18) 100%);
  pointer-events: none;
  animation: fog-drift 8s ease-in-out infinite alternate;
}
@keyframes fog-drift {
  from { opacity: 0.7; }
  to   { opacity: 1; }
}
.game-hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 4, 8, 0.85) 30%, rgba(10, 4, 8, 0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.game-hud__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-hud__top .badge { font-size: 9px; padding: 2px 6px; }
.game-hud__time {
  font-size: 10px;
  color: var(--color-text-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.game-hud__time .material-symbols-outlined { font-size: 12px; }
.game-hud h4 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}
.game-hud > p {
  font-size: 11px;
  color: var(--color-text-tertiary);
  margin: 0;
}
.game-hud__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.game-hud__stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.game-hud__stats .material-symbols-outlined {
  font-size: 14px;
  color: var(--color-brand-primary);
}
.game-hud__stats strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.game-hud__stats em {
  font-style: normal;
  font-size: 8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.phone__screen--accent {
  padding: 36px 18px 18px;
  background: linear-gradient(160deg, #14080a 0%, #0B0B0C 60%);
  position: relative;
}
.phone__hero {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone__hero h4 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.phone__hero p {
  font-size: 12px;
  color: var(--color-text-tertiary);
}
.phone__cta {
  margin-top: 8px;
  background: var(--color-brand-primary);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.phone__cta .material-symbols-outlined { font-size: 14px; }

/* ============================================
   App icons (iOS-style placeholders)
   ============================================ */
.card { transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med); }
.card:hover .app-icon { transform: translateY(-4px) rotate(-3deg); }

.app-icon {
  width: 64px;
  height: 64px;
  transition: transform var(--t-med);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.app-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.app-icon span { position: relative; z-index: 1; }
.app-icon--1 { background: linear-gradient(140deg, #E8390E 0%, #B82E0B 100%); }
.app-icon--2 { background: linear-gradient(140deg, #2E86C1 0%, #1B4F72 100%); }
.app-icon--3 { background: linear-gradient(140deg, #27AE60 0%, #145A32 100%); }
.app-icon--4 { background: linear-gradient(140deg, #8E44AD 0%, #4A235A 100%); }

/* ============================================
   Store buttons (in cards)
   ============================================ */
.card__stores {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--color-bg-quaternary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), background var(--t-fast);
  flex: 1;
  min-width: 0;
}
.store-btn:hover {
  border-color: var(--color-brand-primary);
  background: var(--color-bg-tertiary);
}
.store-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}
.store-btn--cta {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  border-color: rgba(232, 57, 14, 0.4);
  background: rgba(232, 57, 14, 0.08);
}
.store-btn--cta .store-btn__icon { color: var(--color-brand-primary); }
.store-btn--cta:hover {
  background: rgba(232, 57, 14, 0.15);
  border-color: var(--color-brand-primary);
}

/* ============================================
   Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease forwards;
}
.modal__panel {
  position: relative;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: fade-up 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.modal__panel h3 { font-size: 22px; margin: var(--space-2) 0 var(--space-2); }
.modal__sub {
  color: var(--color-text-tertiary);
  font-size: 14px;
  margin-bottom: var(--space-5);
}
.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-tertiary);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.modal__close:hover { background: var(--color-bg-quaternary); color: var(--color-text-primary); }
.notify-form { display: flex; flex-direction: column; gap: var(--space-4); }
.notify-form label { display: flex; flex-direction: column; gap: var(--space-2); font-size: 13px; }
.notify-form label > span:first-child {
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.notify-form input[type="email"] {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: inherit;
}
.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 2px rgba(232, 57, 14, 0.2);
}
.notify-form .check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 12px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
}
.notify-form .check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-brand-primary);
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.notify-form .check a {
  color: var(--color-brand-primary);
  text-decoration: underline;
}
.modal__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-2);
}
@media (max-width: 640px) {
  .modal__actions { flex-direction: column-reverse; }
  .modal__actions .btn { width: 100%; }
}
.store-btn__icon {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.store-btn__text {
  gap: 3px;
}
.store-btn__text small {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.store-btn__text strong {
  font-size: 13px;
  color: var(--color-text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--space-9) 0;
  position: relative;
}
.section--alt {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-8);
}
.section__head p {
  color: var(--color-text-tertiary);
  font-size: 16px;
  margin-top: var(--space-3);
}

/* ============================================
   Cards (Apps)
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.cards--single {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
.card--wide { padding: var(--space-7); }
.card__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.card__head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card__head-text h3 { margin: 0; font-size: 24px; }
.card__features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
  margin: var(--space-4) 0;
  padding: 0;
}
.card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-tertiary);
}
.card__features .material-symbols-outlined {
  font-size: 18px;
  color: var(--color-brand-primary);
}
@media (max-width: 640px) {
  .card--wide { padding: var(--space-5); }
  .card__features { grid-template-columns: 1fr; }
}

.app-icon--dv {
  background: linear-gradient(140deg, #2a1410 0%, #0a0610 100%);
  font-size: 28px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  position: relative;
}
.app-icon--dv .material-symbols-outlined {
  font-size: 32px;
  color: #f5e8c8;
  filter: drop-shadow(0 0 8px rgba(245, 232, 200, 0.5));
  position: relative;
  z-index: 1;
}
.app-icon--dv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(245, 232, 200, 0.12), transparent 60%);
  border-radius: 18px;
}
.card {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.card--featured {
  border-left: 3px solid var(--color-brand-primary);
}
.card--featured::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--color-brand-glow) 0%, transparent 70%);
  pointer-events: none;
}
.card__icon {
  font-size: 32px;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.card h3 {
  margin: var(--space-3) 0 var(--space-2);
}
.card p {
  font-size: 13px;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-text-muted);
}
.card__rating { color: var(--color-text-secondary); font-weight: 500; }

/* Badges */
.badge {
  display: inline-block;
  background: var(--color-bg-quaternary);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge--brand { background: rgba(232, 57, 14, 0.15); color: var(--color-brand-primary); }
.badge--warning { background: rgba(243, 156, 18, 0.15); color: var(--color-warning); }
.badge--info { background: rgba(46, 134, 193, 0.15); color: var(--color-info); }
.badge--muted { background: var(--color-bg-quaternary); color: var(--color-text-tertiary); }

/* ============================================
   Services
   ============================================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.service {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--t-med), transform var(--t-med);
}
.service:hover {
  border-color: var(--color-brand-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.service__num { transition: transform var(--t-med); }
.service:hover .service__num { transform: translateX(4px); }
.service__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--color-brand-primary);
  margin-bottom: var(--space-3);
  letter-spacing: 0.08em;
}
.service h3 { margin-bottom: var(--space-2); }
.service p { font-size: 13px; color: var(--color-text-tertiary); }

/* ============================================
   Process
   ============================================ */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  counter-reset: step;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), var(--color-brand-primary), var(--color-border));
  z-index: 0;
}
.process::after {
  content: '';
  position: absolute;
  top: 25px;
  left: 8%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-brand-primary);
  box-shadow: 0 0 12px rgba(232, 57, 14, 0.7);
  z-index: 1;
  animation: process-travel 5s ease-in-out infinite;
}
@keyframes process-travel {
  0%   { left: 8%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(92% - 8px); opacity: 0; }
}
@media (max-width: 1024px) {
  .process::after { display: none; }
}
.process li {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: relative;
  z-index: 1;
}
.process__step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}
.process h3 { margin-bottom: var(--space-2); }
.process p { font-size: 13px; color: var(--color-text-tertiary); }

/* ============================================
   About
   ============================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.about__text h2 { margin-bottom: var(--space-4); font-size: 36px; }
.about__text p {
  margin-bottom: var(--space-4);
  color: var(--color-text-tertiary);
  font-size: 15px;
}
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.about__values > div {
  padding: var(--space-3);
  border-left: 2px solid var(--color-brand-primary);
}
.about__values strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 600;
}
.about__values span {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Codeblock */
.codeblock {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.codeblock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}
.codeblock__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border-strong);
}
.codeblock__bar span:first-child { background: var(--color-brand-primary); }
.codeblock__bar em {
  margin-left: auto;
  color: var(--color-text-muted);
  font-style: normal;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.codeblock pre {
  padding: var(--space-5);
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  overflow-x: auto;
}
.c-key { color: #c792ea; }

/* Typewriter caret + line scan */
.codeblock pre {
  position: relative;
  min-height: 240px;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--color-brand-primary);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caret-blink 1s steps(1) infinite;
  box-shadow: 0 0 8px rgba(232, 57, 14, 0.6);
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.codeblock {
  position: relative;
  overflow: hidden;
}
.codeblock::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 36px;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(232, 57, 14, 0.08) 50%, transparent 100%);
  pointer-events: none;
  animation: code-scan 6s ease-in-out infinite;
  opacity: 0;
}
@keyframes code-scan {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(220px); opacity: 0; }
}
.c-cls { color: #6cb8ff; }
.c-str { color: #98e88a; }

/* ============================================
   Contact info
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
  align-items: start;
}
.contact-grid__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.contact-info__card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--t-med), transform var(--t-med);
  color: inherit;
}
.contact-info__body { flex: 1; min-width: 0; }
.contact-info__arrow {
  color: var(--color-text-muted);
  font-size: 18px;
  transition: transform var(--t-med), color var(--t-med);
}
a.contact-info__card:hover .contact-info__arrow {
  color: var(--color-brand-primary);
  transform: translate(2px, -2px);
}
a.contact-info__card:hover {
  border-color: var(--color-brand-primary);
  transform: translateY(-2px);
}
.contact-info__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-quaternary);
  border-radius: var(--radius-md);
  color: var(--color-brand-primary);
  font-size: 22px;
  flex-shrink: 0;
}
.contact-info__icon .material-symbols-outlined {
  font-size: 22px;
  color: var(--color-brand-primary);
}
.contact-info__card h3 {
  font-size: 14px;
  margin: 0;
}
.contact-info__card p {
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin: 0;
}

@media (max-width: 1024px) {
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .contact-info { grid-template-columns: 1fr; }
  .contact-grid__info { grid-template-columns: 1fr; }
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background:
    radial-gradient(circle at 30% 50%, rgba(232, 57, 14, 0.07), transparent 60%),
    var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
}
.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.cta__form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cta__form span {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.cta__form input,
.cta__form textarea {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cta__form input:focus,
.cta__form textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 2px rgba(232, 57, 14, 0.2);
}
.cta__form .full { grid-column: 1 / -1; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-8);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}
.footer__tag {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.footer__cols h5 {
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  font-weight: 700;
}
.footer__icon {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--color-text-muted);
}
.footer__cols a {
  display: block;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
  transition: color var(--t-fast);
}
.footer__cols a:hover { color: var(--color-brand-primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
  padding: 120px 0 var(--space-9);
  min-height: 80vh;
}
.legal-page .container { max-width: 820px; }
.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-5);
  transition: color var(--t-fast);
}
.legal-page__back:hover { color: var(--color-brand-primary); }
.legal-page h1 {
  font-size: 40px;
  margin-bottom: var(--space-3);
}
.legal-page__lede {
  font-size: 16px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-3);
}
.legal-page__updated {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.legal-page section {
  margin-bottom: var(--space-6);
}
.legal-page section h2 {
  font-size: 20px;
  margin-bottom: var(--space-3);
}
.legal-page section p {
  color: var(--color-text-tertiary);
  font-size: 15px;
  line-height: 1.7;
}
.legal-page a {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 480px; margin-top: var(--space-7); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .about { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .hero__title { font-size: 42px; }
}

@media (max-width: 640px) {
  .nav__menu, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__menu.open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--color-bg-tertiary);
    flex-direction: column;
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
  }
  h1, .hero__title { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .cards, .services, .process { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; }
  .cta__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); }
  .section { padding: var(--space-8) 0; }
  .hero__visual { height: 420px; transform: scale(0.85); }
}
