/* ============================================================
   V01 Landing Page — Matte Minimal Design System v2
   Editorial hero • marquee • bento grid • giant wordmark footer
   Crisp media rendering • Lenis-ready • reduced-motion aware
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Custom Properties ---- */
:root {
  --bg: #0a0a0b;
  --surface-1: #101012;
  --surface-2: #151518;
  --surface-3: #1c1c20;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.13);
  --text-1: #ffffff;
  --text-2: rgba(240, 240, 243, 0.82);
  --text-3: rgba(240, 240, 243, 0.58);
  --ivory: #f2f2ef;
  --emerald: #86d3a8;
  --cyan: #7dd3e0;
  --amber: #e0c184;
  --rose: #dd9aa6;
  --accent: #8b9dff;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --section-py: clamp(96px, 14vh, 176px);
  --container-max: 1240px;
  --container-px: clamp(20px, 5vw, 80px);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 32px 88px rgba(0, 0, 0, 0.55);
  --inset-line: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.55s;
  --dur-slow: 0.9s;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); background: var(--bg); color: var(--text-1); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
::selection { background: rgba(139, 157, 255, 0.25); color: var(--text-1); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #232327; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e2e33; }

/* ---- Film Grain Overlay ---- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 1%); }
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-left: var(--container-px); padding-right: var(--container-px); }
.section { padding: var(--section-py) 0; position: relative; }
.section-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border) 15%, var(--border) 85%, transparent); margin: 0 auto; max-width: var(--container-max); }
.section-head { margin-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }

/* ---- Typography ---- */
.heading-lg { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 550; letter-spacing: -0.025em; line-height: 1.07; color: var(--text-1); }
.body-lg { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.75; color: var(--text-2); }
.body { font-size: 0.95rem; line-height: 1.7; color: var(--text-2); }
.caption { font-size: 0.8125rem; color: var(--text-3); }
.label { font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 20px; height: 1px; background: var(--text-3); }
.serif-accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--text-1); font-size: 1.05em; }

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; font-size: 0.9rem; font-weight: 500;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn-primary {
  background: var(--ivory); color: #0c0c0d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { background: #ffffff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 12px 32px rgba(0, 0, 0, 0.45); }
.btn-ghost { border: 1px solid var(--border-hover); color: var(--text-2); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--text-1); background: rgba(255, 255, 255, 0.03); }
.btn-large { padding: 17px 36px; font-size: 1rem; }

/* ---- Reveal base (JS-driven; fallback shows content) ---- */
.reveal, .reveal-hero, .reveal-media { opacity: 0; }
.reveal.active, .reveal-hero.active, .reveal-media.active { opacity: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
/* ============================================================
   NAVIGATION — Flush on Painting Canvas • Morphing Floating Dock on Scroll
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  height: 80px;
  padding: 0 var(--container-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  transition: 
    top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating aesthetic glass capsule dock when scrolled */
.nav.scrolled {
  top: 16px;
  width: min(1040px, calc(100vw - 32px));
  height: 52px;
  padding: 0 12px 0 18px;
  border-radius: var(--radius-full);
  background: rgba(12, 12, 15, 0.78);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 24px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav.nav-hidden {
  transform: translateX(-50%) translateY(-140%);
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
  transition: opacity var(--dur-fast) var(--ease);
}
.nav-logo:hover {
  opacity: 0.85;
}
.nav-logo-text {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  transition: gap var(--dur-med) var(--ease);
}
.nav.scrolled .nav-links {
  gap: 4px;
}
.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 480;
  letter-spacing: 0.01em;
  color: var(--text-3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}

/* Flush state button */
.nav:not(.scrolled) .nav-logo {
  color: #0f172a;
}
.nav:not(.scrolled) .nav-links a {
  color: #334155;
  font-weight: 500;
}
.nav:not(.scrolled) .nav-links a:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}
.nav:not(.scrolled) .nav-cta {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.nav:not(.scrolled) .nav-cta:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}
.nav:not(.scrolled) .nav-mobile-toggle {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
}
.nav:not(.scrolled) .nav-mobile-toggle span {
  background: #0f172a;
}

/* Scrolled dock button */
.nav.scrolled .nav-cta {
  background: var(--ivory);
  color: #0c0c0d;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 4px 14px rgba(0, 0, 0, 0.35);
}
.nav.scrolled .nav-cta:hover {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}
.nav-mobile-toggle span {
  width: 14px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 1px;
  transition: all var(--dur-fast) var(--ease);
}

.nav-mobile-menu { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(10, 10, 11, 0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu > a { font-size: 1.35rem; font-weight: 500; color: var(--text-2); transition: color var(--dur-fast) var(--ease); opacity: 0; transform: translateY(14px); animation: mobileLink 0.5s var(--ease) forwards; }
.nav-mobile-menu.open > a:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile-menu.open > a:nth-child(2) { animation-delay: 0.1s; }
.nav-mobile-menu.open > a:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile-menu.open > a:nth-child(4) { animation-delay: 0.2s; }
.nav-mobile-menu.open > a:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile-menu.open > a:nth-child(6) { animation-delay: 0.3s; }
@keyframes mobileLink { to { opacity: 1; transform: translateY(0); } }
.nav-mobile-menu a:hover { color: var(--text-1); }

/* ============================================================
   HERO — Editorial Gallery Art Landscape Canvas
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 170px;
  padding-bottom: 80px;
  overflow: hidden;
  background-image: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0) 0%, 
      rgba(255, 255, 255, 0) 24%, 
      rgba(10, 10, 11, 0.32) 36%, 
      rgba(10, 10, 11, 0.76) 48%, 
      rgba(10, 10, 11, 0.96) 58%, 
      #0a0a0b 66%,
      #0a0a0b 100%
    ),
    url('assets/hero_v01_gallery_oil_canvas_bg.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 55% at 30% 0%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 30% 0%, black 0%, transparent 72%);
  opacity: 0.12;
  pointer-events: none;
  z-index: 2;
}
.hero-top { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero-title {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #0F172A;
  max-width: 18ch;
  text-shadow: none;
}
.hero-title .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  color: #334155 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #334155 !important;
  animation: none !important;
  text-shadow: none !important;
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line-inner { display: inline-block; will-change: transform; }
.hero-meta-row { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 4px; }
.hero-subtitle {
  max-width: 500px;
  color: #1E293B;
  font-size: 1.08rem;
  font-weight: 450;
  line-height: 1.6;
  text-shadow: none;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-actions .btn-drop-primary {
  background: #0F172A;
  color: #ffffff;
  border: 1px solid #0F172A;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
}
.hero-actions .btn-drop-primary:hover {
  background: #1E293B;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

.hero-actions .btn-ghost {
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: #0F172A;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: none;
}
.hero-actions .btn-ghost:hover {
  border-color: #0F172A;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.75);
}
.hero-visual-container { position: relative; z-index: 2; margin-top: 96px; padding-bottom: 8px; }
.hero-mockup-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  background: var(--surface-1);
  box-shadow: var(--shadow-lift), var(--inset-line);
}
.hero-screenshot { width: 100%; display: block; border-radius: calc(var(--radius-md) - 1px); }
.hero-terminal-overlay {
  position: absolute; bottom: -6%; right: -3%; width: 38%;
  border: 1px solid var(--border-hover); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-soft);
  background: var(--surface-1); z-index: 10;
  transition: transform var(--dur-slow) var(--ease);
}
.hero-terminal-video { width: 100%; display: block; }

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee {
  margin-top: 96px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-size: 0.95rem; font-weight: 450; color: var(--text-3);
  padding: 0 28px; white-space: nowrap; letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease);
}
.marquee-group span:hover { color: var(--text-1); }
.marquee-group i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); opacity: 0.5; flex-shrink: 0; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-cell {
  display: flex; flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--inset-line);
  transition: border-color var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.bento-cell:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), var(--inset-line); }
.bento-w7 { grid-column: span 7; }
.bento-w5 { grid-column: span 5; }
.bento-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9.5; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bento-media img, .bento-media video { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bento-info { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 8px; }
.bento-info h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.bento-info p { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; max-width: 52ch; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feature { overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }
.feature-text { display: flex; flex-direction: column; gap: 18px; }
.feature-text .label { margin-bottom: 6px; }
.feature-visual { position: relative; }

/* Plan Mode Section */
#canvas-section .container { max-width: 1400px; }
#canvas-section .feature-grid { grid-template-columns: 1fr 1.65fr; gap: clamp(40px, 5vw, 72px); }

.planmode-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  background: var(--surface-1);
  box-shadow: var(--shadow-lift), var(--inset-line);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-slow) var(--ease);
  transform: translateZ(0);
}

.planmode-mockup-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 157, 255, 0.4);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(139, 157, 255, 0.2), var(--inset-line);
}

.planmode-ide-container {
  width: 100%;
  aspect-ratio: 2560 / 1438;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 1px);
  background: var(--surface-1);
  display: block;
}

.planmode-ide-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center top;
  display: block;
  border-radius: calc(var(--radius-md) - 1px);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  transform: translateZ(0);
  transition: transform 0.8s var(--ease);
}

.planmode-mockup-wrapper:hover .planmode-ide-image {
  transform: scale(1.018);
}

/* Feature highlights list */
.feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 8px;
}

.feature-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.feature-highlight-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(3px);
}

.highlight-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.highlight-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
.highlight-text strong {
  color: var(--text-1);
  font-weight: 500;
  display: inline;
}

/* Meeting Mode */
#meeting-section .container { max-width: 1400px; }
#meeting-section .feature-grid { grid-template-columns: 1fr 1.8fr; gap: 80px; }
.meeting-mode-mockup-wrapper {
  position: relative; width: 100%; max-width: 860px; margin: 0 auto;
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: flex-start;
}
.meeting-ide-container {
  width: 90%; height: 100%;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-1);
  box-shadow: var(--shadow-lift);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  position: absolute; left: 0; top: 0;
}
.meeting-ide-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.meeting-phone-device-wrapper {
  position: absolute; bottom: -6%; right: 0; width: 25%; z-index: 5;
  transition: transform 0.7s var(--ease);
}
.meeting-phone-device {
  width: 100%; aspect-ratio: 9 / 19.5; border-radius: 28px;
  border: 3.5px solid #161619; outline: 1px solid var(--border);
  background: #000; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.meeting-phone-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.meeting-mode-mockup-wrapper:hover .meeting-ide-container { transform: translate(4px, 4px); opacity: 0.88; }
.meeting-mode-mockup-wrapper:hover .meeting-phone-device-wrapper { transform: translate(-14px, -14px); }

/* ============================================================
   WORKFLOW (Connected 5-Phase Interactive Process Grid)
   ============================================================ */
.workflow {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 120px 0;
  background: 
    radial-gradient(ellipse 60% 40% at 50% 15%, rgba(139, 157, 255, 0.04) 0%, transparent 70%),
    var(--bg);
}

.workflow-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.workflow-header .label { justify-content: center; }
.workflow-header .label::after { content: ''; width: 20px; height: 1px; background: var(--text-3); }
.workflow-header-sub {
  max-width: 600px;
  color: var(--text-3);
  font-size: 1.05rem;
  margin-top: 16px;
  line-height: 1.65;
}

/* Stepper navigation bar */
.workflow-stepper-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.workflow-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--text-3);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font);
}
.workflow-nav-pill span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}
.workflow-nav-pill:hover {
  color: var(--text-1);
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.workflow-nav-pill.active {
  color: var(--text-1);
  background: var(--surface-2);
  border-color: rgba(139, 157, 255, 0.4);
  box-shadow: 0 0 16px -2px rgba(139, 157, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.workflow-nav-pill.active span {
  color: var(--accent);
}

/* 5-Card Adaptive Grid */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.workflow-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 30px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--inset-line);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease);
}

.workflow-card:nth-child(4),
.workflow-card:nth-child(5) {
  grid-column: span 3;
}

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0.6;
  transition: opacity var(--dur-med) var(--ease);
}

.workflow-card:hover,
.workflow-card.active {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px -10px rgba(139, 157, 255, 0.12);
}

.workflow-card:hover::before,
.workflow-card.active::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 1;
}

.workflow-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.workflow-step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--text-3);
  opacity: 0.7;
  transition: all var(--dur-med) var(--ease);
}
.workflow-card:hover .workflow-step-num,
.workflow-card.active .workflow-step-num {
  color: var(--text-1);
  opacity: 1;
}

.workflow-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.workflow-card-title {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.workflow-card-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

.workflow-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.workflow-card-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

/* ============================================================
   COMPANION APP
   ============================================================ */
.companion { overflow: hidden; }
.companion .container { max-width: 1400px; }
.companion-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.companion-text { display: flex; flex-direction: column; gap: 18px; }
.companion-features { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--border); }
.companion-feature {
  display: flex; align-items: center; gap: 22px; padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.companion-feature:hover { padding-left: 14px; background: rgba(255, 255, 255, 0.015); }
.companion-feature-num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text-3); min-width: 34px; transition: color var(--dur-med) var(--ease); }
.companion-feature:hover .companion-feature-num { color: var(--text-1); }
.companion-feature h5 { font-size: 0.9rem; font-weight: 550; }
.companion-feature p { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }

/* Phone Mockup Group — width-based sizing, no resting scale (keeps screenshots sharp) */
.phone-mockup-group {
  position: relative; width: 100%; max-width: 760px; height: 620px;
  margin: 0 0 0 auto; display: flex; justify-content: center; align-items: center;
}
.phone-device {
  border-radius: 32px;
  border: 5px solid #1a1a1e; background: #000; overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.7s var(--ease);
  position: absolute;
}
.phone-device img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-device.center { width: 250px; height: 555px; z-index: 3; position: relative; box-shadow: var(--shadow-lift); }
.phone-device.left { width: 228px; height: 506px; left: 24px; z-index: 1; transform: rotate(-6deg) translateY(30px); opacity: 0.75; }
.phone-device.right { width: 228px; height: 506px; right: 24px; z-index: 1; transform: rotate(6deg) translateY(30px); opacity: 0.75; }
.phone-mockup-group:hover .phone-device.left { transform: rotate(-3deg) translate(-56px, 14px); opacity: 1; }
.phone-mockup-group:hover .phone-device.center { transform: translateY(-14px); box-shadow: var(--shadow-lift); }
.phone-mockup-group:hover .phone-device.right { transform: rotate(3deg) translate(56px, 14px); opacity: 1; }

/* ============================================================
   WHY V01 — numbered editorial pillars
   ============================================================ */
.why { border-top: 1px solid var(--border); background: var(--surface-1); }
.why-header { text-align: center; margin-bottom: 80px; }
.why-header .label { justify-content: center; }
.why-header .label::after { content: ''; width: 20px; height: 1px; background: var(--text-3); }
.why-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.why-pillar {
  padding: 48px 36px;
  background: var(--surface-1);
  transition: background var(--dur-med) var(--ease);
}
.why-pillar:hover { background: var(--surface-2); }
.why-pillar-num { font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--text-3); display: block; margin-bottom: 24px; transition: color var(--dur-med) var(--ease); }
.why-pillar:hover .why-pillar-num { color: var(--text-1); }
.why-pillar h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.why-pillar p { font-size: 0.9rem; color: var(--text-3); line-height: 1.7; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { text-align: center; padding: clamp(140px, 20vh, 220px) 0; border-top: 1px solid var(--border); }
.cta-title {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.02;
  color: var(--text-1); margin-bottom: 22px;
}
.cta-subtitle { margin-bottom: 52px; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   FOOTER — giant outline wordmark
   ============================================================ */
.footer { padding: 56px 0 0; border-top: 1px solid var(--border); overflow: hidden; }
.footer-content { display: flex; align-items: center; justify-content: space-between; padding-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9rem; }
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 0.8rem; color: var(--text-3); transition: color var(--dur-fast) var(--ease); }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { font-size: 0.75rem; color: var(--text-3); }
.footer-wordmark {
  font-size: clamp(8rem, 26vw, 24rem);
  font-weight: 700; letter-spacing: -0.05em; line-height: 0.78;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none;
  transform: translateY(0.08em);
}

/* ============================================================
   KEYFRAMES & UTILITIES
   ============================================================ */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.float-1 { animation: float 6s var(--ease-in-out) infinite; }
.float-2 { animation: float 7s var(--ease-in-out) infinite 1s; }
.float-3 { animation: float 5s var(--ease-in-out) infinite 2s; }
.float-4 { animation: float 8s var(--ease-in-out) infinite 0.5s; }
.float-5 { animation: float 6.5s var(--ease-in-out) infinite 1.5s; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section { padding: 176px 0 100px; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 120px); position: relative; }
.contact-container { max-width: 600px; width: 100%; margin: 0 auto; z-index: 2; position: relative; }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-soft), var(--inset-line); }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-group label { font-size: 0.72rem; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; }
.form-control { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; color: var(--text-1); font-family: inherit; font-size: 0.9rem; transition: border-color var(--dur-fast) var(--ease); }
.form-control:focus { outline: none; border-color: rgba(255, 255, 255, 0.28); }
.form-control::placeholder { color: var(--text-3); opacity: 0.6; }
textarea.form-control { resize: vertical; min-height: 120px; }
.contact-info { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.contact-email-link { font-size: 0.95rem; color: var(--text-1); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-hover); padding-bottom: 2px; transition: border-color var(--dur-fast) var(--ease); }
.contact-email-link:hover { border-color: var(--text-1); }

/* legacy typography helpers kept for contact page */
.heading-xl { font-size: clamp(2.9rem, 6.5vw, 5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.03; color: var(--text-1); }
.heading-md { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; line-height: 1.25; }
.heading-sm { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.gradient-text { color: var(--text-1); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 0.8125rem; font-weight: 500; border-radius: var(--radius-full); border: 1px solid var(--border); background: var(--surface-1); color: var(--text-2); }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--inset-line); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid, .companion-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .feature-grid.reverse { direction: ltr; }
  .bento-w7, .bento-w5 { grid-column: span 12; }
  .why-pillars { grid-template-columns: 1fr; }
  .phone-mockup-group { margin: 0 auto; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .workflow-card, .workflow-card:nth-child(4), .workflow-card:nth-child(5) { grid-column: span 1 !important; }
  .workflow-card:nth-child(5) { grid-column: span 2 !important; }
}

@media (max-width: 768px), (orientation: portrait) {
  .nav {
    height: 64px;
    padding: 0 20px;
  }
  .nav.scrolled {
    top: 10px;
    width: calc(100vw - 24px);
    height: 50px;
    padding: 0 12px 0 16px;
  }
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .hero { 
    padding-top: 140px; 
    background-size: cover;
  }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.6rem); max-width: none; }
  .hero-meta-row { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-visual-container { margin-top: 64px; }
  .marquee { margin-top: 64px; }
  .workflow-grid { grid-template-columns: 1fr !important; }
  .workflow-card, .workflow-card:nth-child(4), .workflow-card:nth-child(5) { grid-column: span 1 !important; }
  .workflow-stepper-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; width: 100%; }
  .workflow-nav-pill { flex-shrink: 0; }
  .phone-mockup-group { height: 420px; max-width: 380px; }
  .phone-device.center { width: 150px; height: 333px; border-radius: 22px; border-width: 3px; }
  .phone-device.left, .phone-device.right { width: 136px; height: 302px; border-radius: 20px; border-width: 3px; }
  .phone-device.left { left: 2%; transform: rotate(-5deg) translateY(14px); }
  .phone-device.right { right: 2%; transform: rotate(5deg) translateY(14px); }
  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .hero-terminal-overlay { right: 0; }
  .cta-title { font-size: clamp(2.6rem, 12vw, 4rem); }
}

@media (max-width: 480px) {
  :root { --container-px: 16px; }
  .section { padding: clamp(56px, 10vh, 88px) 0; }
  .contact-card { padding: 28px; }
  .bento-info { padding: 20px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .marquee-track { animation: none; }
  .reveal, .reveal-hero, .reveal-media { opacity: 1; }
  .hero-line-inner { transform: none !important; }
}

/* ============================================================
   BENTO — refined editorial head, crosshairs, spotlight
   ============================================================ */
.bento-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.bento-head-main { display: flex; flex-direction: column; gap: 20px; }
.bento-head-aside {
  justify-self: end; max-width: 340px;
  display: flex; flex-direction: column; gap: 22px;
  padding-bottom: 6px;
}
.bento-head-count { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-3); display: flex; align-items: baseline; gap: 10px; }
.bento-head-count .serif-accent { font-size: 1.9rem; color: var(--text-1); }

.bento { position: relative; }
.bento-cell { position: relative; }
.bento-media img, .bento-media video { transition: transform 1.4s var(--ease); }
.bento-cell:hover .bento-media img, .bento-cell:hover .bento-media video { transform: scale(1.035); }
.bento-info-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.bento-index { font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.06em; }

@media (max-width: 1024px) {
  .bento-head { grid-template-columns: 1fr; align-items: start; }
  .bento-head-aside { justify-self: start; border-left: 0; padding-left: 0; }
}

/* ============================================================
   FINISHING TOUCHES
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--text-1); transform-origin: left; transform: scaleX(0);
  z-index: 1400; opacity: 0.35; pointer-events: none;
}

:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.4); outline-offset: 3px; border-radius: 4px; }

kbd {
  font-family: var(--mono); font-size: 0.65rem;
  border: 1px solid var(--border-hover); border-bottom-width: 2px; border-radius: 5px;
  padding: 2px 6px; color: var(--text-2); background: var(--surface-2);
}

/* ============================================================
   COMMAND PALETTE (Cmd/Ctrl + K)
   ============================================================ */
.cmdk-backdrop {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.cmdk-backdrop.open { opacity: 1; pointer-events: auto; }
.cmdk {
  position: fixed; z-index: 1501; top: 18vh; left: 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  background: var(--surface-1); border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.cmdk.open { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cmdk-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cmdk-prompt { font-family: var(--mono); color: var(--text-3); font-size: 0.9rem; }
.cmdk-input { flex: 1; background: none; border: none; outline: none; color: var(--text-1); font-size: 0.95rem; font-family: inherit; }
.cmdk-input::placeholder { color: var(--text-3); }
.cmdk-list { max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
  color: var(--text-2); font-size: 0.9rem;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.cmdk-item.active { background: var(--surface-2); color: var(--text-1); }
.cmdk-hint { font-size: 0.68rem; font-family: var(--mono); color: var(--text-3); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--text-3); font-size: 0.85rem; }
.cmdk-footer { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 0.7rem; color: var(--text-3); }
.cmdk-footer span { display: inline-flex; align-items: center; gap: 6px; }

.palette-hint {
  position: fixed; right: 20px; bottom: 20px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--border); border-radius: var(--radius-full);
  background: rgba(16, 16, 18, 0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-3); font-size: 0.72rem; cursor: pointer;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.palette-hint.visible { opacity: 1; transform: translateY(0); }
.palette-hint:hover { color: var(--text-1); border-color: var(--border-hover); }
@media (hover: none), (max-width: 768px) { .palette-hint { display: none; } }

/* ============================================================
   LIVE DROP & COUNTDOWN STYLES (21 AUGUST DROP)
   ============================================================ */
.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(134, 211, 168, 0.6);
  position: relative;
  flex-shrink: 0;
}
.live-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  opacity: 0.6;
  animation: liveDotPulse 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes liveDotPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Minimal, Aesthetic Matte Drop Buttons */
.btn-drop {
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.01em;
}
.btn-drop:hover {
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Solid Ivory Variant for Hero Main CTA */
.btn-drop-primary {
  background: var(--ivory);
  color: #0c0c0d;
  border: 1px solid #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-drop-primary .live-pulse-dot {
  background: #0c0c0d;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.btn-drop-primary .live-pulse-dot::after {
  border-color: #0c0c0d;
}
.btn-drop-primary:hover {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   LAUNCH DOWNLOAD & OS SELECTOR MODAL
   ============================================================ */
.launch-download-box {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-2);
  font-size: 0.88rem;
}

.download-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-2);
  transition: all var(--dur-fast) var(--ease);
}
.download-meta-tag:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
}

/* Modal Core */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}
.download-modal.open {
  visibility: visible;
  opacity: 1;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.download-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(14px) scale(0.985);
  transition: transform var(--dur-med) var(--ease);
}
.download-modal.open .download-modal-card {
  transform: none;
}

.download-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.download-modal-close:hover {
  color: var(--text-1);
  background: var(--surface-3);
  border-color: var(--border-hover);
}

.download-modal-label {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
}

.download-modal-title {
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.2;
  margin: 8px 0 6px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.download-modal-desc {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Platform Grid (Windows vs macOS) */
.download-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.download-platform-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}

.download-platform-card:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.download-platform-card.detected {
  border-color: rgba(139, 157, 255, 0.4);
  box-shadow: 0 0 20px -4px rgba(139, 157, 255, 0.12), inset 0 1px 0 rgba(139, 157, 255, 0.15);
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-1);
  flex-shrink: 0;
}

.platform-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.platform-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.platform-sub {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.35;
}

.download-platform-card .btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 12.5px;
  justify-content: center;
  border-radius: 8px;
  font-weight: 500;
  gap: 6px;
}

.download-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
}

.download-alt-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-alt-links a {
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}
.download-alt-links a:hover {
  color: var(--accent);
}
.download-alt-links .dot-sep {
  color: var(--border-hover);
}

/* Download Success State */
.download-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(134, 211, 168, 0.1);
  border: 1px solid rgba(134, 211, 168, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.download-guide-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.guide-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-family: var(--mono);
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 1px;
}

.guide-step p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.download-success-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.download-retry-link {
  font-size: 12px;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}
.download-retry-link:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .download-platform-grid {
    grid-template-columns: 1fr;
  }
  .download-success-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   MACOS INSTALLATION & RUN GUIDE STYLES
   ============================================================ */
.mac-guide-container {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.mac-guide-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.8), rgba(6, 182, 212, 0.1));
}

.mac-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.mac-guide-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mac-guide-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  font-family: var(--mono);
}

.mac-guide-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin: 0;
}

.mac-guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 500;
}

.mac-guide-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mac-step-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mac-step-featured {
  grid-column: 1 / -1;
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.25);
}

.mac-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.mac-step-featured .mac-step-num {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
}

.mac-step-body {
  flex: 1;
}

.mac-step-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.mac-step-body p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.mac-step-body code {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--emerald);
}

.mac-solutions-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.mac-solution-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-2);
}

.mac-solution-label {
  font-weight: 600;
  color: var(--text-1);
  font-size: 12px;
}

.mac-terminal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #060807;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  margin-top: 4px;
}

.mac-terminal-box code {
  font-family: var(--mono);
  font-size: 12px;
  color: #34d399;
  background: transparent;
  border: none;
  padding: 0;
  user-select: all;
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-1);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}

.btn-copy-code:hover {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
}

.btn-copy-code.copied {
  background: var(--emerald);
  color: #000;
  border-color: var(--emerald);
}

@media (max-width: 680px) {
  .mac-guide-steps-grid {
    grid-template-columns: 1fr;
  }
  .mac-step-featured {
    grid-column: auto;
  }
}

/* ============================================================
   MODAL INSTALLATION GUIDES (WINDOWS & MACOS)
   ============================================================ */
.download-success-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.download-success-header .download-success-icon {
  margin-bottom: 0;
  width: 40px;
  height: 40px;
}

.guide-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 12px;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-3);
  transition: all var(--dur-fast) var(--ease);
}

.guide-tab-btn:hover {
  color: var(--text-1);
}

.guide-tab-btn.active {
  background: var(--surface-3);
  color: var(--text-1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.modal-guide-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0 16px;
  position: relative;
  overflow: hidden;
}

.modal-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
}

.guide-step-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  color: var(--text-1);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.guide-step-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}

.guide-step-item p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  margin: 0;
}

.guide-step-item code {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-1);
}

.guide-step-callout {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 4px;
}

.guide-methods-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.guide-method-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--text-2);
}

.guide-method-row .method-tag {
  font-weight: 600;
  color: var(--text-1);
  font-size: 11px;
}

.guide-cmd-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #08080a;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  margin-top: 4px;
}

.guide-cmd-box code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--emerald);
  background: transparent;
  border: none;
  padding: 0;
  user-select: all;
}



