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

:root {
  --bg: #fff;
  --bg-2: #f8f8f8;
  --text: #111;
  --text-2: #444;
  --text-3: #888;
  --border: #e5e5e5;
  --accent: #2563eb;
  --font: system-ui, -apple-system, sans-serif;
  --mono: 'Menlo', 'Monaco', monospace;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-back { font-size: 0.8125rem; color: var(--text-3); text-decoration: none; flex: 1; }
.nav-back:hover { color: var(--text); }
.nav-brand { font-weight: 700; font-size: 0.9rem; }
.nav-code { font-size: 0.8rem; color: var(--text-3); text-decoration: none; }
.nav-code:hover { color: var(--text); }

/* Controls panel */
.controls-panel {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--text);
  border-radius: 12px;
  padding: 14px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  min-width: 320px;
}
.controls-inner {
  display: flex;
  gap: 8px;
}
.ctrl-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.ctrl-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
.ctrl-btn:active { background: rgba(255,255,255,0.3); }
.ctrl-btn#btnPlay { background: var(--accent); border-color: var(--accent); }
.ctrl-btn#btnPlay:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* Progress track */
.progress-track {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 1px;
}
.progress-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--mono);
  align-self: flex-end;
}

/* Main showcase */
.showcase {
  flex: 1;
  display: flex;
  align-items: center;
}
.showcase-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px 120px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  will-change: transform, opacity;
}
.brand-icon { flex-shrink: 0; }
.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* Headline */
.headline {
  font-size: 3.25rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin-bottom: 36px;
  overflow: hidden;
}
.headline span { display: block; will-change: transform, opacity; }
.accent { color: var(--accent); }

/* Feature list */
.feature-list {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-2);
  will-change: transform, opacity;
}
.feature-check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  will-change: transform, opacity;
}
.btn-primary {
  display: inline-block;
  padding: 11px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s;
}
.btn-primary:hover { background: #1d4ed8; }
.cta-note {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* Mockup */
.mockup {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  will-change: transform, opacity;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mockup-body {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mockup-line {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  margin-bottom: 10px;
}
.mockup-line.wide { width: 85%; }
.mockup-line.medium { width: 60%; }
.mockup-line.short { width: 40%; }
.mockup-spacer { height: 20px; }
.mockup-spacer.small { height: 10px; }
.mockup-block {
  height: 100px;
  background: var(--border);
  border-radius: 6px;
  margin-bottom: 0;
}

/* Hint */
.hint {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,17,17,0.85);
  color: #fff;
  font-size: 0.8375rem;
  padding: 10px 20px;
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 150;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.hint.hidden { opacity: 0; }

@media (max-width: 640px) {
  .site-nav { padding: 14px 20px; }
  .showcase-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 140px;
    gap: 40px;
  }
  .headline { font-size: 2.25rem; }
  .controls-panel { min-width: calc(100vw - 32px); bottom: 16px; }
  .visual-col { order: -1; }
}
