@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap");

:root {
  --ink: #1e1d23;
  --ink-muted: #5f5a68;
  --ink-soft: #7a7484;
  --sand: #f3eee7;
  --mist: #f8f5f1;
  --clay: #d77e5e;
  --clay-dark: #bf6c4f;
  --indigo: #2d3f59;
  --sage: #97b7a4;
  --grape: #5f3b8c;
  --accent: var(--clay);
  --border: rgba(45, 63, 89, 0.16);
  --shadow: 0 18px 40px rgba(30, 29, 35, 0.14);
  --shadow-soft: 0 10px 26px rgba(30, 29, 35, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-heading: "Montserrat", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Verdana", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(215, 126, 94, 0.12), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(151, 183, 164, 0.16), transparent 50%),
    linear-gradient(180deg, #fefcf9 0%, var(--mist) 50%, var(--sand) 100%);
  min-height: 100vh;
}

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

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

.bg-orbit {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.orbit-one {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(95, 59, 140, 0.35), transparent 60%);
  top: -140px;
  right: -120px;
  animation: float 18s ease-in-out infinite;
}

.orbit-two {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(215, 126, 94, 0.3), transparent 62%);
  bottom: -140px;
  left: -100px;
  animation: float 20s ease-in-out infinite reverse;
}

.orbit-three {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(151, 183, 164, 0.35), transparent 65%);
  top: 45%;
  left: 55%;
  animation: float 22s ease-in-out infinite;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 28px 0;
  position: relative;
  z-index: 2;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.05rem;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.site-nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--clay-dark);
  border-color: var(--clay-dark);
}

.cta-link {
  background: var(--grape);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.cta-link:hover {
  background: #4a2d6e;
  border-color: transparent;
}

/* Modules dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.nav-dropdown > a {
  cursor: default;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 0 8px;
  min-width: 180px;
  z-index: 10;
  margin-top: 0;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--mist);
  color: var(--clay-dark);
}

.hero {
  padding: 50px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--indigo);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 16px 0 14px;
}

.hero p {
  color: var(--ink-muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 0 0 22px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}

.button.primary {
  background: var(--grape);
  color: #fff;
}

.button.primary:hover {
  background: #4a2d6e;
}

.button.ghost {
  background: transparent;
  border-color: var(--indigo);
  color: var(--indigo);
}

.button.ghost:hover {
  border-color: var(--clay-dark);
  color: var(--clay-dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.section-visual {
  margin: 20px 0 28px;
}

.section-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.media-card img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.icon-visual {
  margin: 18px 0 12px;
}

.icon-visual img {
  max-width: 320px;
  border: none;
  box-shadow: none;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.metric-card strong {
  font-size: 1.4rem;
  display: block;
  font-family: var(--font-heading);
  color: var(--indigo);
}

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

.hero-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.hero-list {
  display: grid;
  gap: 12px;
}

.hero-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--mist);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.hero-list-item span {
  font-weight: 700;
  color: var(--clay-dark);
}

section {
  padding: 60px 0;
}

section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

section p.lead {
  color: var(--ink-muted);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--indigo);
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(215, 126, 94, 0.18);
  color: var(--clay-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.preview-card img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.preview-card figcaption {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

.cta-panel {
  background: linear-gradient(130deg, #ffffff 0%, rgba(215, 126, 94, 0.08) 55%, rgba(151, 183, 164, 0.14) 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.cta-panel.texture {
  background-image:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96) 0%, rgba(215, 126, 94, 0.08) 55%, rgba(151, 183, 164, 0.14) 100%),
    url("assets/opspal-texture-grid.jpeg");
  background-size: cover;
  background-position: center;
}

.cta-panel h2 {
  margin: 0;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--mist);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.footer {
  padding: 40px 0 60px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  font-family: var(--font-heading);
  margin: 0 0 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

.stagger > * {
  --delay: 0.08s;
}

.stagger > *:nth-child(2) { --delay: 0.16s; }
.stagger > *:nth-child(3) { --delay: 0.24s; }
.stagger > *:nth-child(4) { --delay: 0.32s; }
.stagger > *:nth-child(5) { --delay: 0.4s; }
.stagger > *:nth-child(6) { --delay: 0.48s; }
.stagger > *:nth-child(7) { --delay: 0.56s; }
.stagger > *:nth-child(8) { --delay: 0.64s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 12px); }
  100% { transform: translate(0, 0); }
}

/* Challenge strip — dark problem-stats band */
.challenge-strip {
  background: var(--indigo);
  color: #fff;
  padding: 48px 0;
}

.challenge-strip h2 {
  color: #fff;
}

.challenge-stat {
  text-align: center;
}

.challenge-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--clay);
  line-height: 1.1;
}

.challenge-stat span {
  font-size: 0.88rem;
  opacity: 0.85;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 20px;
}

.comparison-table thead th {
  background: var(--indigo);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--mist);
}

.comparison-table tbody tr:nth-child(even) {
  background: #fff;
}

.comparison-table tbody tr:hover {
  background: rgba(215, 126, 94, 0.08);
}

/* Case study card */
.case-study-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--clay);
  box-shadow: var(--shadow-soft);
}

.case-study-card h3 {
  margin: 8px 0 8px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--indigo);
}

.case-study-card p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.case-study-outcome {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--clay);
  line-height: 1.1;
}

/* Grape accent card */
.card.accent-grape {
  border-top: 4px solid var(--grape);
}

/* New badge pill */
.new-badge {
  display: inline-block;
  background: var(--grape);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Asset placeholder */
.asset-placeholder {
  background: var(--mist);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  aspect-ratio: 16 / 9;
  padding: 20px;
}

/* Privacy callout */
.privacy-callout {
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-callout strong {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 4px;
}

.privacy-callout p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Bottom-line callout */
.bottom-line {
  background: rgba(215, 126, 94, 0.1);
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* Complementary positioning callout */
.complementary-callout {
  background: linear-gradient(135deg, rgba(95, 59, 140, 0.06) 0%, rgba(215, 126, 94, 0.06) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--grape);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin-top: 24px;
}

.complementary-callout strong {
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 6px;
  color: var(--grape);
}

.complementary-callout p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Highlight cell in comparison table */
.comparison-table td.highlight {
  font-weight: 700;
  color: var(--clay-dark);
}

.comparison-table td.muted {
  color: var(--ink-soft);
  font-style: italic;
}

@media (max-width: 860px) {
  .site-nav {
    width: 100%;
  }

  .hero {
    padding-top: 30px;
  }

  .challenge-stat strong {
    font-size: 1.5rem;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 8px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orbit,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
