:root {
  --bg: #000000;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --text: #ffffff;
  --text-secondary: #999999;
  --text-muted: #555555;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-icon {
  width: 28px;
  height: 28px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* ── Buttons ── */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  background: var(--text);
  color: var(--bg);
}

.btn-sm:hover {
  background: #e0e0e0;
  color: var(--bg);
}

.btn-lg {
  padding: 14px 32px 14px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.5s ease-out, border-color 0.5s ease-out, transform 0.5s ease-out;
}

.btn-lg:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-xl {
  padding: 18px 44px 18px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border: none;
  transition: background-color 0.5s ease-out, transform 0.5s ease-out;
}

.btn-xl:hover {
  background-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color 0.5s ease-out, border-color 0.5s ease-out, color 0.5s ease-out;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

/* ── Hero ── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 180px 24px 120px;
  background: transparent;
  overflow: hidden;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 60px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.06));
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 64px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-device {
  inset: 0;
  z-index: -1;
}

.hero-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.3);
  margin-top: -285px;
}

/* ── Showcase ── */

.showcase {
  padding: 80px 24px;
  text-align: center;
}

.showcase .container {
  padding: 0;
}

.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.showcase-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.showcase-caption {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Sections ── */

.section {
  padding: 120px 24px;
}

.section-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 64px;
}

/* ── Video Stack ── */

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.video-centered {
  text-align: center;
}

.video-centered h3 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.video-centered p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.video-large {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.video-large video {
  width: 100%;
  display: block;
}

/* ── Feature Grid ── */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.3s ease;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Shortcuts ── */

.shortcuts-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.shortcuts-panel h3 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

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

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 4px 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 2px 0 #1a1a1a;
  color: var(--text);
}

.shortcut span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── CTA ── */

.cta-section {
  text-align: center;
  padding: 160px 24px;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ── Footer ── */

.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

/* ── Reveal Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.video-centered.reveal {
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

/* ── Responsive ── */

@media (max-width: 1366px) {
  .hero-device {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 80px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .hero-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
  }

  .hero-text {
    margin-bottom: 32px;
  }

  .hero-device {
    display: none;
  }

  .section-title {
    font-size: 32px;
  }

  .video-centered h3 {
    font-size: 26px;
  }

  .video-stack {
    gap: 64px;
  }

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

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

  .shortcuts-panel {
    padding: 32px 24px;
  }

  .shortcuts-panel h3 {
    font-size: 22px;
  }

  .cta-section h2 {
    font-size: 32px;
  }

  .section {
    padding: 80px 16px;
  }

  .showcase {
    padding: 48px 16px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }
}
