/* =====================================================
   OnionBox.dev — style.css v2
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* === TOKENS === */
:root {
  --bg: #060912;
  --surface: #0d1525;
  --card: rgba(13, 21, 37, 0.9);
  --border: rgba(99, 130, 238, 0.12);
  --border-hover: rgba(99, 130, 238, 0.3);

  --primary: #4361ee;
  --primary-dark: #3451d1;
  --primary-glow: rgba(67, 97, 238, 0.35);
  --secondary: #7c3aed;

  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.3);
  --red: #ef4444;
  --yellow: #eab308;
  --amber: #f59e0b;

  --text-h: #f1f5f9;
  --text-body: #8fa3c0;
  --text-muted: #4d6a87;

  --mono: 'JetBrains Mono', 'Cascadia Code', monospace;
  --font: 'Inter', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --nav-h: 68px;
  --max-w: 1120px;
}

/* === RESET === */
*,
*::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-h);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

/* === UTILITIES === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.gradient-text {
  background: linear-gradient(135deg, #4361ee 0%, #7c3aed 55%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(67, 97, 238, 0.09);
  border: 1px solid rgba(67, 97, 238, 0.22);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.section-tag.center {
  display: block;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 28px var(--primary-glow);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-h);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-xl {
  padding: 16px 36px;
  font-size: 17px;
}

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(6, 9, 18, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(6, 9, 18, 0.88);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

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

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

.nav-cta {
  margin-left: auto;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(67, 97, 238, 0.14) 0%, rgba(124, 58, 237, 0.07) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.24);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero-heading-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-onion {
  position: absolute;
  width: 120px;
  top: -100px;
  /* "OnionBox" — 'i' is ~5th of 8 chars, sits left of center.
     left: 50% centers on the text; subtract ~1.5ch to land on the 'i' */
  left: calc(50% - 7ch);
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 2;
}

.hero-heading {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 0;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 17px);
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.hero-meta .dot {
  opacity: 0.3;
}

.hero-meta .plat-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.2);
  color: #7a9ef8;
  letter-spacing: 0.03em;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3
  }

  50% {
    opacity: 0.8
  }
}


/* ═══════════════════════════════════════════════════
   CHARACTER CANVAS SCENE
   100vh, auto-play loop via IntersectionObserver
   ═══════════════════════════════════════════════════ */
.char-scene {
  position: relative;
  height: 62vh;
  overflow: hidden;
  background: var(--bg);
}

#charCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene-header {
  position: absolute;
  top: calc(var(--nav-h) + 40px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.scene-header.dimmed {
  opacity: 0.15;
}

.scene-h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 10px;
}

/* IDE overlay — appears center-stage after explosion */
.scene-ide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: clamp(300px, 44%, 500px);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.scene-ide.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.scene-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* editor-chrome / traffic / tab / body shared with mock IDE below */
.editor-chrome {
  background: rgba(10, 16, 30, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(67, 97, 238, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.editor-traffic {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-dot.red {
  background: var(--red);
}

.t-dot.yellow {
  background: var(--yellow);
}

.t-dot.green {
  background: var(--green);
}

.editor-tab {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: var(--mono);
}

.editor-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  min-height: 160px;
}

/* Syntax colours */
.sa {
  color: #e2b96f;
}

/* annotation */
.sk {
  color: #c792ea;
}

/* keyword    */
.st {
  color: #79c0ff;
}

/* type       */
.sm {
  color: #d2a8ff;
}

/* method     */
.ss {
  color: #a5d6ff;
}

/* string     */
.sc {
  color: #6a9e6a;
}

/* comment    */
.sp {
  color: #cdd9e5;
}

/* plain      */



/* ═══════════════════════════════════════════════════
   AI PROMPT MOCK IDE
   ═══════════════════════════════════════════════════ */
.prompt-section {
  padding: 60px 0;
}

.prompt-header {
  text-align: center;
  margin-bottom: 56px;
}

.prompt-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.prompt-header p {
  font-size: 16px;
  color: var(--text-body);
  max-width: 540px;
  margin: 0 auto;
}

.mock-ide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(67, 97, 238, 0.08), 0 32px 80px rgba(0, 0, 0, 0.4);
}

.ide-chrome {}

.ide-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.ide-traffic {
  display: flex;
  gap: 6px;
}

.ide-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.ide-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Version pills */
.version-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.version-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.vpill {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.vpill:hover {
  border-color: var(--border-hover);
  color: var(--text-h);
}

.vpill.active {
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.4);
  color: var(--primary);
}

/* Prompt bar */
.prompt-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.prompt-prefix {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.prompt-cursor {
  color: var(--text-body);
  flex: 1;
}

.prompt-cursor::after {
  content: '|';
  display: inline;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* Code window */
.code-window {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  min-height: 220px;
}

.line-nums {
  color: var(--text-muted);
  text-align: right;
  user-select: none;
  flex-shrink: 0;
  min-width: 24px;
}

.ide-code-output {
  flex: 1;
  overflow: hidden;
}

.ide-code-output .code-line {
  display: block;
  white-space: pre;
}

.ide-code-output .cursor-end::after {
  content: '█';
  display: inline;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════════
   BENTO GRID
   ═══════════════════════════════════════════════════ */
.bento-section {
  padding: 0 0 60px;
}

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

.bento-card {
  background: rgba(13, 21, 37, 0.5);
  border: 1px solid rgba(99, 130, 238, 0.1);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67,97,238,0.04) 0%, rgba(124,58,237,0.04) 100%);
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(99, 130, 238, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(67, 97, 238, 0.1), 0 20px 40px rgba(0,0,0,0.3);
}

.bento-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Extraction card scan animation */
.scan-anim {
  position: relative;
}

.scan-folder {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scan-file {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.3s;
}

.scan-file:last-child {
  border-bottom: none;
}

.scan-file.active {
  color: var(--green);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: 0.6;
  animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
  0% {
    top: 12px;
  }

  100% {
    top: calc(100% - 8px);
  }
}

/* Version diff card */
.version-diff {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
}

.diff-old,
.diff-new {
  flex: 1;
  padding: 12px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diff-old {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.diff-new {
  background: rgba(67, 97, 238, 0.07);
  border: 1px solid rgba(67, 97, 238, 0.2);
}

.diff-ver {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.diff-old .diff-ver {
  color: var(--red);
}

.diff-new .diff-ver {
  color: var(--primary);
}

.diff-code {
  font-size: 10.5px;
  color: var(--text-body);
  line-height: 1.6;
}

.diff-arrow {
  font-size: 18px;
  color: var(--text-muted);
  align-self: center;
  flex-shrink: 0;
}

/* Credit card */
.bento-credit {
  background: linear-gradient(135deg, rgba(13, 21, 37, 0.95) 0%, rgba(25, 18, 55, 0.95) 100%);
}

.bento-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 16px;
}

.bento-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.bento-plat {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  background: rgba(67, 97, 238, 0.08);
  border: 1px solid rgba(67, 97, 238, 0.25);
  color: #7a9ef8;
  letter-spacing: 0.04em;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.bento-plat:hover {
  background: rgba(67, 97, 238, 0.15);
  border-color: rgba(67, 97, 238, 0.5);
  box-shadow: 0 0 12px rgba(67, 97, 238, 0.2);
}

/* ═══════════════════════════════════════════════════
   DOWNLOAD / PRICING CTA
   ═══════════════════════════════════════════════════ */
.download-section {
  padding: 60px 0 70px;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(67, 97, 238, 0.18) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

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

.dl-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.download-content h2 {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.download-content>p {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 48px;
}

.pricing-card {
  display: inline-block;
  text-align: left;
  background: rgba(13, 21, 37, 0.6);
  border: 1px solid rgba(99, 130, 238, 0.18);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  max-width: 440px;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(67, 97, 238, 0.1), 0 32px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99,130,238,0.5), transparent);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-suffix {
  font-size: 16px;
  color: var(--text-muted);
}

.price-features {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 0;
}

.price-features li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: rgba(67, 97, 238, 0.12);
  border: 1px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%234361ee' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px;
}

.price-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

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

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

.footer-right {
  margin-left: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.4;
  max-width: 400px;
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */
@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-credit {
    grid-column: span 2;
  }

  .implosion-stage {
    grid-template-columns: 1fr 120px 1fr;
  }

  .editor-chrome {
    max-width: 260px;
  }

  .hero-onion {
    width: 100px;
    top: -88px;
    left: calc(50% - 6.5ch);
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-credit {
    grid-column: auto;
  }

  .implosion-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .jar-ghost {
    justify-content: center;
    padding-right: 0;
  }

  .output-editor {
    justify-content: center;
    padding-left: 0;
  }

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

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-right {
    margin-left: 0;
    text-align: center;
    align-items: center;
  }

  .hero-heading-wrap {
    display: inline-block;
    position: relative;
  }

  .hero-onion {
    position: absolute;
    width: 90px;
    top: -82px;
    left: 43%;
    transform: translateX(-50%);
  }

  .footer-copy {
    margin-left: 0;
  }

  .pricing-card {
    padding: 28px 24px;
  }
}
/* ═══════════════════════════════════════════════════
   HAMBURGER & MOBILE MENU
   ═══════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 7px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-left: 12px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.nav-hamburger:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--border-hover);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate lines → X when open */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown — always in DOM, animated via max-height */
.nav-mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: rgba(6, 9, 18, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-mobile-menu.open {
  max-height: 400px;
}

.nav-mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
}

.nav-mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.nav-mobile-menu ul li a {
  display: block;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-mobile-menu ul li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-h);
}

/* Show hamburger, hide desktop links + cta on mobile */
@media (max-width: 640px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
  }

  .nav-cta {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════
   EMAIL SIGNUP FORM
   ═══════════════════════════════════════════════════ */
.signup-wrap {
  margin-bottom: 16px;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.signup-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-h);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}

.signup-btn {
  white-space: nowrap;
  padding: 14px 24px;
  border-radius: 99px;
}

.signup-success {
  display: none;
  text-align: center;
  padding: 16px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--r-md);
  color: var(--green);
  font-size: 15px;
  font-weight: 500;
}

.signup-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--red);
  min-height: 18px;
  padding-left: 4px;
}

@media (max-width: 640px) {
  .signup-form {
    flex-direction: column;
  }

  .signup-input {
    width: 100%;
  }

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