/* ==========================================================================
   Savvy Studio — styles.css
   A confident, minimal studio vibe: brighter-than-dark, softer-than-white
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties — Light Theme (Default)
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  /* Base palette: soft mist with warm-cool balance */
  --bg: #f5f6f8;
  --bg-panel: rgba(255, 255, 255, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --surface: #ffffff;
  --surface2: #f0f1f4;
  
  /* Text */
  --text: #1c2536;
  --text-muted: #5a6578;
  --text-subtle: #8792a4;
  
  /* Accents */
  --accent: #2d9da0;
  --accent2: #238487;
  --accent-soft: rgba(45, 157, 160, 0.1);
  --accent-glow: rgba(45, 157, 160, 0.25);
  --gold: #d4a853;
  --gold-soft: rgba(212, 168, 83, 0.12);
  
  /* Borders & shadows */
  --border: rgba(28, 37, 54, 0.08);
  --border-strong: rgba(28, 37, 54, 0.14);
  --shadow-sm: 0 1px 3px rgba(28, 37, 54, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 37, 54, 0.08);
  --shadow-lg: 0 8px 32px rgba(28, 37, 54, 0.1);
  --shadow-glow: 0 4px 20px var(--accent-glow);
  
  /* Theme-specific */
  --grid-dot: rgba(28, 37, 54, 0.03);
  --hero-glow-1: rgba(45, 157, 160, 0.04);
  --hero-glow-2: rgba(212, 168, 83, 0.03);
  --header-bg: rgba(245, 246, 248, 0.8);
  --header-bg-solid: rgba(245, 246, 248, 0.95);
  --preview-bar-bg: rgba(28, 37, 54, 0.04);
  
  /* Typography */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing (8px system) */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-5: 3rem;     /* 48px */
  --space-6: 4rem;     /* 64px */
  --space-7: 6rem;     /* 96px */
  
  /* Layout */
  --container: 1120px;
  --radius: 12px;
  --radius-lg: 20px;
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;
  --theme-transition: 0.3s;
}

/* --------------------------------------------------------------------------
   CSS Custom Properties — Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  /* Base palette: deep studio night */
  --bg: #0f1219;
  --bg-panel: rgba(22, 27, 38, 0.8);
  --bg-glass: rgba(22, 27, 38, 0.6);
  --surface: #1a202e;
  --surface2: #232a3a;
  
  /* Text */
  --text: #e8eaef;
  --text-muted: #9ca3b4;
  --text-subtle: #6b7385;
  
  /* Accents (slightly brighter for dark mode) */
  --accent: #3ab4b7;
  --accent2: #2d9da0;
  --accent-soft: rgba(58, 180, 183, 0.15);
  --accent-glow: rgba(58, 180, 183, 0.3);
  --gold: #e4b863;
  --gold-soft: rgba(228, 184, 99, 0.15);
  
  /* Borders & shadows */
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 4px 24px var(--accent-glow);
  
  /* Theme-specific */
  --grid-dot: rgba(255, 255, 255, 0.025);
  --hero-glow-1: rgba(58, 180, 183, 0.06);
  --hero-glow-2: rgba(228, 184, 99, 0.04);
  --header-bg: rgba(15, 18, 25, 0.85);
  --header-bg-solid: rgba(15, 18, 25, 0.95);
  --preview-bar-bg: rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   Optional: Masculine Typography Override
   Uncomment below to enable a bolder, more architectural feel
   -------------------------------------------------------------------------- */
/*
:root {
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-title,
.section-title {
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
}
*/

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Theme transition for smooth color changes */
  transition: background-color var(--theme-transition) var(--ease),
              color var(--theme-transition) var(--ease);
}

/* Subtle texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 10%, var(--hero-glow-1), transparent 40%),
                    radial-gradient(circle at 80% 90%, var(--hero-glow-2), transparent 40%);
  transition: background-image var(--theme-transition) var(--ease);
}

/* Faint dot grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-2);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.section {
  padding: var(--space-6) 0;
}

.section--panel {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--theme-transition) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--theme-transition) var(--ease);
}

.site-header.scrolled {
  background: var(--header-bg-solid);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

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

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--space-7) + 60px);
  padding-bottom: var(--space-7);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.hero-lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: var(--space-4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-subtext {
  font-size: 0.9375rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: var(--space-3);
  max-width: 400px;
}

/* Studio Cards Visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.studio-cards {
  position: relative;
  width: 280px;
  height: 280px;
}

.studio-card {
  position: absolute;
  width: 200px;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.studio-card--1 {
  top: 0;
  left: 0;
  z-index: 3;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 157, 160, 0.05) 100%);
  border-color: var(--accent-soft);
}

.studio-card--2 {
  top: 60px;
  left: 60px;
  z-index: 2;
}

.studio-card--3 {
  top: 120px;
  left: 30px;
  z-index: 1;
  background: linear-gradient(135deg, var(--surface) 0%, var(--gold-soft) 100%);
}

.card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.card-line {
  height: 6px;
  background: var(--border-strong);
  border-radius: 3px;
  margin-bottom: var(--space-1);
}

.card-line--short {
  width: 60%;
}

.card-dots {
  display: flex;
  gap: var(--space-1);
}

.card-dots span {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.card-dots span:first-child {
  opacity: 1;
}

.card-check {
  font-size: 1.5rem;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-5);
}

.section-header--centered {
  text-align: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Studio Grid (6 tiles)
   -------------------------------------------------------------------------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.grid-tile {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.grid-tile:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-md);
}

.tile-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.tile-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.tile-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Featured Demo
   -------------------------------------------------------------------------- */
.featured-demos {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Featured Demo Card (Ironwood) */
.demo-card--featured {
  border-color: var(--accent-soft);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 157, 160, 0.03) 100%);
}

[data-theme="dark"] .demo-card--featured {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(58, 180, 183, 0.05) 100%);
}

.demo-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

/* Secondary Demos Row */
.demo-secondary-row {
  display: grid;
  gap: var(--space-4);
}

.demo-card--secondary {
  padding: var(--space-3);
}

.demo-card--secondary .demo-title {
  font-size: 1.125rem;
}

.demo-card--secondary .demo-text {
  font-size: 0.9375rem;
  max-width: 320px;
}

.demo-card--secondary .preview-window {
  max-width: 280px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.chip {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.demo-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  max-width: 400px;
}

.demo-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

/* Preview Window Mock */
.demo-preview {
  display: flex;
  justify-content: center;
}

.preview-window {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--preview-bar-bg);
  border-bottom: 1px solid var(--border);
}

.preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.preview-bar span:first-child { background: #f5a3a3; }
.preview-bar span:nth-child(2) { background: #f5d4a3; }
.preview-bar span:nth-child(3) { background: #a3d9a5; }

.preview-content {
  padding: var(--space-2);
  min-height: 200px;
  background: linear-gradient(180deg, rgba(45, 157, 160, 0.04) 0%, rgba(212, 168, 83, 0.04) 100%);
}

.preview-nav {
  height: 8px;
  width: 50%;
  background: var(--border-strong);
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

.preview-hero {
  height: 60px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--accent-soft) 100%);
  border-radius: var(--radius);
  margin-bottom: var(--space-2);
}

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

.preview-grid div {
  height: 40px;
  background: var(--border);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Process Stepper
   -------------------------------------------------------------------------- */
.process-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.step-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

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

.step-connector {
  width: 2px;
  height: 24px;
  background: var(--border-strong);
  margin-left: 21px;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-row {
  display: grid;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-subtle);
}

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   Tech Desk Carousel
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --desk-bg: linear-gradient(180deg, #e8eaed 0%, #d8dce3 50%, #c5cad3 100%);
  --desk-surface: linear-gradient(180deg, #d5d9e0 0%, #c8cdd5 100%);
  --desk-edge-glow: rgba(45, 157, 160, 0.35);
  --desk-shadow: rgba(28, 37, 54, 0.15);
  --device-border: rgba(28, 37, 54, 0.12);
  --device-bg: #ffffff;
  --device-shadow: 0 16px 40px rgba(28, 37, 54, 0.18), 0 6px 16px rgba(28, 37, 54, 0.12);
}

[data-theme="dark"] {
  --desk-bg: linear-gradient(180deg, #1a1f2a 0%, #141820 50%, #0d1016 100%);
  --desk-surface: linear-gradient(180deg, #1e242f 0%, #171c26 100%);
  --desk-edge-glow: rgba(58, 180, 183, 0.45);
  --desk-shadow: rgba(0, 0, 0, 0.4);
  --device-border: rgba(255, 255, 255, 0.08);
  --device-bg: #1a202e;
  --device-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.demo-desk {
  --desk-device-height: 240px;
  --desk-item-width: 520px;
  --desk-offset: 280px;
  padding-bottom: var(--space-6);
  overflow: hidden;
}

.demo-desk__header {
  margin-bottom: var(--space-3);
  text-align: left;
}

.demo-desk__header .section-lead {
  max-width: 52ch;
}

.demo-desk__stage {
  position: relative;
  padding: var(--space-3) 0 var(--space-4);
  background: var(--desk-bg);
  border-radius: var(--radius-lg);
  transition: background var(--theme-transition) var(--ease);
}

.demo-desk__surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: var(--desk-surface);
  transition: background var(--theme-transition) var(--ease);
}

.demo-desk__edge {
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--desk-edge-glow) 20%, 
    var(--desk-edge-glow) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 18px 3px var(--desk-edge-glow);
  border-radius: 2px;
}

.demo-desk__carousel {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.demo-desk__track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(var(--desk-device-height) + 48px);
  perspective: 1200px;
}

.demo-desk__item {
  position: absolute;
  width: min(var(--desk-item-width), 76vw);
  transition: transform 0.45s var(--ease),
              opacity 0.45s var(--ease),
              filter 0.45s var(--ease);
  will-change: transform, opacity;
}

.demo-desk__item.is-active {
  z-index: 10;
  transform: translateX(0) scale(1) rotateX(4deg);
  opacity: 1;
}

.demo-desk__item.is-left {
  z-index: 5;
  transform: translateX(calc(-1 * var(--desk-offset))) scale(0.82) rotateX(4deg);
  opacity: 0.45;
  filter: blur(0.6px);
}

.demo-desk__item.is-right {
  z-index: 5;
  transform: translateX(var(--desk-offset)) scale(0.82) rotateX(4deg);
  opacity: 0.45;
  filter: blur(0.6px);
}

.demo-desk__item.is-hidden-left {
  z-index: 1;
  transform: translateX(calc(-2 * var(--desk-offset))) scale(0.7) rotateX(4deg);
  opacity: 0;
  pointer-events: none;
}

.demo-desk__item.is-hidden-right {
  z-index: 1;
  transform: translateX(calc(2 * var(--desk-offset))) scale(0.7) rotateX(4deg);
  opacity: 0;
  pointer-events: none;
}

.demo-desk__device {
  position: relative;
  height: var(--desk-device-height);
  padding: 10px;
  background: var(--device-bg);
  border: 1px solid var(--device-border);
  border-radius: 20px;
  box-shadow: var(--device-shadow);
  overflow: hidden;
  transition: background-color var(--theme-transition) var(--ease),
              border-color var(--theme-transition) var(--ease),
              box-shadow var(--theme-transition) var(--ease);
}

.demo-desk__item.is-active .demo-desk__device::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 12%;
  right: 12%;
  height: 22px;
  background: radial-gradient(ellipse at center, var(--desk-shadow) 0%, transparent 70%);
  pointer-events: none;
}

.demo-desk__device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.demo-desk__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.demo-desk__nav:hover {
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.demo-desk__nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.demo-desk__nav svg {
  width: 22px;
  height: 22px;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.demo-desk__nav--prev {
  left: calc(var(--space-2) * -1);
}

.demo-desk__nav--next {
  right: calc(var(--space-2) * -1);
}

.demo-desk__info {
  width: min(640px, 100%);
  margin: var(--space-3) auto 0;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: opacity 180ms var(--ease),
              transform 180ms var(--ease),
              background-color var(--theme-transition) var(--ease),
              border-color var(--theme-transition) var(--ease);
}

.demo-desk__info.is-updating {
  opacity: 0;
  transform: translateY(6px);
}

.demo-desk__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  margin-bottom: var(--space-2);
}

.demo-desk__badge:empty {
  display: none;
}

.demo-desk__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.demo-desk__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.demo-desk__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.demo-desk__cta {
  min-width: 160px;
}

.demo-desk__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  position: relative;
  z-index: 20;
}

.demo-desk__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--border-strong);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.demo-desk__dot:hover {
  background: var(--text-muted);
  transform: scale(1.2);
}

.demo-desk__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.demo-desk__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .demo-desk {
    --desk-device-height: 220px;
    --desk-item-width: 440px;
    --desk-offset: 240px;
  }
}

@media (min-width: 1024px) {
  .demo-desk {
    --desk-device-height: 250px;
    --desk-item-width: 520px;
    --desk-offset: 300px;
  }
  
  .demo-desk__stage {
    padding: var(--space-4) 0 var(--space-5);
  }
  
  .demo-desk__device {
    padding: 12px;
    border-radius: 22px;
  }
  
  .demo-desk__device img {
    border-radius: 12px;
  }
  
  .demo-desk__nav {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 767px) {
  .demo-desk {
    --desk-device-height: 170px;
    --desk-item-width: 300px;
    --desk-offset: 190px;
  }
  
  .demo-desk__stage {
    padding: var(--space-3) 0 var(--space-4);
  }
  
  .demo-desk__carousel {
    padding: 0 var(--space-3);
  }
  
  .demo-desk__item.is-left,
  .demo-desk__item.is-right {
    opacity: 0.3;
    transform: translateX(calc(-1 * var(--desk-offset))) scale(0.76) rotateX(4deg);
  }
  
  .demo-desk__item.is-right {
    transform: translateX(var(--desk-offset)) scale(0.76) rotateX(4deg);
  }
  
  .demo-desk__nav {
    width: 36px;
    height: 36px;
  }
  
  .demo-desk__nav svg {
    width: 18px;
    height: 18px;
  }
  
  .demo-desk__nav--prev {
    left: -6px;
  }
  
  .demo-desk__nav--next {
    right: -6px;
  }
  
  .demo-desk__info {
    padding: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease);
}

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

/* --------------------------------------------------------------------------
   Responsive: Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .studio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .demo-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .demo-secondary-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .demo-card--secondary {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .section {
    padding: var(--space-7) 0;
  }

  /* Featured demo full width, secondary row 2-col */
  .demo-card--featured {
    grid-template-columns: 1fr 1fr;
  }
  
  .demo-card--secondary {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .hero {
    min-height: 90vh;
  }
  
  .studio-cards {
    width: 320px;
    height: 320px;
  }
  
  .studio-card {
    width: 220px;
  }
  
  .studio-card--2 {
    left: 80px;
  }
  
  .process-stepper {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    max-width: 200px;
    padding: 0;
  }
  
  .step-content {
    padding-top: var(--space-2);
  }
  
  .step-connector {
    width: auto;
    height: 2px;
    flex: 1;
    max-width: 80px;
    margin: 22px 0 0 0;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile Nav (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: var(--space-2);
    right: var(--space-2);
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--duration) var(--ease),
                visibility var(--duration) var(--ease),
                transform var(--duration) var(--ease);
  }
  
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    display: block;
    padding: var(--space-2);
    border-radius: var(--radius);
  }
  
  .nav-link:hover {
    background: var(--bg);
  }
  
  .nav-link.btn {
    margin-top: var(--space-1);
  }
  
  /* Theme toggle mobile adjustments */
  .theme-toggle {
    width: 100%;
    justify-content: center;
    margin-bottom: var(--space-1);
  }
  
  /* Mobile hero adjustments */
  .hero {
    padding-top: calc(var(--space-6) + 60px);
    min-height: auto;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .studio-cards {
    width: 240px;
    height: 220px;
  }
  
  .studio-card {
    width: 160px;
    padding: var(--space-2);
  }
  
  .studio-card--2 {
    top: 40px;
    left: 50px;
  }
  
  .studio-card--3 {
    top: 80px;
    left: 25px;
  }
}

/* --------------------------------------------------------------------------
   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;
  }
}

/* --------------------------------------------------------------------------
   Theme Toggle
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              background-color var(--theme-transition) var(--ease),
              color var(--theme-transition) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.theme-toggle__label {
  line-height: 1;
}

/* Theme toggle wrapper with hint */
.theme-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.theme-toggle-hint {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  opacity: 0.7;
  transition: opacity var(--duration) var(--ease);
}

.theme-toggle-wrap:hover .theme-toggle-hint {
  opacity: 1;
}

/* Hide icon based on theme */
[data-theme="light"] .theme-toggle__icon--light,
[data-theme="dark"] .theme-toggle__icon--dark {
  display: none;
}

/* --------------------------------------------------------------------------
   Theme Transition Helpers
   -------------------------------------------------------------------------- */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color var(--theme-transition) var(--ease),
              border-color var(--theme-transition) var(--ease),
              color var(--theme-transition) var(--ease),
              box-shadow var(--theme-transition) var(--ease) !important;
}

/* --------------------------------------------------------------------------
   Focus Visible (Accessibility)
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}