/* ==========================================================================
   EarnTime Web — Apple / Google Minimalist Design System (Dark default + Light)
   ========================================================================== */

:root {
  --bg: #090c0b;
  --bg-elev: #0f1412;
  --surface: #131917;
  --surface-2: #19211e;
  --surface-glass: rgba(9, 12, 11, 0.72);
  --text: #eef3f0;
  --text-strong: #ffffff;
  --muted: #93a199;
  --accent: #7ad9b3;
  --accent-ink: #05261a;
  --accent-soft: rgba(122, 217, 179, 0.14);
  --danger: #f28b82;
  --danger-soft: rgba(242, 139, 130, 0.15);
  --warn: #f2b866;
  --warn-soft: rgba(242, 184, 102, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(122, 217, 179, 0.34);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --spotlight: rgba(122, 217, 179, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-elev: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #f1f4f3;
  --surface-glass: rgba(251, 251, 253, 0.78);
  --text: #18201c;
  --text-strong: #0c120f;
  --muted: #5a6760;
  --accent: #0f8a5f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 138, 95, 0.11);
  --danger: #d93025;
  --danger-soft: rgba(217, 48, 37, 0.11);
  --warn: #c4760a;
  --warn-soft: rgba(196, 118, 10, 0.12);
  --border: rgba(15, 24, 20, 0.09);
  --border-strong: rgba(15, 138, 95, 0.35);
  --shadow-lg: 0 24px 64px rgba(15, 24, 20, 0.09);
  --shadow-sm: 0 8px 24px rgba(15, 24, 20, 0.06);
  --spotlight: rgba(15, 138, 95, 0.09);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 7px;
  color: var(--text-strong);
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== AMBIENT ORBS ==================== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

[data-theme="light"] .orb {
  opacity: 0.16;
}

.orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #4bb4de, transparent 70%);
  bottom: -140px;
  right: -80px;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-47%, 34px) scale(1.08); }
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
}

.badge-beta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text-strong);
}

.nav-links a.is-current {
  position: relative;
}

.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-strong);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.lang-toggle:hover {
  transform: scale(1.04);
  border-color: var(--border-strong);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--border-strong);
}

[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  padding: 13px 20px;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px rgba(122, 217, 179, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(122, 217, 179, 0.32);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-stack small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.78;
}

/* ==================== HERO ==================== */
.hero {
  padding: 88px 0 60px;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(122, 217, 179, 0.65);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(122, 217, 179, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(122, 217, 179, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 217, 179, 0); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, #98f0cf 50%, #7bc7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #0b7a53 0%, #15996b 55%, #0c74b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 34px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--muted);
  max-width: 650px;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.dot-sep { opacity: 0.45; }

/* ==================== COMMON SECTIONS ==================== */
section {
  padding: 76px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--text-strong);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ==================== SPOTLIGHT CARD EFFECT ==================== */
.card-spotlight {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.card-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--spotlight), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spotlight:hover::before {
  opacity: 1;
}

.card-spotlight > * {
  position: relative;
  z-index: 1;
}

/* ==================== LIVE INTERACTIVE DEMO ==================== */
.demo-section {
  padding-top: 24px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}

.demo-tab {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.22s ease;
}

.demo-tab:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.demo-tab.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(122, 217, 179, 0.24);
}

.demo-stage {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 20px;
  align-items: stretch;
}

.device-pc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.window-url {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.pc-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 20px;
  flex: 1;
}

.et-mini-app {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.et-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.et-balance {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}

.et-subline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.et-status-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.et-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.et-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.et-pill.is-ent { background: var(--danger-soft); color: var(--danger); }
.et-pill.is-neutral { background: var(--warn-soft); color: var(--warn); }

.et-rate {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}

.et-reason {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.content-preview {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  transition: opacity 0.22s ease;
}

/* Мини-сцены внутри content-preview */
.code-mock {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--muted);
}

.code-mock .kw { color: #7bc7ff; }
.code-mock .fn { color: var(--accent); }
.code-mock .str { color: var(--warn); }

.yt-mock-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 14px;
}

.yt-mock-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.yt-thumb {
  position: relative;
  height: 92px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.yt-thumb-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-strong);
}

.yt-thumb-meta {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 3px;
}

.yt-thumb.is-locked::after {
  content: "🔒 00:00";
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 11, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.92rem;
}

.chat-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  max-width: 88%;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.chat-timer-bar {
  margin-top: 4px;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.chat-timer-fill {
  height: 100%;
  background: var(--warn);
  transition: width 0.5s linear, background-color 0.3s ease;
}

/* Мини-телефон Android */
.device-phone {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 64px;
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  margin: 0 auto 12px;
}

.phone-screen {
  position: relative;
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.phone-sync {
  color: var(--accent);
}

.phone-balance-wrap {
  text-align: center;
  margin: 14px 0;
}

.phone-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.phone-balance {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.phone-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
}

.phone-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 11, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.phone-lock-overlay.is-visible {
  opacity: 1;
}

.lock-glyph { font-size: 2.2rem; margin-bottom: 8px; }
.lock-title { font-weight: 700; color: #fff; font-size: 1rem; }
.lock-sub { font-size: 0.76rem; color: #9ca8a1; margin-top: 4px; }

/* ==================== STEPS ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==================== BENTO GRID ==================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.bento-wide { grid-column: span 2; }
.bento-full { grid-column: span 3; }

.bento-icon {
  font-size: 1.65rem;
  margin-bottom: 14px;
}

.bento-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.bento-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.lang-chips span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.privacy-badges {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.p-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-width: 124px;
  text-align: center;
}

.p-badge span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.p-badge small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ==================== CALCULATOR ==================== */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.calc-left h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.calc-left p {
  margin: 0 0 24px;
  color: var(--muted);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.calc-label-row strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rate-pill {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rate-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.calc-right {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.calc-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.calc-stat-value {
  font-family: "JetBrains Mono", monospace;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin: 4px 0 2px;
}

.calc-stat-secondary {
  font-size: 1.75rem;
  color: var(--text-strong);
}

.calc-stat-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* ==================== DOWNLOAD HUB ==================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
}

.dl-card-featured {
  border-color: var(--border-strong);
  box-shadow: 0 22px 60px rgba(122, 217, 179, 0.12);
}

.dl-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 14px;
}

.dl-tag-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.dl-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--text-strong);
}

.dl-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.dl-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  flex: 1;
}

.dl-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.dl-help-link {
  margin-top: 12px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 4px;
}

.dl-meta {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ==================== FAQ ==================== */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
}

.faq-plus {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-strong);
}

.footer-muted {
  font-weight: 400;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

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

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 7, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.modal-card h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  color: var(--text-strong);
}

.modal-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.modal-steps {
  margin: 0 0 24px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ==================== SCROLL REVEAL ==================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .demo-stage { grid-template-columns: 1fr; }
  .device-phone { max-width: 320px; margin: 0 auto; width: 100%; }
  .pc-grid { grid-template-columns: 1fr; }
  .steps-grid, .download-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-full { grid-column: span 1; }
  .privacy-row { flex-direction: column; align-items: flex-start; }
  .privacy-badges { width: 100%; flex-wrap: wrap; }
  .calc-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 56px; }
  .yt-mock-cards { grid-template-columns: 1fr; }
}

/* ==================== TRUST & POLISH 2.0 ADDITIONS ==================== */
.inline-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.inline-link:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.muted-note {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

/* Video Demo Slot */
.video-section {
  padding-top: 12px;
}

.video-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.video-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.video-copy p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.video-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.video-points li::before {
  content: "✦ ";
  color: var(--accent);
}

.video-frame {
  position: relative;
  min-height: 230px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: radial-gradient(circle at 50% 35%, var(--accent-soft), var(--bg-elev) 75%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.video-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-strong);
}

.video-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding-left: 3px;
}

.video-placeholder-note {
  margin: 0;
  max-width: 320px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Privacy Links inside Bento */
.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 0.88rem;
}

/* Download Meta Strip & Mini SHA-256 */
.dl-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  margin: 0 auto 28px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}

.dl-hash-mini {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
  word-break: break-all;
}

/* Feedback Card */
.feedback-section {
  padding-top: 24px;
}

.feedback-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.feedback-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.feedback-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.feedback-email-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==================== DOC PAGES (/security, /privacy) ==================== */
.doc-main {
  padding-bottom: 40px;
}

.doc-hero {
  padding: 64px 0 24px;
}

.doc-container {
  max-width: 880px;
}

.doc-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-strong);
}

.doc-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
}

.doc-body {
  padding-top: 20px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.doc-card h2 {
  margin: 0 0 16px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.doc-card p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--muted);
}

.doc-list,
.doc-ol {
  margin: 0 0 14px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.doc-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.86rem !important;
  color: var(--text) !important;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table th {
  background: var(--bg-elev);
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text);
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 18px 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hash-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.hash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-strong);
}

.hash-size {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.hash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hash-row code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  padding: 6px 9px;
}

.copy-btn {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-strong);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}

.copy-btn.is-copied {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.changelog-item {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.cl-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-strong);
}

.cl-head span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .video-slot,
  .feedback-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hash-row {
    flex-direction: column;
    align-items: stretch;
  }
  .doc-card {
    padding: 22px;
  }
}
