/* ===================================
   ClipMe - Matte & Creamy Design System
   =================================== */

:root {
  /* -- Colors -- */
  --bg: #0e0e0e; /* Matte Black */
  --bg-surface: #141414;
  --bg-card: #1a1a1a;
  --bg-notch: rgba(22, 22, 22, 0.85);

  --primary: #ffd60a; /* Poppy Yellow */
  --primary-dim: rgba(255, 214, 10, 0.1);
  --primary-glow: rgba(255, 214, 10, 0.3);

  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #444444;

  --border: #262626;
  --border-light: #333333;

  /* -- Fonts -- */
  --font-sans: 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* -- Spacing -- */
  --container: 1080px;
  --gutter: 24px;
  --section-space: 140px;

  /* -- Animation -- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* -- Reset & Base -- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Prevent horizontal scroll */
  max-width: 100vw; /* Ensure no overflow */
}

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

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

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

/* -- Utilities -- */
.text-gradient {
  background: linear-gradient(to right, #ffd60a, #ff9f0a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* -- Matte Compact Header -- */
.matte-header {
  position: fixed;
  top: 20px; /* Floating look */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(18, 18, 18, 0.85); /* Darker, better contrast */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  
  /* Content-width: shrink to fit content */
  width: fit-content;
  border-radius: 24px; /* Rounded corners */
}

/* Base header styles */
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}

.matte-header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

/* -- Feature Split Section -- */
.split-image {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative; /* Context for glow */
  padding: 20px; /* Add some breathing room for the glow */
}

.ui-image {
  width: 100%;
  max-width: 800px; /* Large size */
  height: auto;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  
  /* explicit removals */
  background: transparent !important; 
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Glow Effect for Secondary Screenshot */
.split-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%; /* Slightly tighter to image */
  height: 85%;
  border-radius: 50px;
  background: linear-gradient(
    45deg,
    #4facfe,
    #00f2fe,
    #a18cd1,
    #fbc2eb,
    #4facfe
  );
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  filter: blur(50px); /* Soft glow match */
  opacity: 0.5;
  z-index: 1;
}

.header-wrap {
  padding: 8px 16px; /* Tighter padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  margin-right: auto;
  padding-left: 8px; /* Visual balance */
}

.header-logo:hover {
  transform: scale(1.02);
}

.logo-svg {
  width: 90px;
  height: auto;
  color: #fff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: transparent; /* "Besser implementiert ohne BG" */
  padding: 0;
  border: none;
}

.nav-item {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 12px; /* Matching the header vibe */
  transition: color 0.2s ease, background 0.2s ease;
  /* Prevent layout shift from font-weight */
  display: inline-block;
  text-align: center;
}

.nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08); /* Subtle active background instead of yellow pill */
  /* If user wants yellow active state, we can use color or a dot */
  /* Let's try text color change + subtle bg for a cleaner look */
}

/* Updated CTA outside nav */
/* .header-btn removed/hidden */
.header-btn {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .matte-header {
    top: 10px;
    max-width: calc(100% - 24px); /* Margins on sides */
    border-radius: 18px;
    padding: 0 4px;
  }
  
  .header-wrap {
    padding: 6px 12px;
    flex-wrap: nowrap; /* Keep in one line */
    gap: 8px;
    justify-content: space-between;
  }

  .header-logo {
     margin-right: 0;
     padding-left: 0;
     flex-shrink: 0;
  }
  
  .header-btn {
    display: none !important; /* Keep hidden on mobile too */
  }
  
  .header-btn span {
    display: none;
  }
  
  .header-btn svg {
      width: 16px;
      height: 16px;
      margin: 0;
  }

  /* Make nav display on mobile as horizontal scroll IN BETWEEN */
  .header-nav {
    display: flex;
    flex: 1; /* Take available space */
    order: 0; /* Natural flow */
    overflow-x: auto;
    padding: 0 8px;
    gap: 6px;
    scroll-padding: 0 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 0;
    border-top: none; 
    padding-top: 0;
    align-items: center;
    /* Hide scrollbar */
    mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
  }
  
  .header-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    white-space: nowrap;
    background: transparent; 
    padding: 6px 10px;
    border-radius: 99px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  .nav-item.active {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
  }
  
  .logo-svg {
    width: 70px; /* Slightly smaller to fit nav */
  }
}

/* -- Hero Section -- */
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 800px;
  padding: 0 20px;
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.hero-buttons {
  display: flex;
  justify-content: center; /* Centered buttons */
  gap: 16px;
  margin-bottom: 80px;
}

/* ... btn styles ... */

/* App Showcase */
.app-showcase-wrapper {
  padding: 0 20px;
  perspective: 1000px;
  position: relative;
  z-index: 10;
}

.app-window {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  animation: floatHero 6s ease-in-out infinite;
  
  /* Removed Window/Border Styles */
  padding: 0;
  border-radius: 24px; /* Just round the image container */
  background: transparent;
  box-shadow: none;
}

/* New Rainbow Glow Behind */
.app-window::before {
  content: '';
  position: absolute;
  inset: 50px; /* Increased inset to make the source smaller */
  border-radius: 40px;
  background: linear-gradient(
    45deg,
    #4facfe,
    #00f2fe,
    #a18cd1,
    #fbc2eb,
    #4facfe
  );
  background-size: 300% 300%;
  animation: gradientBorder 4s ease infinite;
  /* Reduced Blur for tighter glow */
  filter: blur(40px); 
  opacity: 0.5; /* Slightly lowered opacity */
  z-index: -1;
  transform: translateY(10px); /* Reduced vertical offset */
}

/* Remove old border animation on self */
.app-window {
  animation: floatHero 6s ease-in-out infinite; /* Keep float, remove background anim */
}
.app-window::after {
  display: none;
}

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

.app-screenshot {
  border-radius: 12px; /* Inner radius */
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent; /* Fixed: Removed var(--bg-card) to avoid dark box issues */
}

/* -- Marquee Section -- */
.marquee-section {
  background: var(--primary);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
  transform: rotate(-2deg) scale(1.05);
  margin: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.marquee-content {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  /* Adjusted duration and ease for smoother loop */
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: max-content; /* Ensure container fits content */
}

/* ... span styles ... */

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  } /* Loop point depends on duplication, assuming 3 sets */
}

/* -- Interactive Demo Section -- */
.interactive-demo {
  padding: var(--section-space) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 18px;
}

.demo-container {
  max-width: 800px;
  margin: 0 auto;
}

.demo-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.demo-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.demo-dots span:nth-child(1) {
  background: #ff5f57;
}
.demo-dots span:nth-child(2) {
  background: #fabc2e;
}
.demo-dots span:nth-child(3) {
  background: #28c840;
}

.demo-title {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  pointer-events: none;
}

.demo-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.demo-input-group {
  display: flex;
  gap: 12px;
}

.demo-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.demo-icon-btn {
  width: 42px;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-timeline-area {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.demo-preview-box {
  height: 180px;
  background: #222;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  /* Animated Gradient Background */
  background: linear-gradient(45deg, #222, #333, #222);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.play-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  font-size: 20px;
}

.demo-slider-track {
  height: 30px;
  background: #222;
  border-radius: 4px;
  position: relative;
  margin-bottom: 12px;
}

.demo-slider-range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20%;
  right: 20%;
  background: rgba(255, 214, 10, 0.2);
  border-top: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
}

.demo-handle {
  width: 6px;
  height: 100%;
  background: var(--primary);
  position: absolute;
  cursor: ew-resize;
  z-index: 2;
}

.demo-handle.left {
  left: 20%;
  border-radius: 4px 0 0 4px;
}
.demo-handle.right {
  right: 20%;
  border-radius: 0 4px 4px 0;
}

.demo-handle:hover {
  filter: brightness(1.2);
}

.demo-time-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

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

/* -- Interactive Demo Styles -- */
.demo-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  user-select: none; /* Prevent text selection */
  transition: all 0.2s;
  border: 1px solid transparent;
}

.demo-select:hover {
  background: #2a2a2a;
  color: var(--text-main);
}

.demo-select.active {
  background: #333;
  border-color: var(--border-light);
  color: var(--primary);
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(2px) translateY(-2px);
}

.btn:active {
  transform: scale(0.96);
}

/* Primary Button (Gradient Yellow) */
.btn-primary {
  background: linear-gradient(135deg, #ffd60a 0%, #ff9f0a 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 214, 10, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(255, 214, 10, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Glass/Secondary Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.demo-icon-btn,
.play-icon,
.btn {
  /* Added .btn to this selector for cursor/user-select */
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.play-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.play-icon:active {
  transform: scale(0.95);
}

/* Draggable Handles */
.demo-handle {
  width: 12px; /* Click target bigger */
  margin-left: -6px; /* Center it */
  background: transparent; /* Invisible wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-handle::after {
  content: '';
  width: 6px;
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: filter 0.2s;
}

.demo-handle.left::after {
  border-radius: 4px 0 0 4px;
}
.demo-handle.right::after {
  border-radius: 0 4px 4px 0;
}

.demo-handle:hover::after {
  filter: brightness(1.2);
  box-shadow: 0 0 10px rgba(255, 214, 10, 0.4);
}

/* -- How it Works -- */
.how-it-works {
  padding: var(--section-space) 0;
  /* Use a slightly darker surface to make the gradient pop */
  background: #111;
}

.split-layout {
  display: grid;
  /* Increased image space significantly */
  grid-template-columns: 0.6fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.split-image {
  position: relative;
  padding: 3px; /* Space for gradient border/bg */
  border-radius: 14px;
  background: linear-gradient(45deg, #ffd60a, #ff5f57, #ffd60a);
  background-size: 200% 200%;
  /* Speed up animation as requested (6s -> 3s) */
  animation: gradientBorder 3s ease infinite;
  box-shadow: 0 20px 60px rgba(97, 218, 251, 0.05);
}

@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ui-image {
  border-radius: 12px;
  display: block;
  width: 100%;
  /* Remove old borders/shadows */
  box-shadow: none;
  border: none;
  /* Ensure it sits on top of gradient */
  position: relative;
  background: var(--bg-card); /* Fallback */
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.feature-list li {
  display: flex;
  gap: 20px;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-list h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 15px;
}

/* -- Reversed Split Layout (Image Left, Text Right) -- */
.split-layout-reversed {
  grid-template-columns: 1.4fr 0.6fr;
  margin-top: 120px;
}

@media (max-width: 800px) {
  .split-layout-reversed {
    grid-template-columns: 1fr;
    margin-top: 80px;
  }
  
  .split-layout-reversed .split-image {
    order: -1; /* Image goes on top on mobile */
  }
}

/* Alternative Gradient for Multi-Clip Section */
.split-image-alt {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-size: 200% 200%;
  animation: gradientBorder 4s ease infinite;
}

.split-image-alt::before {
  background: linear-gradient(
    135deg,
    #667eea,
    #764ba2,
    #f093fb,
    #667eea
  );
}

/* Pro Feature Badge */
.pro-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 159, 10, 0.15));
  border: 1px solid rgba(255, 214, 10, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.pro-feature-badge svg {
  color: var(--primary);
}

/* Alternative Icon Box for Multi-Clip */
.icon-box-alt {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border-color: rgba(102, 126, 234, 0.3);
  color: #a78bfa;
}

.icon-box-alt svg {
  color: #a78bfa;
}

/* -- Pricing -- */
.pricing {
  /* Increased padding to accommodate the angled cut without clipping content */
  /* Increased padding to accommodate the angled cut without clipping content 
     Added extra top padding for hover effect (approx 30px buffer) */
  padding: calc(var(--section-space) + 60px) 0 calc(var(--section-space) + 40px);
  position: relative;
  overflow: hidden;
  background-color: var(--primary); /* Poppy Yellow Background */
  color: #000;
  /* Trapezoid / Angled Slash Effect */
  /* Top-Left: 0 80px (Starts lower) */
  /* Top-Right: 100% 0 (Starts at top) */
  /* Bottom-Right: 100% 100% (Ends at bottom) */
  /* Bottom-Left: 0 calc(100% - 80px) (Ends higher) */
  /* Result: Left side is vertically shorter than right side */
  clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 calc(100% - 80px));
  margin: 40px 0; /* Add margin so the cut doesn't look weird against adjacent sections */
}

/* Compensate for the clip-path visually in the grid positioning if needed */
.pricing .container {
  position: relative;
  z-index: 1;
}

.pricing::before {
  display: none;
}

.pricing .section-title {
  color: #000;
}

.pricing .section-desc {
  color: #333;
  font-weight: 500;
}

.pricing .container {
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
  margin-top: 50px;
}

.pricing-plan {
  background: #ffffff; /* Creamy White */
  border: none;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.1),
    0 12px 24px -8px rgba(0, 0, 0, 0.05); /* Soft creamy shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #000;
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.15),
    0 16px 32px -8px rgba(0, 0, 0, 0.1);
}

.pricing-plan-pro {
  position: relative;
  z-index: 2;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.15),
    0 12px 24px 0px rgba(0, 0, 0, 0.05);
}

.plan-top {
  text-align: left;
}

.plan-label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  color: #000;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-plan-pro .plan-label {
  background: #000;
  color: #fff;
  border-color: #000;
}

.plan-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-price-old {
  color: #999;
  text-decoration: line-through;
  opacity: 0.8;
  font-weight: 600;
  font-size: 20px;
}

.plan-price-main {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #000;
  line-height: 1;
}

.plan-price-main .currency {
  font-size: 28px;
  font-weight: 800;
  margin-right: 4px;
  color: #000;
  vertical-align: top;
  position: relative;
  top: 8px;
}

.plan-price-sub {
  color: #666;
  font-size: 15px;
  font-weight: 600;
}

.plan-desc {
  margin-top: 14px;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
}

/* Coupon Styles - Cleaner */
.coupon-container {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 214, 10, 0.15); /* Very light yellow tint */
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 10, 0.3);
}

.coupon-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bfa000; /* Darker yellow/gold */
  font-weight: 800;
}

.coupon-code-box {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s;
}

.coupon-code-box:hover {
  opacity: 0.7;
}

.coupon-code-box:active {
  transform: scale(0.98);
}

.code-text {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #000;
  font-size: 18px;
  letter-spacing: 1px;
}

.copy-icon {
  color: #000;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.coupon-code-box:hover .copy-icon {
  opacity: 1;
}

.copied-msg {
  position: absolute;
  right: -70px; /* Position to the right */
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.2s ease;
}

/* State when copied */
.coupon-code-box.copied .copied-msg {
  opacity: 1;
  transform: translateX(0);
}

/* Copy feedback text - hidden by default */
.copy-feedback {
  position: absolute;
  right: -60px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.coupon-code-box.copied .copy-feedback {
  opacity: 1;
}

.coupon-hint {
  font-size: 12px;
  color: #888;
}

.plan-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.feature-row span {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #000; /* Black checks */
}

/* Specific styling for locked items in Free plan */
.feature-row.is-locked {
  opacity: 0.4;
  border: none;
}

.feature-row.is-locked .feature-icon {
  color: #999;
}

.feature-row.is-included {
    border: none;
}

.feature-row.is-included .feature-icon {
    color: #000;
}


/* Buttons */
.plan-cta {
  margin-top: 32px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.plan-cta-primary {
  background: linear-gradient(
    -45deg,
    #ff6b35,
    #f7931e,
    #ff4757,
    #ff6b35
  );
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.plan-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
  color: #fff;
}

.plan-cta-secondary {
  background: #000;
  border: 2px solid #000;
  color: #fff;
}

.plan-cta-secondary:hover {
  background: #222;
  border-color: #222;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-plan {
    padding: 32px;
  }
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border: none;
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
}

.price-tag-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.price-original {
  font-size: 24px;
  font-weight: 600;
  color: #999;
  text-decoration: line-through;
  opacity: 0.6;
  margin-bottom: -8px;
}

.price-tag {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: #000;
}

.pricing-sub {
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}

.pricing-sub a {
  color: #000;
  text-decoration: underline;
}

.btn-wide {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* -- Download -- */
.download-section {
  padding: var(--section-space) 0;
  text-align: center;
}

.download-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.download-tile {
  width: 160px;
  height: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s;
  color: var(--text-muted);
}

.download-tile:hover {
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-4px);
  background: rgba(255, 214, 10, 0.05);
}

.os-icon {
  width: 48px;
  height: 48px;
}

.download-tile span {
  font-weight: 600;
}

.download-tile .small {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7); /* Brighter */
  background: rgba(255, 255, 255, 0.1); /* Pill bg */
  padding: 4px 8px;
  border-radius: 6px; /* Less rounded corners */
  margin-top: 4px; /* Default for stack */
  display: inline-block;
  white-space: nowrap;
}

/* Unique Gradient Hovers */
.download-tile {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.download-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-tile:hover {
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
}

.download-tile:hover .small {
  color: rgba(255, 255, 255, 0.8);
}

.download-tile:hover::before {
  opacity: 1;
}

/* 1. Silicon (First Child) - Rainbow 1 */
.download-tile:nth-child(1)::before {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
}

/* 2. Intel (Second Child) - Rainbow 2 */
.download-tile:nth-child(2)::before {
  background: linear-gradient(135deg, #56ccf2 0%, #2f80ed 100%);
}

/* 3. Windows (Third Child) - Rainbow 3 */
.download-tile:nth-child(3)::before {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* -- FAQ Section -- */
.faq-section {
  padding: var(--section-space) 0;
  background: var(--bg); /* Matte Background */
}

.faq-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}

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

.faq-item.active {
  border-color: var(--primary);
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Turn Plus to X */
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Approximate max height */
}

.faq-item.active .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* -- Footer -- */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.footer-logo {
  display: inline-block;
}

.footer-svg {
  width: 100px;
  height: auto;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer-logo:hover .footer-svg {
  color: var(--text-main);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

@media (max-width: 600px) {
    .footer-links {
        gap: 20px;
        flex-direction: column; /* Stack on very small screens? or keep row? row is fine usually */
        flex-direction: row; 
    }
}

/* -- Animations -- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}
.delay-5 {
  animation-delay: 0.6s;
}

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

/* -- Responsive -- */
@media (max-width: 800px) {
  .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .feature-list li {
    text-align: left;
  }

  /* Move image below content on mobile? Or above?
     Default flex/grid flow is image second. 
     If we want image first, use order: -1.
     "Just drop it" title reads better first, then image, then checks.
  */
  .split-image {
    /* order: -1;  Let's keep text first for storytelling */
  }

  .hero-title {
    font-size: 3rem;
  }

  .pricing-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  /* Pricing Slider */
  .pricing .container {
    padding-left: 0;
    padding-right: 0;
  }

  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 60px; /* Increased for shadow */
    margin-top: 40px;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 60px; /* Increased for hover animation */
    
    /* Ensure scroll starts correctly */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar */
  }
  
  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-plan {
    min-width: 85vw; /* Almost full width */
    scroll-snap-align: center;
    /* Ensure shadow is not clipped by bottom */
    margin-bottom: 30px; 
    margin: 0 0 30px 0;
  }

  .pricing-card {
      /* Move shadow up slightly so it is not cut off by container bottom */
      box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4); 
  }

  /* Reorder Pro to first (REMOVED: User wants Free on left, but Pro shown first. 
     We will handle this by keeping default order [Free, Pro] and scrolling to Pro via JS) */
  /* .pricing-plan-pro {
    order: -1;
  } */

  /* Download Buttons */
  .download-grid {
    flex-direction: column;
    padding: 0 24px;
    gap: 12px;
  }

  .download-tile {
    width: 100%;
    height: auto;
    padding: 16px 24px;
    flex-direction: row; 
    justify-content: flex-start;
    border-radius: 16px;
  }
  
  .download-tile .os-icon {
    width: 28px;
    height: 28px;
    margin-right: 16px;
  }
  
  .download-tile span {
    font-size: 16px;
  }
  
  .download-tile .small {
    margin-left: auto; /* Push to right on mobile row */
    margin-top: 0;
  }

  /* Preview Section */
  .demo-body {
    padding: 20px;
  }
  .demo-header {
      padding: 10px 16px;
  }
  .demo-input-group {
    flex-direction: column;
  }
  .demo-input {
      width: 100%;
  }
  .demo-icon-btn {
      width: 100%; /* Full width button on mobile */
      margin-top: 8px; /* space between input and button */
  }
  
  .demo-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .demo-footer .btn {
      grid-column: span 2; /* Button takes full width below selects */
      justify-content: center;
  }

  /* Hero adjustments */
  .hero-buttons {
      flex-direction: column;
      width: 100%;
      padding: 0 40px;
  }
  
  .hero-buttons .btn {
      width: 100%;
      justify-content: center;
  }
}
