/* SearchPanel marketing site — colors from fe/src/index.css (:root light theme) */

:root {
  /* Synced with fe/src/index.css */
  --background: oklch(0.9818 0.0054 95.0986);
  --foreground: oklch(0.3438 0.0269 95.7226);
  --card: oklch(0.9818 0.0054 95.0986);
  --card-foreground: oklch(0.1908 0.002 106.5859);
  --primary: oklch(0.6171 0.1375 39.0427);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.9245 0.0138 92.9892);
  --secondary-foreground: oklch(0.4334 0.0177 98.6048);
  --muted: oklch(0.9341 0.0153 90.239);
  --muted-foreground: oklch(0.6059 0.0075 97.4233);
  --accent: oklch(0.9245 0.0138 92.9892);
  --accent-foreground: oklch(0.2671 0.0196 98.939);
  --border: oklch(0.8847 0.0069 97.3627);
  --input: oklch(0.7621 0.0156 98.3528);
  --ring: oklch(0.6171 0.1375 39.0427);
  --radius: 0.5rem;

  --max-width: 1120px;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.1), 0 1px 2px -1px hsl(0 0% 0% / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: oklch(0.55 0.14 39);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  background: color-mix(in oklch, var(--background) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link img {
  height: 2rem;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost {
  color: var(--foreground);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

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

.btn-primary:hover {
  background: oklch(0.55 0.14 39);
  border-color: oklch(0.55 0.14 39);
  color: var(--primary-foreground);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: var(--section-pad) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero .lead {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stats */
.stats {
  padding: 2rem 0 3rem;
}

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

.stat-card {
  padding: 1.25rem 1.5rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Audit CTA */
.audit {
  padding: var(--section-pad) 0;
  background: var(--muted);
  border-block: 1px solid var(--border);
}

.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.audit-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.audit-label::before {
  content: "";
  width: 3px;
  height: 1rem;
  background: var(--primary);
  border-radius: 1px;
}

.audit-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.audit-copy p {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 28rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--foreground);
}

.checklist li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 600;
}

.audit-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audit-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audit-form input {
  flex: 1;
  min-width: 12rem;
  padding: 0.875rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: 9999px;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.audit-form input::placeholder {
  color: var(--muted-foreground);
}

.audit-form input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--ring) 25%, transparent);
}

.audit-form button {
  padding: 0.875rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
  background: var(--primary);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.audit-form button:hover {
  background: oklch(0.55 0.14 39);
}

.audit-form button::after {
  content: " ↗";
}

.audit-trust {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section .section-lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--muted-foreground);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* Score bands */
.score-bands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.score-band {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.score-band .range {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.score-band .label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.score-band p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

.subsection-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.subsection-lead {
  margin: 0 0 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  max-width: 40rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.testimonial-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-sm);
}

.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  line-height: 1.55;
}

.testimonial-card cite {
  display: block;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-top: 0.15rem;
}

/* Comparison table */
.comparison-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  color: var(--muted-foreground);
  font-weight: 500;
}

.comparison-table td:first-child {
  color: var(--muted-foreground);
}

.comparison-table .highlight {
  color: var(--foreground);
  font-weight: 500;
}

/* Customer impact — dark showcase (fe .dark tokens) */
.impact-section {
  --impact-bg: oklch(0.22 0.004 106);
  --impact-surface: oklch(0.2679 0.0036 106.6427);
  --impact-fg: oklch(0.9818 0.0054 95.0986);
  --impact-muted: oklch(0.65 0.012 97);
  --impact-border: oklch(0.36 0.01 107 / 0.55);
  --impact-glow: oklch(0.6724 0.1308 38.7559 / 0.15);
}

.impact-showcase {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--impact-bg);
  border-radius: calc(var(--radius) + 12px);
}

.impact-quote-card {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--impact-surface);
  border: 1px solid var(--impact-border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.04) inset,
    0 24px 48px -12px oklch(0 0 0 / 0.45);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.impact-quote-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.6724 0.1308 38.7559 / 0.35);
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.06) inset,
    0 28px 56px -12px oklch(0 0 0 / 0.5),
    0 0 40px var(--impact-glow);
}

.impact-quote-card blockquote {
  margin: 0 0 2.5rem;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: normal;
  color: var(--impact-fg);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.impact-quote-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.impact-author strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--impact-fg);
  margin-bottom: 0.2rem;
}

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

.impact-brand {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--impact-fg);
  opacity: 0.95;
}

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

.impact-metric-card {
  padding: 1.75rem 1.5rem;
  background: var(--impact-surface);
  border: 1px solid var(--impact-border);
  border-radius: calc(var(--radius) + 4px);
  text-align: left;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.impact-metric-card:hover {
  transform: translateY(-3px);
  border-color: oklch(0.6724 0.1308 38.7559 / 0.3);
  box-shadow: 0 16px 32px -8px oklch(0 0 0 / 0.4);
}

.impact-metric-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--impact-fg);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.impact-metric-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--impact-muted);
  letter-spacing: 0.01em;
}

.impact-section .section-label,
.impact-section h2 {
  color: var(--foreground);
}

/* Final CTA */
.final-cta {
  padding: var(--section-pad) 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.final-cta p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

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

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

.footer-bottom a {
  color: var(--muted-foreground);
}

/* ——— Luxury motion & effects ——— */

.site-header {
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px -8px oklch(0 0 0 / 0.08);
}

.hero-stagger .reveal-item {
  opacity: 0;
  transform: translateY(20px);
}

.hero-stagger.is-visible .reveal-item {
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--reveal-delay, 0ms) + 80ms);
}

.hero-stagger .reveal-item:nth-child(1) {
  --reveal-delay: 0ms;
}
.hero-stagger .reveal-item:nth-child(2) {
  --reveal-delay: 100ms;
}
.hero-stagger .reveal-item:nth-child(3) {
  --reveal-delay: 200ms;
}

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible .reveal-item,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lift-card {
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.lift-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--shadow-sm),
    0 20px 40px -16px oklch(0.6171 0.1375 39.0427 / 0.12);
  border-color: color-mix(in oklch, var(--primary) 25%, var(--border));
}

.stat-card strong,
.impact-metric-value {
  font-variant-numeric: tabular-nums;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    box-shadow 0.35s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px oklch(0.6171 0.1375 39.0427 / 0.45);
}

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

.audit-form input {
  transition:
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.audit-form input:focus {
  transform: translateY(-1px);
}

.audit-form button {
  transition:
    background 0.2s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.audit-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px oklch(0.6171 0.1375 39.0427 / 0.4);
}

/* Subtle ambient gradient on hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    oklch(0.6171 0.1375 39.0427 / 0.08),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .hero-stagger .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .lift-card:hover,
  .impact-quote-card:hover,
  .impact-metric-card:hover,
  .btn-primary:hover,
  .audit-form input:focus,
  .audit-form button:hover {
    transform: none;
  }
}

.feature-grid .reveal-item:nth-child(1) { --reveal-delay: 0ms; }
.feature-grid .reveal-item:nth-child(2) { --reveal-delay: 60ms; }
.feature-grid .reveal-item:nth-child(3) { --reveal-delay: 120ms; }
.feature-grid .reveal-item:nth-child(4) { --reveal-delay: 180ms; }
.feature-grid .reveal-item:nth-child(5) { --reveal-delay: 240ms; }

.testimonials-grid .reveal-item:nth-child(odd) { --reveal-delay: 0ms; }
.testimonials-grid .reveal-item:nth-child(even) { --reveal-delay: 80ms; }

/* Responsive */
@media (max-width: 900px) {
  .impact-metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .audit-copy p {
    max-width: none;
  }
}

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

  .audit-form {
    flex-direction: column;
  }

  .audit-form input,
  .audit-form button {
    width: 100%;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}
