:root {
  color-scheme: dark;
  --bg-main: #040508;
  --bg-soft: #090a0f;
  --bg-card: rgba(12, 14, 23, 0.7);
  --bg-card-hover: rgba(18, 21, 34, 0.85);
  --accent: #ffffff;
  --accent-muted: #cbd5e1;
  --accent-gold: #f59e0b;
  --accent-blue: #38bdf8;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --content-max-width: 1280px;
  scroll-behavior: smooth;
}

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

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

/* Organic Background Glows */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 600px;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.07) 0%, rgba(56, 189, 248, 0.02) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 800px;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.02) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

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

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

/* Grid Layout & Container */
.page {
  position: relative;
  z-index: 1;
  width: min(100%, calc(var(--content-max-width) + 48px));
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Navigation */
.topbar {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  color: #040508;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--text-dim);
  font-size: 11px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav a {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.04);
}

.ghost-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ghost-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Sections */
.section-pad,
.section {
  padding-top: 96px;
  position: relative;
}

/* Eyebrows & Headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero-copy h1,
.section-head h2,
.reality-callout h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-copy h1 span {
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head h2,
.reality-callout h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.lede,
.section-head p,
.reality-callout p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 32px;
}

/* Buttons */
.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.button-primary {
  background: var(--text-main);
  color: var(--bg-main);
  border: 1px solid transparent;
}

.button-primary:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 48px;
}

.pill-row li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-card span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-main);
  margin: 6px 0;
}

.metric-card small {
  font-size: 12px;
  color: var(--text-muted);
}

.metric-card code {
  font-family: var(--font-mono);
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.06);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

/* Glass Cards & Screenshots */
.hero-visual {
  display: grid;
  gap: 20px;
}

.glass-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-hover);
}

.hero-banner img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.hero-banner figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.support-card {
  display: flex;
  flex-direction: column;
}

.support-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.support-card figcaption {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  flex-grow: 1;
}

.support-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.support-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.support-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Interactive Desktop Sandbox (Custom Motion Anchor) */
.desktop-sandbox-container {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.sandbox-controls {
  display: flex;
  gap: 6px;
}

.sandbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.sandbox-dot:nth-child(1) { background: #ff5f56; }
.sandbox-dot:nth-child(2) { background: #ffbd2e; }
.sandbox-dot:nth-child(3) { background: #27c93f; }

.sandbox-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.sandbox-hint {
  font-size: 11px;
  color: var(--accent-gold);
  font-weight: 500;
}

.desktop-sandbox {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #030406;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  cursor: default;
}

/* Floating Draggable Companion Overlays */
.draggable-pet {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  cursor: grab;
  z-index: 10;
  transition: transform 0.1s ease-out;
}

.draggable-pet:active {
  cursor: grabbing;
}

.pet-sprite-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sprite Animation using CSS Steps */
.pet-sprite {
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Draggable pets bubble */
.pet-bubble {
  position: absolute;
  bottom: 58px;
  width: max-content;
  max-width: 180px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hover);
  background: rgba(9, 10, 15, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
  font-size: 11px;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  z-index: 15;
}

.pet-bubble.is-active {
  opacity: 1;
  transform: translateY(0);
}

.pet-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(9, 10, 15, 0.95);
}

/* Dragging state */
.draggable-pet.is-dragging {
  z-index: 25;
}

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

.feature-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Reality Section */
.section-reality {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  border-top: 1px solid var(--border);
  margin-top: 96px;
  padding-top: 80px;
}

.reality-callout h2 {
  margin-bottom: 20px;
}

.reality-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reality-points > div {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 24px 30px;
  box-shadow: var(--shadow-card);
}

.reality-points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.reality-points p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Pet Showcase Section */
.custom-pack-drop {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow-premium);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-pack-drop:hover {
  border-color: var(--border-hover);
}

.custom-pack-drop img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase-block {
  margin-bottom: 64px;
}

.showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.showcase-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pet-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.pet-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 24px;
  background: rgba(255, 255, 255, 0.01);
  flex-grow: 1;
}

.pet-card-copy {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
}

.pet-card-copy strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.pet-card-copy span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

/* Install Section */
.install-shell {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  margin-top: 32px;
}

.tab-row {
  display: flex;
  position: relative;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 6px;
}

/* Gliding Tab Backplate */
.tab-glider {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-button {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  border-radius: var(--radius-lg);
  transition: color 0.2s ease;
}

.tab-button.is-active {
  color: var(--text-main);
}

.install-panels {
  padding: 24px;
}

.install-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.install-panel[hidden] {
  display: none;
}

.terminal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #030406;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.terminal-top span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.copy-button {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  color: var(--text-main);
}

.terminal-card pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.terminal-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent-blue);
}

.install-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.note-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.note-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--accent);
}

.note-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Releases Timeline Section */
.release-timeline {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  margin-top: 32px;
}

.release-featured {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.release-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.release-featured h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.release-featured p {
  font-size: 14px;
  color: var(--text-muted);
}

.release-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.release-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.release-row:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.release-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.1);
  min-width: 68px;
  text-align: center;
}

.release-row p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 120px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.footer p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* Toast Alerts */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Entrance Reveal Styles */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

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

/* Entrance Sequence delays */
.header-reveal { --delay: 50ms; }
.hero-reveal-1 { --delay: 150ms; }
.hero-reveal-2 { --delay: 250ms; }
.hero-reveal-3 { --delay: 350ms; }

/* Responsive Media Queries */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-copy {
    padding-right: 0;
  }

  .hero-metrics {
    margin-top: 36px;
  }

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

@media (max-width: 880px) {
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .ghost-link {
    text-align: center;
  }

  .section-reality {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .install-notes {
    grid-template-columns: 1fr;
  }

  .release-timeline {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .tab-row {
    flex-direction: column;
    gap: 4px;
  }

  .tab-glider {
    display: none; /* Hide gliding pill background on mobile stacking */
  }

  .tab-button.is-active {
    background: rgba(255, 255, 255, 0.05);
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
