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

:root {
  --bg: #0c0c0c;
  --bg2: #111111;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8e8;
  --muted: rgba(255,255,255,0.38);
  --accent: #ffffff;
  --green: #4ade80;
  --yellow: #facc15;
  --radius: 14px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
#lang-picker {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}
#lang-picker option { background: #1a1a1a; }
.btn-nav {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.btn-nav:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ── HERO ── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
}

/* ── GLOBAL BACKGROUND ── */
.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.site-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: blobFloat 14s ease-in-out infinite;
}
.blob-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, #4a9eff 0%, transparent 70%);
  top: -10vh; left: -10vw;
  opacity: 0.22;
  animation-duration: 16s;
}
.blob-2 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 20vh; right: -10vw;
  opacity: 0.16;
  animation-duration: 20s;
  animation-delay: -5s;
}
.blob-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2dd4bf 0%, transparent 70%);
  top: 55vh; left: 25vw;
  opacity: 0.13;
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(40px, -30px) scale(1.04); }
  50%       { transform: translate(-30px, 40px) scale(0.97); }
  75%       { transform: translate(25px, 15px) scale(1.02); }
}

/* All content above fixed bg */
nav, section, footer { position: relative; z-index: 1; }
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 28px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-cta-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-download:hover { background: #e8e8e8; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.38); color: #fff; transform: translateY(-1px); }
.hero-cta-sub {
  font-size: 12px;
  color: var(--muted);
}
.hero-brew {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-brew-label {
  font-size: 12px;
  color: var(--muted);
}
.hero-brew-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  user-select: all;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

/* ── SECTIONS ── */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── FEATURES ── */
.features {
  padding: 120px 0;
}
.features h2, .pricing h2, .faq h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 56px;
  text-align: center;
  line-height: 1.15;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feature-card {
  background: rgba(17,17,17,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.feature-card:hover {
  background: rgba(22,22,22,0.7);
  border-color: rgba(255,255,255,0.1);
}
.feature-icon {
  font-size: 16px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.feature-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── PRICING ── */
.pricing { padding: 0 0 120px; }
.pricing-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: -40px;
  margin-bottom: 56px;
}

.pricing-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(17,17,17,0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
}

/* dot texture on card */
.pricing-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.pricing-card-inner {
  position: relative;
  z-index: 1;
  padding: 36px 36px 28px;
}

.pricing-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.price-now {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  transition: opacity 0.15s;
}
.price-was {
  font-size: 20px;
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
  letter-spacing: -0.5px;
}

/* Tab switcher */
.pricing-tabs {
  display: inline-flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}
.pricing-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 7px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pricing-tab:hover { color: var(--text); }
.pricing-tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.pricing-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.pricing-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding-left: 22px;
  position: relative;
}
.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.btn-pricing-main {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #000;
  transition: opacity 0.15s, transform 0.15s;
  margin-bottom: 16px;
}
.btn-pricing-main:hover { opacity: 0.88; transform: translateY(-1px); }

.pricing-footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.pricing-footer-note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── FAQ ── */
.faq { padding: 0 0 120px; }
.faq-inner { max-width: 680px; }
.faq h2 { text-align: left; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: -1px; border-radius: 0; }
.faq-item:first-child { border-radius: 10px 10px 0 0; }
.faq-item:last-child { border-radius: 0 0 10px 10px; }
.faq-item summary {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-size: 13px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── MOCKUP MACBOOK FRAME ── */
.mock-macbook {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  user-select: none;
  text-align: left;
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 96%);
}

.mock-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0a0a0a;
  border-radius: 20px 20px 0 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-bottom: none;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), inset 0 0.5px rgba(255,255,255,0.1);
  overflow: hidden;
}

.mock-screen {
  position: absolute;
  inset: 12px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.mock-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('wallpaper.jpg') center / cover no-repeat;
}

/* macOS menu bar */
.mock-menubar {
  position: relative;
  z-index: 10;
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mock-mb-left {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mock-mb-apple {
  font-size: 13px;
  opacity: 0.85;
}
.mock-mb-appname {
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-mb-item {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0.8;
}
.mock-mb-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mock-mb-time {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.2px;
  opacity: 0.8;
}
.mock-mb-vd {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}

/* Desktop content sits below menubar */
.mock-desktop {
  position: relative;
  z-index: 5;
  height: calc(100% - 28px);
}

/* MacBook hinge + base */
.mock-hinge {
  height: 4px;
  background: #050505;
  margin: 0 -2px;
}
.mock-base {
  position: relative;
  height: 28px;
  background: linear-gradient(180deg, #44444a, #3a3a40 25%, #333338 55%, #2c2c30);
  border-radius: 0 0 12px 12px;
  border: 1px solid rgba(255,255,255,0.04);
  border-top: none;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.mock-base-lip {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 14%; height: 3px;
  border-radius: 3px 3px 0 0;
  background: rgba(0,0,0,0.2);
}

.mock-popup {
  position: absolute;
  top: 2px;
  right: 76px;
  width: 31%;
  min-width: 220px;
  background: rgba(18,18,18,0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    0 20px 50px rgba(0,0,0,0.7),
    inset 0 0.5px 0 rgba(255,255,255,0.08);
  padding-bottom: 2px;
  z-index: 20;
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mock-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
}
.mock-updated {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 100px;
  padding: 2px 8px;
  font-size: 10px;
  color: #4ade80;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transition: opacity 0.3s;
}
.mock-updated.visible { opacity: 1; }
.mock-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.mock-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(74,222,128,0.5);
}

.mock-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 0;
}

.mock-section-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.22);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 8px 16px 4px;
  text-transform: uppercase;
}

/* Project section headers */
.mock-proj-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 4px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mock-proj-icon {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mock-proj-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.mock-proj-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-proj-path {
  font-size: 9.5px;
  color: rgba(255,255,255,0.28);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-proj-count {
  font-size: 9.5px;
  color: rgba(255,255,255,0.35);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 5px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.mock-proj-count.active {
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.2);
}
.mock-chevron { flex-shrink: 0; }

.mock-row {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  transition: background 0.15s;
}
.mock-row-sub {
  padding-left: 32px;
}
.mock-row:hover { background: rgba(255,255,255,0.04); }
.mock-row-bullet {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  margin-right: 8px;
}
.mock-row-name {
  font-size: 12.5px;
  color: rgba(255,255,255,0.72);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  flex: 1;
}
.mock-tok {
  font-size: 10px;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  margin-right: 8px;
  transition: color 0.12s;
}
.mock-row:hover .mock-tok { color: rgba(255,255,255,0.65); }

.mock-toggle {
  width: 34px; height: 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.mock-toggle.on {
  background: #4ade80;
  border-color: #4ade80;
}
.mock-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mock-toggle.on .mock-thumb {
  transform: translateX(14px);
}

.mock-footer {
  display: flex;
  justify-content: space-between;
  padding: 7px 14px 9px;
  margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.mock-footer span {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  transition: color 0.15s;
}
.mock-footer span:hover { color: rgba(255,255,255,0.6); }

/* ── SCENE BAR ── */
.scene-bar {
  margin-top: -32px;
  position: relative;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}
.scene-pills {
  display: flex;
  gap: 6px;
}
.scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.scene-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  transition: none;
}
.scene-pill.scene-progress::before {
  animation: scene-fill var(--scene-dur, 7s) linear forwards;
  background: rgba(74,222,128,0.12);
}
.scene-pill[data-scene="prefs"].scene-progress::before {
  background: rgba(99,102,241,0.15);
}
@keyframes scene-fill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}
.scene-pill:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}
.scene-pill svg { flex-shrink: 0; opacity: 0.5; transition: opacity 0.2s; }
.scene-active {
  color: #fff;
  border-color: rgba(74,222,128,0.4);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 10px rgba(74,222,128,0.2);
}
.scene-active svg { opacity: 1; color: #4ade80; }
.scene-pill[data-scene="prefs"].scene-active {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 10px rgba(99,102,241,0.25);
}
.scene-pill[data-scene="prefs"].scene-active svg { color: #818cf8; }
.scene-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  max-width: 400px;
  line-height: 1.5;
  min-height: 20px;
  transition: opacity 0.2s;
}

/* Scene visibility */
.mock-scene { display: block; }
.mock-scene-hidden { display: none; }

/* Preferences scene */
.mock-pref-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px 9px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mock-pref-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-pref-close {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.mock-pref-section { padding: 4px 0; }
.mock-pref-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: rgba(255,255,255,0.3);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 6px 14px 3px;
  text-transform: uppercase;
}
.mock-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 14px;
  gap: 8px;
}
.mock-pref-row-tall { align-items: flex-start; padding-top: 6px; padding-bottom: 6px; }
.mock-pref-key-group { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mock-pref-key {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-pref-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.4;
}
.mock-toggle-sm {
  width: 28px !important;
  height: 17px !important;
  flex-shrink: 0;
}
.mock-toggle-sm .mock-thumb {
  width: 11px !important;
  height: 11px !important;
}
.mock-toggle-sm.on .mock-thumb { transform: translateX(11px) !important; }
.mock-pref-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 4px 14px;
}
.mock-pref-licensed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 3px;
}
.mock-pref-licensed-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-pref-deactivate {
  padding: 4px 14px 10px;
  font-size: 11.5px;
  color: rgba(249,115,22,0.75);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
}
.mock-footer-danger { color: rgba(248,113,113,0.6) !important; }

/* ── RTL ── */
[dir="rtl"] body { direction: rtl; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
  .hero-brew { flex-direction: column; gap: 6px; }
  .hero-brew-code { max-width: calc(100vw - 48px); }
  .btn-nav { padding: 7px 12px; font-size: 12px; }
  .nav-inner { padding: 0 16px; }
}

@media (max-width: 600px) {
  .mock-macbook {
    transform: scale(0.90);
    transform-origin: top center;
    margin-bottom: calc((100vw - 48px) * -0.0625);
    -webkit-mask-image: none;
    mask-image: none;
  }
  /* Safari iOS: background-image fails when ancestor has transform AND
     parent has overflow:hidden. Remove overflow:hidden from mock-frame
     so mock-screen (which has the bg) is the only clipping boundary. */
  .mock-frame {
    overflow: visible;
    border-radius: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .mock-screen {
    /* CSS gradient instead of image — always renders on iOS Safari */
    background: radial-gradient(ellipse at 65% 35%, #db2777 0%, #9333ea 45%, #4f46e5 100%);
    border-radius: 10px;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .mock-wallpaper { display: none; }
  .mock-hinge,
  .mock-base,
  .mock-base-lip { display: none; }

  /* Remove backdrop-filter inside zoom (another Safari iOS compositing bug) */
  .mock-menubar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.45);
  }
  .mock-popup {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(18,18,18,0.98);
    right: 10px;
    left: auto;
    top: 6px;
    width: 220px;
    min-width: unset;
    transform: scale(0.42);
    transform-origin: top right;
  }

  .mock-mb-item { display: none; }
  .scene-bar { margin-top: 16px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .features { padding-top: 48px; }
  .mock-terminal { display: none; }
}

/* ─── Terminal window ─── */
.mock-terminal {
  position: absolute;
  top: 5%;
  left: 3%;
  width: 50%;
  height: 62%;
  background: #0e0e0e;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.mock-term-bar {
  height: 24px;
  background: #252525;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 9px;
  gap: 8px;
  flex-shrink: 0;
}

.mock-term-dots { display: flex; gap: 4px; }
.td { width: 7px; height: 7px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #ffbd2e; }
.td-g { background: #28c840; }

.mock-term-tab {
  font-size: 9px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  padding: 2px 9px;
  border-radius: 4px;
}

.mock-term-body {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mock-term-screen {
  position: absolute;
  inset: 0;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.mock-term-hidden { opacity: 0; pointer-events: none; }

.tl {
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 7.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  white-space: pre;
  display: block;
  min-height: 12px;
}
.tl-dim   { color: rgba(255,255,255,0.3); }
.tl-muted { color: rgba(255,255,255,0.45); }
.tl-box   { color: rgba(255,255,255,0.18); }
.tl-green { color: #4ade80; }
.tl-yellow{ color: #facc15; }
.tl-orange{ color: #fb923c; }
.tl-white { color: rgba(255,255,255,0.92); }
.tl-cursor{ color: rgba(255,255,255,0.7); animation: term-blink 1s step-end infinite; }
.tl-arrow { color: #fb923c; margin-right: 2px; }
.tl-appname { color: #fb923c; font-weight: 600; }
.tl-chevron { color: rgba(255,255,255,0.5); margin-right: 3px; }

/* Claude Code startup box */
.tl-cc-row {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0;
}
.tl-cc-info { display: flex; flex-direction: column; gap: 0; }

/* Pixel art logo */
.tl-logo {
  display: grid;
  grid-template-columns: repeat(4, 2.5px);
  grid-template-rows: repeat(5, 2.5px);
  gap: 0.5px;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp { width: 2.5px; height: 2.5px; border-radius: 0.3px; }
.lr { background: #cc2200; }
.lo { background: #ff6633; }
.le { background: transparent; }

/* Status bar */
.tl-statusbar {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  font-size: 7.5px;
  color: rgba(255,255,255,0.3);
}

@keyframes term-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Animated demo cursor */
.mock-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  transition: left 0.6s cubic-bezier(0.33, 0, 0.2, 1),
              top  0.6s cubic-bezier(0.33, 0, 0.2, 1);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  transform-origin: 2px 2px;
}
.mock-cursor.cursor-click svg { transform: scale(0.82); transition: transform 0.1s ease; }
.mock-cursor .cur-hand { display: none; }
.mock-cursor.is-pointer .cur-arrow { display: none; }
.mock-cursor.is-pointer .cur-hand  { display: block; }

.mock-pref-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
}
.mock-pref-reset {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mock-savings-stats {
  display: flex;
  gap: 6px;
  padding: 0 14px;
  margin-bottom: 5px;
}
.mock-savings-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-savings-val {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  font-variant-numeric: tabular-nums;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1;
}
.mock-savings-lbl {
  font-size: 7.5px;
  color: rgba(255,255,255,0.28);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.2;
}
.mock-savings-note {
  font-size: 7.5px;
  color: rgba(255,255,255,0.18);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0 14px;
  margin-top: 3px;
}

.mock-row-highlight {
  background: rgba(255,255,255,0.07) !important;
  transition: background 0.15s;
}

.mock-terminal.term-restarting {
  border-color: rgba(251,146,60,0.45);
  box-shadow: 0 0 18px rgba(251,146,60,0.15), 0 8px 40px rgba(0,0,0,0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
}
