/* ================================================================
   LUMEN MARKETING — Design System
   Swiss/International Typographic Style
   Deep Coral Brand Palette
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scrollbar-gutter: stable; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Selection ── */
::selection {
  background: var(--accent-light);
  color: var(--accent-dark);
}

/* ── Tokens ── */
:root {
  /* Color */
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --border: #E6E4DF;
  --border-light: #F0EDE8;
  --ink: #0F0F0F;
  --ink-2: #5E5E5E;
  --ink-3: #8A8A8A;
  --ink-4: #AAAAAA;
  --accent: #C85A54;
  --accent-light: #FAF2F1;
  --accent-dark: #8F2B29;
  --accent-deep: #6B2222;
  --accent-muted: #E0B8B5;
  --sage: #6B8F5E;
  --sage-light: #EDF5EB;
  --sage-dark: #3D6B35;
  --amber: #C9A84C;
  --amber-light: #F5F0E1;
  --amber-dark: #7A6A3A;
  --slate: #4A6FA5;
  --slate-light: #E8EDF5;
  --slate-dark: #2E4A6E;
  --teal: #2B6356;
  --teal-light: #E4F0EE;

  /* Typography */
  --font-display: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing */
  --container: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(48px, 6vw, 64px);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-lg: 0 2px 8px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.06);

  /* Shape */
  --radius: 0;
  --radius-sm: 0;
  --radius-pill: 0;
}

/* ── Base ── */
body {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: var(--section-pad) 0;
}

/* ── Typography ── */
.t-display {
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.t-h1 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.t-h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

.t-h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.t-body {
  font-size: clamp(16px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.t-small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.t-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.t-section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}

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

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

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

.btn-outline:hover {
  border-color: var(--ink-3);
  opacity: 1;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--ink-4);
}

.card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container);
  z-index: 100;
  height: 56px;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.nav.is-scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

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

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

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

.nav-links a:not(.btn) {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

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

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-mobile span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s;
}

/* ── Footer ── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  max-width: var(--container);
  margin: 0 auto;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 14px;
  color: var(--ink-3);
}

.footer-brand strong {
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 0.15s;
}

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

.footer-email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Utility ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.gap-56 { gap: 56px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── Feature Check List ── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--sage-dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Badges / Pills ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge-accent { background: var(--accent-light); color: var(--accent-dark); }
.badge-sage { background: var(--sage-light); color: var(--sage-dark); }
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }
.badge-slate { background: var(--slate-light); color: var(--slate-dark); }
.badge-teal { background: var(--teal-light); color: var(--teal); }
.badge-dark { background: #F0DCDA; color: var(--accent-deep); }

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ── Split Layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}

.split-55 {
  grid-template-columns: 1.15fr 0.85fr;
}

.split-content {
  display: flex;
  flex-direction: column;
}

/* ── Chat Widget Mockup ── */
.mock-widget {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mock-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
}

.mock-widget-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-widget-avatar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-widget-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.mock-widget-status {
  font-size: 12px;
  color: var(--sage);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.mock-widget-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.mock-widget-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-bubble {
  max-width: 88%;
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.mock-bubble-user {
  background: var(--border-light);
  color: var(--ink);
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  font-weight: 500;
}

.mock-bubble-bot {
  background: var(--accent-light);
  color: var(--ink);
  align-self: flex-start;
  border-radius: 14px 14px 14px 4px;
}

.mock-bubble-time {
  font-size: 10px;
  color: var(--ink-4);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.mock-widget-input {
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
}

.mock-input-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 5px 0 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.mock-input-field span {
  flex: 1;
}

.mock-input-send {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-input-send svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── FAQ Accordion ── */
.faq-accordion {
  border: 1px solid var(--border);
  margin-top: 32px;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-trigger:hover {
  background: var(--border-light);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  stroke: var(--ink-3);
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-accordion .faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.35s ease;
}

.faq-accordion .faq-item.is-open .faq-answer {
  max-height: 200px;
  opacity: 1;
  padding-bottom: 16px;
}

/* ── Dark Section ── */
.section-dark {
  background: var(--ink);
  color: var(--bg);
}

.section-dark .t-display,
.section-dark .t-h1,
.section-dark .t-h2,
.section-dark .t-h3 {
  color: #FFFFFF;
}

.section-dark .t-body,
.section-dark .t-small {
  color: rgba(255,255,255,0.65);
}

.section-dark .t-eyebrow,
.section-dark .t-label {
  color: rgba(255,255,255,0.4);
}

.section-dark .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

.section-dark .t-mono {
  color: var(--accent);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible {
  outline-offset: -2px;
}

/* ── Scroll Anchors ── */
section[id] {
  scroll-margin-top: 72px;
}

/* ── Hero Float ── */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.float-animation {
  animation: gentle-float 6s ease-in-out infinite;
  will-change: transform;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .float-animation {
    animation: none;
  }

  .faq-answer {
    transition: none;
  }

  .nav {
    transition: none;
  }

  .card {
    transition: none;
  }

  .nav-links a:not(.btn)::after {
    transition: none;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .split, .split-55 {
    gap: 40px;
  }

  .stats-bar {
    flex-wrap: wrap;
    gap: 24px 36px;
  }

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

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

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px var(--gutter);
    gap: 14px;
  }

  .split, .split-55 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .query-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-bar {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .tone-grid {
    grid-template-columns: 1fr !important;
  }

  .tone-divider {
    display: none !important;
  }

  .escalation-grid {
    grid-template-columns: 1fr !important;
  }

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

  .tech-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
}
