/* Landing Page Styles - AI Visual Inspection Platform */
/* Inspired by app styles with OKLch colors and Poppins font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color scheme matching app green theme */
  --background: oklch(0.9911 0 0);
  --foreground: oklch(0.2046 0 0);
  --primary: oklch(0.8348 0.1302 160.908);
  --primary-hover: oklch(0.7348 0.1502 160.908);
  --secondary: oklch(0.994 0 0);
  --accent: oklch(0.9461 0 0);
  --muted: oklch(0.9461 0 0);
  --muted-foreground: oklch(0.2435 0 0);
  --border: oklch(0.9037 0 0);
  --card: oklch(0.9911 0 0);
  --card-foreground: oklch(0.2046 0 0);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #22C55E, #84CC16);
  --gradient-hero: linear-gradient(180deg, oklch(0.9911 0 0) 0%, oklch(0.9461 0 0) 100%);

  /* Shadows */
  --shadow-sm: 0px 8px 16px -4px oklch(0 0 0 / 0.08), 0px 1px 2px -5px oklch(0 0 0 / 0.08);
  --shadow-md: 0px 8px 16px -4px oklch(0 0 0 / 0.1), 0px 2px 4px -4px oklch(0 0 0 / 0.1);
  --shadow-lg: 0px 16px 32px -8px oklch(0 0 0 / 0.12), 0px 4px 8px -4px oklch(0 0 0 / 0.08);
  --shadow-xl: 0px 24px 48px -12px oklch(0 0 0 / 0.15);

  /* Spacing */
  --radius: 1.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 1.25rem;
}

/* Blue theme */
.blue {
  --primary: oklch(0.62 0.21 264);
  --primary-hover: oklch(0.55 0.24 264);
  --gradient-primary: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.blue .hero h1 span {
  background-image: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.blue .hero::before {
  background-image:
    radial-gradient(circle at 20% 30%, oklch(0.62 0.21 264 / 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, oklch(0.48 0.22 264 / 0.06) 0%, transparent 50%);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.1822 0 0);
    --foreground: oklch(0.9288 0.0126 255.5078);
    --primary: oklch(0.4365 0.1044 156.7556);
    --primary-hover: oklch(0.5365 0.1244 156.7556);
    --secondary: oklch(0.2603 0 0);
    --accent: oklch(0.3132 0 0);
    --muted: oklch(0.2393 0 0);
    --muted-foreground: oklch(0.7122 0 0);
    --border: oklch(0.2809 0 0);
    --card: oklch(0.2046 0 0);
    --card-foreground: oklch(0.9288 0.0126 255.5078);
    --gradient-hero: linear-gradient(180deg, oklch(0.1822 0 0) 0%, oklch(0.2393 0 0) 100%);
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md: 0 2px 6px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-xl: 0 8px 24px oklch(0 0 0 / 0.45);
  }

  .blue {
    --primary: oklch(0.62 0.21 264);
    --primary-hover: oklch(0.55 0.24 264);
    --gradient-primary: linear-gradient(135deg, oklch(0.62 0.21 264), oklch(0.48 0.22 264));
  }
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

.theme-toggle-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--primary);
  transition: background 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section */
.section {
  padding: 5rem 0;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: oklch(from var(--background) l c h / 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  text-decoration: none;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--primary);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 2rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(0.8348 0.1302 160.908 / 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, oklch(0.6959 0.1491 162.4796 / 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  position: relative;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: oklch(from var(--primary) l c h / 0.1);
  border: 1px solid oklch(from var(--primary) l c h / 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background-image: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  min-height: 580px;
}

.hero-image {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Phone Container (iPhone Frames) */
.phone-container {
  position: relative;
  width: 380px;
  height: 580px;
}

.iphone-frame {
  position: absolute;
  background: #1C1C1E;
  border-radius: 50px;
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.iphone-frame::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1C1C1E;
  border-radius: 16px;
  z-index: 10;
}

/* Dynamic Island */
.iphone-frame::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 11;
}

.iphone-screen {
  width: 260px;
  height: 563px;
  border-radius: 46px;
  overflow: hidden;
  background: var(--background);
  position: relative;
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.phone-placeholder svg {
  color: var(--primary);
  opacity: 0.15;
}

/* Back phone - homescreen (behind, left, rotated) */
.iphone-frame:first-child {
  left: 0;
  top: 40px;
  z-index: 1;
  transform: rotate(-6deg);
  animation: floatBack 6s ease-in-out infinite;
}

/* Front phone - formscreen (in front, right, slight rotation) */
.iphone-frame:last-child {
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(3deg);
  animation: floatFront 6s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 60px 120px -20px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(82, 196, 26, 0.15);
}

@keyframes floatBack {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

@keyframes floatFront {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-12px); }
}

/* Dashboard Preview */
.dashboard-preview {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dashboard-dot:nth-child(1) { background: #ff5f57; }
.dashboard-dot:nth-child(2) { background: #febc2e; }
.dashboard-dot:nth-child(3) { background: #28c840; }

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.dashboard-sidebar {
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.dashboard-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.dashboard-sidebar-item.active {
  background: var(--primary);
  color: white;
}

.dashboard-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dashboard-card {
  background: var(--muted);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.dashboard-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.dashboard-card-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Stats Bar */
.stats-bar {
  padding: 3rem 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Features Section */
.features {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Capabilities Section */
.capabilities {
  padding: 6rem 0;
  background: var(--muted);
}

.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.capability-row:last-child {
  margin-bottom: 0;
}

.capability-row:nth-child(even) {
  direction: rtl;
}

.capability-row:nth-child(even) > * {
  direction: ltr;
}

.capability-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.capability-content p {
  margin-bottom: 1.5rem;
}

.capability-list {
  list-style: none;
}

.capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.capability-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.capability-visual {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-visual svg {
  width: 60%;
  height: 60%;
  color: var(--primary);
  opacity: 0.8;
}

/* Benefits Section */
.benefits {
  padding: 6rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.benefit-card:hover {
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.benefit-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
  color: var(--foreground);
}

.benefit-content p {
  font-size: 0.9375rem;
  margin: 0;
}

/* Integrations Section */
.integrations {
  padding: 6rem 0;
  background: var(--muted);
}

.integrations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.integration-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.integration-logo-icon {
  width: 4rem;
  height: 4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-logo-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--muted-foreground);
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  text-align: center;
  background: var(--primary);
}

.cta .hero-actions {
  justify-content: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  color: oklch(1 0 0 / 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-primary:hover {
  background: oklch(0.95 0 0);
}

.cta .btn-outline {
  border-color: oklch(1 0 0 / 0.4);
  color: white;
}

.cta .btn-outline:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: white;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--muted);
  color: var(--muted-foreground);
  transition: all 0.15s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}

.footer-social svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Social Proof Section */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  padding: 3rem 0;
}

.social-proof-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.social-proof-stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.social-proof-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  opacity: 0.5;
}

.logo-placeholder {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-proof-quote {
  max-width: 600px;
  text-align: center;
}

.quote-text {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.quote-author {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.quote-author strong {
  color: var(--foreground);
  font-weight: 500;
}

/* Demo Section */
.demo {
  background: var(--background);
}

.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.demo-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.demo-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.demo-before, .demo-after {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.demo-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.demo-before-image {
  background: var(--muted);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.demo-nameplate {
  background: linear-gradient(135deg, #374151, #4B5563);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: #9CA3AF;
  text-align: left;
  border: 2px solid #4B5563;
}

.demo-nameplate-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.demo-nameplate-row:last-child {
  border-bottom: none;
}

.demo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.demo-arrow svg {
  width: 32px;
  height: 32px;
}

.demo-arrow span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.demo-after-data {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.demo-data-row:last-child {
  border-bottom: none;
}

.demo-data-key {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.demo-data-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* Comparison Section */
.comparison {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-header {
  text-align: center;
  margin-bottom: 3rem;
}

.comparison-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.comparison-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

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

.comparison-cell {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  color: var(--muted-foreground);
}

.comparison-row-header .comparison-cell {
  background: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.comparison-cell-highlight {
  background: oklch(from var(--primary) l c h / 0.08);
  color: var(--primary);
  font-weight: 600;
}

.comparison-cell-strike {
  color: var(--muted-foreground);
  text-decoration: line-through;
  opacity: 0.6;
}

.comparison-cell .check {
  color: var(--primary);
  margin-right: 0.5rem;
  font-weight: 700;
}

.comparison-cell .cross {
  color: oklch(0.6 0.2 25);
  margin-right: 0.5rem;
}

/* Comparison Table - 3 column variant (assets page) */
.comparison-row.header,
.comparison-row.header ~ .comparison-row {
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: none;
}

.comparison-row > div:not(.comparison-cell) {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child > div:not(.comparison-cell) {
  border-bottom: none;
}

.comparison-row.header > div {
  background: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.comparison-row.header > div:last-child {
  color: var(--primary);
}

.comparison-row > div:not(.comparison-cell):first-child {
  font-weight: 500;
}

.comparison-row > div:not(.comparison-cell):nth-child(2) {
  color: var(--muted-foreground);
}

.comparison-row > div:not(.comparison-cell):last-child {
  background: oklch(from var(--primary) l c h / 0.04);
}

.comparison-row .highlight {
  color: var(--primary);
  font-weight: 500;
}

/* Features Header */
.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.features-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* How it works */
.how-it-works {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.how-header {
  text-align: center;
  margin-bottom: 3rem;
}

.how-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.how-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 1rem;
}

.how-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.how-step p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Pricing */
.pricing {
  background: var(--background);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border-color: var(--primary);
  position: relative;
  transform: scale(1.05);
  box-shadow: 0 20px 40px -20px oklch(from var(--primary) l c h / 0.3);
}

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

.pricing-card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.pricing-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Pricing - alternate layout (assets page) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
  transform: scale(1.05);
  box-shadow: 0 20px 40px -20px oklch(from var(--primary) l c h / 0.3);
}

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

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-desc {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq {
  background: var(--muted);
  border-top: 1px solid var(--border);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* Tracker Demo */
.tracker-demo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.tracker-input-box {
  background: var(--muted);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.tracker-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.tracker-text {
  font-size: 0.9375rem;
  color: var(--foreground);
  font-style: italic;
}

.tracker-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tracker-results-box {
  background: var(--muted);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.tracker-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.tracker-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
}

/* Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.critical {
  background: oklch(0.65 0.25 25 / 0.15);
  color: oklch(0.55 0.22 25);
}

.badge.warning {
  background: oklch(0.85 0.15 80 / 0.15);
  color: oklch(0.65 0.18 80);
}

.badge.good {
  background: oklch(from var(--primary) l c h / 0.15);
  color: var(--primary);
}

/* Tracker Examples */
.tracker-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tracker-example-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.tracker-example-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tracker-example-card .tracker-tag {
  margin-bottom: 0.75rem;
  display: inline-block;
}

.tracker-example-card p {
  font-size: 0.9375rem;
  font-weight: 500;
  font-style: italic;
  color: var(--foreground);
  line-height: 1.5;
  margin: 0;
}

.tracker-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.tracker-tag.severity-high {
  background: oklch(0.65 0.25 25 / 0.15);
  color: oklch(0.55 0.22 25);
}

.tracker-tag.severity-medium {
  background: oklch(0.85 0.15 80 / 0.15);
  color: oklch(0.65 0.18 80);
}

/* Tracker Count */
.tracker-count {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: oklch(from var(--background) l c h / 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 99;
}

.mobile-cta .btn {
  width: 100%;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Nav scrolled state */
.nav.scrolled {
  background: oklch(from var(--background) l c h / 0.98);
  box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    margin: 0 auto;
    min-height: 480px;
  }

  .phone-container {
    width: 320px;
    height: 480px;
  }

  .iphone-frame {
    border-radius: 42px;
    padding: 4px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 30px 60px -15px rgba(0, 0, 0, 0.6);
  }

  .iphone-frame::before {
    top: 4px;
    width: 85px;
    height: 24px;
    border-radius: 14px;
  }

  .iphone-frame::after {
    top: 8px;
    width: 72px;
    height: 16px;
    border-radius: 10px;
  }

  .iphone-screen {
    width: 210px;
    height: 455px;
    border-radius: 38px;
  }

  .iphone-frame:first-child {
    left: 0;
    top: 30px;
  }

  .iphone-frame:last-child {
    right: 0;
    top: 0;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 40px 80px -15px rgba(0, 0, 0, 0.7),
      0 0 60px rgba(82, 196, 26, 0.12);
  }

  .hero-actions {
    justify-content: center;
  }

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

  .pricing-card-featured {
    transform: none;
  }

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

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

  .pricing-card.featured {
    transform: none;
  }

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

  .tracker-examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 0.8125rem;
  }

  .comparison-cell {
    padding: 0.75rem 1rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .capability-row:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }

  .hero {
    padding: 6rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 360px;
  }

  .phone-container {
    width: 240px;
    height: 360px;
  }

  .iphone-frame {
    border-radius: 32px;
    padding: 3px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 20px 40px -10px rgba(0, 0, 0, 0.5);
  }

  .iphone-frame::before {
    top: 3px;
    width: 60px;
    height: 18px;
    border-radius: 10px;
  }

  .iphone-frame::after {
    top: 6px;
    width: 50px;
    height: 12px;
    border-radius: 7px;
  }

  .iphone-screen {
    width: 155px;
    height: 336px;
    border-radius: 30px;
  }

  .iphone-frame:first-child {
    left: 0;
    top: 25px;
    transform: rotate(-5deg);
  }

  .iphone-frame:last-child {
    right: 0;
    top: 0;
    transform: rotate(2deg);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.15),
      0 25px 50px -10px rgba(0, 0, 0, 0.6),
      0 0 40px rgba(82, 196, 26, 0.1);
  }

  @keyframes floatBack {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-6px); }
  }

  @keyframes floatFront {
    0%, 100% { transform: rotate(2deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-8px); }
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-proof {
    flex-direction: column;
    gap: 0.75rem;
  }

  .social-proof-stats {
    gap: 2rem;
  }

  .social-proof-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .demo-visual {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .demo-arrow {
    transform: rotate(90deg);
  }

  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .comparison-row-header .comparison-cell:nth-child(3),
  .comparison-row .comparison-cell:nth-child(3) {
    display: none;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .how-steps::before {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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

  .tracker-examples-grid {
    grid-template-columns: 1fr;
  }

  .comparison-row.header ~ .comparison-row,
  .comparison-row.header {
    grid-template-columns: 1fr;
  }

  .comparison-row.header > div:first-child {
    display: none;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .integrations-logos {
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Pricing card full-width buttons */
.pricing-card .btn {
  width: 100%;
}
