/* ============================================
   DartBin — Design System
   A toolbox for the modern creator
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;900&family=Source+Code+Pro:wght@300;400;500;600&family=Noto+Sans+SC:wght@300;400;500;600&display=swap');

:root {
  /* Core palette — warm dark editor */
  --bg-primary: #0e0f12;
  --bg-secondary: #15161a;
  --bg-tertiary: #1c1d22;
  --bg-elevated: #222328;
  --bg-card: #1a1b20;

  /* Surface gradients */
  --surface-glass: rgba(28, 29, 34, 0.72);
  --surface-border: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #e8e4dc;
  --text-secondary: #9a9590;
  --text-muted: #5c5855;
  --text-inverse: #0e0f12;

  /* Accent — 大饼 gold */
  --accent-primary: #e8a838;
  --accent-secondary: #f5c869;
  --accent-glow: rgba(232, 168, 56, 0.15);
  --accent-subtle: rgba(232, 168, 56, 0.08);

  /* Semantic */
  --color-success: #4ec9a0;
  --color-info: #6ab4f0;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-display: 'Noto Serif SC', Georgia, serif;
  --font-body: 'Noto Sans SC', -apple-system, sans-serif;
  --font-mono: 'Source Code Pro', 'Fira Code', monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(232, 168, 56, 0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --duration-slower: 1s;
}

/* ============================================
   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-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

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

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--surface-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text-inverse);
  font-family: var(--font-mono);
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-out);
  font-weight: 400;
}

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

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: var(--space-sm) var(--space-lg);
  background: var(--accent-subtle);
  border: 1px solid rgba(232, 168, 56, 0.25);
  border-radius: var(--radius-xl);
  color: var(--accent-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent-glow);
  border-color: rgba(232, 168, 56, 0.5);
  transform: translateY(-1px);
}

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

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

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 0 var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid rgba(232, 168, 56, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-tools {
  margin-top: var(--space-4xl);
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1s forwards;
}

.hero-tool-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.hero-tool-tag:hover {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #d49530);
  color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(232, 168, 56, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.35);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

/* ============================================
   Products Section
   ============================================ */

.products-section {
  position: relative;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 168, 56, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 168, 56, 0.2);
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.product-card:nth-child(1) .product-icon {
  background: rgba(232, 168, 56, 0.12);
  color: var(--accent-primary);
}

.product-card:nth-child(2) .product-icon {
  background: rgba(78, 201, 160, 0.12);
  color: var(--color-success);
}

.product-card:nth-child(3) .product-icon {
  background: rgba(106, 180, 240, 0.12);
  color: var(--color-info);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  flex: 1;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.product-feature {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
  transition: gap var(--duration-fast) var(--ease-out);
}

.product-link:hover {
  gap: var(--space-md);
}

.product-link-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.product-link:hover .product-link-arrow {
  transform: translateX(3px);
}

.product-card.coming-soon {
  opacity: 0.6;
}

.product-card.coming-soon .product-icon {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* ============================================
   Features Section (for sub-pages)
   ============================================ */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

/* ============================================
   Screenshot / Showcase
   ============================================ */

.showcase {
  background: var(--bg-secondary);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.showcase-frame {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.showcase-frame::before {
  content: '';
  display: block;
  height: 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--surface-border);
  position: relative;
}

.showcase-frame::after {
  content: '● ● ●';
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 0.6rem;
  letter-spacing: 6px;
  color: var(--text-muted);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Download Section
   ============================================ */

.download-section {
  text-align: center;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(232, 168, 56, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.download-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.download-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.download-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

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

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

.footer {
  border-top: 1px solid var(--surface-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

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

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

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

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

.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ============================================
   Page-specific: Sub-page hero
   ============================================ */

.page-hero {
  padding: 140px 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 168, 56, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid rgba(232, 168, 56, 0.2);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-lg);
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

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

/* ============================================
   Carousel / Screenshot Showcase
   ============================================ */

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

.carousel-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.carousel-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(232, 168, 56, 0.06);
  border: 1px solid var(--surface-border);
  background: var(--bg-card);
}

/* Chrome bar on top */
.carousel-chrome {
  height: 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  position: relative;
  z-index: 2;
}

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

.carousel-chrome-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255,255,255,0.06);
}

.carousel-chrome-url {
  flex: 1;
  height: 22px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  margin-left: 12px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Slides container */
.carousel-slides {
  position: relative;
  aspect-ratio: 16 / 9.5;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease-in-out);
  display: flex;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Screenshot side */
.carousel-slide-img {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 8s linear;
}

.carousel-slide.active .carousel-slide-img img {
  transform: scale(1.04);
}

/* Text side */
.carousel-slide-text {
  width: 340px;
  flex-shrink: 0;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--surface-border);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.carousel-slide-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.3s;
}

.carousel-slide.active .carousel-slide-text::before {
  opacity: 1;
}

.slide-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-out) 0.2s;
}

.carousel-slide.active .slide-index {
  opacity: 1;
  transform: translateY(0);
}

.slide-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.3;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s var(--ease-out) 0.35s;
}

.carousel-slide.active .slide-title {
  opacity: 1;
  transform: translateY(0);
}

.slide-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s var(--ease-out) 0.5s;
}

.carousel-slide.active .slide-desc {
  opacity: 1;
  transform: translateY(0);
}

.slide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s var(--ease-out) 0.65s;
}

.carousel-slide.active .slide-tags {
  opacity: 1;
  transform: translateY(0);
}

.slide-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Progress bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-elevated);
  z-index: 3;
}

.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0;
  transition: width 0.1s linear;
}

/* Dots navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  padding: 0;
}

.carousel-dot:hover {
  background: var(--bg-tertiary);
}

.carousel-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Nav arrows */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.carousel-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-out);
}

.carousel-nav-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.12);
}

/* ============================================
   Code block aesthetic
   ============================================ */

.code-accent {
  font-family: var(--font-mono);
  color: var(--accent-primary);
}

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

@media (max-width: 900px) {
  .carousel-slide-text {
    width: 260px;
    padding: var(--space-lg) var(--space-md);
  }

  .slide-title {
    font-size: 1.2rem;
  }
}

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

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

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

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

  .footer-links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .carousel-slide-text {
    width: 220px;
    padding: var(--space-md);
  }

  .slide-title {
    font-size: 1rem;
  }

  .slide-desc {
    font-size: 0.75rem;
  }

  .slide-tags {
    display: none;
  }
}

@media (max-width: 600px) {
  .carousel-slide {
    flex-direction: column;
  }

  .carousel-slide-text {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--surface-border);
    padding: var(--space-md) var(--space-lg);
  }

  .carousel-slide-img {
    aspect-ratio: 16/10;
  }

  .carousel-slides {
    aspect-ratio: auto;
  }
}

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

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

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