:root {
  color-scheme: dark;
  --bg: #070813;
  --bg-soft: #101226;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.16);
  --text: #f7f4ff;
  --muted: #b9b3cc;
  --accent: #8d7bff;
  --accent-strong: #c8b6ff;
  --accent-warm: #ffb86b;
  --success: #83f6c4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(141, 123, 255, 0.34), transparent 34rem),
    radial-gradient(circle at 82% 4%, rgba(255, 184, 107, 0.16), transparent 26rem),
    linear-gradient(135deg, #070813 0%, #11132a 52%, #090a15 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

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

.site-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px 0 44px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 8, 19, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.brand,
.nav__links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel-strong);
}

.nav__links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #111226;
  background: linear-gradient(135deg, #fff, var(--accent-strong));
  box-shadow: 0 14px 36px rgba(141, 123, 255, 0.3);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(141, 123, 255, 0.4);
}

.btn--small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn--ghost {
  color: var(--text);
  background: var(--panel);
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 44px 0 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.055em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 9vw, 6.9rem);
  line-height: 0.86;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero__lede,
.section p,
.check-list {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero__lede {
  max-width: 680px;
  margin-bottom: 30px;
  font-size: 1.22rem;
}

.hero__actions,
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stats {
  margin: 34px 0 0;
}

.stats div {
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.stats dt {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 900;
}

.stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card,
.feature-card,
.split,
.cta {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.045));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 34px;
}

.hero-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
  background: rgba(131, 246, 196, 0.16);
  filter: blur(10px);
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

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

.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #ffd166; }
.window-bar span:nth-child(3) { background: #83f6c4; }

.recording-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(131, 246, 196, 0.1);
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(131, 246, 196, 0.45);
  animation: pulse 1.4s infinite;
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(7, 8, 19, 0.42);
}

.timeline__step {
  flex: 0 0 auto;
  color: var(--accent-warm);
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Parrot Avatar */
.parrot-avatar {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.parrot-face {
  position: relative;
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ffb86b);
  border-radius: 50% 50% 40% 40%;
  animation: parrot-bob 3s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.parrot-eye {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 20px;
  box-shadow: inset 0 0 0 2px #333;
}

.parrot-eye:first-child {
  left: 18px;
}

.parrot-eye:last-child {
  right: 18px;
}

.parrot-eye::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  animation: eye-pupil 4s infinite;
}

.parrot-beak {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 12px;
  background: #ffd166;
  border-radius: 4px 4px 8px 8px;
}

.parrot-beak::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #ffd166;
}

@keyframes parrot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes eye-pupil {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1px, 1px); }
  50% { transform: translate(-1px, -1px); }
  75% { transform: translate(1px, -1px); }
}

/* Smart Insights Panel */
.smart-insights {
  margin: 20px 0;
  padding: 16px;
  background: rgba(141, 123, 255, 0.08);
  border-radius: 16px;
  border: 1px solid var(--border);
  min-height: 80px;
}

.insight-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  animation: bubble-pulse 4s ease-in-out infinite;
}

@keyframes bubble-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.insight-icon {
  font-size: 1.5rem;
  animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.insight-text {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Typed text animation */
.typed-text {
  color: var(--accent-warm);
  border-right: 2px solid var(--accent-warm);
  animation: blink 1s infinite;
  padding-right: 4px;
}

@keyframes blink {
  0%, 50% { border-color: var(--accent-warm); }
  51%, 100% { border-color: transparent; }
}

/* Notifications */
.notifications {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  max-width: 280px;
}

.notification {
  background: rgba(131, 246, 196, 0.15);
  border: 1px solid var(--success);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
  animation: slide-in 0.5s ease-out, fade-out 0.5s ease-out 4.5s forwards;
}

.notification--proactive {
  background: rgba(141, 123, 255, 0.15);
  border-color: var(--accent);
}

.notification__text {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0;
}

.notification__highlight {
  color: var(--success);
  font-weight: 600;
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-out {
  to { opacity: 0; transform: translateX(100%); }
}

.timeline-item {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--muted);
  font-family: monospace;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 76px 0;
}

.section__heading {
  max-width: 780px;
  margin-bottom: 28px;
}

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

.feature-card {
  padding: 26px;
  border-radius: 28px;
}

.feature-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.35rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 38px;
  align-items: start;
  padding: 38px;
  border-radius: 34px;
}

.check-list {
  display: grid;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #07130e;
  content: "✓";
  background: var(--success);
  font-size: 0.9rem;
  font-weight: 900;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: start;
  margin: 76px 0;
  padding: 52px;
  border-radius: 38px;
}

.cta p {
  max-width: 620px;
  margin-bottom: 0;
}

.download-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(131, 246, 196, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(131, 246, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(131, 246, 196, 0); }
}

/* ── Hero simulation (browser-only demo) ───────────────────── */

.ghost-sim {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.sim-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(131, 246, 196, 0.08);
  border: 1px solid rgba(131, 246, 196, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--success);
}

.sim-phase {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-progress-wrap {
  flex: 0 0 80px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.sim-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 99px;
  transition: width 0.7s ease;
}

.sim-steps {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sim-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 8, 19, 0.5);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.sim-step--active {
  opacity: 1;
  transform: translateY(0);
}

.sim-step--done {
  border-color: rgba(131, 246, 196, 0.35);
}

.sim-step--done .sim-step__check {
  color: var(--success);
}

.sim-step__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sim-step__text {
  flex: 1;
  color: var(--muted);
  line-height: 1.35;
}

.sim-step__check {
  color: transparent;
  font-weight: 900;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.sim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  animation: step-in 0.4s ease-out;
}

/* ── Platform-aware visibility ──────────────────────────────── */

[data-show] { display: none !important; }

:root[data-platform="mac"]     [data-show~="mac"]     { display: revert !important; }
:root[data-platform="windows"] [data-show~="windows"] { display: revert !important; }
:root[data-platform="mobile"]  [data-show~="mobile"]  { display: revert !important; }
:root[data-platform="other"]   [data-show~="other"]   { display: revert !important; }

/* Fallback: if JS hasn't run yet, show generic slots */
:root:not([data-platform]) [data-show~="other"] { display: revert !important; }

.btn--download {
  gap: 10px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-strong) 100%);
  color: #0a0b1a;
}

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

.download-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.cta-download-btn {
  margin-top: 20px;
}

/* ── Interactive Demo ───────────────────────────────────────── */

.demo-shell {
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--panel-strong), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  padding: 28px;
  display: grid;
  gap: 20px;
}

.demo-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-chip {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms, transform 140ms;
}

.demo-chip:hover {
  background: rgba(141, 123, 255, 0.15);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.demo-chip.is-active {
  background: rgba(141, 123, 255, 0.22);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.demo-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 8, 19, 0.5);
  transition: border-color 160ms;
}

.demo-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(141, 123, 255, 0.15);
}

.demo-parrot-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  animation: parrot-bob 3s ease-in-out infinite;
}

.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  min-width: 0;
}

.demo-input::placeholder {
  color: rgba(247, 244, 255, 0.38);
}

.demo-submit {
  flex-shrink: 0;
}

/* Response area */
.demo-response {
  border-radius: 22px;
  overflow: hidden;
}

.demo-thinking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 22px;
  background: rgba(141, 123, 255, 0.08);
  border-radius: 18px;
  border: 1px solid rgba(141, 123, 255, 0.2);
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-thinking__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-bounce 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

.demo-thinking__dot:nth-child(2) { animation-delay: 0.2s; }
.demo-thinking__dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.demo-result {
  padding: 24px;
  background: rgba(7, 8, 19, 0.5);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: grid;
  gap: 20px;
}

.demo-result__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.demo-result__parrot {
  font-size: 2rem;
  flex-shrink: 0;
  animation: parrot-bob 3s ease-in-out infinite;
}

.demo-result__got-it {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-result__task {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.demo-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.demo-badge--high {
  background: rgba(131, 246, 196, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.demo-badge--medium {
  background: rgba(255, 184, 107, 0.15);
  border: 1px solid var(--accent-warm);
  color: var(--accent-warm);
}

.demo-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translateY(8px);
  animation: step-in 0.35s ease-out forwards;
}

@keyframes step-in {
  to { opacity: 1; transform: translateY(0); }
}

.demo-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(141, 123, 255, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.demo-step__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.demo-step__text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.demo-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.demo-savings {
  color: var(--success);
  font-weight: 700;
  font-size: 0.92rem;
}

/* ── End Interactive Demo ───────────────────────────────────── */

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .nav {
    align-items: stretch;
    border-radius: 28px;
  }

  .nav,
  .hero,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .nav,
  .nav__links {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    max-width: 10ch;
  }

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

@media (max-width: 560px) {
  .nav__links {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .nav .btn {
    width: auto;
  }

  .hero-card,
  .split,
  .cta {
    padding: 24px;
    border-radius: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
