/* ===== NOTEXEC Landing Page — Modern SaaS Design ===== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --md-primary: #000000;
  --md-primary-light: #666666;
  --md-primary-dark: #1A1A1A;
  --md-on-primary: #FFFFFF;
  --md-primary-container: #E0E0E0;
  --md-on-primary-container: #0A0A0A;
  --md-surface: #FAFAFE;
  --md-surface-dark: #0F0F1A;
  --md-on-surface: #1D1B20;
  --md-on-surface-variant: #49454F;
  --md-outline: #79747E;
  --md-error: #B3261E;

  --bg-primary: #0A0A14;
  --bg-secondary: #0F0F1A;
  --bg-card: #161625;
  --bg-card-hover: #1E1E30;
  --text-primary: #F5F5F7;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --glow: rgba(255, 255, 255, 0.08);
  --glow-strong: rgba(255, 255, 255, 0.14);

  --font: "Space Grotesk", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--md-outline); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; }
p { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, #555555 0%, #333333 40%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: opacity var(--transition-fast);
}

.nav-logo:hover { opacity: 0.8; }

.logo-icon { flex-shrink: 0; height: 80px; width: auto; filter: brightness(0) invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: var(--md-on-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--md-primary-light);
  background: rgba(0, 0, 0, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn .material-icons-round { font-size: 1.25em; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--glow);
  top: -200px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(68, 138, 255, 0.3);
  bottom: -100px;
  left: -100px;
  animation-delay: -3s;
}

@keyframes glowPulse {
  0% { opacity: 0.35; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.hero-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--md-primary-light);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.8; }
  90% { opacity: 0.2; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1.5); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--md-primary-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  transition: all var(--transition-smooth);
}

.trust-item:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.trust-item .material-icons-round {
  font-size: 1rem;
  color: var(--md-primary-light);
}

.hero-mockup {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: none;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
    margin-right: 480px;
  }
  .hero-actions { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }
  .hero-mockup { display: block; }
}

.mockup-frame {
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mockup-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}

.mockup-dots span:first-child { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:last-child { background: #28CA41; }

.mockup-note {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  animation: noteAppear 0.6s ease-out both;
}

.mockup-note-1 { animation-delay: 0.2s; }
.mockup-note-2 { animation-delay: 0.4s; transform: scale(0.97); opacity: 0.8; }
.mockup-note-3 { animation-delay: 0.6s; transform: scale(0.94); opacity: 0.65; }

@keyframes noteAppear {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mockup-note-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.mockup-line {
  height: 6px;
  background: var(--border-medium);
  border-radius: 3px;
  margin-bottom: 6px;
  width: 100%;
}

.mockup-line.short { width: 65%; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.scroll-icon {
  font-size: 1.25rem;
}

/* ---------- Sections Common ---------- */
section {
  padding: 100px 24px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--md-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
}

/* ===== Animations ===== */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ---------- Features Section ---------- */
.features {
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--md-primary-light), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  color: var(--md-primary-light);
  margin-bottom: 20px;
  transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon .material-icons-round { font-size: 24px; }

.feature-icon-ai { background: rgba(68, 138, 255, 0.12); color: #448AFF; }
.feature-icon-cal { background: rgba(0, 200, 83, 0.12); color: #00C853; }
.feature-icon-offline { background: rgba(255, 145, 0, 0.12); color: #FF9100; }
.feature-icon-lock { background: rgba(255, 82, 82, 0.12); color: #FF5252; }
.feature-icon-export { background: rgba(0, 229, 255, 0.12); color: #00E5FF; }

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--md-primary-light);
  transition: gap var(--transition-fast);
}

.feature-link:hover { gap: 8px; }

.feature-link .material-icons-round { font-size: 1em; }

/* ---------- Demo / Steps Section ---------- */
.demo {
  position: relative;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  flex: 1;
  min-width: 200px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.step-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-smooth);
}

.step-icon-wrap .material-icons-round {
  font-size: 32px;
  color: var(--md-primary-light);
}

.step:hover .step-icon-wrap {
  border-color: var(--md-primary-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
}

@media (max-width: 768px) {
  .step-connector { display: none; }
}

/* ---------- Interactive Product Demo ---------- */
.product-demo {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.product-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.demo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Device mockup */
.demo-device {
  position: relative;
  width: 300px;
  height: 600px;
  background: var(--bg-card);
  border: 2px solid var(--border-medium);
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border-subtle),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 0 0 18px 18px;
  z-index: 5;
  border: 2px solid var(--border-medium);
  border-top: none;
}

.notch-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--border-medium);
  border-radius: 50%;
}

/* Demo scenes */
.demo-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  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);
}

.demo-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scene-appbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
  background: inherit;
}

.scene-appbar.offline-bar {
  color: #FF9100;
}

.scene-label {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--md-primary-light);
  letter-spacing: 0.02em;
}

/* Dictation scene */
.scene-mic-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(239, 83, 80, 0.6);
  animation: micPulse 2s ease-out infinite;
}

.mic-ring-2 { animation-delay: 0.4s; }
.mic-ring-3 { animation-delay: 0.8s; }

@keyframes micPulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mic-icon {
  font-size: 36px;
  color: #EF5350;
  z-index: 2;
  animation: micGlow 1.5s ease-in-out infinite;
}

@keyframes micGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(239, 83, 80, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(239, 83, 80, 0.7)); }
}

.scene-transcript {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  min-height: 48px;
  width: 100%;
  font-style: italic;
  line-height: 1.5;
}

.transcript-cursor {
  color: var(--md-primary-light);
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* AI scene */
.scene-note-preview {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.preview-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-line {
  height: 5px;
  background: var(--border-medium);
  border-radius: 3px;
  width: 100%;
}

.preview-line.short { width: 45%; }
.preview-line.medium { width: 75%; }
.preview-line.long { width: 100%; }

.scene-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(68, 138, 255, 0.1);
  border: 1px solid rgba(68, 138, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #448AFF;
  margin-bottom: 12px;
}

.ai-sparkle {
  font-size: 1rem;
  animation: sparkleRotate 3s linear infinite;
}

@keyframes sparkleRotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.scene-ai-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-chip {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  animation: chipSlideIn 0.5s ease-out both;
}

.summary-chip:nth-child(1) { animation-delay: 0.1s; }
.summary-chip:nth-child(2) { animation-delay: 0.25s; }
.summary-chip:nth-child(3) { animation-delay: 0.4s; }

@keyframes chipSlideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Calendar scene */
.scene-cal-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--md-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: calSlideIn 0.5s ease-out both;
}

.cal-event:nth-child(1) { animation-delay: 0.1s; }
.cal-event:nth-child(2) { animation-delay: 0.25s; }
.cal-event:nth-child(3) { animation-delay: 0.4s; }

@keyframes calSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-primary-light);
  margin-top: 4px;
  flex-shrink: 0;
}

.cal-text strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cal-text span {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

/* Offline scene */
.scene-offline-icon {
  margin: 20px 0 24px;
  opacity: 0.5;
}

.scene-offline-icon .material-icons-round {
  font-size: 56px;
  color: var(--text-tertiary);
}

.scene-offline-notes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF9100;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.offline-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.offline-lines .preview-line {
  height: 3px;
}

.offline-queued {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF9100;
  flex-shrink: 0;
}

/* Demo tabs */
.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 280px;
  max-width: 360px;
}

.demo-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.demo-tab:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.02);
}

.demo-tab.active {
  border-color: var(--md-primary);
  background: rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tab-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--md-primary-light);
  border-radius: 0 2px 2px 0;
  transition: height var(--transition-bounce);
}

.demo-tab.active .tab-indicator {
  height: 60%;
}

.tab-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  color: var(--md-primary-light);
  flex-shrink: 0;
  transition: all var(--transition-smooth);
}

.demo-tab.active .tab-icon {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-icon-ai { background: rgba(68, 138, 255, 0.1); color: #448AFF; }
.tab-icon-cal { background: rgba(0, 200, 83, 0.1); color: #00C853; }
.tab-icon-offline { background: rgba(255, 145, 0, 0.1); color: #FF9100; }

.tab-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tab-content small {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .demo-stage {
    flex-direction: column;
    gap: 32px;
  }
  .demo-device {
    width: 260px;
    height: 520px;
    border-radius: 28px;
  }
  .demo-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 8px;
  }
  .demo-tab {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 14px;
  }
  .tab-content small { display: none; }
}

/* ---------- Pricing ---------- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.toggle-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  cursor: pointer;
  user-select: none;
}

.toggle-label.active { color: var(--text-primary); font-weight: 600; }

.toggle-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ADE80;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  margin-left: 4px;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border-medium);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  position: relative;
  transition: background var(--transition-smooth);
}

.toggle-switch.annual {
  background: var(--md-primary);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition-bounce);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.annual .toggle-knob { transform: translateX(22px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card-popular {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 1px var(--md-primary), 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: scale(1.03);
}

.pricing-card-popular:hover { transform: scale(1.03) translateY(-4px); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.pricing-header p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.pricing-price {
  text-align: center;
  margin-bottom: 28px;
}

.price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  transition: all var(--transition-fast);
}

.price-period {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .material-icons-round {
  font-size: 1.125rem;
  color: #4ADE80;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg-secondary);
  position: relative;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--md-primary-light); }

.faq-question .material-icons-round {
  transition: transform var(--transition-smooth);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .material-icons-round {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.open {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- CTA Section ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: 120px 24px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-strong) 0%, transparent 70%);
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 12px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.03);
}

.footer-social a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* ===== Legal Pages (Terms & Privacy) ===== */
.legal-page {
  min-height: 100vh;
  padding: 100px 24px 80px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.legal-container h1 {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-container .last-updated {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.legal-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-container p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-container ul, .legal-container ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-container li {
  margin-bottom: 8px;
}

.legal-container a {
  color: var(--md-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-container a:hover { color: var(--md-primary); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.legal-back:hover { color: var(--text-primary); }

.legal-back .material-icons-round { font-size: 1.125rem; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 100px 24px 24px;
    gap: 4px;
  }
  .nav-links.open .nav-link {
    font-size: 1.125rem;
    padding: 12px 16px;
  }
  .nav-links.open .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 100px 16px 60px; min-height: auto; }
  .hero-trust { gap: 12px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-popular { transform: none; }
  .pricing-card-popular:hover { transform: translateY(-4px); }

  .legal-container { padding: 24px; }
}

@media (max-width: 480px) {
  section { padding: 64px 16px; }
  .features-grid { grid-template-columns: 1fr; }
}
