/* ===== Design Tokens ===== */
:root {
  --bg: #0d0b0c;
  --bg-alt: #141116;
  --panel: #17141a;
  --panel-border: #2a252b;
  --gold: #d6a75c;
  --gold-bright: #e8c07f;
  --text: #f2eee8;
  --text-dim: #b9b3ad;
  --text-faint: #837c78;
  --up: #7fae6f;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 20px 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }

.lede {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
  margin-top: 20px;
}

.accent { color: var(--gold); font-style: italic; font-family: var(--font-serif); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #14110f;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 11, 12, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}
.logo span { color: var(--gold); }
.logo-icon { height: 34px; width: auto; border-radius: 3px; }
.footer-col.brand .logo-icon,
.footer-top .logo .logo-icon { height: 40px; }
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 1180px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 11, 12, 0.97);
    padding: 20px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--panel-border);
  }
}

/* ===== Hero (image-backed) ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: var(--bg);
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,11,12,0.55), rgba(13,11,12,0.92));
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-content { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-content { max-width: 700px; }
.italic-tag {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
  font-size: 15px;
  margin-top: 28px;
}

/* ===== Section base ===== */
.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--panel-border);
}

.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin-bottom: 56px; }

/* ===== Platform section ===== */
.platform {
  background: var(--bg);
}


.inset-photo {
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 30px;
}
.inset-photo img { width: 100%; display: block; }
.inset-caption {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 14px;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-top: 18px;
}

/* ===== Problem/Solution/Outcome grid cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* ===== Merge / split interactive card (Vision section) ===== */
.merge-split { position: relative; }
.merged-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 40px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}
.merged-card:hover { border-color: var(--gold); }
.merged-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(214,167,92,0.35), transparent 65%);
  opacity: 0.35;
  animation: cardGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.merged-tags { display: flex; gap: 8px; margin-bottom: 20px; position: relative; z-index: 1; }
.merged-card h3 { position: relative; z-index: 1; }
.merged-hint {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 10px 0 0;
}
.merge-split.is-split .merged-card {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.split-cards {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
@media (max-width: 900px) { .split-cards { grid-template-columns: 1fr; } }
.merge-split.is-split .split-cards {
  display: grid;
  opacity: 1;
  transform: none;
}
.split-cards .card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  transition-delay: 0s;
}
.merge-split.is-split .split-cards .card {
  opacity: 1;
  transform: none;
}
.merge-split.is-split .split-cards .card:nth-child(1) { transition-delay: 0.08s; }
.merge-split.is-split .split-cards .card:nth-child(2) { transition-delay: 0.16s; }
.merge-split.is-split .split-cards .card:nth-child(3) { transition-delay: 0.24s; }
.merge-back-btn {
  display: none;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.merge-back-btn:hover { color: var(--gold); }
.merge-split.is-split .merge-back-btn { display: block; }

/* ---- Compact clickable split cards (title/tag only, opens a modal) ---- */
.split-cards .card.compact-card {
  cursor: pointer;
  padding: 30px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.split-cards .card.compact-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.split-cards .card.compact-card h3 { margin-bottom: 0; }
.split-cards .card.compact-card .tap-hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Modal popup for split-card detail ---- */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 9, 9, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.card-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.card-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-modal-overlay.is-open .card-modal { transform: none; }
.card-modal .tags { margin-bottom: 18px; }
.card-modal h3 { margin-bottom: 14px; }
.card-modal p { color: var(--text-dim); font-size: 15px; }
.card-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.card-modal-close:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .merged-card, .split-cards, .split-cards .card { transition: none; }
  .merged-card::before { animation: none; }
  .card-modal-overlay, .card-modal { transition: none; }
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card > * { position: relative; z-index: 1; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(214,167,92,0.35), transparent 65%);
  opacity: 0.35;
  animation: cardGlow 5s ease-in-out infinite;
  pointer-events: none;
}
.card:nth-child(2)::before { animation-delay: -1.6s; }
.card:nth-child(3)::before { animation-delay: -3.2s; }
@keyframes cardGlow {
  0%, 100% { opacity: 0.2; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.65; transform: scale(1.25) translate(6%, 6%); }
}
@media (prefers-reduced-motion: reduce) {
  .card::before { animation: none; opacity: 0.25; }
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(214,167,92,0.35);
  padding: 5px 11px;
  border-radius: 20px;
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--text-dim); font-size: 14.5px; flex-grow: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--panel-border);
  padding-top: 18px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-faint);
}
.card-foot .read { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ===== Stat / number blocks ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 22px 24px;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--gold);
}
.stat-value.up { color: var(--up); }
.stat-note { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* Reveal-on-scroll + stagger for stat boxes */
.stat-box {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-box.in-view {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

/* ===== Sample Engagement / Dashboard tabs ===== */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active { background: var(--gold); color: #14110f; border-color: var(--gold); }
.tab-btn:not(.active):hover { border-color: var(--gold); color: var(--gold); }

.dash-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 40px;
  display: none;
}
.dash-panel.active { display: block; animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 22px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-head h3 { margin-bottom: 4px; }
.dash-sub { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.live-view {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(127,174,111,0.2);
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(127,174,111,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(127,174,111,0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .stat-box { opacity: 1; transform: none; transition: none; }
  .dash-panel.active { animation: none; }
}
.dash-desc { color: var(--text-dim); font-size: 14.5px; max-width: 640px; margin-bottom: 8px; }

/* ===== About / Contact ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.value-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 14.5px; }
.value-list .num { color: var(--gold); font-family: var(--font-serif); font-size: 18px; flex-shrink: 0; }

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 34px;
}
.form-row { display: grid; gap: 8px; }
.form-row label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--text-faint); margin-top: -4px; }

/* ===== Footer ===== */
footer {
  padding: 60px 0 34px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--panel-border);
  margin-bottom: 26px;
}
.footer-tag { color: var(--text-faint); font-size: 13.5px; max-width: 340px; margin-top: 14px; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 13.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--gold); }

/* ===== Utility ===== */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.page-hero {
  padding: 160px 0 70px;
  border-bottom: 1px solid var(--panel-border);
}
.page-hero {
  background: var(--bg-alt);
}
