/* ===================================
   Murmur Landing Page — v2
   Matches app aesthetic: glassmorphism,
   soft purples, MacBook mockup
   =================================== */

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

:root {
  /* App palette */
  --purple-1: #B88CF3;
  --purple-2: #8D8DF2;
  --blue-1: #73B2F2;
  --purple-deep: #7C3AED;
  --pro-start: #bf5af2;
  --pro-end: #5e5ce6;

  /* Surfaces */
  --bg: #0a0a12;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-border: rgba(255,255,255,0.08);

  /* Text */
  --text: #f5f5f7;
  --text-secondary: rgba(245,245,247,0.55);
  --text-muted: rgba(245,245,247,0.3);

  /* Layout */
  --max-width: 1120px;
  --section-pad: 140px;
  --radius: 16px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================
   NAVIGATION
   ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
}

.nav-logo img { border-radius: 6px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

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

.btn-nav {
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text) !important;
  font-weight: 600 !important;
  transition: background 0.2s;
}

.btn-nav:hover { background: rgba(255,255,255,0.14); }

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-1), var(--blue-1));
  color: #0a0a12;
  box-shadow: 0 0 24px rgba(184, 140, 243, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(184, 140, 243, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 26px;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 140px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,140,243,0.25), transparent 70%);
  top: -10%; left: 15%;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(115,178,242,0.2), transparent 70%);
  top: 20%; right: 10%;
  animation: orbFloat 10s ease-in-out 2s infinite alternate-reverse;
}

.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(141,141,242,0.15), transparent 70%);
  bottom: 10%; left: 40%;
  animation: orbFloat 14s ease-in-out 4s infinite alternate;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, -40px); }
}

/* Central pulsing purple glow — large ambient background effect */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 35%;
  left: 50%;
  width: 1000px;
  height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.35) 0%, rgba(124,58,237,0.12) 30%, rgba(124,58,237,0.03) 55%, transparent 70%);
  animation: ambientGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ambientGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.95); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-1);
  box-shadow: 0 0 8px var(--purple-1);
}

.hero-title {
  position: relative;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 80px;
}

/* ========================
   MACBOOK MOCKUP
   ======================== */
.hero-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.macbook { position: relative; }

.macbook-screen {
  background: #1c1c1e;
  border-radius: 12px 12px 0 0;
  border: 2px solid rgba(255,255,255,0.1);
  border-bottom: none;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.macbook-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 12px;
  background: #0a0a12;
  border-radius: 0 0 6px 6px;
  z-index: 5;
}

.screen-content { width: 100%; height: 100%; }

.desktop {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a3e 0%, #0f2847 50%, #1a1a3e 100%);
  position: relative;
  overflow: hidden;
}

.desktop-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  height: 18px;
  position: relative;
  z-index: 6;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menubar-apple { font-size: 10px; }
.menubar-items { letter-spacing: 0.02em; white-space: nowrap; }
.menubar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
}

.menubar-murmur-icon {
  border-radius: 2px;
  opacity: 0.85;
  filter: invert(1);
}

.menubar-wifi { display: flex; align-items: center; }

.desktop-window {
  position: absolute;
  top: 40px; left: 8%;
  width: 55%;
  background: rgba(30, 30, 35, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(45,45,50,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.window-dot { width: 8px; height: 8px; border-radius: 50%; }
.window-dot-red { background: #ff5f57; }
.window-dot-yellow { background: #ffbd2e; }
.window-dot-green { background: #28c840; }

.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 8px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
}

.window-body { padding: 14px 16px 20px; }

.notes-line {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}

.notes-title-line {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 8px;
}

.notes-line-typing { color: rgba(255,255,255,0.85); }

.token-filler {
  color: rgba(255,140,140,0.7);
  text-decoration: none;
}
.token-keep {
  color: rgba(255,255,255,0.85);
}
.token-space, .token-filler-space {
  /* normal spaces */
}

.stream-cursor {
  color: var(--purple-1);
  animation: blink 1s step-end infinite;
}

/* Floating Pill */
.floating-pill {
  position: absolute;
  bottom: 16%; right: 10%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 10;
  animation: pillFloat 3s ease-in-out infinite;
}

@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.pill-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.pill-bar {
  width: 2.5px;
  border-radius: 2px;
  background: var(--purple-1);
}

.pill-bar-1 { height: 6px; animation: barPulse 0.8s ease-in-out 0s infinite; }
.pill-bar-2 { height: 10px; animation: barPulse 0.8s ease-in-out 0.15s infinite; }
.pill-bar-3 { height: 7px; animation: barPulse 0.8s ease-in-out 0.3s infinite; }

@keyframes barPulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.pill-label {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill-transcript {
  display: inline;
}

/* iMessage Window */
.imessage-window {
  position: absolute;
  top: 50px; right: 6%;
  width: 58%;
  z-index: 5;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.imessage-window.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.imessage-titlebar {
  background: rgba(50,50,55,0.95);
}

.imessage-layout {
  display: flex;
  min-height: 160px;
}

/* Sidebar */
.imessage-sidebar {
  width: 120px;
  background: rgba(28,28,32,0.97);
  border-right: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.imessage-search {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.05);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
}

.imessage-convo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: default;
}

.imessage-convo-active {
  background: rgba(0,122,255,0.25);
  border-radius: 6px;
  margin: 0 4px;
}

.imessage-convo-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.imessage-convo-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  min-width: 0;
}

.imessage-convo-name {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.imessage-convo-preview {
  font-size: 7px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat Main Area */
.imessage-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(30,30,35,0.97);
  min-width: 0;
}

.imessage-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  justify-content: center;
}

.imessage-header-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: white;
}

.imessage-header-name {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.imessage-chat {
  flex: 1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.imessage-bubble {
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 8px;
  line-height: 1.5;
  max-width: 80%;
}

.imessage-them {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.imessage-me {
  background: #007AFF;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.imessage-sent {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.imessage-sent.visible {
  opacity: 1;
  transform: translateY(0);
}

.imessage-delivered {
  font-size: 6.5px;
  color: rgba(255,255,255,0.35);
  text-align: right;
  padding-right: 4px;
  margin-top: 1px;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
  letter-spacing: 0.01em;
}

.imessage-delivered.visible {
  opacity: 1;
}

.imessage-cursor {
  color: rgba(255,255,255,0.5);
  font-size: 8px;
}

/* Compose bar */
.imessage-compose {
  padding: 5px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.imessage-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  position: relative;
  min-height: 20px;
}

.imessage-input-text {
  font-size: 8px;
  color: rgba(255,255,255,0.85);
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.imessage-plus-icon {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 2px;
}

.imessage-input-placeholder {
  font-size: 8px;
  color: rgba(255,255,255,0.2);
  position: absolute;
  left: 22px;
}

.imessage-send-btn {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.imessage-send-btn.visible {
  opacity: 1;
  transform: scale(1);
}

.imessage-send-btn.sending {
  transform: scale(0.9);
  opacity: 0.7;
}

.macbook-base { position: relative; }

.macbook-base-top {
  height: 8px;
  background: linear-gradient(180deg, #3a3a40, #2a2a30);
  border-radius: 0 0 2px 2px;
  margin: 0 -2px;
}

.macbook-base-bottom {
  height: 4px;
  background: #222228;
  border-radius: 0 0 8px 8px;
  margin: 0 60px;
}

/* ========================
   SECTIONS
   ======================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-dark {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-1);
  text-align: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================
   HOW IT WORKS
   ======================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  transition: border-color 0.3s, background 0.3s;
}

.step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-1);
  background: rgba(184,140,243,0.1);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Fn Key */
.fn-key {
  position: relative;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  animation: keyPress 2.5s ease-in-out infinite;
}

.fn-glow {
  position: absolute;
  inset: -6px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(184,140,243,0.3), transparent 70%);
  opacity: 0;
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes keyPress {
  0%, 100% { transform: translateY(0); box-shadow: 0 2px 0 rgba(255,255,255,0.1); }
  30%, 70% { transform: translateY(2px); box-shadow: none; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}

/* Mini Pill (How It Works step 2) */
.step-icon-pill {
  background: rgba(255,255,255,0.04);
  width: 72px; height: 72px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
}

.mini-pill-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.mini-pill-bar {
  width: 2px;
  border-radius: 2px;
  background: var(--purple-1);
}

.mini-bar-1 { height: 5px; animation: barPulse 0.8s ease-in-out 0s infinite; }
.mini-bar-2 { height: 9px; animation: barPulse 0.8s ease-in-out 0.15s infinite; }
.mini-bar-3 { height: 6px; animation: barPulse 0.8s ease-in-out 0.3s infinite; }

.mini-pill-text {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
}

.done-check { display: flex; align-items: center; justify-content: center; }

/* ========================
   FEATURES GRID
   ======================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  transition: border-color 0.3s, background 0.3s;
  overflow: hidden;
}

.feature-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.feature-card-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-card-inner {}

.feature-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.feature-demo-ba {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ba-card {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.ba-before {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.06);
}

.ba-after {
  background: rgba(184,140,243,0.08);
  color: var(--text);
  border: 1px solid rgba(184,140,243,0.15);
}

.ba-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  font-family: -apple-system, sans-serif;
}

.ba-tag-after {
  background: rgba(184,140,243,0.15);
  color: var(--purple-1);
}

.ba-arrow { flex-shrink: 0; }

.feature-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.app-pill {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

.app-pill-any {
  background: rgba(184,140,243,0.08);
  border-color: rgba(184,140,243,0.15);
  color: var(--purple-1);
}

.feature-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  height: 80px;
}

.shield-ring {
  position: absolute;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1.5px solid rgba(184,140,243,0.2);
  animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.4); opacity: 0; }
}

.feature-stream-demo { display: flex; align-items: center; }

.stream-window {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: var(--text);
  min-height: 60px;
}

.stream-demo-cursor {
  color: var(--purple-1);
  animation: blink 0.8s step-end infinite;
}

/* ========================
   PRICING
   ======================== */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  overflow: hidden;
}

.pricing-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-list { list-style: none; margin-bottom: 32px; }

.pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-secondary);
}

.check-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.check-pro::after {
  background: var(--purple-1);
  box-shadow: 0 0 6px rgba(184,140,243,0.4);
}

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

.pricing-card-pro { border-color: rgba(184,140,243,0.2); }

.pro-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,140,243,0.12), transparent 70%);
  pointer-events: none;
}

/* ========================
   SPEED STATS
   ======================== */
.section-stats {
  padding: 48px 0;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple-1), var(--blue-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.footer-brand img { border-radius: 4px; }

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

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

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

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

/* ========================
   ANIMATIONS
   ======================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.5s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================
   REDUCED MOTION
   ======================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal, .fade-in { opacity: 1; transform: none; }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  :root { --section-pad: 100px; }

  .nav-links a:not(.btn-nav) { display: none; }

  .hero { padding: 120px 20px 40px; }
  .hero-title { font-size: 42px; }
  .hero-title br, .hero-subtitle br { display: none; }
  .hero-subtitle { font-size: 16px; }

  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 40px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .hero-mockup { max-width: 100%; }

  /* Taller MacBook screen on mobile so content isn't cramped */
  .macbook-screen { aspect-ratio: 4 / 3; }

  /* Smaller, repositioned windows on mobile */
  .desktop-window { top: 24px; left: 4%; width: 55%; }
  .imessage-window { top: 28px; left: 10%; right: auto; width: 85%; min-height: 140px; }
  .imessage-layout { min-height: 130px; }
  .imessage-sidebar { width: 90px; }
  .imessage-convo-avatar { width: 18px; height: 18px; font-size: 7px; }
  .imessage-convo-name { font-size: 7px; }
  .imessage-convo-preview { font-size: 6px; }

  /* Move pill below windows on mobile */
  .floating-pill { bottom: 8%; right: 5%; }

  .section-title { font-size: 30px; margin-bottom: 48px; }

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

  .features-grid { grid-template-columns: 1fr; }
  .feature-card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-demo-ba { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); }

  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; }

  .stats-row { display: flex; flex-direction: column; gap: 32px; }
  .stat-divider { width: 48px; height: 1px; }
  .stat-number { font-size: 40px; }

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