:root {
  /* Colors - Cursor/Anthropic Light Theme */
  --bg-primary: #F8F7F4;
  /* Warm off-white (Cursor-like) */
  --bg-secondary: #EFEDE8;
  /* Soft beige/gray */
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1A1A1A;
  /* Charcoal, not pure black */
  --text-secondary: #6B6B6B;
  --text-muted: #9CA3AF;

  --accent-green: #10B981;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  --gradient-start: #10B981;
  --gradient-end: #06B6D4;
  --gradient-glow: rgba(16, 185, 129, 0.2);

  /* App Colors (from Screenshots) */
  --app-bg: #121212;
  --app-card: #1E1E1E;
  --app-accent-blue: #3B82F6;
  /* API Badge */
  --app-accent-green: #10B981;
  /* FLOW Badge */
  --app-accent-purple: #8B5CF6;
  /* AUTH Badge */
  --app-accent-orange: #F59E0B;
  /* DB Badge */
  --app-text: #E5E5E5;
  --app-text-muted: #A3A3A3;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 800px;
  --hero-max: 1440px;
  --section-spacing: 140px;
  --section-spacing-mobile: 80px;

  /* Design Tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-window: 0 20px 50px -10px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);

  --blur: 12px;
  --ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-green);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Typography - Editorial style */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #000;
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-green);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent-green);
}

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

.text-center .section-kicker {
  justify-content: center;
}

.text-center .section-kicker::before {
  display: none;
}

/* Nav - Glass effect Light */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 247, 244, 0.8);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--hero-max);
  margin: 0 auto;
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 20px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: #000;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

@media (max-width: 480px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons - Light Theme */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.2);
  /* Slightly gray/lighter on hover */
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #F4F4F5;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-outline {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* Accessibility: Focus Styles */
:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Section Common */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-spacing) 48px;
}

/* Hero - Light & Centered */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 48px 100px;
  max-width: var(--hero-max);
  margin: 0 auto;
}

.hero-content {
  max-width: 900px;
  margin-bottom: 60px;
}

.hero h1 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.access-card .btn {
  margin: 20px 0;
  display: inline-block;
}

.card-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

.cta-microcopy {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-visual {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* Voice Demo Window - macOS Style */
.demo-window {
  width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.window-header {
  height: 48px;
  background: #FBFBFA;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
}

.window-dots {
  position: absolute;
  left: 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #FF5F57;
  border: 1px solid #E0443E;
}

.dot.yellow {
  background: #FEBC2E;
  border: 1px solid #D89E24;
}

.dot.green {
  background: #28C840;
  border: 1px solid #1AAB29;
}

.window-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-canvas {
  height: 500px;
  position: relative;
  background:
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Voice Bar overlay */
.voice-bar {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    bottom: 40px;
  }
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.bar {
  width: 3px;
  background: var(--accent-green);
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

.bar:nth-child(1) {
  height: 10px;
  animation-delay: 0.1s;
}

.bar:nth-child(2) {
  height: 16px;
  animation-delay: 0.2s;
}

.bar:nth-child(3) {
  height: 20px;
  animation-delay: 0.3s;
}

.bar:nth-child(4) {
  height: 14px;
  animation-delay: 0.2s;
}

.bar:nth-child(5) {
  height: 8px;
  animation-delay: 0.1s;
}

@keyframes wave {

  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 20px;
  }
}

.voice-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--accent-green);
  width: 0;
  animation: typing 2s steps(40) 1s forwards, blink 0.5s step-end infinite alternate;
}

@keyframes typing {
  to {
    width: 100%;
    border-color: transparent;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Demo Tiles Animation - Aligned with App Screenshots */
.mock-tile {
  position: absolute;
  background: var(--app-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 180px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--app-text);
}

.mock-tile.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tile-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #F4F4F5;
  color: #52525B;
  text-transform: uppercase;
}

.tile-badge.api {
  color: var(--app-accent-blue);
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tile-badge.flow {
  color: var(--app-accent-green);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tile-badge.ui {
  color: var(--app-accent-purple);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.tile-badge.db {
  color: var(--app-accent-orange);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E4E4E7;
}

.tile-dot.active {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.tile-body {
  font-size: 14px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 8px;
}

.tile-footer {
  font-size: 9px;
  font-weight: 800;
  color: var(--app-text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tile-footer::before {
  content: "🔗";
  font-size: 10px;
}

/* Connection Lines */
.demo-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.conn-path {
  fill: none;
  stroke: #E4E4E7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1s ease 0.5s;
}

.conn-path.visible {
  stroke: #10B981;
  /* App Canvas Teal/Green */
  stroke-dashoffset: 0;
  opacity: 0.6;
}

/* Social Proof Redesign */
.social-proof {
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.social-proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.proof-card.main {
  background: #000;
  border-color: rgba(16, 185, 129, 0.2);
  text-align: center;
  padding: 48px;
  background-image: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent);
}

.proof-card.main h2 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
}

.proof-card.main p {
  color: #A1A1AA;
}

.proof-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.proof-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.proof-icon svg {
  width: 24px;
  height: 24px;
}

.proof-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.proof-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

  .proof-card.main {
    order: -1;
  }
}

/* How It Works & Cards */
.step,
.use-case-card,
.why-item,
.trust-card,
.access-card,
details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  padding: 40px;
  /* Increased padding */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 3D Container Context */
.use-cases-grid,
.steps,
.comparison-grid,
.trust-grid {
  perspective: 1000px;
}

.step:hover,
.use-case-card:hover,
.why-item:hover,
.trust-card:hover,
.access-card:hover,
details:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-green);
  z-index: 2;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 12px;
  vertical-align: middle;
}

.step h3,
.use-case-card h3,
.trust-card h3,
.access-card h3 {
  color: #111;
}

/* Feature Cards - Icon Scale Fix */
.step svg,
.use-case-card svg,
.why-item svg,
.trust-card svg,
.access-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  color: var(--accent-green);
}

/* Features grids matching styles */
.how-it-works .steps,
.use-cases-grid,
.trust-grid,
.comparison-grid {
  display: grid;
  gap: 24px;
}

.how-it-works .steps,
.use-cases-grid,
.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.comparison-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Access Cards */
.access-options {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.access-card.highlighted {
  border-color: var(--accent-green);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
  position: relative;
  padding-top: 24px;
}

.access-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
  /* Allow wrapping on small cards */
}

.access-card h3 {
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Footer & FAQ */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}

/* App Preview / iPhone Frames */
.app-preview {
  padding-top: 60px;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

main {
  padding-top: 100px;
}

.iphone-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 80px;
  perspective: 1000px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.iphone-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.iphone-screen {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19.5;
  background: #000;
  border: 10px solid #1A1A1A;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
  position: relative;
}

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

.iphone-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Dictation Mode Styling */
.dictation-mode {
  padding-bottom: var(--section-spacing);
}

.dictation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px;
  /* Increased padding */
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dictation-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.dictation-content h2 {
  margin-bottom: 20px;
}

.dictation-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.ide-support {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ide-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #F4F4F5;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.ide-item.muted {
  opacity: 0.5;
  font-weight: 500;
}

.dictation-visual {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  position: relative;
}

.voice-wave-container {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.wave {
  width: 12px;
  height: 40px;
  background: var(--accent-green);
  border-radius: 99px;
  opacity: 0.8;
  animation: wave-pulse 1.2s infinite ease-in-out;
}

.wave:nth-child(2) {
  height: 80px;
  animation-delay: 0.2s;
}

.wave:nth-child(3) {
  height: 50px;
  animation-delay: 0.4s;
}

@keyframes wave-pulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

@media (max-width: 968px) {
  .dictation-card {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 40px;
  }

  .dictation-visual {
    height: 200px;
    order: -1;
  }
}

.faq-content {
  color: var(--text-secondary);
}

summary {
  padding: 32px;
  /* Increased padding */
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 18px;
}

/* Media Queries */
@media (max-width: 1400px) {
  .iphone-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1024px) {

  .how-it-works .steps,
  .use-cases-grid,
  .trust-grid,
  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iphone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .how-it-works .steps,
  .use-cases-grid,
  .trust-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .iphone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .iphone-screen {
    max-width: 180px;
    border-width: 8px;
    border-radius: 24px;
  }

  .iphone-label {
    font-size: 12px;
  }

  .access-options {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 42px;
  }
}

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

  .iphone-screen {
    max-width: 220px;
  }
}