/* ========================================
   Pixeltxt Design System
   Inspired by react.dev aesthetics
   ======================================== */

:root {
  /* Colors - Light Mode */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  /* Brand Colors */
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.15);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
  --gradient-hero: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(249, 115, 22, 0.04) 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(236, 72, 153, 0.03) 100%);
  
  /* Code */
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --code-comment: #64748b;
  --code-string: #4ade80;
  --code-key: #60a5fa;
  --code-value: #f472b6;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.3);
  
  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Fira Code', Menlo, Consolas, monospace;
  
  /* Layout */
  --max-width: 1280px;
  /* Features grid width cap (defaults to section width; override to tune e.g. 72rem) */
  --features-grid-max-width: var(--max-width);
  --header-height: 64px;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a14;
    --surface: #1e1b2e;
    --surface-elevated: #282542;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --muted: #64748b;
    --border: #334155;
    --border-subtle: #1e293b;
    --gradient-hero: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(249, 115, 22, 0.06) 100%);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(236, 72, 153, 0.04) 100%);
    --code-bg: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  }
}

/* ========================================
   Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent);
  color: white;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* ========================================
   Skip Link
   ======================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}

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

/* ========================================
   Header
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(12, 10, 20, 0.8);
  }
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo svg {
  width: 28px;
  height: 28px;
}

.site-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--border-subtle);
}

.site-nav a.highlight {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
}

.site-nav a.highlight:hover {
  background: var(--accent-hover);
  color: white;
}

/* ========================================
   Main Content
   ======================================== */

.site-main {
  flex: 1;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero__container {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  background: var(--accent-glow);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  line-height: 1.5;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.btn svg {
  width: 20px;
  height: 20px;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__demo {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  padding: var(--space-lg);
}

.hero__demo-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-md);
  align-items: center;
}

.hero__demo-step {
  text-align: center;
}

.hero__demo-step img {
  width: 100%;
  max-width: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: var(--space-sm);
}

.hero__demo-step span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__demo-arrow {
  color: var(--accent);
  font-size: 1.5rem;
}

.hero__demo-arrow svg {
  width: 32px;
  height: 32px;
}

/* ========================================
   Section Styles
   ======================================== */

.section {
  padding: var(--space-4xl) var(--space-lg);
}

.section--alt {
  background: var(--surface);
}

.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.section__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Features Grid
   ======================================== */

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

/* Wide screens: 3 equal flexible columns (2 rows for 6 cards), fill container up to --features-grid-max-width */
@media (min-width: 1025px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: var(--features-grid-max-width);
    margin-inline: auto;
  }
}

.feature-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--accent);
}

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

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   How It Works
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.step {
  position: relative;
  text-align: center;
  padding: var(--space-xl);
}

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-lg);
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step__description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.step__code {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-light);
}

/* ========================================
   Code Block
   ======================================== */

.code-window {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  margin: 0 auto;
}

.code-window__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-window__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

.code-window__dot--red { background: #ef4444; }
.code-window__dot--yellow { background: #eab308; }
.code-window__dot--green { background: #22c55e; }

.code-window__title {
  margin-left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.code-window__content {
  padding: var(--space-xl);
  overflow-x: auto;
}

.code-window pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--code-text);
}

.code-window .comment { color: var(--code-comment); }
.code-window .key { color: var(--code-key); }
.code-window .string { color: var(--code-string); }
.code-window .value { color: var(--code-value); }
.code-window .number { color: #fbbf24; }

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  background: var(--gradient-hero);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cta-section__description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-lg);
}

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

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
}

.site-footer__brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-footer__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.site-footer__copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__visual {
  animation: float 6s ease-in-out infinite;
}

/* ========================================
   Responsive - Tablet (768px - 1024px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .site-header__inner {
    padding: 0 var(--space-xl);
  }
  
  .hero {
    padding: var(--space-3xl) var(--space-xl);
  }
  
  .hero__demo-flow {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  
  .hero__demo-step:last-child {
    grid-column: span 2;
    justify-self: center;
  }
  
  .hero__demo-arrow {
    display: none;
  }
  
  .section {
    padding: var(--space-3xl) var(--space-xl);
  }
  
  .section__header {
    margin-bottom: var(--space-2xl);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  .code-window {
    max-width: 100%;
  }
}

/* ========================================
   Responsive - Mobile (< 768px)
   ======================================== */

@media (max-width: 768px) {
  .site-header__inner {
    padding: 0 var(--space-md);
  }
  
  .site-nav {
    gap: var(--space-sm);
  }
  
  .site-nav a:not(.highlight) {
    display: none;
  }
  
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .hero__badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
  }
  
  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }
  
  .hero__actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .hero__demo {
    padding: var(--space-md);
  }
  
  .hero__demo-flow {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .hero__demo-step img {
    max-width: 150px;
    margin: 0 auto var(--space-sm);
    display: block;
  }
  
  .hero__demo-step {
    text-align: center;
  }
  
  .hero__demo-step span {
    font-size: 0.75rem;
  }
  
  .hero__demo-arrow {
    display: none;
  }
  
  .hero__visual {
    animation: none;
  }
  
  .section {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .section__label {
    font-size: 0.75rem;
  }
  
  .section__title {
    font-size: 1.5rem;
  }
  
  .section__description {
    font-size: 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .feature-card {
    padding: var(--space-lg);
  }
  
  .feature-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: var(--space-md);
  }
  
  .feature-card__title {
    font-size: 1.125rem;
  }
  
  .feature-card__description {
    font-size: 0.9375rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .step {
    padding: var(--space-lg);
  }
  
  .step__number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  
  .step__title {
    font-size: 1.125rem;
  }
  
  .step__description {
    font-size: 0.9375rem;
  }
  
  .code-window {
    max-width: 100%;
    border-radius: var(--radius-md);
  }
  
  .code-window__header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .code-window__dot {
    width: 10px;
    height: 10px;
  }
  
  .code-window__title {
    font-size: 0.75rem;
  }
  
  .code-window__content {
    padding: var(--space-md);
  }
  
  .code-window pre {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  
  .cta-section {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .cta-section__title {
    font-size: 1.5rem;
  }
  
  .cta-section__description {
    font-size: 1rem;
  }
  
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .site-footer__brand {
    order: -1;
  }
  
  .site-footer__links {
    justify-content: center;
    gap: var(--space-md);
  }
  
  .site-footer__copy {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
  }
}

/* ========================================
   Responsive - iPad Specific (768px - 834px)
   ======================================== */

@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
  .hero__demo-flow {
    grid-template-columns: 1fr;
  }
  
  .hero__demo-step:last-child {
    grid-column: auto;
  }
  
  .hero__demo-arrow {
    display: block;
    transform: rotate(90deg);
    margin: var(--space-sm) auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive - Large Mobile (480px - 768px)
   ======================================== */

@media (min-width: 480px) and (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero__subtitle {
    font-size: 1.0625rem;
  }
  
  .hero__demo-step img {
    max-width: 180px;
  }
  
  .section__title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive - Small Mobile (< 480px)
   ======================================== */

@media (max-width: 480px) {
  .hero {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .hero__badge {
    margin-bottom: var(--space-md);
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero__subtitle {
    font-size: 0.9375rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .btn svg {
    width: 18px;
    height: 18px;
  }
  
  .hero__demo {
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
  }
  
  .section {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .section__label {
    font-size: 0.6875rem;
  }
  
  .section__title {
    font-size: 1.25rem;
  }
  
  .section__description {
    font-size: 0.875rem;
  }
  
  .feature-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .feature-card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-sm);
  }
  
  .feature-card__icon svg {
    width: 20px;
    height: 20px;
  }
  
  .step {
    padding: var(--space-md);
  }
  
  .code-window__content {
    padding: var(--space-sm);
  }
  
  .code-window pre {
    font-size: 0.6875rem;
  }
  
  .cta-section {
    padding: var(--space-xl) var(--space-sm);
  }
  
  .cta-section__title {
    font-size: 1.25rem;
  }
  
  .cta-section__description {
    font-size: 0.9375rem;
  }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */

@media (hover: none) and (pointer: coarse) {
  .feature-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }
  
  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }
  
  .site-nav a:hover {
    background: transparent;
    color: var(--text-secondary);
  }
  
  .site-nav a.highlight:hover {
    background: var(--accent);
    color: white;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero__visual {
    animation: none;
  }
  
  .hero__badge,
  .hero h1,
  .hero__subtitle,
  .hero__actions,
  .hero__visual {
    animation: none;
    opacity: 1;
  }
}

/* ========================================
   Utilities
   ======================================== */

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