/* oMNI Chat marketing site — light theme, orange accent */

:root {
  --ink: #1c1c1e;
  --charcoal: #2d2a26;
  --cream: #faf7f2;
  --white: #ffffff;
  --orange: #e8622a;
  --orange-dim: #d4541f;
  --orange-light: rgba(232, 98, 42, 0.12);
  --orange-glow: rgba(232, 98, 42, 0.08);
  --code: #2d2a26;
  --text-muted: #6b6b70;
  --border: rgba(28, 28, 30, 0.08);
  --border-strong: rgba(28, 28, 30, 0.14);
  --shadow-sm: 0 2px 12px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 8px 32px rgba(28, 28, 30, 0.08);

  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;

  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 4rem;
  --container: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange-dim);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange);
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-sm);
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-brand {
  color: var(--orange);
}

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

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.nav-source {
  padding: 0.4rem 0.9rem;
  background: var(--orange);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
}

.nav-source:hover {
  background: var(--orange-dim);
  color: var(--white) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 2px 8px var(--orange-glow);
}

.btn-primary:hover {
  background: var(--orange-dim);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1.5px var(--orange);
  color: var(--ink);
}

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

/* Hero */
.hero {
  padding: var(--space-lg) 0 var(--space-2xl);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--orange-glow), transparent),
    var(--cream);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 var(--space-sm);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-sm);
}

.hero-brand {
  color: var(--orange);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto;
  line-height: 1.55;
}

.hero-visual {
  margin: 0;
  width: min(100%, 56rem);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 576;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0s linear 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hero-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: var(--space-md);
}

.hero-carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border-strong);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero-carousel-dot:hover {
  background: var(--text-muted);
  transform: scale(1.12);
}

.hero-carousel-dot.active {
  width: 1.8rem;
  background: var(--orange);
}

.hero-carousel-dot:focus-visible {
  outline: 3px solid rgba(232, 98, 42, 0.35);
  outline-offset: 3px;
}

.hero-carousel-footer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: var(--space-xs) 0 0;
}

.reduce-motion .hero-slide,
.reduce-motion .hero-carousel-dot {
  transition: none;
}

/* Sections */
.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.section-title-sm {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-lead {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 var(--space-lg);
}

.why-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 52ch;
  margin: 0.25rem 0 0.6rem;
  line-height: 1.35;
  font-weight: 500;
}

.why-lead p {
  margin: 0 0 0.1rem;
}

.why-lead p:last-child {
  font-weight: 700;
  color: var(--orange-dim);
}

/* Pitch */
.section-pitch {
  background: var(--white);
  border-block: 1px solid var(--border);
}

.pitch-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .pitch-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.pitch-list li {
  display: flex;
  gap: var(--space-sm);
}

.pitch-marker {
  flex-shrink: 0;
  width: 3px;
  margin-top: 0.25rem;
  background: var(--orange);
  border-radius: 2px;
  align-self: stretch;
  min-height: 3rem;
}

.pitch-list strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 0.35rem;
}

.pitch-list p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Pillars */
.section-pillars {
  background: var(--cream);
}

.pillar-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pillar-card:hover {
  border-color: rgba(232, 98, 42, 0.25);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  color: var(--orange);
  margin-bottom: var(--space-sm);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Features */
.feature-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 36rem) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: rgba(232, 98, 42, 0.3);
  box-shadow: var(--shadow-sm);
}

.feature-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--space-xs);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

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

.features-more {
  margin-top: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.features-more a {
  font-weight: 600;
}

/* Providers */
.section-providers {
  padding: var(--space-lg) 0;
  background: var(--white);
  border-block: 1px solid var(--border);
}

.provider-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
}

.provider-strip li {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.015);
  transition: all 0.15s ease;
}

.provider-strip li:hover {
  background: var(--white);
  border-color: var(--orange-dim);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.provider-strip li a {
  color: inherit;
  text-decoration: none;
}

.provider-strip li a:hover {
  color: inherit;
}

.provider-strip li:last-child {
  color: var(--orange-dim);
  border-color: rgba(232, 98, 42, 0.3);
  border-style: dashed;
}

.provider-strip li:last-child:hover {
  border-color: var(--orange-dim);
  color: var(--orange-dim);
}

/* Install */
.section-install {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, var(--orange-glow), transparent),
    var(--cream);
}

.install-panels {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 48rem) {
  .install-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}

.install-panel {
  background: var(--code);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.install-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.install-panel-header h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
}

.copy-btn {
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.copy-btn.is-copied {
  background: var(--orange);
  border-color: var(--orange);
}

.code-block {
  margin: 0;
  padding: var(--space-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #e8e4df;
  tab-size: 2;
}

.code-block code {
  white-space: pre;
}

.install-note {
  margin: 0;
  padding: var(--space-xs) var(--space-md) var(--space-md);
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.5);
}

.install-note code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(250, 247, 242, 0.75);
}

.install-footer {
  margin-top: var(--space-lg);
  text-align: center;
}

.install-footer p {
  margin: 0;
  color: var(--text-muted);
}

.install-footer code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: var(--orange-light);
  border-radius: 4px;
  color: var(--orange-dim);
}

/* Friendlier install requirements & success steps */
.install-req {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.install-req h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.install-req ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.install-req p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.install-success {
  margin-top: var(--space-sm);
}

.install-success h3 {
  font-size: 1rem;
  margin: 0.75rem 0 0.35rem;
}

.install-success ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Local vs frontier comparison — visual, scannable, not bland */
.comparison {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.35rem 0.15rem;
  box-shadow: var(--shadow-sm);
  margin: 0.6rem 0 0.4rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.4;
}

.comparison-table th {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: left;
  padding: 0.55rem 0.7rem 0.5rem;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

.comparison-table th.col-local {
  color: #166534;
  font-weight: 700;
}

.comparison-table td {
  padding: 0.65rem 0.7rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 37%;
  padding-right: 0.5rem;
}

.comparison-table .col-local {
  background: #f0fdf5;
  width: 32%;
}

.comparison-table .val {
  display: inline-block;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), inset 0 0 0 1.5px #166534;
  color: #166534;
  font-size: 0.9rem;
  line-height: 1;
}

.comparison-table .val.muted {
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.1rem 0.1rem;
}

.comparison-table .note {
  display: block;
  font-size: 0.73rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.15;
}

.comparison-caption {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0.6rem 0.5rem 0.2rem;
  line-height: 1.4;
}

/* Mobile: horizontal scroll + slightly larger touch targets */
@media (max-width: 36rem) {
  .comparison {
    padding: 0.4rem 0.15rem 0.1rem;
    margin: 0.5rem -0.15rem 0.3rem;
  }
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.92rem;
  }
  .comparison-table td,
  .comparison-table th {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .comparison-table th {
    font-size: 0.9rem;
  }
  .comparison-table .val {
    font-size: 0.85rem;
    padding: 0.18rem 0.55rem;
  }
  .comparison-table .note {
    font-size: 0.7rem;
  }
}

/* CTA */
.section-cta {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
}

.section-cta .section-title {
  color: var(--cream);
}

.cta-inner p {
  color: rgba(250, 247, 242, 0.7);
  max-width: 40ch;
  margin: 0 auto var(--space-lg);
}

/* Footer */
.site-footer {
  padding: var(--space-lg) 0;
  background: var(--charcoal);
  color: rgba(250, 247, 242, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: var(--space-md);
}

.site-footer a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
}

/* Mobile nav */
@media (max-width: 36rem) {
  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a[data-nav="why"],
  .site-nav a[data-nav="features"] {
    display: none;
  }
}
