/* ==========================================================================
   PrismForge Studio — Design System & Stylesheet
   Theme: DaVinci Resolve / Ableton Dark Hybrid + Cyberpunk Neon Glass
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-main: #0c0f17;
  --bg-surface: #121824;
  --bg-surface-elevated: #182030;
  --bg-card: rgba(18, 24, 36, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);

  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.4);
  --accent-magenta: #ff007f;
  --accent-magenta-glow: rgba(255, 0, 127, 0.35);
  --accent-purple: #7000ff;
  --accent-green: #00ff88;
  --accent-gold: #ffb700;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #fff;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(0, 240, 255, 0.08);
  color: var(--accent-cyan);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Ambient Background Lights */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-top-left {
  top: -150px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(112, 0, 255, 0.3) 60%, transparent 100%);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-magenta) 0%, rgba(112, 0, 255, 0.25) 60%, transparent 100%);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Panel Component */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo {
  filter: drop-shadow(0 0 10px var(--accent-cyan-glow));
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-name .highlight {
  color: var(--accent-cyan);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.15em;
  margin-left: 0.3rem;
  font-weight: 600;
  vertical-align: middle;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-item:hover {
  color: #fff;
}

.nav-item.highlight-badge {
  color: var(--accent-cyan);
  position: relative;
}

.nav-item.highlight-badge::after {
  content: 'HOT';
  font-size: 0.6rem;
  font-family: var(--font-mono);
  background: var(--accent-magenta);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  position: absolute;
  top: -8px;
  right: -24px;
}

.btn-nav-cta {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan) !important;
  border: 1px solid var(--accent-cyan);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-nav-cta:hover {
  background: var(--accent-cyan);
  color: #000 !important;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform var(--transition-fast);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00aaff 100%);
  color: #060911;
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
  color: #000;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-magenta) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-magenta-glow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 127, 0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.full-width {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--accent-cyan) 50%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.hero-subtitle strong {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Hero Canvas & Workstation Frame */
.hero-canvas-wrapper {
  width: 100%;
  max-width: 1080px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
}

.canvas-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 18, 26, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.window-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000;
}

#heroVisualizerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-overlay-ui {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.audio-band-readout {
  display: flex;
  gap: 0.75rem;
  background: rgba(11, 14, 20, 0.85);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  pointer-events: auto;
}

.band-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.band-meter .label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.meter-bar {
  width: 14px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.meter-bar .fill {
  width: 100%;
  height: 20%;
  background: linear-gradient(to top, var(--accent-cyan), var(--accent-magenta));
  transition: height 0.08s ease-out;
}

.canvas-quick-controls {
  display: flex;
  gap: 0.6rem;
  pointer-events: auto;
}

.pill-btn {
  background: rgba(18, 24, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover, .pill-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.platform-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Statistics Banner */
.stats-banner {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 18, 26, 0.4);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Section Common Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Suite Section (Edit / FX Lab / Deliver) */
.suite-section {
  padding: 6rem 0;
}

.suite-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.suite-tab-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: left;
}

.suite-tab-btn .tab-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.suite-tab-btn .tab-text strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.suite-tab-btn .tab-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.suite-tab-btn:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.suite-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.suite-tab-btn.active .tab-badge {
  color: var(--accent-cyan);
}

.suite-display {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

.tab-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.tab-content-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.tab-content-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-checklist li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
}

.feature-checklist li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.feature-checklist li strong {
  color: #fff;
}

/* Mockups for Suite Tabs */
.tab-mockup {
  background: #0a0d14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.mockup-pill {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

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

/* Timeline Visual Mockup */
.timeline-visual-mockup {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock-track {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.mock-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
}

.mock-clip {
  height: 42px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.audio-clip {
  background: linear-gradient(90deg, #16382b, #1b4b3a);
  border-color: #27c93f;
}

.v-clip-1 {
  background: linear-gradient(90deg, #1b264f, #27408b);
  border-color: var(--accent-cyan);
}

.v-clip-2 {
  background: linear-gradient(90deg, #441752, #811868);
  border-color: var(--accent-magenta);
}

.t-clip {
  background: linear-gradient(90deg, #3a2e12, #68521f);
  border-color: var(--accent-gold);
}

.l-clip {
  background: linear-gradient(90deg, #2b1f4a, #433174);
  border-color: var(--accent-purple);
}

/* Mod Matrix Mockup */
.mod-matrix-mockup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.matrix-card {
  display: grid;
  grid-template-columns: 1.4fr 30px 1.6fr 100px;
  align-items: center;
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.matrix-source {
  color: var(--accent-cyan);
}

.matrix-arrow {
  color: var(--text-muted);
  text-align: center;
}

.matrix-dest {
  color: #fff;
}

.matrix-depth {
  display: flex;
  align-items: center;
  gap: 6px;
}

.depth-bar {
  height: 6px;
  background: var(--accent-magenta);
  border-radius: 3px;
}

/* Deliver Mockup */
.deliver-mockup {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deliver-metric {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.deliver-metric .metric-title {
  color: var(--text-muted);
}

.deliver-metric .metric-val {
  color: #fff;
}

.highlight-green {
  color: var(--accent-green) !important;
}

.deliver-progress-box {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.time-est {
  color: var(--accent-cyan);
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
}

/* DSP Architecture Section */
.dsp-section {
  padding: 6rem 0;
  background: rgba(14, 18, 26, 0.3);
}

.dsp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.dsp-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal);
}

.dsp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
}

.dsp-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.dsp-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.dsp-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* AWS Cloud Section */
.cloud-section {
  padding: 6rem 0;
}

.cloud-diagram-box {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.08);
  width: 100%;
}

.diagram-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.arch-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  color: #fff;
}

.aws-icon {
  font-size: 1.75rem;
}

.arch-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(255, 183, 0, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 0, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.diagram-flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(0.25rem, 0.8vw, 0.65rem);
  margin-bottom: 3.5rem;
  flex-wrap: nowrap;
  width: 100%;
}

.flow-node {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(180deg, rgba(16, 20, 32, 0.95) 0%, rgba(10, 12, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-md);
  padding: 1.15rem clamp(0.45rem, 0.8vw, 0.85rem);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.flow-node:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.12);
}

.flow-node.highlight-node {
  border: 1px solid rgba(0, 240, 255, 0.6);
  border-top: 2px solid var(--accent-cyan);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.08) 0%, rgba(10, 15, 28, 0.96) 100%);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.18), inset 0 0 20px rgba(0, 240, 255, 0.04);
}

.node-step-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin: 0 auto 0.5rem auto;
  align-self: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.node-step-badge.glow-badge {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(255, 0, 85, 0.35));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.node-tag {
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 0.65vw, 0.64rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.node-title {
  font-weight: 700;
  font-size: clamp(0.82rem, 0.95vw, 1.02rem);
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.node-detail {
  font-family: var(--font-mono);
  font-size: clamp(0.64rem, 0.72vw, 0.72rem);
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.node-sub {
  font-size: clamp(0.68rem, 0.72vw, 0.75rem);
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: auto;
}

.flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: clamp(45px, 5.5vw, 75px);
  position: relative;
  padding: 0 0.15rem;
}

.connector-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.2), var(--accent-cyan), rgba(0, 240, 255, 0.2));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.connector-badge {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: clamp(0.48rem, 0.58vw, 0.56rem);
  line-height: 1.2;
  color: var(--accent-cyan);
  background: rgba(11, 14, 22, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 0.2rem 0.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.3rem;
  width: 100%;
  max-width: 75px;
  word-break: break-word;
}

.connector-arrow {
  position: relative;
  z-index: 2;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px var(--accent-cyan));
  animation: pulseArrow 2.5s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(3px);
    opacity: 1;
  }
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent-magenta);
  font-size: 1.5rem;
  font-weight: 700;
}

.arrow-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.aws-services-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.matrix-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.service-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.service-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.matrix-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cloud-justification-banner {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
}

.just-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.just-text strong {
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.35rem;
}

/* Interactive Sandbox Demo */
.demo-section {
  padding: 6rem 0;
  background: rgba(10, 13, 20, 0.5);
}

.interactive-sandbox {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glow);
}

.sandbox-main {
  position: relative;
  width: 100%;
  height: 520px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

#interactiveDemoCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sandbox-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 1.25rem;
  background: rgba(11, 14, 20, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  pointer-events: none;
}

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

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 220px;
  font-weight: 600;
}

.btn-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ctrl-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: var(--bg-surface-elevated);
  color: #fff;
}

.ctrl-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.slider-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  width: 140px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-cyan);
  background: var(--bg-surface);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
}

.slider-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  width: 45px;
  text-align: right;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal);
}

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

.pricing-card.popular-tier {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-badge.highlight-badge {
  color: var(--accent-cyan);
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  min-height: 42px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-features li strong {
  color: #fff;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: rgba(14, 18, 26, 0.3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}

.about-text {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.company-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-box {
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.highlight-box strong {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.highlight-box span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.team-panel {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
}

.team-member {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.member-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.member-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.member-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.45rem;
}

.member-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.company-creds {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.company-creds strong {
  color: #fff;
}

/* Contact / Early Access Form */
.contact-section {
  padding: 6rem 0;
}

.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-checkbox input {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.legal-link {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}

.form-feedback.success {
  background: rgba(39, 201, 63, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}

.form-feedback.hidden {
  display: none;
}

/* Footer */
.site-footer {
  background: #05070a;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-name {
  font-size: 1.15rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 380px;
}

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.25rem;
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-text h4 {
  color: #fff;
  margin: 1.25rem 0 0.5rem;
}

.modal-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* Standalone Legal Pages */
.static-legal-page {
  padding-bottom: 4rem;
}

.static-nav {
  margin-bottom: 3rem;
}

.legal-main {
  max-width: 860px;
}

.legal-card {
  padding: 3rem;
}

.legal-card h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.legal-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.legal-card section {
  margin-bottom: 2rem;
}

.legal-card h2 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.legal-card p, .legal-card ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 1.5rem;
}

/* ==========================================================================
   Sub-Page Specific Base Styles
   ========================================================================== */

.nav-item.active {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  position: relative;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  border-radius: 2px;
}

.subpage-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.subpage-hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.subpage-hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.subpage-body {
  padding-bottom: 6rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 3rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: rgba(18, 24, 36, 0.9);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

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

.comparison-table td.highlight-cell {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Styles
   ========================================================================== */

/* Animation for mobile nav */
@keyframes slideDownNav {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger toggle animation */
.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* TABLET & SMALL DESKTOP (<= 992px) */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .subpage-hero {
    padding: 3.5rem 0 2.5rem;
  }

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

  .subpage-hero-desc {
    font-size: 1.05rem;
  }

  /* Mobile Navigation Switch */
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(8, 10, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 1.25rem 2.5rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  }

  .main-nav.open {
    display: flex;
    animation: slideDownNav 0.2s ease-out;
  }

  .nav-item {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    width: 100%;
    border: 1px solid transparent;
    display: block;
    text-align: left;
  }

  .nav-item:hover, .nav-item.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.25);
  }

  .nav-item.active::after {
    display: none;
  }

  .nav-item.highlight-badge::after {
    position: static;
    display: inline-block;
    margin-left: 0.65rem;
    vertical-align: middle;
  }

  .btn-nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
  }

  /* Grid Layouts */
  .tab-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  /* Cloud Architecture Flow - Transforms into sleek vertical pipeline */
  .diagram-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    width: 100%;
  }

  .flow-node {
    width: 100%;
    max-width: 480px;
    padding: 1.35rem 1.15rem;
  }

  .flow-connector {
    width: 100%;
    max-width: 480px;
    height: 52px;
    padding: 0.25rem 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .connector-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.2), var(--accent-cyan), rgba(0, 240, 255, 0.2));
  }

  .connector-badge {
    margin-bottom: 0.2rem;
    width: auto;
    max-width: 280px;
    font-size: 0.65rem;
    padding: 0.2rem 0.65rem;
  }

  .connector-arrow {
    transform: rotate(90deg);
  }
}

/* SMARTPHONES & MOBILE (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .glass-panel[style] {
    padding: 1.5rem !important;
  }

  .cloud-diagram-box {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.18;
  }

  .subpage-hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .subpage-hero-desc {
    font-size: 0.95rem;
  }

  .subpage-hero {
    padding: 2.75rem 0 1.75rem;
  }

  .subpage-body {
    padding-bottom: 4rem;
  }

  /* DSP Grid */
  .dsp-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dsp-card {
    padding: 1.5rem 1.25rem;
  }

  /* AWS Services Matrix */
  .aws-services-matrix {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .matrix-item {
    padding: 1.25rem 1rem;
  }

  /* Pricing Grid */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  /* Timeline & Track Mockups */
  .mock-track {
    grid-template-columns: 65px 1fr;
    gap: 0.5rem;
  }

  .mock-label {
    font-size: 0.65rem;
  }

  .mock-clip {
    font-size: 0.68rem;
    height: 38px;
    padding: 0 0.65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Modulation Matrix Card */
  .matrix-card {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.75rem 0.85rem;
    text-align: left;
  }

  .matrix-arrow {
    display: none;
  }

  .matrix-depth {
    width: 100%;
    margin-top: 0.25rem;
  }

  /* Interactive Sandbox & Demo */
  .interactive-sandbox {
    padding: 1rem;
  }

  .canvas-container {
    height: 300px;
  }

  .sandbox-main {
    height: 300px;
  }

  .sandbox-hud {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
    gap: 0.5rem;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    justify-content: space-between;
  }

  .control-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .control-label {
    width: 100%;
    font-size: 0.72rem;
  }

  .btn-cluster {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 0.35rem;
  }

  .ctrl-btn {
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-form-card {
    padding: 1.75rem 1.25rem;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal-badges {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* EXTRA SMALL SCREENS (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .subpage-hero-title {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .flow-node {
    padding: 1.15rem 0.85rem;
  }

  .node-title {
    font-size: 0.95rem;
  }

  .node-sub {
    font-size: 0.72rem;
  }
}
