@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500&family=Share+Tech+Mono&display=swap');

:root {
  /* Colors */
  --primary: #17171c;
  --cohere-black: #000000;
  --ink: #212121;
  --deep-green: #003c33;
  --dark-navy: #071829;
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --pale-blue: #f1f5ff;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --card-border: #f2f2f2;
  --muted: #6b6b77;
  --slate: #555561;
  --slate-dark-bg: #b3b3c2;
  --body-muted: #616161;
  --action-blue: #1863dc;
  --focus-blue: #4c6ee6;
  --coral: #be391e;
  --red-dark-bg: #fca5a5;
  --coral-soft: #ffad9b;
  --form-focus: #9b60aa;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --error: #b30000;

  /* Rounded */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 32px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xxs: 2px;
  --space-xs: 6px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-section: 80px;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--focus-blue);
  outline-offset: 3px;
}

body {
  font-family: var(--font-body);
  background-color: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Typography Utility Classes */
/* ─────────────────────────────────────────
   Type System
   Space Grotesk → all headings / display
   Inter         → all body / UI / captions
   Share Tech Mono → labels / badges
───────────────────────────────────────── */

.hero-display {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.product-display {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.section-display {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.card-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.body-large {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.body-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.button-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.71;
  letter-spacing: 0;
}

.caption-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.micro-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}


/* Layout Elements */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-section) 0;
  position: relative;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--cohere-black);
  color: var(--on-dark);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 100;
}

.announcement-content {
  text-align: center;
  width: 100%;
}

.announcement-content a {
  color: var(--on-dark);
  text-decoration: underline;
  margin-left: var(--space-xs);
  transition: opacity 0.2s ease;
}

.announcement-content a:hover {
  opacity: 0.8;
}

.announcement-close {
  position: absolute;
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--on-dark);
  cursor: pointer;
  padding: var(--space-xxs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.announcement-close:hover {
  opacity: 0.7;
}

/* Navigation */
.navbar {
  border-bottom: 1px solid var(--hairline);
  background-color: var(--canvas);
  position: sticky;
  top: 0;
  z-index: 90;
  padding: var(--space-md) 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

.nav-brand img {
  height: 32px;
  width: auto;
  border-radius: var(--radius-xs);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xxl);
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--action-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--cohere-black);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: var(--radius-xs);
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: var(--action-blue);
}

.btn-pill-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-pill-outline:hover {
  background-color: var(--primary);
  color: var(--on-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-color: var(--canvas);
  overflow: hidden;
  padding: 40px 0 0;
}

/* Stacked hero: centered text on top, full-width video card below */
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 760px;
}

.hero-content .mono-label {
  color: var(--coral);
}

.hero-content h1 {
  margin: 0;
  color: var(--primary);
}

.hero-subtitle {
  color: var(--body-muted);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--space-md);
}

.hero-photo-card {
  width: 100%;
  max-width: 1040px;
  background-color: var(--canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-md) var(--space-md) 0;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.07);
}

/* Video caption below the card */
.video-caption {
  text-align: center;
  color: var(--muted);
  padding: var(--space-sm) 0 var(--space-xl);
  letter-spacing: 0.01em;
}

.video-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  position: relative;
  background-color: #000000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* ── Unified video controls bar ── */
.video-controls-bar {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 17, 22, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Show controls on hover or when video is paused */
.video-container:hover .video-controls-bar,
.video-container.paused .video-controls-bar,
.video-controls-bar.always-visible {
  opacity: 1;
}

/* Generic icon button in the controls bar */
.vc-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.vc-btn:hover {
  background: rgba(255,255,255,0.12);
}

.vc-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--on-dark);
  pointer-events: none;
}

/* Seek bar */
.video-seek-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.video-seek-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: #ffffff;
}

.video-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Mute button (inherits .vc-btn) */
.audio-mute-btn {
  /* no extra styles needed — vc-btn covers it */
}

/* Volume slider wrapper — hidden until unmuted */
.audio-volume-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.audio-volume-wrap.visible {
  width: 72px;
  opacity: 1;
  pointer-events: auto;
}

.audio-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: #ffffff;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

/* Unmute nudge — pulsing ring on play/pause btn when video is muted+autoplaying */
.vc-btn.nudge {
  animation: nudge-pulse 2s ease-in-out 2s 3;
}

@keyframes nudge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0); }
  50% { box-shadow: 0 0 0 5px rgba(255,255,255,0.2); }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 23, 28, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--canvas);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 3px; /* optical centering — play triangle is visually asymmetric */
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

/* Trust Logos */
.trust-logo-strip {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-xl) 0;
  text-align: center;
}

.trust-logo-strip .caption-text {
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.logos-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xxl);
}

.trust-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--muted);
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
  user-select: none;
}

.trust-logo:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}

/* Three Pillars Section */
.pillars {
  background-color: var(--canvas);
}

.section-intro {
  max-width: 700px;
  margin-bottom: var(--space-xxl);
}

.section-intro .mono-label {
  color: var(--coral);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
}

.pillar-card {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--coral);
}

.pillar-card h3 {
  color: var(--primary);
}

.pillar-card p {
  color: var(--body-muted);
}

/* Dark Feature Band */
.dark-feature-band {
  background-color: var(--deep-green);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-section) var(--space-xxl);
  margin: 0 var(--space-xl);
}

.dark-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xxl);
  align-items: center;
}

.dark-feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dark-feature-content .mono-label {
  color: var(--coral-soft);
}

.dark-feature-content h2 {
  color: var(--on-dark);
}

.dark-feature-content p {
  color: rgba(255, 255, 255, 0.8);
}

/* Agent Console Card */
.agent-console-card {
  background-color: var(--primary);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  font-family: var(--font-body);
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
}

.console-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: #10b981;
}

.console-badge {
  background-color: var(--deep-green);
  color: var(--coral-soft);
  border: 1px solid var(--coral-soft);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.console-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.console-prompt-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.console-prompt-header {
  color: var(--slate-dark-bg);
  margin-bottom: var(--space-xs);
}

.console-prompt-text {
  font-family: var(--font-mono);
  font-size: 14px;
}

.console-diff-block {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.diff-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.diff-status {
  color: var(--coral-soft);
}

.diff-content {
  font-size: 14px;
  line-height: 1.6;
}

.diff-del {
  background-color: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  text-decoration: line-through;
  padding: 0 4px;
}

.diff-ins {
  background-color: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  padding: 0 4px;
}

.console-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.btn-console-accept {
  background-color: #10b981;
  color: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-console-accept:hover {
  opacity: 0.9;
}

.btn-console-reject {
  background-color: transparent;
  color: var(--red-dark-bg);
  border: 1px solid var(--red-dark-bg);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-console-reject:hover {
  background-color: var(--red-dark-bg);
  color: var(--primary);
}

/* Engines (Packaging) Section */
.engines {
  background-color: var(--canvas);
}

.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xxl);
}

.product-card {
  background-color: var(--soft-stone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-xxl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.product-card-top .mono-label {
  color: var(--slate);
}

.product-card h3 {
  color: var(--primary);
}

.product-card-price {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  margin: var(--space-md) 0;
}

.product-card-divider {
  height: 1px;
  background-color: var(--hairline);
  margin: var(--space-lg) 0;
}

.product-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.product-card-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--body-muted);
}

.product-card-features svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: var(--deep-green);
  margin-top: 3px;
}

/* Against Copilot Section */
.copilot-section {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.copilot-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  margin-top: var(--space-xxl);
}

.copilot-card {
  padding: var(--space-xxl);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid var(--border-light);
}

.copilot-card.competitor {
  background-color: #fafafa;
}

.copilot-card.stylify {
  background-color: var(--pale-green);
  border-color: #c7ecc0;
}

.copilot-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.copilot-card.competitor .copilot-card-badge {
  background-color: var(--border-light);
  color: var(--slate);
}

.copilot-card.stylify .copilot-card-badge {
  background-color: var(--deep-green);
  color: var(--on-dark);
}

.copilot-card h3 {
  color: var(--primary);
}

.copilot-card p {
  color: var(--body-muted);
}

.copilot-card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.copilot-card-points li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.copilot-card-points svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.copilot-card.competitor svg {
  fill: var(--error);
}

.copilot-card.stylify svg {
  fill: var(--deep-green);
}

/* Call to Action & Waitlist Section */
.waitlist-section {
  background-color: var(--soft-stone);
  text-align: center;
  padding: var(--space-section) 0;
}

.waitlist-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
}

.waitlist-container h2 {
  color: var(--primary);
}

.waitlist-container p {
  color: var(--body-muted);
  margin-bottom: var(--space-md);
}

/* Contact Form Card (Waitlist Form) */
.contact-form-card {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  width: 100%;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-group.last {
  margin-bottom: var(--space-xl);
}

.form-group label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-group input,
.form-group select {
  padding: var(--space-md);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: var(--canvas);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--form-focus);
  box-shadow: 0 0 0 3px rgba(155, 96, 170, 0.15);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375758a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px; /* prevent text from running under the arrow */
  cursor: pointer;
}

.form-error-msg {
  color: var(--error);
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-submit-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.btn-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
}

.btn-submit svg {
  transition: transform 0.2s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.form-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) 0;
  gap: var(--space-md);
}

.form-success-state svg {
  width: 64px;
  height: 64px;
  fill: var(--deep-green);
}

/* Waitlist Modal (for sticky CTA) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 23, 28, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background-color: var(--canvas);
  border-radius: var(--radius-lg);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: var(--space-xl) var(--space-xl) 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate);
  padding: 4px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--soft-stone);
  color: var(--ink);
}

.modal-body {
  padding: var(--space-xl);
}

/* FAQ Section */
.faq-section {
  background-color: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xxl);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: var(--space-lg);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  padding: var(--space-xs) 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--body-muted);
  font-size: 16px;
  line-height: 1.6;
}

.faq-answer p {
  padding-top: var(--space-sm);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary);
  transition: transform 0.3s ease;
}

/* horizontal line */
.faq-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}

/* vertical line */
.faq-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-icon::after {
  transform: scale(0);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--on-dark);
  padding: var(--space-section) 0 var(--space-xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-brand .nav-brand {
  color: var(--on-dark);
}

.footer-brand p {
  color: var(--slate-dark-bg);
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-links h4 {
  color: var(--on-dark);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--slate-dark-bg);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-newsletter .mono-label {
  color: var(--coral-soft);
}

.footer-newsletter h4 {
  color: var(--on-dark);
}

.footer-newsletter p {
  color: var(--slate-dark-bg);
}

.newsletter-form {
  display: flex;
  position: relative;
  width: 100%;
}

.newsletter-input {
  width: 100%;
  padding: var(--space-md) 48px var(--space-md) var(--space-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 14px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--coral-soft);
}

.newsletter-submit {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-submit svg {
  fill: var(--on-dark);
  transition: transform 0.2s ease;
}

.newsletter-submit:hover svg {
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-dark-bg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .dark-feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .footer-newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .hero-stack {
    gap: 36px;
  }

  .hero-photo-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: var(--space-xl) var(--space-lg);
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .nav-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

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

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

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

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

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

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-newsletter {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* Card Hover Enhancements & Transitions */
.pillar-card,
.product-card,
.copilot-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--coral);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.copilot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

/* Honeypot anti-spam field — hidden from humans, filled by bots.
   Kept off-screen (not display:none) so bots that skip hidden fields still fill it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
