:root {
  --navy: #0b1220;
  --gold: #c9a227;
  --gold-bright: #e6c458;
  --slate: #475569;
  --mist: #f8fafc;
  --ink: #0f172a;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 45%, #f7f7f2 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

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

.bg-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.26) 0%, rgba(201, 162, 39, 0) 65%);
  pointer-events: none;
  filter: blur(2px);
  z-index: 0;
}

.orb-left {
  top: -140px;
  left: -120px;
}

.orb-right {
  bottom: 140px;
  right: -160px;
  background: radial-gradient(circle, rgba(11, 18, 32, 0.18) 0%, rgba(11, 18, 32, 0) 65%);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  z-index: 10;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-family: "Fraunces", "Georgia", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.brand-subtitle {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--slate);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}

.nav-links a {
  padding: 6px 8px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
}

.nav-cta:hover {
  background: #101826;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--navy);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
}

.btn.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  background: #121a2a;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.3);
  color: var(--navy);
}

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

.highlight-title {
  font-weight: 600;
  color: var(--navy);
}

.highlight-sub {
  display: block;
  font-size: 13px;
  color: var(--slate);
  margin-top: 6px;
}

.accent {
  color: var(--gold);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 460px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.25) 0%, rgba(201, 162, 39, 0) 70%);
}

.hero-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  background: rgba(11, 18, 32, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.pill.alt {
  background: rgba(201, 162, 39, 0.18);
}

.metric {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
}

.metric strong {
  color: var(--navy);
}

.hero-diagram {
  margin-top: 18px;
}

.hero-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.heat-path,
.heat-spot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s ease;
}

.heat-path:hover {
  transform: scale(1.16);
}

.heat-spot:hover {
  transform: scale(1.64);
}

@media (max-width: 768px) {
  .heat-path:hover {
    transform: scale(1.08);
  }

  .heat-spot:hover {
    transform: scale(1.24);
  }
}

.line-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 6px;
  height: 70px;
  margin: 20px 0;
}

.line-chart span {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(201, 162, 39, 0.25) 100%);
  border-radius: 999px;
  animation: rise 3s ease-in-out infinite;
}

.line-chart span:nth-child(1) { height: 32px; }
.line-chart span:nth-child(2) { height: 46px; animation-delay: 0.2s; }
.line-chart span:nth-child(3) { height: 60px; animation-delay: 0.4s; }
.line-chart span:nth-child(4) { height: 42px; animation-delay: 0.6s; }
.line-chart span:nth-child(5) { height: 55px; animation-delay: 0.8s; }

.mini-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.node {
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--navy);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
  position: relative;
  z-index: 1;
}

.section.alt {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  margin: 0 auto 40px;
}

.section-header {
  text-align: left;
  margin-bottom: 32px;
}

.section-header h2 {
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 12px;
  color: var(--navy);
}

.section-header p {
  color: var(--slate);
  margin: 0;
  font-size: 16px;
}

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

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

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

.card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 18px;
}

.card p,
.card li {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.card ul {
  padding-left: 18px;
  margin: 0;
}

.diagram-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-top: 10px;
}

.diagram-card img {
  transition: transform 0.7s ease;
  transform-origin: center;
}

.diagram-svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.diagram-card:hover img {
  transform: scale(1.2);
}

.diagram-card--nozoom:hover img {
  transform: none;
}

.diagram-card--nozoom:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  align-items: start;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--gold);
  font-weight: 600;
}

.contact-value {
  font-size: 15px;
  color: var(--navy);
  margin: 6px 0 0;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--slate);
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--navy);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}

.contact-form button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.form-status {
  min-height: 16px;
  font-size: 12px;
  color: var(--slate);
}

.form-status.success {
  color: #0f766e;
}

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

.contact-form button .btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: spin 0.8s linear infinite;
}

.contact-form button.is-loading .btn-spinner {
  opacity: 1;
  transform: scale(1);
}

.contact-form button.is-loading .btn-label {
  opacity: 0.7;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.site-footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--slate);
  font-size: 13px;
}

.divider {
  margin: 0 8px;
  color: rgba(148, 163, 184, 0.8);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes rise {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 78px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 600px) {
  .hero-card {
    padding: 20px;
  }

  .diagram-card {
    padding: 16px;
  }
}
