/* ============================================================
   DREA Landing Page — Styles
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-elevated: #1e1e2a;

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;

  --violet-400: #a78bfa;
  --violet-500: #8B5CF6;
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;

  --cyan-400: #22d3ee;
  --cyan-500: #06B6D4;

  --green-400: #4ade80;
  --green-500: #22c55e;

  --amber-400: #fbbf24;

  --gradient-primary: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
  --gradient-subtle: linear-gradient(135deg, var(--violet-500) 0%, var(--cyan-500) 100%);
  --gradient-card: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, transparent 60%);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(139, 92, 246, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

  --font-mono: 'IBM Plex Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 72px;
  --container-width: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--violet-700);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan-500);
  bottom: 20%;
  left: -100px;
  animation-delay: -7s;
  opacity: 0.2;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--violet-500);
  top: 50%;
  right: 10%;
  animation-delay: -14s;
  opacity: 0.15;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Container & Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-400);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-color);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.nav-logo img {
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--cta {
  background: var(--gradient-primary);
  color: white !important;
  font-weight: 600;
  padding: 8px 20px;
}

.nav-link--cta:hover {
  opacity: 0.9;
  background: var(--gradient-primary);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

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

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

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(139, 92, 246, 0.05);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

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

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* --- Hero Visual (Terminal) --- */
.hero-visual {
  max-width: 640px;
  width: 100%;
  margin: 48px auto 0;
}

.terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  height: 280px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-line {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.t-prompt {
  color: var(--violet-400);
  font-weight: 600;
}

.t-cmd {
  color: var(--text-primary);
}

.t-response {
  color: var(--text-secondary);
  display: block;
  padding-left: 0;
  margin-bottom: 6px;
}

.t-success {
  color: var(--green-400);
}

.t-info {
  color: var(--cyan-400);
}

.cursor {
  color: var(--violet-400);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Scroll Hint --- */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  animation: scrollHint 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--violet-500), transparent);
}

@keyframes scrollHint {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(8px); }
}

/* --- Story Section --- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.story-narrative p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-narrative strong {
  color: var(--text-primary);
}

.persona-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
}

.persona-glow {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  filter: blur(4px);
}

.persona-icon {
  margin-bottom: 32px;
}

.persona-icon svg {
  margin: 0 auto;
  animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

.persona-traits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.trait {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trait-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.trait strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.trait span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease-out);
  overflow: hidden;
}

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

.feature-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--gradient-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover .feature-card-glow {
  opacity: 1;
}

.feature-card--large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 24px;
  align-items: start;
}

.feature-card--large .feature-icon {
  grid-row: 1 / 3;
}

.feature-card--large .feature-formats {
  grid-column: 1 / -1;
}

.feature-card--large .feature-note {
  grid-column: 1 / -1;
}

.feature-card--accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
  border-color: rgba(139, 92, 246, 0.2);
}

.feature-icon {
  color: var(--violet-400);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.feature-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.format-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  color: var(--violet-400);
}

.feature-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-400);
}

/* --- Screenshots Carousel --- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.carousel-slide {
  min-width: 100%;
  padding: 24px;
}

.carousel-slide img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.slide-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px 24px;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

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

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.carousel-dot.active {
  opacity: 1;
  background: var(--violet-500);
  transform: scale(1.3);
}

/* --- Architecture Section --- */
.arch-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}

.arch-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.arch-tab.active {
  background: var(--violet-500);
  color: white;
}

.arch-diagram {
  max-width: 800px;
  margin: 0 auto 64px;
}

.arch-mode {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.arch-mode.active {
  display: flex;
  animation: fadeIn 0.4s var(--ease-out);
}

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

.arch-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.arch-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  min-width: 160px;
  text-align: center;
  transition: all 0.3s;
}

.arch-node:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.arch-node--primary {
  border-color: var(--violet-500);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, var(--bg-card) 100%);
}

.arch-node--service {
  background: var(--bg-secondary);
}

.arch-node--optional {
  border-style: dashed;
  opacity: 0.7;
}

.arch-node--optional:hover {
  opacity: 1;
}

.arch-node-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.arch-node-inner span {
  font-weight: 600;
  font-size: 0.9rem;
}

.arch-node-inner small {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.arch-node-icon {
  color: var(--violet-400);
  margin-bottom: 4px;
}

.arch-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  margin-bottom: 4px;
  animation: pulse 2s ease-in-out infinite;
}

.arch-connector--v {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--border-color), rgba(139, 92, 246, 0.3));
}

.arch-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 8px;
}

/* --- Architecture Flow --- */
.arch-flow {
  max-width: 900px;
  margin: 0 auto;
}

.arch-flow h3 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: var(--text-secondary);
}

.flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 100px;
  transition: all 0.3s;
}

.flow-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.flow-step--final {
  border-color: var(--violet-500);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--bg-card));
}

.flow-step-icon {
  font-size: 1.5rem;
}

.flow-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.flow-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* --- Use Cases --- */
.usecase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s var(--ease-out);
}

.usecase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.usecase-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.usecase-icon {
  font-size: 1.6rem;
}

.usecase-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Hardware Section --- */
.hw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

/* 4-col variant available if needed */
.hw-cards--4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hw-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.hw-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.hw-card--recommended {
  border-color: var(--violet-500);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--bg-card));
}

.hw-card--entry {
  border-color: var(--green-400);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.06), var(--bg-card));
}

.hw-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 100px;
}

.hw-badge--green {
  background: linear-gradient(135deg, var(--green-400), var(--cyan-500));
}

.hw-tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--violet-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hw-chip {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hw-chip svg {
  margin: 0 auto;
}

.hw-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hw-spec {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hw-model {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hw-model-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan-400);
}

.hw-model-quant {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-400);
  padding: 2px 8px;
  border-radius: 4px;
}

.hw-features {
  list-style: none;
  text-align: left;
}

.hw-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-400);
  flex-shrink: 0;
}

/* --- Hardware Capability Matrix --- */
.hw-matrix {
  margin-bottom: 64px;
}

.hw-matrix h3 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.hw-matrix-table {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.hw-matrix-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.hw-matrix-table thead {
  background: rgba(139, 92, 246, 0.06);
}

.hw-matrix-table th {
  padding: 16px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.hw-matrix-table th:first-child {
  text-align: left;
  padding-left: 24px;
}

.hw-matrix-table th span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

.hw-matrix-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.hw-matrix-table td:first-child {
  text-align: left;
  padding-left: 24px;
  font-weight: 500;
  color: var(--text-primary);
}

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

.hw-yes {
  color: var(--green-400) !important;
  font-weight: 700;
}

.hw-no {
  color: var(--text-muted) !important;
}

.hw-partial {
  color: var(--amber-400) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.hw-matrix-group {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet-400) !important;
  background: rgba(139, 92, 246, 0.06);
  padding: 10px 24px !important;
  text-align: left !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.hw-matrix-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hw-matrix-note strong {
  color: var(--text-primary);
}

/* --- Hardware Requirements Grid --- */
.hw-requirements {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.hw-requirements h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-align: center;
}

.hw-req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hw-req {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hw-req strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--violet-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hw-req span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Pricing Section --- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 48px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

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

.pricing-card--featured {
  border-color: var(--violet-500);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--bg-card));
  transform: scale(1.03);
}

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

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 4px;
}

.pricing-value {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-value--custom {
  font-size: 2.2rem;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
}

.pricing-annual {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  line-height: 1.4;
}

.pricing-feature + .pricing-feature {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-feature--highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.pricing-feature--accent {
  color: var(--violet-400);
}

.pricing-check {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--green-400);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 1px;
}

.pricing-feature--accent .pricing-check {
  color: var(--violet-400);
}

.pricing-philosophy {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.pricing-philosophy p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pricing-philosophy strong {
  color: var(--text-primary);
}

/* --- Download Section --- */
.download {
  padding-bottom: 80px;
}

.download-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.download-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 48px 0 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s var(--ease-out);
}

.download-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.download-card-icon {
  color: var(--violet-400);
  margin-bottom: 20px;
}

.download-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.download-alt {
  margin-top: 24px;
}

.download-alt p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.code-snippet {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

.code-snippet code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-400);
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.copy-btn:hover {
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.footer-tagline {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

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

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.05s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.25s; }
.features-grid .reveal:nth-child(7) { transition-delay: 0.3s; }
.features-grid .reveal:nth-child(8) { transition-delay: 0.35s; }

.usecase-cards .reveal:nth-child(2) { transition-delay: 0.05s; }
.usecase-cards .reveal:nth-child(3) { transition-delay: 0.1s; }
.usecase-cards .reveal:nth-child(4) { transition-delay: 0.15s; }
.usecase-cards .reveal:nth-child(5) { transition-delay: 0.2s; }
.usecase-cards .reveal:nth-child(6) { transition-delay: 0.25s; }

.hw-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.hw-cards .reveal:nth-child(3) { transition-delay: 0.2s; }
.hw-cards .reveal:nth-child(4) { transition-delay: 0.3s; }

.pricing-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.pricing-cards .reveal:nth-child(3) { transition-delay: 0.2s; }

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

  .feature-card--large {
    grid-column: span 2;
  }

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

  .hw-cards--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .pricing-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    justify-self: center;
  }

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

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

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .feature-card--large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .usecase-cards {
    grid-template-columns: 1fr;
  }

  .hw-cards {
    grid-template-columns: 1fr;
  }

  .hw-cards--4col {
    grid-template-columns: 1fr;
  }

  .hw-req-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

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

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

  .download-cards {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .flow-pipeline {
    flex-direction: column;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hw-req-grid {
    grid-template-columns: 1fr;
  }

  .arch-row {
    flex-direction: column;
    align-items: center;
  }

  .arch-node {
    width: 100%;
    max-width: 280px;
  }
}

/* --- Success Page --- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  z-index: 1;
}

.success-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.success-icon {
  margin-bottom: 24px;
}

.success-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.success-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.success-tier-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  text-align: left;
}

.success-tier-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 12px;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
}

.tier-badge--community {
  background: rgba(74, 222, 128, 0.1);
  color: var(--green-400);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.tier-badge--professional {
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet-400);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.success-downloads {
  margin-bottom: 40px;
}

.success-downloads h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.success-download-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
}

.success-download-icon {
  color: var(--violet-400);
  flex-shrink: 0;
}

.success-download-info {
  flex: 1;
}

.success-download-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.success-download-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.success-next {
  text-align: left;
  margin-bottom: 40px;
}

.success-next h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}

.success-steps {
  list-style: none;
  counter-reset: steps;
}

.success-steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.success-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet-400);
}

.success-steps li strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.success-steps li span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.success-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

/* --- Enterprise Page --- */
.enterprise-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  position: relative;
  z-index: 1;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.enterprise-info .section-tag {
  margin-bottom: 16px;
}

.enterprise-info .section-title {
  text-align: left;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.enterprise-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.enterprise-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.enterprise-feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.enterprise-feature strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.enterprise-feature span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.enterprise-form-wrap {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.enterprise-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.enterprise-form h2 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--violet-500);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6b80' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form-disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 48px 28px;
}

.form-success h2 {
  font-size: 1.3rem;
  margin: 16px 0 8px;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .enterprise-form-wrap {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .success-download-card {
    flex-direction: column;
    text-align: center;
  }

  .success-download-info {
    text-align: center;
  }
}

/* --- Payment Modal --- */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.pay-modal-overlay.active {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.pay-modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
}

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

.pay-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.pay-modal-close:hover {
  color: var(--text-primary);
}

.pay-modal-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pay-modal-icon {
  margin-bottom: 20px;
}

.pay-modal-icon img {
  border-radius: 12px;
}

.pay-modal-product {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pay-modal-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pay-modal-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.pay-modal-divider {
  width: 100%;
  height: 1px;
  background: var(--border-color);
  margin: 24px 0;
}

.pay-apple-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.pay-apple-btn:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pay-apple-btn:active {
  transform: translateY(0);
  background: #333;
}

.pay-modal-alt {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Processing State */
.pay-modal-processing p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 20px;
}

.pay-modal-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--violet-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success State */
.pay-modal-success h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
}

.pay-modal-success p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pay-modal-check {
  animation: checkPop 0.4s var(--ease-spring);
}

@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.pay-check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkDraw 0.5s 0.2s ease forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* --- Selection --- */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
