/* ==========================================================================
   Hobby Doser — Core Styles
   Brand palette derived from logo: purple, teal, gold
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties (Light Theme Default)
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-purple: #7c5cfc;
  --brand-indigo: #5e5ce6;
  --brand-teal: #00d2ff;
  --brand-gold: #f5c518;
  --brand-orange: #ff8a3d;
  /* Active nav / accent text (matches legal TOC active state) */
  --color-active: #5e5ce6;
  --color-active-hover: #00d2ff;
  --gradient-brand: linear-gradient(135deg, #5e5ce6 0%, #00d2ff 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(94, 92, 230, 0.15), rgba(0, 210, 255, 0.15));
  --gradient-gold: linear-gradient(135deg, #f5c518, #ff8a3d);

  /* Surfaces */
  --bg-primary: #f7f8fc;
  --bg-secondary: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-glass: rgba(255, 255, 255, 0.55);
  --bg-glass-strong: rgba(255, 255, 255, 0.85);
  --bg-muted: #eef0f7;

  /* Text */
  --text-primary: #0f1222;
  --text-secondary: #5a6178;
  --text-muted: #8b92a8;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border-subtle: rgba(15, 18, 34, 0.08);
  --border-glass: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 2px 8px rgba(15, 18, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 18, 34, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 18, 34, 0.12);
  --shadow-glow: 0 0 40px rgba(94, 92, 230, 0.25);
  --shadow-teal-glow: 0 0 30px rgba(0, 210, 255, 0.3);

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --nav-height: 72px;
  --container: 1120px;
  --container-wide: 1280px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 280ms var(--ease-out);
  --transition-slow: 450ms var(--ease-out);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 92, 230, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(0, 210, 255, 0.1), transparent);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Animated background colors — landing page only */
body[data-page="home"] {
  background-image: none;
  background-color: var(--bg-primary);
}

body[data-page="home"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(94, 92, 230, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(0, 210, 255, 0.22), transparent 50%),
    radial-gradient(ellipse 55% 45% at 50% 85%, rgba(124, 92, 252, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 60%, rgba(245, 197, 24, 0.1), transparent 50%),
    linear-gradient(
      125deg,
      #f7f8fc 0%,
      #eef0ff 22%,
      #e8f8ff 45%,
      #f3eeff 68%,
      #f7f8fc 100%
    );
  background-size: 200% 200%, 200% 200%, 180% 180%, 160% 160%, 300% 300%;
  animation: landing-bg-shift 18s ease-in-out infinite;
}

@keyframes landing-bg-shift {
  0% {
    background-position:
      0% 40%,
      100% 20%,
      50% 100%,
      80% 60%,
      0% 50%;
  }
  33% {
    background-position:
      40% 10%,
      60% 70%,
      20% 60%,
      30% 40%,
      50% 50%;
  }
  66% {
    background-position:
      80% 60%,
      20% 40%,
      70% 20%,
      60% 80%,
      100% 50%;
  }
  100% {
    background-position:
      0% 40%,
      100% 20%,
      50% 100%,
      80% 60%,
      0% 50%;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-indigo);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-teal);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--gradient-brand);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--container-wide));
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 650;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn--primary:hover {
  color: var(--text-inverse);
  box-shadow: var(--shadow-lg), var(--shadow-teal-glow);
}

.btn--secondary {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--brand-indigo);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  border-color: var(--brand-teal);
  color: var(--brand-indigo);
}

.btn--icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-group--center {
  justify-content: center;
}

.bg-shape--soft {
  opacity: 0.25;
}

/* Ripple effect target */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-effect 0.6s linear;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Glass Card
   -------------------------------------------------------------------------- */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.glass:hover {
  box-shadow: var(--shadow-md);
}

/* Shared layout mount points (filled by js/layout.js) */
[data-site-header] {
  display: block;
  min-height: var(--nav-height);
}

[data-site-footer] {
  display: block;
  min-height: 12rem;
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base);
  z-index: -1;
}

.site-header.is-scrolled::before {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav__brand:hover {
  color: var(--text-primary);
}

.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav__menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-primary);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__actions .nav__cta-download {
  display: none;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
  overflow: hidden;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--brand-indigo);
  border-color: var(--brand-indigo);
  transform: rotate(12deg);
}

.theme-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.nav__toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.nav__toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background var(--transition-fast);
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.nav__toggle-bar::before {
  top: -6px;
}

.nav__toggle-bar::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.5rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav__drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.nav__drawer .nav__link {
  font-size: 1.125rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.nav__drawer .nav__link:hover {
  background: var(--bg-muted);
}

.nav__drawer .nav__link::after {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Floating Background Shapes
   -------------------------------------------------------------------------- */
.bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.bg-shape--1 {
  width: 340px;
  height: 340px;
  background: var(--brand-indigo);
  top: 10%;
  left: -5%;
}

.bg-shape--2 {
  width: 280px;
  height: 280px;
  background: var(--brand-teal);
  top: 40%;
  right: -8%;
}

.bg-shape--3 {
  width: 200px;
  height: 200px;
  background: var(--brand-gold);
  bottom: 10%;
  left: 30%;
  opacity: 0.25;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: var(--section-pad);
  overflow: hidden;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin-bottom: 1.25rem;
  max-width: 16ch;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 420px;
}

.phone-mockup {
  position: relative;
  width: min(220px, 55vw);
  border-radius: 28px;
  padding: 8px;
  background: linear-gradient(160deg, #2a2d3a, #0b0e14);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.phone-mockup__screen {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 1206 / 2622;
  background: #0b0e14;
}

.phone-mockup__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-mockup--primary {
  z-index: 3;
  width: min(240px, 58vw);
}

.phone-mockup--secondary {
  position: absolute;
  width: min(180px, 42vw);
  z-index: 1;
  opacity: 0.92;
}

.phone-mockup--left {
  left: 5%;
  bottom: 8%;
  transform: rotate(-8deg) translateY(12px);
}

.phone-mockup--right {
  right: 5%;
  bottom: 12%;
  transform: rotate(8deg) translateY(20px);
  z-index: 2;
}

.hero__glow {
  position: absolute;
  width: 70%;
  height: 50%;
  bottom: 5%;
  left: 15%;
  background: var(--gradient-brand);
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Features — Uniform card grid
   -------------------------------------------------------------------------- */
.section--features {
  position: relative;
  overflow: hidden;
}

.section--features::before {
  content: "";
  position: absolute;
  inset: 10% -10% auto;
  height: 55%;
  background:
    radial-gradient(ellipse 50% 60% at 20% 40%, rgba(94, 92, 230, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 60%, rgba(0, 210, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section--features .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  height: 100%;
  min-height: 11.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left center;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 92, 230, 0.28);
  box-shadow: var(--shadow-md), 0 12px 40px rgba(94, 92, 230, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--brand-indigo);
  background: var(--gradient-brand-soft);
  border: 1px solid rgba(94, 92, 230, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: var(--brand-teal);
}

.feature-card__icon--gold {
  color: #c9920a;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(255, 138, 61, 0.12));
  border-color: rgba(245, 197, 24, 0.35);
}

.feature-card:hover .feature-card__icon--gold {
  color: var(--brand-gold);
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card__title {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feature-card__text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   How It Works — Connected timeline
   -------------------------------------------------------------------------- */
.section--how {
  position: relative;
  background:
    linear-gradient(180deg, transparent, rgba(94, 92, 230, 0.03) 40%, transparent);
}

.steps-timeline {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: none;
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  position: relative;
  padding-bottom: 2rem;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.step:last-child {
  padding-bottom: 0;
}

.step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 100%;
}

.step__number {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--text-inverse);
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow), 0 0 0 6px rgba(94, 92, 230, 0.1);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step:hover .step__number {
  transform: scale(1.08);
  box-shadow: var(--shadow-teal-glow), 0 0 0 8px rgba(0, 210, 255, 0.12);
}

.step__connector {
  flex: 1;
  width: 2px;
  min-height: 2.5rem;
  margin-top: 0.65rem;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-indigo), var(--brand-teal));
  opacity: 0.35;
}

.step:last-child .step__connector {
  display: none;
}

.step__content {
  padding: 0.85rem 1.25rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.step:hover .step__content {
  transform: translateX(4px);
  border-color: rgba(94, 92, 230, 0.28);
  box-shadow: var(--shadow-md);
}

.step__title {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.step__text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Hobbies
   -------------------------------------------------------------------------- */
.hobbies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hobby-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hobby-chip:hover {
  transform: translateY(-3px);
  border-color: var(--brand-indigo);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.hobby-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

.hobby-chip--more {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  border: none;
}

.hobby-chip--more:hover {
  color: var(--text-inverse);
}

/* --------------------------------------------------------------------------
   Screenshots Gallery
   -------------------------------------------------------------------------- */
.gallery {
  position: relative;
}

.gallery__track-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
  margin-inline: -0.5rem;
  padding: 1rem 0.5rem;
}

.gallery__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 min(220px, 70vw);
  scroll-snap-align: center;
}

.gallery__phone {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition-base);
  border: none;
  padding: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
}

.gallery__phone:hover {
  transform: translateY(-8px) scale(1.02);
}

.gallery__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery__dots {
  display: flex;
  gap: 0.4rem;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), width var(--transition-fast);
}

.gallery__dot.is-active {
  opacity: 1;
  background: var(--brand-indigo);
  width: 1.35rem;
  min-width: 1.35rem;
  border-radius: var(--radius-full);
  transform: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img-wrap {
  max-width: min(360px, 90vw);
  max-height: 85vh;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lightbox__img-wrap img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

/* --------------------------------------------------------------------------
   Statistics
   -------------------------------------------------------------------------- */
.stats {
  background: var(--bg-secondary);
  border-block: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.75rem 1rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card__label {
  color: var(--text-secondary);
  font-weight: 550;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Why / Closing
   -------------------------------------------------------------------------- */
.why {
  position: relative;
  overflow: hidden;
}

.why__content {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.why__text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.why__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

.testimonial {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.testimonial__quote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  flex: 1;
  position: relative;
  padding-top: 0.5rem;
}

.testimonial__quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  position: absolute;
  top: -0.6rem;
  left: -0.15rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.7;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-inverse);
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.is-open {
  border-color: rgba(94, 92, 230, 0.4);
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  color: var(--text-primary);
}

.faq-item__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-brand-soft);
  display: grid;
  place-items: center;
  transition: transform var(--transition-base);
  color: var(--brand-indigo);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-item__answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.975rem;
}

/* --------------------------------------------------------------------------
   Download CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
}

.cta__panel {
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  color: var(--text-inverse);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.15), transparent 45%);
  pointer-events: none;
}

.cta__panel > * {
  position: relative;
  z-index: 1;
}

.cta__title {
  color: var(--text-inverse);
  margin-bottom: 0.75rem;
}

.cta__text {
  opacity: 0.92;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.cta__panel .btn--secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-indigo);
  border: none;
}

.cta__panel .btn--ghost {
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta__panel .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
}

.cta__closing {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer__brand:hover {
  color: var(--text-primary);
}

.footer__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 22rem;
  margin-bottom: 0.75rem;
}

.footer__motto {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--color-active);
}

.footer__links a[href^="mailto:"],
.footer__links a[href^="tel:"] {
  color: var(--color-active);
}

.footer__links a[href^="mailto:"]:hover,
.footer__links a[href^="tel:"]:hover {
  color: var(--color-active-hover);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__bottom p:last-child {
  color: var(--color-active);
}

.footer__bottom a {
  color: var(--color-active);
  font-weight: 600;
}

.footer__bottom a:hover {
  color: var(--color-active-hover);
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--text-inverse);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* --------------------------------------------------------------------------
   Legal Pages
   -------------------------------------------------------------------------- */
.legal-hero {
  padding-block: 3rem 2rem;
  text-align: center;
}

.legal-hero__title {
  margin-bottom: 0.75rem;
}

.legal-hero__meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.legal-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: var(--section-pad);
  align-items: start;
}

.legal-toc {
  display: none;
}

.legal-toc__title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc__link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.legal-toc__link:hover,
.legal-toc__link.is-active {
  color: var(--color-active);
  background: var(--gradient-brand-soft);
  border-left-color: var(--color-active);
}

.legal-content {
  min-width: 0;
}

.legal-section {
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  font-size: 0.975rem;
  margin-bottom: 0.75rem;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: disc;
}

.legal-section ol {
  list-style: decimal;
}

.legal-section a {
  font-weight: 600;
  color: var(--color-active);
}

.legal-section a:hover {
  color: var(--color-active-hover);
}

/* --------------------------------------------------------------------------
   Page-specific nav adjustments for legal
   -------------------------------------------------------------------------- */
.page-legal .nav__cta-download {
  display: none;
}
