:root {
  --bg: #07111f;
  --bg-soft: #0d1a2e;
  --panel: rgba(14, 24, 42, 0.82);
  --panel-strong: #101d33;
  --panel-light: rgba(255, 255, 255, 0.05);
  --surface: #f6f8fc;
  --surface-card: rgba(255, 255, 255, 0.04);
  --text: #e8eef9;
  --text-soft: #aab7d0;
  --text-dark: #081221;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --topbar-bg: rgba(8, 17, 31, 0.68);
  --alt-surface-start: rgba(18, 29, 50, 0.98);
  --alt-surface-end: rgba(13, 24, 42, 0.92);
  --mobile-menu-bg: #07111f;
  --modal-bg: #091524;
  --chatbot-panel-bg: rgba(9, 20, 36, 0.98);
  --surface-muted: rgba(255, 255, 255, 0.04);
  --chat-user-text: #f9e2ad;
  --gold: #d1a954;
  --gold-soft: rgba(209, 169, 84, 0.16);
  --green: #37c48c;
  --red: #f06e6e;
  --shadow: 0 24px 80px rgba(2, 7, 18, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --chatbot-bar-bg: rgba(7, 17, 31, 0.96);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #ffffff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --panel-light: rgba(0, 0, 0, 0.03);
  --surface: #f1f5f9;
  --surface-card: rgba(0, 0, 0, 0.03);
  --text: #0f172a;
  --text-soft: #475569;
  --text-dark: #0f172a;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.15);
  --topbar-bg: rgba(255, 255, 255, 0.86);
  --alt-surface-start: rgba(247, 250, 255, 0.98);
  --alt-surface-end: rgba(240, 245, 252, 0.94);
  --mobile-menu-bg: #ffffff;
  --chatbot-bar-bg: rgba(255, 255, 255, 0.96);
  --modal-bg: #ffffff;
  --chatbot-panel-bg: rgba(255, 255, 255, 0.98);
  --surface-muted: rgba(15, 23, 42, 0.04);
  --chat-user-text: #1f2937;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(209, 169, 84, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(68, 122, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #091523 100%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(209, 169, 84, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(68, 122, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.site-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-label {
  display: block;
  font-weight: 800;
  background: linear-gradient(135deg, #f1cd83, var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  display: block;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 2px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.primary-btn,
.ghost-btn {
  padding: 13px 20px;
  min-height: 48px;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, #f1cd83, var(--gold));
  color: #101010;
}

.ghost-btn {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--text);
}

@media (hover: hover) {
  .primary-btn:hover,
  .ghost-btn:hover,
  .icon-btn:hover {
    transform: translateY(-2px);
  }
}

.hero,
.section-block,
.trust-ribbon {
  margin-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.section-block,
.feature-panel,
.contact-panel,
.contact-form,
.testimonial-panel,
.platform-story {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 52px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #f4d791;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
}

h1 {
  font-size: clamp(2.9rem, 4vw, 4.8rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.hero-lead,
.section-heading p,
.feature-panel p,
.testimonial-stage p,
.contact-lines a,
.form-status,
.chatbot-head p,
.modal-prose p {
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.metric-card span {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7, 17, 31, 0.18) 0%,
    rgba(7, 17, 31, 0.46) 100%
  );
  pointer-events: none;
}

.feature-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(55, 196, 140, 0.14);
  color: #89efc5;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-highlights {
  display: grid;
  gap: 14px;
}

.highlight-strip {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.highlight-strip strong {
  display: block;
  margin-bottom: 6px;
}

.highlight-strip span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.trust-ribbon {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.trust-ribbon-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.ribbon-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.section-block {
  padding: 34px;
}

.alt-surface {
  background: linear-gradient(180deg, var(--alt-surface-start), var(--alt-surface-end));
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.filters-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.input-chip,
.select-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
}

.input-chip input,
.select-chip {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
}

/* Fix webkit search input default styling */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* Fix option tag background in dark mode */
.select-chip option,
.contact-form select option {
  background: var(--panel-strong);
  color: var(--text);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.opportunity-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.opportunity-chooser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

@media (hover: hover) {
  .opportunity-chooser-card:hover {
    transform: translateY(-4px);
    border-color: rgba(209, 169, 84, 0.45);
    background: var(--panel-light);
  }
}

.opportunity-chooser-card .link-btn {
  margin-top: auto;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.platform-card,
.mini-card,
.why-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  cursor: pointer;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

@media (hover: hover) {
  .platform-card:hover,
  .mini-card:hover,
  .why-item:hover {
    transform: translateY(-4px);
    border-color: rgba(209, 169, 84, 0.45);
    background: var(--panel-light);
  }
}

.card-topline,
.card-badges {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #f7dd9e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.alt {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.card-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.link-btn {
  color: #f6d994;
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.link-text {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.split-column {
  display: grid;
  gap: 18px;
}

.feature-panel {
  padding: 24px;
}

.about-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.mini-card-grid,
.why-grid {
  display: grid;
  gap: 14px;
}

.mini-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-stage {
  min-height: 240px;
}

.testimonial-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-soft);
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
}

.theme-toggle-btn {
  margin-right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.contact-panel,
.contact-form {
  padding: 28px;
}

.contact-lines {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.contact-lines a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-lines i {
  color: #f6d994;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}

.contact-form textarea {
  margin-top: 14px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
}

.form-status.success {
  color: #92f5ca;
}

.form-status.error {
  color: #ff9d9d;
}

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.app-modal.open {
  display: block;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  max-width: 920px;
  margin: 4vh auto;
  max-height: 92vh;
  overflow: auto;
  border-radius: 28px;
  background: var(--modal-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 58px);
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 16px 16px 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  cursor: pointer;
}

.modal-content {
  padding: 12px 34px 34px;
}

.modal-head {
  margin-bottom: 22px;
}

.modal-head p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.modal-metric {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.modal-metric span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.modal-section {
  margin-top: 22px;
}

.modal-section h4 {
  margin-bottom: 10px;
}

.modal-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
}

.modal-docs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-muted);
  border: 1px dashed rgba(209, 169, 84, 0.5);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.chatbot {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffe8b2 0%, #f1cd83 28%, var(--gold) 62%, #b9872d 100%);
  color: #121212;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
  animation: aiPulse 2.4s ease-in-out infinite;
}

.chatbot-toggle span {
  display: none;
}

.chatbot-icon-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 16, 0.14);
  color: #101010;
  position: relative;
}

.chatbot-icon-core i {
  font-size: 0.95rem;
}

.chatbot-icon-dot {
  position: absolute;
  right: -1px;
  top: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37c48c;
  border: 1px solid rgba(7, 17, 31, 0.7);
  box-shadow: 0 0 0 2px rgba(55, 196, 140, 0.2);
}

.chatbot-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(241, 205, 131, 0.45);
  opacity: 0.8;
  animation: aiRing 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes aiPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
  }
}

@keyframes aiRing {
  0% {
    transform: scale(0.88);
    opacity: 0.72;
  }
  70% {
    transform: scale(1.16);
    opacity: 0;
  }
  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chatbot-toggle,
  .chatbot-toggle::before {
    animation: none;
  }
}

.chatbot-panel {
  width: min(360px, calc(100vw - 44px));
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--chatbot-panel-bg);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

@media (max-width: 1280px) {
  .topbar {
    gap: 14px;
    padding: 14px 18px;
  }

  .topnav {
    gap: 12px;
  }

  .topnav a {
    font-size: 0.9rem;
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn {
    padding: 10px 14px;
    min-height: 42px;
    font-size: 0.88rem;
  }
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  margin: 16px 0;
  overflow: auto;
}

.chat-line {
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
}

.chat-line.bot {
  background: var(--surface-muted);
  color: var(--text);
}

.chat-line.user {
  background: var(--gold-soft);
  color: var(--chat-user-text);
}

.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chatbot-quick-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  padding: 8px 12px;
  cursor: pointer;
}

.chatbot-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.chatbot-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 12px 16px;
}

.chatbot-form button {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: #101010;
  cursor: pointer;
}



.detail-page {
  min-height: 100vh;
}

.detail-page__shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.detail-page__card {
  margin-top: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.detail-page__header,
.detail-section {
  margin-bottom: 24px;
}

.detail-page__subtitle,
.empty-state,
.detail-section p,
.detail-section li {
  color: var(--text-soft);
}

.detail-modal__eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #f4d791;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.detail-pill {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.detail-pill span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.detail-quote {
  margin: 0 0 24px;
  padding: 22px 24px;
  border-left: 3px solid var(--gold);
  border-radius: 18px;
  background: var(--surface-muted);
  font-size: 1.05rem;
}

.detail-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #f1cd83, var(--gold));
  color: #101010;
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface-muted);
  color: var(--text);
}

.detail-theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30;
  backdrop-filter: blur(10px);
}

/* =========================================
   SITE FOOTER & DISCLAIMER
   ========================================= */
.site-footer {
  margin-top: 40px;
  padding: 34px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.7;
  text-align: center;
}

.site-footer p {
  margin: 0 0 12px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer strong {
  color: var(--text);
}

.site-footer .copyright {
  margin-top: 24px;
  opacity: 0.6;
  font-size: 0.8rem;
}

/* =========================================
   HAMBURGER & SLIDE-IN MENU
   ========================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 8px;
}

.hamburger .bar {
  width: 28px;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
  display: contents; 
}

@media (max-width: 1180px) {
  .hero,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Tablet (769px – 900px): keep nav links visible, hide most action buttons but keep theme toggle ── */
@media (max-width: 900px) and (min-width: 769px) {
  .topbar {
    gap: 16px;
    padding: 14px 18px;
  }

  .topbar-actions {
    display: none;
  }

  .topbar-actions .theme-toggle-btn {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 30;
  }

  .topnav {
    gap: 14px;
    font-size: 0.9rem;
  }
}

/* ── Layout breakpoint: single-column grids, reduced padding ── */
@media (max-width: 900px) {
  .opportunity-chooser-grid,
  .card-grid-3,
  .mini-card-grid,
  .modal-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-block,
  .contact-panel,
  .contact-form,
  .feature-panel,
  .detail-page__card {
    padding: 20px;
  }

  .modal-content {
    padding: 8px 24px 24px;
  }

  .detail-pills {
    grid-template-columns: 1fr;
  }

  .card-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .input-chip input,
  .select-chip {
    font-size: 16px;
  }
}

/* ── Mobile (≤768px): hamburger menu ── */
@media (max-width: 768px) {
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 8px;
    z-index: 50;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 20px;
    gap: 10px;
    overflow: visible;
  }

  .brand {
    flex: 1;
    justify-content: flex-start;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-label {
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    z-index: 120;
    position: relative;
    flex-shrink: 0;
    margin-left: 8px;
  }

  .hamburger .bar {
    width: 24px;
    height: 2.5px;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Clean dropdown panel under navbar */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--mobile-menu-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    gap: 12px;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: 0 18px 40px rgba(2, 7, 18, 0.44);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topnav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
    margin: 0;
  }

  .topnav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
    border-radius: 10px;
    border-bottom: none;
    white-space: nowrap;
  }

  .topnav a:hover,
  .topnav a:focus-visible {
    color: var(--text);
    background: var(--panel-light);
  }

  .topbar-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .topbar-actions .ghost-btn,
  .topbar-actions .primary-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.92rem;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 9px 12px;
  }

  .brand-label {
    font-size: 0.88rem;
  }

  .nav-menu {
    padding: 10px;
  }

  .topnav a {
    min-height: 42px;
    font-size: 0.92rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 14px;
    /* leave room for the fixed chatbot bar at the bottom */
    padding-bottom: 82px;
  }

  .hero-metrics,
  .card-grid-5 {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .brand-label {
    font-size: 0.9rem;
  }

  h1 {
    font-size: clamp(1.72rem, 6.2vw, 2.05rem);
  }
  
  h2 {
    font-size: clamp(1.34rem, 5.3vw, 1.68rem);
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero-lead,
  .section-heading p,
  .feature-panel p,
  .contact-lines a,
  .modal-prose p,
  .about-content {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .hero-copy,
  .section-block,
  .contact-panel,
  .contact-form,
  .feature-panel,
  .detail-page__card {
    padding: 16px;
  }

  .platform-card,
  .mini-card,
  .why-item,
  .opportunity-chooser-card {
    padding: 18px;
    border-radius: 18px;
  }

  .primary-btn,
  .ghost-btn,
  .btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.94rem;
  }

  .hero-actions .primary-btn,
  .hero-actions .ghost-btn,
  .form-actions .primary-btn,
  .form-actions .ghost-btn,
  .detail-page__actions .btn,
  .filters-row > * {
    width: 100%;
  }

  .card-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-docs,
  .feature-panel-head,
  .section-heading {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-docs {
    display: grid;
  }

  .app-modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
    max-height: calc(100vh - 16px);
    border-radius: 22px;
  }

  .modal-content {
    padding: 4px 16px 16px;
  }

  .modal-close {
    top: 12px;
    margin-top: 12px;
  }

  .detail-page__shell {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  .chatbot {
    right: 12px;
    left: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 0;
    background: transparent;
    border-top: 0;
    align-items: flex-end;
    gap: 8px;
  }

  .chatbot-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
  }

  .chatbot-icon-core {
    width: 26px;
    height: 26px;
  }

  .chatbot-panel {
    width: min(340px, calc(100vw - 24px));
    border-radius: 18px;
    max-height: calc(100svh - 86px);
    overflow-y: auto;
  }

  .filters-row {
    flex-direction: column;
  }

  .input-chip,
  .select-chip {
    width: 100%;
  }

  .card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .card-actions .link-btn,
  .card-actions .link-text {
    width: 100%;
    text-align: left;
  }

  /* removed hero-panel-card, no longer in DOM */

  /* Prevent any element from blowing past viewport width */
  .platform-card h3,
  .mini-card h4,
  .why-item h4,
  .section-heading h2,
  .hero-copy h1 {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Touch targets: ensure all interactive chips are tall enough */
  .ribbon-chip,
  .stat-pill,
  .badge {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .detail-theme-toggle {
    top: 12px;
    right: 12px;
  }
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   SUBSECTION TITLES
   ========================================= */
.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 24px;
}

