﻿/* FriskyMotion - Modern Site Design */

/* ===== CSS Variables ===== */
:root {
  /* Color Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-surface: #1a1f2e;
  --bg-overlay: rgba(10, 14, 26, 0.95);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-hover: #2563eb;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Typography */
  --font-display: 'Coolvetica', system-ui, -apple-system, sans-serif;
  --font-body: 'Titillium Web', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Roboto Mono', monospace;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 1400px 800px at 50% -100px, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 800px 600px at 100% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

/* ===== Layout Components ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== Hero Section ===== */
.hero {
  padding: calc(var(--space-3xl) + 40px) 0 var(--space-3xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.headline {
  font-size: clamp(3rem, 7vw, 6rem);
  margin-bottom: var(--space-lg);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  width: fit-content;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.headline .plain {
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  background: none;
}

.swipe {
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
  transition: width var(--transition-base);
  align-items: end;
  justify-items: end;
  height: 1.25em;
  color: white !important;
}

.swipe .stack {
  display: block;
  transform: translateY(0);
  transition: transform var(--transition-slow);
  text-align: right;
  will-change: transform;
}

.swipe .stack span {
  display: block;
  line-height: 1.25em;
  text-align: right;
  opacity: 0;
  transition: opacity var(--transition-base);
  font-weight: 800;
  color: white !important;
  -webkit-text-fill-color: white !important;
}

.swipe .stack span.active {
  opacity: 1;
}

.swipe .stack span.blank {
  opacity: 0 !important;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.motion {
  display: inline-block;
  line-height: 1.25em;
  will-change: transform;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-base);
  font-weight: 800;
}

.hero-lead {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  width: 100%;
  max-width: 540px; /* Wider to accommodate the text better */
}

.hero-lead p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.9;
}

.sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
  opacity: 0.9;
  position: relative;
}

/* ===== Hero Media ===== */
.hero-media {
  position: relative;
}

.hero-figure {
  width: 100%;
  max-width: 380px;
  position: relative;
  margin-left: auto;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  background: var(--bg-surface);
  transition: transform var(--transition-base);
}

.hero-img:hover {
  transform: scale(1.02);
}

/* Decorative elements */
.hero-figure::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: var(--accent-gradient);
  opacity: 0.15;
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Buttons ===== */
.fixed-nav{
  position:fixed;
  top:16px;
  right:16px;
  z-index:5000;
  background: var(--accent-gradient);
  color:#fff;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.85rem;
  box-shadow: var(--shadow-md);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.fixed-nav:hover{transform:translateY(-1px);box-shadow:var(--shadow-lg)}
.fixed-nav-left{left:16px;right:auto}
.fixed-nav-right{right:16px}
.fixed-icon{width:44px;height:44px;padding:0;justify-content:center;border-radius:9999px}
.fixed-icon .icon{display:inline-flex;line-height:0}
.btns {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  width: fit-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.925rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn.primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.3);
  animation: subtleShake 0.3s ease-out;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

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

.btn.is-disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== Section Styles ===== */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.eyebrow {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  position: relative;
  padding: 0 var(--space-lg);
  z-index: 1;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  z-index: -1;
}

.eyebrow::before {
  left: -25px;
}

.eyebrow::after {
  right: -25px;
}

/* ===== Features Section ===== */
.features {
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97), border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform-origin: center;
  backface-visibility: hidden;
  perspective: 1000px;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  animation: featureMotionShake 500ms cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards !important;
}

.feature:not(:hover) {
  animation: none !important;
}

.feature:hover::before {
  transform: scaleX(1);
}

.feature h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== Compare Section ===== */
.compare {
  padding: var(--space-3xl) 0 var(--space-3xl);
  background: 
    radial-gradient(ellipse 1600px 800px at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
  position: relative;
}

.compare::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.compare .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.compare-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cmp-wrap {
  position: relative;
  max-width: 1200px;
  margin: var(--space-3xl) auto;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--accent-gradient) border-box;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(59, 130, 246, 0.1),
    inset 0 0 80px rgba(59, 130, 246, 0.05);
  transition: all var(--transition-base);
  z-index: 1;
  transform: scale(1);
}

.cmp-wrap:hover {
  transform: scale(1.02);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 150px rgba(59, 130, 246, 0.2),
    inset 0 0 100px rgba(59, 130, 246, 0.08);
}

.cmp-media {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cmp-bottom {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

.cmp-top {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
  will-change: clip-path;
}

.cmp-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  cursor: ew-resize;
  will-change: left;
  touch-action: none;
  transition: width var(--transition-fast);
}

.cmp-handle:hover {
  width: 6px;
}

.cmp-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-md);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cmp-handle::before {
  content: '⟵ ⟶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  z-index: 1;
  font-size: 12px;
}

/* Add attention-grabbing pulse on first reveal */
body.reveal-compare .cmp-handle {
  animation: subtleShake 0.5s ease-out 1s, handheldDrift 4s ease-in-out 1.5s infinite;
}

/* Video comparison labels - removed */

/* ===== How It Works Section ===== */
.how {
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.02) 50%, transparent 100%);
}

.how-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  counter-reset: step;
}

.how-step {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  background: var(--bg-surface);
  position: relative;
  counter-increment: step;
  transition: all var(--transition-base);
}

.how-step::before {
  content: counter(step);
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
}

.how-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.how-step h3 {
  margin-bottom: var(--space-sm);
  padding-right: var(--space-2xl);
}

.how-step p {
  margin: 0;
  color: var(--text-secondary);
}

/* ===== Compatibility Section ===== */
.compat {
  padding: var(--space-3xl) 0;
}

.compat-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  background: var(--bg-surface);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.badge:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-secondary);
}

/* ===== Animations ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.25;
  }
}

@keyframes motionShake {
  0% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-1.2px, -0.6px) rotate(-3deg); }
  40% { transform: translate(1.2px, 0.6px) rotate(3deg); }
  60% { transform: translate(-0.9px, -0.45px) rotate(-2deg); }
  80% { transform: translate(0.9px, 0.45px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.motion.shake {
  animation: motionShake var(--shakeDur, 30ms) cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes settleBounce {
  0% { 
    transform: translateY(0) scale(1);
    animation-timing-function: linear;
  }
  22% {
    transform: translateY(-9px) scale(1.02);
    animation-timing-function: linear;
  }
  25% {
    transform: translateY(-10px) scale(1.02);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
  100% {
    transform: translateY(0) scale(1);
    animation-timing-function: linear;
  }
}

.headline.bounce {
  animation: settleBounce var(--bounceDur, 350ms) forwards;
}

/* Camera shake-inspired animations */
@keyframes cameraWobbleIn {
  0% {
    opacity: 0;
    transform: translateY(30px) translateX(0) scale(0.98) rotate(0deg);
    filter: blur(6px);
  }
  40% {
    opacity: 1;
    transform: translateY(-6px) translateX(-3px) scale(1.01) rotate(-0.5deg);
    filter: blur(0);
  }
  60% {
    transform: translateY(3px) translateX(2px) scale(1) rotate(0.3deg);
  }
  80% {
    transform: translateY(-2px) translateX(-1px) scale(1) rotate(-0.15deg);
  }
  100% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes subtleShake {
  0%, 100% {
    transform: translate(0, 0) rotate(0);
  }
  10% {
    transform: translate(-0.5px, -0.25px) rotate(-0.5deg);
  }
  20% {
    transform: translate(0.5px, 0.25px) rotate(0.5deg);
  }
  30% {
    transform: translate(-0.3px, -0.15px) rotate(-0.3deg);
  }
  40% {
    transform: translate(0.3px, 0.15px) rotate(0.3deg);
  }
  50% {
    transform: translate(-0.2px, -0.1px) rotate(-0.2deg);
  }
  60% {
    transform: translate(0.2px, 0.1px) rotate(0.2deg);
  }
  70% {
    transform: translate(-0.1px, 0) rotate(-0.1deg);
  }
  80% {
    transform: translate(0.1px, 0) rotate(0.1deg);
  }
  90% {
    transform: translate(0, 0) rotate(0);
  }
}

@keyframes handheldDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0);
  }
  33% {
    transform: translateY(-1px) translateX(0.5px) rotate(0.1deg);
  }
  66% {
    transform: translateY(0.5px) translateX(-0.5px) rotate(-0.1deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0);
  }
}

@keyframes cardShake {
  0% {
    transform: translateY(-6px) scale(1.06) rotate(0deg);
  }
  12.5% {
    transform: translateY(-8px) translateX(-3px) scale(1.065) rotate(-0.8deg);
  }
  25% {
    transform: translateY(-7px) translateX(3px) scale(1.07) rotate(0.8deg);
  }
  37.5% {
    transform: translateY(-8px) translateX(-2px) scale(1.065) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-7px) translateX(2px) scale(1.06) rotate(0.5deg);
  }
  62.5% {
    transform: translateY(-6px) translateX(-1px) scale(1.055) rotate(-0.35deg);
  }
  75% {
    transform: translateY(-7px) translateX(1px) scale(1.06) rotate(0.25deg);
  }
  87.5% {
    transform: translateY(-6px) translateX(-0.5px) scale(1.055) rotate(-0.15deg);
  }
  100% {
    transform: translateY(-6px) scale(1.06) rotate(0deg);
  }
}

@keyframes featureWobble {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  20% {
    transform: translateY(-6px) translateX(-4px) scale(1.05) rotate(-0.9deg);
  }
  40% {
    transform: translateY(-9px) translateX(4px) scale(1.085) rotate(0.8deg);
  }
  60% {
    transform: translateY(-8px) translateX(-3px) scale(1.075) rotate(-0.5deg);
  }
  80% {
    transform: translateY(-8px) translateX(2px) scale(1.08) rotate(0.25deg);
  }
  100% {
    transform: translateY(-8px) scale(1.08) rotate(0deg);
  }
}

@keyframes featureHoverShake {
  0%   { transform: translateY(-2px)  translateX(0)    scale(1.02)  rotate(0deg); }
  12%  { transform: translateY(-8px)  translateX(-6px) scale(1.08)  rotate(-1.2deg); }
  25%  { transform: translateY(-10px) translateX(6px)  scale(1.1)   rotate(1.1deg); }
  37%  { transform: translateY(-8px)  translateX(-4px) scale(1.08)  rotate(-0.8deg); }
  50%  { transform: translateY(-9px)  translateX(4px)  scale(1.09)  rotate(0.7deg); }
  62%  { transform: translateY(-7px)  translateX(-3px) scale(1.07)  rotate(-0.5deg); }
  75%  { transform: translateY(-8px)  translateX(3px)  scale(1.08)  rotate(0.3deg); }
  87%  { transform: translateY(-6px)  translateX(-2px) scale(1.06)  rotate(-0.15deg);} 
  100% { transform: translateY(-2px)  translateX(0)    scale(1.02)  rotate(0deg); }
}

@keyframes featureMotionShake {
  0% { 
    transform: translateY(-4px) scale(1.04) translate(0, 0) rotate(0); 
  }
  20% { 
    transform: translateY(-4px) scale(1.04) translate(-0.8px, -0.4px) rotate(-1.5deg); 
  }
  40% { 
    transform: translateY(-4px) scale(1.04) translate(0.8px, 0.4px) rotate(1.5deg); 
  }
  60% { 
    transform: translateY(-4px) scale(1.04) translate(-0.6px, -0.3px) rotate(-1deg); 
  }
  80% { 
    transform: translateY(-4px) scale(1.04) translate(0.6px, 0.3px) rotate(1deg); 
  }
  100% { 
    transform: translateY(-4px) scale(1.04) translate(0, 0) rotate(0); 
  }
}

/* ===== Scroll-triggered Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px) translateX(15px) rotate(2deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: blur(3px);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0) rotate(0) scale(1);
  filter: blur(0);
}

.scroll-animate-delay-1 {
  transition-delay: 0.1s;
}

.scroll-animate-delay-2 {
  transition-delay: 0.2s;
}

.scroll-animate-delay-3 {
  transition-delay: 0.3s;
}

.scroll-animate-delay-4 {
  transition-delay: 0.4s;
}

.scroll-animate-delay-5 {
  transition-delay: 0.5s;
}

.scroll-animate-delay-6 {
  transition-delay: 0.6s;
}

/* Smooth organic shake effect using CSS transforms */
.scroll-animate-shake {
  animation: organicShake 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes organicShake {
  0% { 
    transform: translateY(0) translateX(0) rotate(0) scale(1);
  }
  15% { 
    transform: translateY(-2px) translateX(1px) rotate(0.5deg) scale(1.01);
  }
  30% { 
    transform: translateY(1px) translateX(-1px) rotate(-0.3deg) scale(0.99);
  }
  45% { 
    transform: translateY(-1px) translateX(0.5px) rotate(0.2deg) scale(1.005);
  }
  60% { 
    transform: translateY(0.5px) translateX(-0.5px) rotate(-0.1deg) scale(0.998);
  }
  75% { 
    transform: translateY(-0.3px) translateX(0.2px) rotate(0.05deg) scale(1.001);
  }
  90% { 
    transform: translateY(0.1px) translateX(-0.1px) rotate(-0.02deg) scale(0.999);
  }
  100% { 
    transform: translateY(0) translateX(0) rotate(0) scale(1);
  }
}

/* ===== Reveal Animations ===== */
.sub {
  opacity: 0;
  pointer-events: none;
}

.btns {
  opacity: 0;
  pointer-events: none;
}

.hero-media {
  opacity: 0;
  pointer-events: none;
}

.features, .how, .compat, .pricing {
  opacity: 0;
  pointer-events: none;
}

.compare {
  opacity: 0;
  pointer-events: none;
}

/* Special dramatic entrance for subtitle text */
@keyframes subtitleWobbleIn {
  0% {
    opacity: 0;
    transform: translateY(40px) translateX(15px) rotate(2deg) scale(0.9);
    filter: blur(10px);
  }
  20% {
    opacity: 0.3;
    transform: translateY(25px) translateX(-10px) rotate(-1.5deg) scale(0.93);
    filter: blur(6px);
  }
  40% {
    opacity: 0.6;
    transform: translateY(15px) translateX(8px) rotate(1.2deg) scale(0.96);
    filter: blur(4px);
  }
  60% {
    opacity: 0.8;
    transform: translateY(8px) translateX(-5px) rotate(-0.8deg) scale(0.98);
    filter: blur(2px);
  }
  75% {
    opacity: 0.9;
    transform: translateY(4px) translateX(3px) rotate(0.5deg) scale(0.99);
    filter: blur(1px);
  }
  85% {
    transform: translateY(-2px) translateX(-1px) rotate(-0.3deg) scale(1.01);
  }
  92% {
    transform: translateY(1px) translateX(0.5px) rotate(0.1deg) scale(1);
  }
  100% {
    opacity: 0.9;
    transform: translateY(0) translateX(0) rotate(0) scale(1);
    filter: blur(0);
  }
}

/* Apply camera wobble animation to reveals */
body.reveal-sub .sub {
  opacity: 0.9;
  pointer-events: auto;
}

/* Individual word animations for subtitle */
.sub-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotate(2deg);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-word:not(:last-child) {
  margin-right: 0.28em;
}

/* Special styling for emphasis words - last 4 words */
.sub-word:nth-last-child(-n+4) {
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

/* Extra emphasis on final word "Done" */
.sub-word:last-child {
  color: var(--accent-primary);
  font-weight: 700;
}

body.reveal-cta .btns {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.reveal-media .hero-media {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.reveal-features .features {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered animation for feature cards */
body.reveal-features .feature:nth-child(1) {
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
body.reveal-features .feature:nth-child(2) {
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
body.reveal-features .feature:nth-child(3) {
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
body.reveal-features .feature:nth-child(4) {
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
body.reveal-features .feature:nth-child(5) {
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Make compare video more prominent with special animation */
body.reveal-compare .compare {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.reveal-compare .cmp-wrap {
  animation: subtleShake 0.3s ease-out 0.8s;
}

body.reveal-how .how {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered animation for how-to steps */
body.reveal-how .how-step:nth-child(1) {
  animation: cameraWobbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
body.reveal-how .how-step:nth-child(2) {
  animation: cameraWobbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
body.reveal-how .how-step:nth-child(3) {
  animation: cameraWobbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

body.reveal-compat .compat {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.reveal-pricing .pricing {
  opacity: 1;
  pointer-events: auto;
  animation: cameraWobbleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Add continuous subtle drift to hero image */
.hero-img {
  animation: handheldDrift 6s ease-in-out infinite;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
    max-width: 100%;
  }
  
  .headline {
    justify-content: center;
  }
  
  .hero-lead {
    text-align: center;
  }
  
  .hero-figure {
    margin: 0 auto;
  }
  
  .sub {
    text-align: center;
  }
  
  .btns {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 3rem;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .headline {
    font-size: clamp(2.75rem, 10vw, 4.5rem);
  }
  
  .hero-lead {
    max-width: 100%;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .how-list {
    grid-template-columns: 1fr;
  }
  
  .cmp-wrap {
    margin: var(--space-lg) 0;
  }
  
  .pricing-table {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container,
  .wrap {
    padding: 0 var(--space-md);
  }
  
  .btn {
    width: 100%;
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--space-2xl) + 60px) 0 var(--space-2xl);
  }
}

/* ===== Pricing ===== */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: var(--space-xl) auto 0;
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(59, 130, 246, 0.05) 100%);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: var(--space-xs) var(--space-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.price {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.price-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.pricing-features {
  margin-bottom: var(--space-xl);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item.disabled {
  opacity: 0.5;
}

.checkmark {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.cross {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-item.disabled span {
  color: var(--text-muted);
}

/* ===== Compatibility ===== */
.compat-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

.badge {
  background: var(--accent-gradient);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

/* ===== Footer ===== */
footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-3xl);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition-base);
}

.footer-link:hover .footer-logo {
  opacity: 1;
}

/* ===== Guide Page Styles ===== */
.guide-toc {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-sm) var(--space-md);
  background: rgba(17,17,17,0.6);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  backdrop-filter: blur(6px);
  z-index: 5;
}

.guide-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.guide-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background var(--transition-base);
}

.guide-toc a:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
}

@media (max-width: 768px) {
  .guide-toc {
    display: none;
  }
}
/* removed left sidebar styles per guide simplification */

.guide-main {
  flex: 1;
  padding: var(--space-xl) 0;
  max-width: 100%;
}

.guide-header {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.guide-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.guide-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin: 0;
}

.guide-section {
  margin-bottom: var(--space-3xl);
}

.guide-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.quick-start-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.setting-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.setting-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.setting-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.02em;
}

.setting-type {
  background: var(--accent);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.setting-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.setting-tip {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}

.setting-tip strong {
  color: var(--accent);
}

.setting-values {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 0.875rem;
}

.setting-values strong {
  color: var(--accent);
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.tip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.tip-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.tip-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.setting-type {
  background: var(--accent);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.setting-tip {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  font-style: italic;
}

.setting-values {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Guide page responsive adjustments */
@media (max-width: 1024px) {
  .guide-sidebar {
    width: 240px;
  }
  
  .guide-main {
    margin-left: 240px;
    max-width: calc(100vw - 240px);
  }
}

@media (max-width: 768px) {
  .guide-layout {
    flex-direction: column;
  }
  
  .guide-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: var(--space-lg);
  }
  
  .guide-main {
    margin-left: 0;
    max-width: 100%;
    padding: var(--space-lg);
  }
  
  .guide-header h1 {
    font-size: 2rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .tips-list {
    grid-template-columns: 1fr;
  }
}
