/* ============================================
   PLANORA — Main Stylesheet
   Dark-first. Cyan neon + purple.
   ============================================ */

/* --- VARIABLES --- */
:root {
  --cyan: rgb(2, 240, 228);
  --cyan-dim: rgba(2, 240, 228, 0.5);
  --purple: rgb(117, 85, 255);
  --purple-light: rgb(155, 130, 255);

  /* Dark (default) */
  --bg: #050508;
  --bg-elevated: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.88);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-heading: #fff;

  /* Spacing */
  --section-pad: clamp(80px, 12svh, 160px);
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

[data-theme="light"] {
  --cyan: rgb(0, 190, 180);
  --purple: rgb(100, 70, 230);
  --bg: #fafafb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(100, 70, 230, 0.03);
  --bg-card-hover: rgba(100, 70, 230, 0.07);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: rgba(0, 0, 0, 0.78);
  --text-muted: rgba(0, 0, 0, 0.42);
  --text-heading: #111111;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  height: -webkit-fill-available;
}

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(2,240,228,0.03) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 40% at 50% 100%, rgba(117,85,255,0.025) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-width: 100%;
  max-width: 100vw;
}

[data-theme="light"] body {
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(100,70,230,0.03) 0%, transparent 60%);
}

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

[data-theme="light"] body::after {
  opacity: 0.012;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2,240,228,0.06), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}

.cursor-glow.visible {
  opacity: 1;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(100,70,230,0.05), transparent 70%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Container utility */
.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan) 20%, var(--purple) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-size: 200% 200%;
  background-image: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-position: 0% 50%;
  color: #fff;
  font-weight: 700;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow:
    0 4px 20px rgba(2, 240, 228, 0.25),
    0 8px 40px rgba(117, 85, 255, 0.15);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(2, 240, 228, 0.08);
}

.btn--lg {
  padding: 18px 42px;
  font-size: 1.1rem;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  transition: opacity 0.3s;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-mark {
  color: var(--cyan);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(2, 240, 228, 0.4));
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover {
  color: var(--text-heading);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 8px 22px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  transition: all 0.3s;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  border-color: var(--cyan);
  background: rgba(2, 240, 228, 0.06);
  color: var(--cyan);
  box-shadow: 0 0 16px rgba(2, 240, 228, 0.1);
}

/* Nav actions */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme switch — text style */
.theme-switch {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.theme-switch__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.theme-switch:hover {
  border-color: var(--cyan);
  background: rgba(2, 240, 228, 0.04);
}

.theme-switch:hover .theme-switch__text {
  color: var(--cyan);
}

[data-theme="light"] .theme-switch:hover {
  border-color: var(--purple);
  background: rgba(100, 70, 230, 0.04);
}

[data-theme="light"] .theme-switch:hover .theme-switch__text {
  color: var(--purple);
}

/* Mobile theme switch inside nav dropdown */
.theme-switch-mobile {
  display: none;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  margin-top: 8px;
}

.theme-switch-mobile .theme-switch__text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav__toggle span {
  display: block;
  height: 3px;
  width: 24px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

[data-theme="light"] .nav__toggle span {
  background: #111;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 65%);
  opacity: 0;
  animation: grid-appear 2s ease 0.5s forwards;
}

@keyframes grid-appear {
  to { opacity: 1; }
}

[data-theme="light"] .hero__grid-lines {
  background-image:
    linear-gradient(rgba(100,70,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,70,230,0.04) 1px, transparent 1px);
}

/* Hero text reveal animations */
.hero-reveal__line {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-reveal__line.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-reveal__fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-reveal__fade.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.hero__title {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero__title-accent {
  background: linear-gradient(90deg, var(--cyan) 0%, var(--purple) 40%, var(--cyan) 80%, var(--purple) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
}

/* --- FEATURES / CONFIGURATOR --- */
.features {
  padding: var(--section-pad) 24px;
  text-align: center;
}

.features__header {
  max-width: var(--container);
  margin: 0 auto 60px;
}

.configurator {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.configurator__base,
.configurator__modules {
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.configurator__base-label,
.configurator__modules-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Screen mockup */
.configurator__screen {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px rgba(0,0,0,0.4);
}

.configurator__screen-header {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.configurator__screen-body {
  padding: 20px;
  min-height: 420px;
  height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.configurator__module-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: var(--text-muted);
  gap: 12px;
}

.preview-placeholder__icon {
  font-size: 2rem;
  color: var(--cyan);
  opacity: 0.2;
  filter: drop-shadow(0 0 8px rgba(2,240,228,0.3));
}

.preview-placeholder__text {
  font-size: 0.85rem;
}

/* Preview header */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.preview-header__title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-heading);
}

.preview-header__count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.preview-modules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

/* Active modules in preview */
.preview-module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(2, 240, 228, 0.02);
  border: 1px solid rgba(2, 240, 228, 0.06);
  border-radius: var(--radius-xs);
  animation: module-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes module-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.preview-module__icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 240, 228, 0.06);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.preview-module__info {
  flex: 1;
  min-width: 0;
}

.preview-module__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-heading);
}

.preview-module__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stacked icon avatars */
.preview-stack {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 12px;
}

.preview-stack__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  font-size: 0.85rem;
  margin-left: -8px;
  position: relative;
  animation: stack-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.2s ease;
}

.preview-stack__icon:first-child {
  margin-left: 0;
}

.preview-stack__icon:hover {
  transform: translateY(-3px) scale(1.15);
  z-index: 100 !important;
  border-color: var(--cyan);
}

@keyframes stack-in {
  from { opacity: 0; transform: scale(0) translateX(-10px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Confetti */
.confetti-particle {
  position: absolute;
  top: 0;
  border-radius: 2px;
  pointer-events: none;
  animation: confetti-burst 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  z-index: 10;
}

@keyframes confetti-burst {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) translateX(var(--drift, 20px)) rotate(var(--rotation, 180deg)) scale(0.3);
    opacity: 0;
  }
}

.preview-cost-bar--max .preview-cost-bar__fill {
  box-shadow: 0 0 20px rgba(2,240,228,0.4), 0 0 40px rgba(117,85,255,0.2);
}

/* Efficiency & Control meters */
.preview-meters {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.preview-meter {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-meter__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 58px;
}

.preview-meter__bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
}

[data-theme="light"] .preview-meter__bar {
  background: rgba(0,0,0,0.05);
}

.preview-meter__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-meter__fill--cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(2,240,228,0.3);
}

.preview-meter__fill--purple {
  background: var(--purple);
  box-shadow: 0 0 8px rgba(117,85,255,0.3);
}

.preview-meter__val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-heading);
  min-width: 30px;
  text-align: right;
}

/* Cost indicator in preview */
.preview-cost-bar {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin-bottom: 14px;
  overflow: visible;
}

.preview-cost-bar__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(2,240,228,0.2);
}

.preview-cost-bar__label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.preview-header__cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.02em;
  filter: drop-shadow(0 0 4px rgba(2,240,228,0.3));
}

.preview-module__cost {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-module__cost-dots {
  display: flex;
  gap: 3px;
}

.preview-module__cost-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: all 0.3s;
}

.preview-module__cost-dot--filled {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(2, 240, 228, 0.4);
}

.preview-module__cost-dot--empty {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .preview-module__cost-dot--empty {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .preview-cost-bar {
  background: rgba(0,0,0,0.05);
}

/* Module grid */
.configurator__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.module-card {
  position: relative;
  padding: 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

@media (hover: hover) {
  .module-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  }
}

.module-card:active {
  transform: scale(0.97);
}

.module-card.active {
  border-color: rgba(2, 240, 228, 0.4);
  background: rgba(2, 240, 228, 0.05);
  box-shadow:
    0 0 20px rgba(2, 240, 228, 0.06),
    inset 0 0 20px rgba(2, 240, 228, 0.02);
}

.module-card__icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.module-card__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-heading);
}

.module-card__check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #000;
  font-weight: 800;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.module-card.active .module-card__check {
  opacity: 1;
  transform: scale(1);
}

.configurator__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.configurator__count {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-heading);
}

.configurator__count span {
  color: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(2,240,228,0.3));
}

.configurator__hint {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.features__bottom {
  max-width: 600px;
  margin: 60px auto 0;
}

.features__bottom-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.features__bottom-text strong {
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(2,240,228,0.3));
}

/* --- ABOUT --- */
.about {
  padding: var(--section-pad) 24px;
}

.about__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__body {
  margin-top: 24px;
}

.about__body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(2,240,228,0.04), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat:hover::before {
  opacity: 1;
}

.stat__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  position: relative;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

/* --- PROCESS --- */
.process {
  padding: var(--section-pad) 24px;
  text-align: center;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
}

.process__timeline {
  max-width: 700px;
  margin: 60px auto 0;
  position: relative;
  text-align: left;
}

.process__line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple), transparent);
  opacity: 0.3;
}

.process__step {
  position: relative;
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
}

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

.process__step-marker {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.process__step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(2, 240, 228, 0.3);
  color: var(--cyan);
  position: relative;
  z-index: 2;
  transition: all 0.35s ease;
}

.process__step:hover .process__step-number {
  border-color: var(--cyan);
  background: rgba(2, 240, 228, 0.08);
  box-shadow: 0 0 20px rgba(2, 240, 228, 0.15);
  transform: scale(1.1);
}

.process__step-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(2, 240, 228, 0.15);
  animation: step-pulse 3s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

.process__step-content {
  flex: 1;
  padding-top: 8px;
}

.process__step-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.process__step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.process__step-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(2, 240, 228, 0.2);
  background: rgba(2, 240, 228, 0.04);
}

/* --- CONTACT --- */
.contact {
  padding: var(--section-pad) 24px calc(var(--section-pad) + 40px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact__inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.contact__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer__brand .nav__logo-mark {
  color: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(2,240,228,0.3));
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- DIVIDER --- */
.section-divider {
  max-width: var(--container);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* --- ANIMATIONS --- */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- LIGHT MODE EXTRAS --- */
[data-theme="light"] .hero__glow--cyan { opacity: 0.08; }
[data-theme="light"] .hero__glow--purple { opacity: 0.06; }

[data-theme="light"] .configurator__screen {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

[data-theme="light"] .module-card.active {
  border-color: rgba(0, 190, 180, 0.4);
  background: rgba(0, 190, 180, 0.05);
}

[data-theme="light"] .preview-module {
  background: rgba(0, 190, 180, 0.03);
  border-color: rgba(0, 190, 180, 0.08);
}

[data-theme="light"] .preview-module__icon {
  background: rgba(0, 190, 180, 0.08);
}

[data-theme="light"] .stat {
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

[data-theme="light"] .process__step {
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

[data-theme="light"] .process__step:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* --- SELECTION --- */
::selection {
  background: rgba(2, 240, 228, 0.2);
  color: #fff;
}

[data-theme="light"] ::selection {
  background: rgba(100, 70, 230, 0.15);
  color: #000;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* --- MOBILE --- */
@media (max-width: 900px) {
  .configurator {
    grid-template-columns: 1fr;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    flex-direction: row;
    gap: 16px;
  }

  .stat {
    flex: 1;
    padding: 24px 16px;
  }

  .stat__number {
    font-size: 2rem;
  }

  .process__timeline {
    margin-top: 40px;
  }

  .process__step {
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }

  [data-theme="light"] .nav__links {
    background: rgba(250, 250, 251, 0.97);
  }

  [data-theme="light"] .nav__links .nav__link {
    color: rgba(0, 0, 0, 0.7);
  }

  .nav__links.open {
    display: flex;
    overscroll-behavior: contain;
    touch-action: none;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .nav__links .nav__link {
    font-size: 1.2rem;
    color: var(--text);
  }

  .nav__toggle {
    display: flex;
    z-index: 101;
  }

  .nav {
    padding: 0 16px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: visible;
  }

  .nav__inner {
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav__actions .theme-switch {
    display: none;
  }

  .nav__links .theme-switch-mobile {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .configurator__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__stats {
    flex-direction: column;
  }

  .process__step {
    gap: 16px;
    padding-bottom: 36px;
  }

  .process__step-marker {
    width: 44px;
    height: 44px;
  }

  .process__step-number {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }

  .process__line {
    left: 22px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
