/* ============================================
   RPlay Website - Design System v2
   ============================================ */

:root {
  /* Background colors */
  --bg-deep: #070A11;
  --bg-secondary: #080B14;
  --bg-tertiary: #0A0F18;
  --bg-card: #0D1117;

  /* Text colors */
  --text-white: #FFFFFF;
  --text-soft: #C6CBD4;
  --text-muted: #9FA6B2;
  --text-disabled: #5A6069;

  /* Orb gradient (primary) */
  --orb-blue: #2A8CFF;
  --orb-cyan: #52D3FF;
  --orb-indigo: #4A3DFF;
  --orb-violet: #7A4EFF;
  --gradient-orb: linear-gradient(135deg, #2A8CFF, #7A4EFF);

  /* Supporting color (warm amber) */
  --amber: #F59E0B;
  --amber-soft: #FBBF24;
  --amber-tint: rgba(245, 158, 11, 0.12);

  /* Accent (mint/success) */
  --accent-mint: #2DD1A7;
  --accent-mint-tint: rgba(45, 209, 167, 0.14);

  /* Status */
  --status-ok: #52D3FF;
  --status-warn: #F59E0B;
  --status-error: #EF4444;

  /* Borders */
  --border-soft: #2C3138;
  --border-hover: #3E4550;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

section {
  padding: var(--space-3xl) 0;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: var(--space-xl);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-white);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(42, 140, 255, 0.3));
}

.nav-brand span {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-orb);
  color: white;
  box-shadow: 0 4px 12px rgba(42, 140, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 140, 255, 0.35);
}

.btn-secondary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  color: var(--text-soft);
}

.btn-secondary:hover {
  border-color: var(--orb-blue);
  color: var(--text-white);
  background: rgba(42, 140, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-white);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(42, 140, 255, 0.25);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(42, 140, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-orb {
  width: 160px;
  height: 160px;
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-xl);
  animation: float 4s ease-in-out infinite;
}

.hero-orb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(42, 140, 255, 0.3));
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--text-white) 0%, var(--text-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-soft);
  margin-bottom: var(--space-xl);
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  line-height: 1.7;
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--amber-tint);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  color: var(--amber-soft);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
  margin-bottom: var(--space-2xl);
}

.hero-badges {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: var(--orb-cyan);
}

.hero-screenshot {
  margin-top: var(--space-3xl);
  max-width: 1450px;
  width: 100%;
}

.hero-screenshot img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(42, 140, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}

.hero-screenshot img:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(42, 140, 255, 0.3), 0 0 40px rgba(42, 140, 255, 0.15);
  border-color: var(--orb-blue);
}

.hero-screenshot-caption {
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
  font-style: italic;
}

#models-showcase {
  padding-top: calc(var(--space-3xl) * 0.10);
  padding-bottom: calc(var(--space-3xl) * 0.7);
}

/* ============================================
   App Showcase (Tabs)
   ============================================ */

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.showcase-tab {
  padding: 10px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-soft);
}

.showcase-tab.active {
  background: var(--gradient-orb);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(42, 140, 255, 0.25);
}

.showcase-content {
  position: relative;
}

.showcase-item {
  display: none;
  animation: fadeIn 0.4s ease;
}

.showcase-item.active {
  display: block;
}

.showcase-image {
  max-width: 900px;
  margin: 0 auto;
}

.showcase-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.showcase-caption {
  text-align: center;
  margin-top: var(--space-lg);
}

.showcase-caption h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.showcase-caption p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-wrap: balance;
}

/* ============================================
   Section Headings
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(42, 140, 255, 0.1);
  border: 1px solid rgba(42, 140, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--orb-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-label.amber {
  background: var(--amber-tint);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber-soft);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  text-wrap: balance;
}

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

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

.step {
  text-align: center;
  position: relative;
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-orb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 auto var(--space-lg);
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

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

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

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

.feature-card:hover {
  border-color: var(--orb-blue);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42, 140, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-orb);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================
   Apps Section
   ============================================ */

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

.apps-grid-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-lg);
}

.apps-grid-5 .app-card {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.apps-grid-5 .app-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.apps-grid-5 .app-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.apps-grid-5 .app-card p {
  flex: 0;
}

.apps-grid-5 .app-card .app-features {
  flex: 1;
}

.apps-grid-5 .app-card .btn {
  margin-top: auto;
  align-self: flex-start;
  width: auto;
}

.apps-grid-5 .app-card.featured .btn {
  margin-top: 0;
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.app-card:hover {
  border-color: var(--orb-blue);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42, 140, 255, 0.15);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-orb);
}

.app-card.featured::before {
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
}

.app-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(45, 209, 167, 0.15);
  color: var(--accent-mint);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.app-badge.paid {
  background: var(--amber-tint);
  color: var(--amber-soft);
}

.app-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.app-card > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
}

.app-features {
  list-style: none;
}

.app-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-soft);
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

.app-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orb-cyan);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.app-price-highlight {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--amber-tint);
  border-radius: var(--radius-md);
  text-align: center;
}

.app-price-highlight strong {
  color: var(--amber-soft);
  font-size: 1.25rem;
}

.app-price-highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}

.app-price-highlight-compact {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--amber-tint);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.app-price-highlight-compact strong {
  color: var(--amber-soft);
}

/* App Preview Modal */
.app-preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.app-preview-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.app-preview-modal {
  max-width: 1170px;
  width: 90%;
  position: relative;
}

.app-preview-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

.app-preview-modal-close svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.app-preview-modal-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.app-preview-modal-header h3 {
  color: white;
  font-size: 1.5rem;
}

.app-preview-modal-image {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.app-preview-modal-image img {
  width: 100%;
  display: block;
}

.app-preview-caption {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-top: var(--space-md);
  padding: 0 var(--space-lg);
  line-height: 1.5;
}

.app-preview-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.app-preview-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-preview-nav button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.app-preview-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.app-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.app-preview-dot.active {
  background: var(--orb-cyan);
}

/* ============================================
   Use Cases
   ============================================ */

.use-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.use-case {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.use-case:hover {
  border-color: var(--orb-blue);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42, 140, 255, 0.15);
}

.use-case-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-orb);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.use-case-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.use-case h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.use-case > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
  line-height: 1.6;
  text-wrap: pretty;
}

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

.pill {
  padding: 6px 14px;
  background: rgba(42, 140, 255, 0.1);
  border: 1px solid rgba(42, 140, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--orb-cyan);
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.pill:hover {
  background: rgba(42, 140, 255, 0.2);
  border-color: var(--orb-blue);
}

/* ============================================
   Comparison Table
   ============================================ */

.comparison {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-soft);
}

.comparison-header div {
  padding: var(--space-lg);
  font-weight: 600;
  text-align: center;
}

.comparison-header div:first-child {
  text-align: left;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s ease;
}

.comparison-row:hover {
  background: rgba(42, 140, 255, 0.03);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row div {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-row div:first-child {
  justify-content: flex-start;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.check {
  color: var(--accent-mint);
}

.x {
  color: var(--text-disabled);
}

/* ============================================
   Enterprise Section
   ============================================ */

.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.enterprise-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.enterprise-content > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.enterprise-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-orb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.enterprise-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}

.enterprise-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.diagram-core {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-orb);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.diagram-core img {
  width: 32px;
  height: 32px;
}

.diagram-arrow {
  width: 2px;
  height: 32px;
  background: var(--orb-cyan);
  position: relative;
  opacity: 0.7;
}

.diagram-arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid var(--orb-cyan);
}

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

.diagram-client {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

/* ============================================
   Pricing
   ============================================ */

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

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.pricing-card.featured {
  border-color: var(--amber);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.2);
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--amber), var(--amber-soft));
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
}

.pricing-tier {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-soft);
  text-wrap: balance;
}

.pricing-highlight {
  padding: var(--space-sm) var(--space-md);
  background: rgba(45, 209, 167, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-mint);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  text-align: center;
}

.pricing-highlight.amber {
  background: var(--amber-tint);
  color: var(--amber-soft);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-soft);
  margin-bottom: var(--space-sm);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-mint);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   Developers Section
   ============================================ */

.dev-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.dev-text h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.dev-text > p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.dev-features {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.dev-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--text-soft);
}

.dev-features li svg {
  width: 16px;
  height: 16px;
  fill: var(--orb-cyan);
}

.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
}

.code-block pre {
  font-family: 'SF Mono', Menlo, Monaco, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.code-block .comment { color: var(--text-disabled); }
.code-block .string { color: var(--accent-mint); }
.code-block .keyword { color: var(--orb-violet); }
.code-block .function { color: var(--orb-cyan); }

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orb-blue);
}

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

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

.cta-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.cta-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(42, 140, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-card > p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--space-lg);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  position: relative;
}

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

.footer {
  border-top: 1px solid var(--border-soft);
  padding: var(--space-2xl) 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 300px;
  text-wrap: balance;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-soft);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-soft);
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--orb-cyan);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .features-grid,
  .apps-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .apps-grid-5 .app-card {
    grid-column: span 1;
  }

  .apps-grid-5 .app-card:nth-child(4),
  .apps-grid-5 .app-card:nth-child(5) {
    grid-column: span 1;
  }

  .enterprise-grid,
  .dev-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Fix 1: Nav buttons smaller on mobile */
  .nav-cta {
    gap: var(--space-sm);
  }

  .nav-cta .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .steps,
  .features-grid,
  .apps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid-5 {
    grid-template-columns: 1fr;
  }

  /* Fix 2: Center use-cases cards and add horizontal padding */
  .use-cases {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .use-case {
    padding: var(--space-lg);
    max-width: 100%;
    overflow: hidden;
  }

  /* Fix 3: Use-case pills responsive - 2 columns on mobile, wrap text */
  .use-case-pills {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
  }

  .pill {
    white-space: normal;
    font-size: 0.75rem;
    padding: 5px 10px;
    text-align: center;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* Fix 4: Comparison table - keep 3 columns but make scrollable */
  .comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr 1fr 1fr;
    min-width: 450px;
  }

  .comparison-header div,
  .comparison-row div {
    padding: var(--space-sm) var(--space-sm);
    font-size: 0.8125rem;
  }

  .comparison-header div:first-child,
  .comparison-row div:first-child {
    font-size: 0.75rem;
  }

  .enterprise-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* General centering fixes */
  .container {
    padding: 0 var(--space-md);
  }

  .app-card,
  .feature-card,
  .pricing-card {
    max-width: 100%;
  }
}

/* Very small screens (small phones) */
@media (max-width: 480px) {
  .nav-cta .btn {
    padding: 6px 10px;
    font-size: 0.6875rem;
  }

  .nav-cta .btn-ghost {
    padding: 6px 8px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-orb {
    width: 120px;
    height: 120px;
  }

  /* Use-case pills: single column on very small screens */
  .use-case-pills {
    grid-template-columns: 1fr;
  }

  .comparison-header,
  .comparison-row {
    min-width: 380px;
  }

  .comparison-header div,
  .comparison-row div {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

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

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================
   Screenshot Cards (Glass Effect)
   ============================================ */

.screenshot-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.screenshot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 140, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(42, 140, 255, 0.3);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(42, 140, 255, 0.15);
}

.screenshot-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.screenshot-card .caption {
  margin-top: var(--space-lg);
  position: relative;
}

.screenshot-card .caption h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.screenshot-card .caption p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Email client variant (Outlook) - more prominent */
.screenshot-card.email-client {
  background: rgba(42, 140, 255, 0.04);
  border-color: rgba(42, 140, 255, 0.15);
}

.screenshot-card.email-client::before {
  background: linear-gradient(135deg, rgba(42, 140, 255, 0.08) 0%, rgba(122, 78, 255, 0.04) 100%);
}

.screenshot-card.email-client:hover {
  border-color: rgba(42, 140, 255, 0.4);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(42, 140, 255, 0.2),
    inset 0 0 60px rgba(42, 140, 255, 0.03);
}

/* Screenshot grid layouts */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.screenshots-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .screenshots-grid,
  .screenshots-grid-2 {
    grid-template-columns: 1fr;
  }
}

.highlight-box {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(42, 140, 255, 0.08);
  border: 1px solid rgba(42, 140, 255, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.highlight-box p {
  color: var(--text-soft);
  font-size: 1.125rem;
  font-style: italic;
}

/* ============================================
   Getting Started Steps (3-card grid)
   ============================================ */

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

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: var(--orb-blue);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(42, 140, 255, 0.15);
}

.step-card-num {
  width: 40px;
  height: 40px;
  background: var(--gradient-orb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-lg);
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.step-card ul {
  list-style: none;
  flex: 1;
}

.step-card ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-soft);
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.step-card ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orb-cyan);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.step-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-preview {
  background: linear-gradient(135deg, rgba(42, 140, 255, 0.15), rgba(122, 78, 255, 0.15));
  border: 1px solid rgba(42, 140, 255, 0.4);
  color: var(--orb-cyan);
  position: relative;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.btn-preview:hover {
  background: var(--gradient-orb);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(42, 140, 255, 0.3);
}

/* Preview Modal */
.preview-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.preview-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.preview-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  max-width: 1170px;
  width: 94%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.8) translateY(40px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.preview-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.preview-modal-close:hover {
  background: var(--orb-blue);
  border-color: var(--orb-blue);
}

.preview-modal-close svg {
  width: 20px;
  height: 20px;
  fill: var(--text-soft);
}

.preview-modal-close:hover svg {
  fill: white;
}

.preview-modal-content {
  padding: var(--space-xl);
}

.preview-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.preview-modal-header .app-badge {
  margin-bottom: 0;
}

.preview-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.preview-modal-image {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.preview-modal-image img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }
}

/* ============================================
   Models Table
   ============================================ */

.models-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.models-table th,
.models-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.models-table th {
  background: var(--bg-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
}

.models-table td {
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.models-table tr:last-child td {
  border-bottom: none;
}

.models-table tr:hover td {
  background: rgba(42, 140, 255, 0.03);
}

.models-table a {
  color: var(--orb-cyan);
  text-decoration: none;
}

.models-table a:hover {
  text-decoration: underline;
}

/* ============================================
   Memory Section (4-column)
   ============================================ */

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.memory-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.memory-card:hover {
  transform: translateY(-4px);
}

/* Color-matched hover states */
.memory-card:has(.card-icon.cyan):hover {
  border-color: #06B6D4;
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.2);
}

.memory-card:has(.card-icon.amber):hover {
  border-color: #F59E0B;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

.memory-card:has(.card-icon.mint):hover {
  border-color: #2DD1A7;
  box-shadow: 0 12px 32px rgba(45, 209, 167, 0.2);
}

.memory-card:has(.card-icon.violet):hover {
  border-color: #8B5CF6;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2);
}

.memory-card .card-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-orb);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(42, 140, 255, 0.25);
}

.memory-card .card-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

/* Colorful icon variants */
.memory-card .card-icon.cyan {
  background: linear-gradient(135deg, #0EA5E9, #06B6D4);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

.memory-card .card-icon.amber {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.memory-card .card-icon.mint {
  background: linear-gradient(135deg, #10B981, #2DD1A7);
  box-shadow: 0 4px 12px rgba(45, 209, 167, 0.35);
}

.memory-card .card-icon.violet {
  background: linear-gradient(135deg, #8B5CF6, #A78BFA);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.memory-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.memory-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.memory-card .example {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--orb-cyan);
  font-style: italic;
}

@media (max-width: 1024px) {
  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .memory-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================
   Pure CSS :target Modals (No JavaScript)
   ============================================ */

.css-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.css-modal:target {
  display: flex;
}

/* Backdrop - clickable to close */
.css-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1;
}

/* Content container - sits above backdrop */
.css-modal-content {
  position: relative;
  z-index: 2;
  max-width: 1170px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(42, 140, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(42, 140, 255, 0.08);
}

/* Close button */
.css-modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.css-modal-close:hover {
  background: rgba(42, 140, 255, 0.2);
  border-color: rgba(42, 140, 255, 0.4);
  color: white;
}

/* Title */
.css-modal-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Image */
.css-modal-image {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.css-modal-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
}

/* Caption */
.css-modal-caption {
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: center;
  margin-top: var(--space-md);
  padding: 0 var(--space-lg);
  line-height: 1.5;
}

/* Navigation */
.css-modal-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.css-modal-nav a {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.css-modal-nav a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Dots */
.css-modal-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.css-modal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
}

.css-modal-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.css-modal-dot.active {
  background: var(--orb-cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .css-modal-content {
    width: 95%;
    padding: var(--space-lg);
  }

  .css-modal-close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .css-modal-title {
    font-size: 1.25rem;
    padding-right: var(--space-xl);
  }

  .css-modal-nav a {
    padding: 6px 14px;
    font-size: 0.8125rem;
  }
}
