/* ==========================================================================
   Auto Timelapse Design System — Material 3 Dark + Electric Lime Accents
   Clean, Modern, Creator-Friendly UI
   ========================================================================== */

:root {
  /* Core Tonal Surfaces */
  /* --bg-deep matches the background of the demo video so it sits on the page without a frame */
  --bg-deep: #131313;
  --surface-lowest: #0E0E0E;
  --surface-low: #171717;
  --surface: #1B1B1B;
  --surface-high: #232323;
  --surface-highest: #2C2C2C;
  --surface-overlay: rgba(19, 19, 19, 0.88);

  /* Brand Colors */
  --primary: #71B800;
  --primary-dark: #538800;
  --primary-light: #9EE824;
  --accent-lime: #E6FE00;
  --on-lime: #112200;
  
  /* Glows */
  --glow-lime: 0 0 0 transparent;
  --glow-lime-sm: 0 0 0 transparent;
  --glow-primary: 0 0 0 transparent;
  --glow-card: 0 0 0 transparent;

  /* Simulator & HUD States */
  --status-idle: #8A9382;
  --status-idle-bg: rgba(138, 147, 130, 0.15);
  --status-motion: #FFB300;
  --status-motion-bg: rgba(255, 179, 0, 0.15);
  --status-stabilizing: #27C93F;
  --status-stabilizing-bg: rgba(39, 201, 63, 0.18);
  --status-triggered: #E6FE00;
  --status-triggered-bg: rgba(230, 254, 0, 0.22);
  --status-cooldown: #00E5FF;
  --status-cooldown-bg: rgba(0, 229, 255, 0.15);

  /* Typography & Borders */
  --text-primary: #F2F2F2;
  --text-secondary: #A3A3A3;
  --text-muted: #737373;
  --border: #262626;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #71B800;

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img, video {
  max-width: 100%;
  display: block;
}

/* Ambient Glows */
.ambient-glow-top,
.ambient-glow-mesh {
  display: none !important;
}

.ambient-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  max-width: 95vw;
  height: 500px;
  background: radial-gradient(circle, rgba(113, 184, 0, 0.15) 0%, rgba(230, 254, 0, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.glow-lime {
  background: radial-gradient(circle, var(--accent-lime) 0%, transparent 70%);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(19, 19, 19, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(19, 19, 19, 0.92);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.logo-icon-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.logo-dot {
  display: none;
  width: 7px;
  height: 7px;
  background-color: var(--accent-lime);
  border-radius: 50%;
  margin-left: 3px;
  box-shadow: 0 0 8px var(--accent-lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-lime);
}

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

.btn-nav-ghost {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-nav-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-secondary);
  color: #FFFFFF;
}

.btn-nav-primary {
  background: var(--accent-lime);
  color: var(--on-lime);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--accent-lime);
}

.btn-nav-primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000000;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-toggle.is-active {
  background: rgba(230, 254, 0, 0.1);
  border-color: var(--accent-lime);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(19, 19, 19, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 22px 20px 30px;
  flex-direction: column;
  gap: 18px;
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
  animation: drawerSlideDown 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawerSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-lime);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Buttons & CTA */
.btn-main {
  background: var(--accent-lime);
  color: #0F2000;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid var(--accent-lime);
}

.btn-main:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #000;
}

.btn-outline {
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.05rem;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--surface-highest);
  border-color: var(--accent-lime);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.idle {
  background: var(--status-idle-bg);
  color: var(--status-idle);
  border: 1px solid rgba(138, 147, 130, 0.3);
}

.status-pill.motion {
  background: var(--status-motion-bg);
  color: var(--status-motion);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.status-pill.stabilizing {
  background: var(--status-stabilizing-bg);
  color: var(--status-stabilizing);
  border: 1px solid rgba(39, 201, 63, 0.35);
}

.status-pill.triggered {
  background: var(--status-triggered-bg);
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
  box-shadow: 0 0 12px rgba(230, 254, 0, 0.4);
}

.status-pill.cooldown {
  background: var(--status-cooldown-bg);
  color: var(--status-cooldown);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulseDotAnim 1.6s infinite ease-in-out;
}

@keyframes pulseDotAnim {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Hero Section */
.hero {
  padding: 130px 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.text-gradient {
  color: var(--accent-lime);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Video Showcase Mockup */
.showcase-wrapper {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.mockup-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--glow-card);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.mockup-card:hover {
  border-color: rgba(113, 184, 0, 0.4);
}

.mockup-header-bar {
  padding: 14px 20px;
  background: var(--surface-low);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.mockup-title-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hud-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 5;
}

.hud-panel {
  background: rgba(13, 15, 10, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-label {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hud-val-green {
  color: var(--accent-lime);
  font-weight: 700;
}

/* Sections */
section {
  padding: 90px 24px;
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive Simulator */
.simulator-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--surface-lowest) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sim-container {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--glow-card);
}

.sim-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: radial-gradient(circle at center, #151A12 0%, #0A0D08 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.sim-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}

.printer-bed {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  height: 58%;
  background: linear-gradient(180deg, #1C2319 0%, #131811 100%);
  border: 1px solid #33402C;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bed-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #556B47;
  letter-spacing: 2px;
  pointer-events: none;
}

/* Toolhead Nozzle */
.sim-toolhead {
  position: absolute;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2F3929 0%, #20271B 100%);
  border: 2px solid var(--accent-lime);
  border-radius: 10px;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.7), 0 0 10px rgba(230, 254, 0, 0.25);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.sim-toolhead:active {
  cursor: grabbing;
}

.sim-toolhead::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: var(--accent-lime);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

/* Target Box (ROI) */
.sim-roi-box {
  position: absolute;
  border: 2px solid var(--accent-lime);
  background: rgba(113, 184, 0, 0.12);
  border-radius: 6px;
  cursor: move;
  z-index: 8;
  touch-action: none;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sim-roi-box.stabilizing {
  border-color: #27C93F;
  background: rgba(39, 201, 63, 0.22);
  box-shadow: 0 0 20px rgba(39, 201, 63, 0.35);
}

.sim-roi-box.triggered {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px #FFFFFF;
}

.sim-roi-box.motion {
  border-color: var(--status-motion);
  background: rgba(255, 179, 0, 0.18);
}

.roi-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border: 1px solid #000;
  border-radius: 2px;
}

.handle-tl { top: -4px; left: -4px; }
.handle-tr { top: -4px; right: -4px; }
.handle-bl { bottom: -4px; left: -4px; }
.handle-br { bottom: -4px; right: -4px; }

.roi-tag {
  position: absolute;
  top: -24px;
  left: 0;
  background: rgba(13, 15, 10, 0.92);
  color: var(--accent-lime);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
  pointer-events: none;
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.1s ease-out;
}

.capture-flash.active {
  opacity: 0.85;
}

/* Simulator Controls Panel */
.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sim-hud-card {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-mono);
}

.sim-hud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
}

.sim-hud-row:last-child {
  border-bottom: none;
}

.sim-hud-label {
  color: var(--text-muted);
}

.sim-hud-val {
  font-weight: 700;
}

.sim-btn-group {
  display: flex;
  gap: 12px;
}

.btn-sim-action {
  flex: 1;
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-sim-action:hover {
  background: var(--surface-highest);
  border-color: var(--accent-lime);
  color: #FFFFFF;
}

.btn-sim-primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-sim-primary:hover {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #0F2000;
  box-shadow: var(--glow-lime);
}

.btn-sim-primary.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Range Slider */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-highest);
  border-radius: 4px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-lime);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-lime);
}

/* Shot count pulse */
@keyframes pulsePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #FFFFFF; text-shadow: 0 0 10px var(--accent-lime); }
  100% { transform: scale(1); }
}
.pulse {
  display: inline-block;
  animation: pulsePop 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.49);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 184, 0, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(113, 184, 0, 0.12);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(113, 184, 0, 0.16) 0%, rgba(230, 254, 0, 0.06) 100%);
  border: 1px solid rgba(230, 254, 0, 0.22);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.05);
  border-color: var(--accent-lime);
  box-shadow: 0 0 14px rgba(230, 254, 0, 0.25);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.feature-tag {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--surface-high);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--glow-card);
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--surface-low);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
}

.comparison-table th.highlight-col, .comparison-table td.highlight-col {
  background: rgba(255, 255, 255, 0.03);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-lime);
  font-weight: 600;
}

.cross-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* 3-Step Setup Guide */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--accent-lime);
  transform: translateY(-3px);
}

.step-number {
  width: 42px;
  height: 42px;
  background: var(--surface-high);
  border: 2px solid var(--primary);
  color: var(--accent-lime);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--surface-highest);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Support Form */
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--glow-card);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(230, 254, 0, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(113, 184, 0, 0.15);
  border: 1px solid var(--primary);
  color: var(--accent-lime);
}

.form-feedback.error {
  display: block;
  background: rgba(255, 95, 86, 0.15);
  border: 1px solid #FF5F56;
  color: #FFA59E;
}

/* Footer */
footer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--border);
  padding: 60px 24px 28px;
  color: var(--text-secondary);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 992px) {
  .sim-container {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-container {
    padding: 12px 18px;
  }
  .hero {
    padding: 100px 16px 40px;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 3.2rem);
    letter-spacing: -0.5px;
  }
  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-cta-group .btn-main,
  .hero-cta-group .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  section {
    padding: 60px 16px;
  }
  .sim-container {
    padding: 18px 14px;
    gap: 20px;
    border-radius: var(--radius-lg);
  }
  .sim-btn-group {
    flex-direction: column;
  }
  .btn-sim-action {
    width: 100%;
    padding: 14px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .contact-card {
    padding: 24px 18px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.7rem;
  }
}

/* Cooklie-Style Support Grid & Cards */
.support-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.support-card:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 254, 0, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.support-icon {
  width: 52px;
  height: 52px;
  background: rgba(230, 254, 0, 0.1);
  color: var(--accent-lime);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.support-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.support-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.support-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: #F0F0F0;
  line-height: 1.5;
}

.step-badge {
  background: rgba(230, 254, 0, 0.12);
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 0.8rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-bullet {
  color: var(--accent-lime);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: -1px;
}

.faq-simple {
  display: flex;
  flex-direction: column;
}

.faq-item-simple {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.faq-item-simple:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item-simple h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.faq-item-simple p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.contact-info-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-box {
  background: var(--surface-low);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.contact-info-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.contact-info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-lime);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-val:hover {
  text-decoration: underline;
}

/* Support Banner */
.support-cta-banner {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.support-banner-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 50px 36px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-banner-title {
  font-size: 1.9rem;
  font-weight: 850;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.support-banner-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ===================================
   App screenshots ("In the App")
   =================================== */
.pc-shots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.pc-shot {
  flex: 1 1 0;
  max-width: 290px;
  margin: 0;
}

/* Tilt and lift live on the image, so the scroll-reveal transform on the figure stays separate */
.pc-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--glow-card);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.pc-shot--left img {
  transform: rotate(-3deg) translateY(14px);
}

.pc-shot--right img {
  transform: rotate(3deg) translateY(14px);
}

.pc-shot--center {
  max-width: 320px;
}

.pc-shot--center img {
  border-color: rgba(230, 254, 0, 0.35);
  box-shadow: var(--glow-card), var(--glow-lime);
}

.pc-shot:hover img {
  transform: rotate(0deg) translateY(-8px);
  border-color: rgba(230, 254, 0, 0.5);
  box-shadow: var(--glow-card), var(--glow-lime);
}

.pc-shot figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .pc-shots {
    gap: 14px;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    padding: 10px 4px 16px;
  }

  .pc-shot,
  .pc-shot--center {
    flex: 0 0 68%;
    max-width: none;
    scroll-snap-align: center;
  }

  .pc-shot--left img,
  .pc-shot--right img {
    transform: none;
  }
}

/* ===================================
   Scroll reveal (classes are added by script, so the page is fully visible without it)
   =================================== */
.pc-reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.65s ease var(--pc-delay, 0ms), translate 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--pc-delay, 0ms);
}

.pc-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .pc-reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
}


/* ===================================
   Home page
   =================================== */
.pc-wrap {
  max-width: 1176px;
  margin: 0 auto;
}

.pc-hero {
  padding: 150px 24px 0;
  text-align: center;
}

.pc-hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.pc-lime {
  color: var(--accent-lime);
}

.pc-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

/* Store buttons */
.pc-stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pc-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 178px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #0A0A0A;
  text-align: left;
  transition: var(--transition);
}

.pc-store:hover {
  background: var(--accent-lime);
}

.pc-store svg {
  flex-shrink: 0;
}

.pc-store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.7;
}

.pc-store strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pc-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Demo video: same background as the page, so no frame is drawn around it */
.pc-demo {
  max-width: 880px;
  margin: 36px auto 0;
}

.pc-demo video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

.pc-section {
  padding: 110px 24px;
}

.pc-section--line {
  border-top: 1px solid var(--border);
}

.pc-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.pc-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.pc-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.pc-eyebrow {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* Steps */
.pc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  list-style: none;
}

.pc-steps li {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.pc-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-lime);
}

.pc-steps h3,
.pc-features h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.pc-steps p,
.pc-features p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features */
.pc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.pc-features h3 {
  margin-top: 0;
}

/* Screenshots on the home page sit straight */
.pc-shots--flat .pc-shot img,
.pc-shots--flat .pc-shot:hover img {
  transform: none;
  border-color: var(--border);
  border-radius: 22px;
}

.pc-shots--flat .pc-shot--center {
  max-width: 290px;
}

.pc-shots--flat .pc-shot figcaption {
  margin-top: 18px;
}

/* Comparison */
.pc-compare {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pc-compare table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

.pc-compare th,
.pc-compare td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pc-compare thead th {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.pc-compare tbody th {
  color: #FFFFFF;
  font-weight: 500;
}

.pc-compare .pc-us {
  color: var(--accent-lime);
}

.pc-compare td.pc-us {
  font-weight: 500;
}

/* FAQ */
.pc-faq {
  max-width: 760px;
}

.pc-faq .faq-item {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.pc-faq .faq-question {
  padding: 22px 0;
  font-weight: 500;
}

.pc-faq .faq-icon {
  color: var(--text-muted);
}

.pc-faq .faq-answer {
  padding: 0;
  max-width: 640px;
}

.pc-faq .faq-item.open .faq-answer {
  padding-bottom: 22px;
}

/* Closing call to action */
.pc-cta {
  padding: 120px 24px 130px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.pc-cta h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.pc-cta p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .pc-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pc-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pc-hero {
    padding: 110px 20px 0;
  }
  .pc-demo {
    margin-top: 20px;
  }
  .pc-section {
    padding: 72px 20px;
  }
  .pc-head {
    margin-bottom: 40px;
  }
  .pc-cta {
    padding: 84px 20px 92px;
  }
}

@media (max-width: 520px) {
  .pc-steps,
  .pc-features {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pc-stores {
    flex-direction: column;
    align-items: center;
  }
  .pc-store {
    width: 100%;
    max-width: 260px;
  }
}
