/*═══════════════════════════════════════════════════════════════════════════
  EMS SmartHome — Design Tokens v1.0
  CONTRACT: This file is FROZEN. Pages and blocks reference tokens ONLY.
  NO magic numbers, NO redefined classes, NO page-specific overrides.
 ═══════════════════════════════════════════════════════════════════════════*/

/*─────────────────────────────────────────────────────────────────────────
  CSS CUSTOM PROPERTIES
  ─────────────────────────────────────────────────────────────────────────*/

:root {
  /* ── Color: Brand (deep midnight navy) ── */
  --brand-50: #f0f4fa;
  --brand-100: #dce3f2;
  --brand-200: #b8c7e5;
  --brand-300: #8ba5d4;
  --brand-400: #5f82c2;
  --brand-500: #3a5fa5;
  --brand-600: #1a3360;
  --brand-700: #0d1f3c;
  --brand-800: #0b1a2e;
  --brand-900: #081524;
  --brand-950: #040c16;

  /* ── Color: Accent (warm brass/gold) ── */
  --accent-50: #fdf9f2;
  --accent-100: #f8efdf;
  --accent-200: #f0dfbf;
  --accent-300: #e8d5a3;
  --accent-400: #d4b87a;
  --accent-500: #c8a45c;
  --accent-600: #b89340;
  --accent-700: #9a7a35;
  --accent-800: #7d632b;
  --accent-900: #5c4920;

  /* ── Color: Neutral (warm charcoals & pearls) ── */
  --neutral-50: #f5f3ef;
  --neutral-100: #e8e4dd;
  --neutral-200: #d1ccc2;
  --neutral-300: #b0a99c;
  --neutral-400: #8f8777;
  --neutral-500: #70695c;
  --neutral-600: #565044;
  --neutral-700: #3d3830;
  --neutral-800: #1a1f2e;
  --neutral-850: #141820;
  --neutral-900: #0f1419;
  --neutral-950: #0a0d10;

  /* ── Semantic ── */
  --surface: var(--neutral-900);
  --surface-raised: var(--neutral-800);
  --surface-overlay: rgba(11, 26, 46, 0.72);
  --ink: var(--neutral-50);
  --ink-secondary: var(--neutral-200);
  --ink-muted: var(--neutral-300);
  --border: var(--neutral-700);
  --border-light: rgba(255, 255, 255, 0.08);
  --brand: var(--brand-600);
  --brand-light: var(--brand-500);
  --accent: var(--accent-500);
  --accent-glow: rgba(200, 164, 92, 0.15);

  /* ── Signature Gradient ── */
  --gradient-gold: linear-gradient(135deg, rgba(200, 164, 92, 0.18), rgba(200, 164, 92, 0.04));
  --gradient-hero: linear-gradient(180deg, rgba(11, 26, 46, 0.72) 0%, rgba(0, 60, 76, 0.78) 100%);
  --gradient-hero-product: linear-gradient(180deg, rgba(11, 26, 46, 0.45) 0%, rgba(0, 60, 76, 0.55) 100%);
  --gradient-card-hover: linear-gradient(135deg, rgba(200, 164, 92, 0.12), rgba(200, 164, 92, 0.02));

  /* ── Typography ── */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;

  /* Type scale (1.25 — major third) */
  --text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);    /* 11-12px */
  --text-sm: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);        /* 12-14px */
  --text-base: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);          /* 14-16px */
  --text-md: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);            /* 16-18px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);           /* 18-20px */
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.563rem);        /* 22-25px */
  --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 1.938rem);          /* 28-31px */
  --text-3xl: clamp(2.125rem, 1.8rem + 1.3vw, 2.438rem);       /* 34-39px */
  --text-4xl: clamp(2.5rem, 2rem + 2vw, 3rem);                 /* 40-48px */

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.08em;

  /* ── Spacing (8px base) ── */
  --sp-1: 0.25rem;   /* 4px */
  --sp-2: 0.5rem;    /* 8px */
  --sp-3: 0.75rem;   /* 12px */
  --sp-4: 1rem;      /* 16px */
  --sp-5: 1.25rem;   /* 20px */
  --sp-6: 1.5rem;    /* 24px */
  --sp-8: 2rem;      /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  --sp-14: 3.5rem;   /* 56px */
  --sp-16: 4rem;     /* 64px */
  --sp-20: 5rem;     /* 80px */
  --sp-24: 6rem;     /* 96px */
  --sp-32: 8rem;     /* 128px */

  --section-gap-sm: var(--sp-12);
  --section-gap-md: var(--sp-20);
  --section-gap-lg: var(--sp-24);
  --section-gap-xl: var(--sp-32);

  /* ── Depth: Multi-layer shadows ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--accent-glow);
  --shadow-modal: 0 4px 8px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.2);

  /* ── Border Radius ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;
  --dur-slower: 800ms;

  /* ── Layout ── */
  --nav-height: 72px;
  --container-max: 1280px;
  --container-padding: var(--sp-6);
}

/*─────────────────────────────────────────────────────────────────────────
  RESET & BASE
  ─────────────────────────────────────────────────────────────────────────*/

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--surface);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/*─────────────────────────────────────────────────────────────────────────
  TYPOGRAPHY
  ─────────────────────────────────────────────────────────────────────────*/

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--sp-3);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  line-height: var(--leading-relaxed);
  color: var(--ink-secondary);
}

.lead {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--ink-secondary);
  margin-bottom: var(--sp-5);
}

.text-muted {
  color: var(--ink-muted);
}

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

/*─────────────────────────────────────────────────────────────────────────
  LAYOUT
  ─────────────────────────────────────────────────────────────────────────*/

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-gap-sm { padding-block: var(--section-gap-sm); }
.section-gap-md { padding-block: var(--section-gap-md); }
.section-gap-lg { padding-block: var(--section-gap-lg); }
.section-gap-xl { padding-block: var(--section-gap-xl); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
}

/* ── media-split ── */
.media-split {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--sp-16);
  align-items: stretch;
}

.media-split .media-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-split .media-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 320px;
}

.media-split .media-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-split.reverse {
  direction: rtl;
}

.media-split.reverse .media-text {
  direction: ltr;
}

/* ── hero-inner ── */
.hero-inner {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-inner.product-hero::before {
  background: var(--gradient-hero-product);
}

.hero-inner-content {
  position: relative;
  z-index: 2;
  padding: var(--sp-6) var(--sp-5);
  width: 100%;
}

.hero-inner-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: var(--sp-4);
  max-width: 680px;
}

.hero-inner-content .hero-subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--neutral-200);
  max-width: 560px;
  margin-bottom: var(--sp-8);
}

.hero-inner-content.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner-content.centered h1,
.hero-inner-content.centered .hero-subtitle {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Homepage hero — full viewport */
.hero-home {
  height: 100vh;
  padding: var(--nav-height) 0 0;
}

.hero-home .hero-inner {
  height: 100%;
  min-height: auto;
}

/* ── feature-list ── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.feature-list li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: var(--leading-normal);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 6px var(--accent-glow);
}

/*─────────────────────────────────────────────────────────────────────────
  NAVIGATION
  ─────────────────────────────────────────────────────────────────────────*/

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-nav);
  transition: background var(--dur-normal) var(--ease-out-expo);
}

.site-nav.scrolled {
  background: rgba(15, 20, 25, 0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-secondary);
  transition: color var(--dur-fast) var(--ease-out-expo);
  position: relative;
  padding: var(--sp-1) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-400);
  transition: width var(--dur-normal) var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA button — standalone, never mix with btn-primary etc. */
.btn.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.25em;
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--accent-500);
  color: var(--neutral-950);
  transition: background var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}

.btn.nav-cta:hover {
  background: var(--accent-400);
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-normal) var(--ease-out-expo), opacity var(--dur-fast);
}

/*─────────────────────────────────────────────────────────────────────────
  BUTTONS
  ─────────────────────────────────────────────────────────────────────────*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7em 1.6em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all var(--dur-normal) var(--ease-out-expo);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-500);
  color: var(--neutral-950);
  border-color: var(--accent-500);
}

.btn-primary:hover {
  background: var(--accent-400);
  border-color: var(--accent-400);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-accent {
  background: transparent;
  color: var(--accent-400);
  border-color: var(--accent-400);
}

.btn-accent:hover {
  background: var(--accent-glow);
  border-color: var(--accent-300);
  box-shadow: 0 0 16px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.btn-inverse {
  background: var(--ink);
  color: var(--neutral-900);
  border-color: var(--ink);
}

.btn-inverse:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-100);
  transform: translateY(-1px);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-inverse:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 0.85em 2em;
  font-size: var(--text-base);
}

/*─────────────────────────────────────────────────────────────────────────
  CARDS
  ─────────────────────────────────────────────────────────────────────────*/

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.card-raised {
  box-shadow: var(--shadow-card);
}

.card-raised:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  background: var(--gradient-card-hover);
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.card-raised:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: var(--sp-5);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.card-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--sp-4);
}

/* ── spec-mini ── */
.spec-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.spec-mini dt {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.spec-mini dd {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}

/*─────────────────────────────────────────────────────────────────────────
  BADGES
  ─────────────────────────────────────────────────────────────────────────*/

.badge {
  display: inline-block;
  width: fit-content;
  padding: 0.2em 0.6em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-500);
  color: var(--neutral-950);
}

.badge-outline {
  background: transparent;
  color: var(--accent-400);
  border: 1px solid var(--accent-400);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-secondary);
}

.card-media .badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
}

/*─────────────────────────────────────────────────────────────────────────
  FORMS
  ─────────────────────────────────────────────────────────────────────────*/

.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-secondary);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75em 1em;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast) var(--ease-out-expo);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--neutral-500);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238f8777' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

/*─────────────────────────────────────────────────────────────────────────
  MODAL
  ─────────────────────────────────────────────────────────────────────────*/

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out-expo);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--sp-8);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur-normal) var(--ease-spring);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-size: var(--text-lg);
  transition: all var(--dur-fast) var(--ease-out-expo);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--sp-6);
}

/*─────────────────────────────────────────────────────────────────────────
  FOOTER
  ─────────────────────────────────────────────────────────────────────────*/

.site-footer {
  background: var(--brand-900);
  border-top: 1px solid var(--border-light);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.footer-brand span {
  color: var(--accent-400);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-relaxed);
  max-width: 320px;
}

.footer-heading {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.footer-links a:hover {
  color: var(--accent-400);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/*─────────────────────────────────────────────────────────────────────────
  CTA BAND
  ─────────────────────────────────────────────────────────────────────────*/

.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.cta-band-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  max-width: 640px;
  margin: 0 auto;
}

.cta-band-title {
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.cta-band-lead {
  color: var(--neutral-200);
  margin-bottom: var(--sp-8);
}

.cta-band-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Feature Grid
  ─────────────────────────────────────────────────────────────────────────*/

.feature-grid-item {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.feature-grid-item:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(200, 164, 92, 0.15);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--gradient-gold);
  color: var(--accent-400);
}

.feature-grid-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.feature-grid-item p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Spec Bar
  ─────────────────────────────────────────────────────────────────────────*/

.spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}

.spec-bar-item {
  text-align: center;
  padding: var(--sp-5);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.spec-bar-item dt {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-400);
  margin-bottom: var(--sp-2);
}

.spec-bar-item dd {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--ink);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Timeline
  ─────────────────────────────────────────────────────────────────────────*/

.timeline {
  position: relative;
  padding-left: var(--sp-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-10);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--sp-12) + 1px);
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-500);
  box-shadow: 0 0 12px var(--accent-glow);
  border: 2px solid var(--surface);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-400);
  margin-bottom: var(--sp-1);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Use Case Grid
  ─────────────────────────────────────────────────────────────────────────*/

.use-case-item {
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
}

.use-case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--accent-400);
}

.use-case-item h4 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.use-case-item p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Testimonial
  ─────────────────────────────────────────────────────────────────────────*/

.testimonial-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: var(--sp-10) var(--sp-8);
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-6);
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent-500);
  opacity: 0.15;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
  font-style: italic;
  line-height: var(--leading-relaxed);
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.testimonial-author {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent-400);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Comparison Table
  ─────────────────────────────────────────────────────────────────────────*/

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.compare-table thead th {
  text-align: left;
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-400);
  border-bottom: 1px solid var(--border-light);
  background: var(--surface);
}

.compare-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.compare-table tbody td {
  padding: var(--sp-3) var(--sp-5);
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--border-light);
}

.compare-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.compare-table .check {
  color: var(--accent-400);
  font-weight: var(--fw-bold);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Category Filter
  ─────────────────────────────────────────────────────────────────────────*/

.category-filter {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-10);
}

.filter-pill {
  display: inline-block;
  padding: 0.45em 1.1em;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out-expo);
}

.filter-pill:hover,
.filter-pill.active {
  color: var(--accent-400);
  border-color: var(--accent-400);
  background: var(--accent-glow);
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Blog Card
  ─────────────────────────────────────────────────────────────────────────*/

.blog-card {
  background: var(--surface-raised);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.blog-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: var(--sp-5);
}

.blog-card-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-400);
  margin-bottom: var(--sp-2);
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.blog-card-body p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

.blog-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card.featured .blog-card-media {
  aspect-ratio: auto;
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: Image Fallback Panel
  ─────────────────────────────────────────────────────────────────────────*/

.img-fallback-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-gold);
  border-radius: var(--radius-md);
  min-height: 240px;
  color: var(--accent-400);
}

.img-fallback-panel svg {
  opacity: 0.3;
}

/*─────────────────────────────────────────────────────────────────────────
  BLOCK CLASSES: FAQ
  ─────────────────────────────────────────────────────────────────────────*/

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--sp-5) 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: var(--fw-semibold);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: var(--sp-4);
  transition: transform var(--dur-normal) var(--ease-out-expo);
  color: var(--accent-400);
}

.faq-item .faq-answer {
  display: none;
  padding-top: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: var(--leading-relaxed);
}

.faq-item.open .faq-answer {
  display: block;
}

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

/*─────────────────────────────────────────────────────────────────────────
  UTILITIES
  ─────────────────────────────────────────────────────────────────────────*/

.text-center { text-align: center; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }

.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/*─────────────────────────────────────────────────────────────────────────
  REVEAL (scroll-triggered — NOT animated, just visibility)
  ─────────────────────────────────────────────────────────────────────────*/

.reveal {
  opacity: 1; /* v6.7: no scroll animation — amateurish */
}

.reveal-stagger > * {
  opacity: 1;
}

/*─────────────────────────────────────────────────────────────────────────
  RESPONSIVE
  ─────────────────────────────────────────────────────────────────────────*/

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .spec-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --section-gap-md: var(--sp-12);
    --section-gap-lg: var(--sp-16);
    --section-gap-xl: var(--sp-20);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .media-split {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .media-split .media-img {
    min-height: 240px;
    max-height: 400px;
    order: -1;
  }

  .media-split.reverse .media-img {
    order: -1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hero-inner-content h1 {
    font-size: var(--text-3xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15, 20, 25, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--sp-6);
    gap: var(--sp-4);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .cta-band-inner {
    padding: var(--sp-10) var(--sp-5);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--sp-4);
  }

  .hero-inner-content {
    padding: var(--sp-4) var(--sp-3);
  }

  .hero-inner-content h1 {
    font-size: var(--text-2xl);
  }

  .hero-inner-content .hero-subtitle {
    font-size: var(--text-base);
  }

  .spec-bar {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }

  .modal {
    padding: var(--sp-5);
  }

  .cta-band-actions {
    flex-direction: column;
    align-items: center;
  }
}

/*─────────────────────────────────────────────────────────────────────────
  MOTION: prefers-reduced-motion
  ─────────────────────────────────────────────────────────────────────────*/

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