/* ============ Revenue Orbit — Styles ============ */

:root {
  --navy-900: #081a30;
  --navy-800: #0b2547;
  --blue: #0f54c9;
  --blue-dark: #0b3f9e;
  --teal: #0e9f8a;
  --ink: #0f1e33;
  --muted: #55677f;
  --bg: #f6f9fc;
  --border: #e3eaf2;
  --white: #ffffff;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--navy-800));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
}

.logo-text em {
  font-style: normal;
  color: var(--blue);
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-800);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0d3a75 100%);
  color: #fff;
  padding: 112px 0 96px;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cfe0f5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.hero .accent {
  color: #5cc9b8;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #c3d3e8;
  max-width: 680px;
  margin: 0 auto 38px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: 28px;
  font-size: 0.88rem;
  color: #9db4cc;
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 76px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px 40px;
}

.stat {
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: #a9bdd6;
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0;
  background: #fff;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card,
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover,
.benefit-card:hover {
  transform: translateY(-6px);
  border-color: #c9d9ec;
}

.service-icon,
.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eaf1fd;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg,
.benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.benefit-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy-800);
}

.service-card p,
.benefit-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 56px;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.compare th,
.compare td {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  background: var(--navy-800);
  color: #fff;
  font-size: 0.95rem;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th {
  font-weight: 600;
  color: var(--navy-800);
}

.compare tbody tr:hover {
  background: #f8fbff;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.2rem;
  font-weight: 800;
  color: #dbe7f5;
}

.step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--navy-800);
}

.step p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Solutions / Problems ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.solution-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy-800);
}

.solution-card > p {
  font-size: 0.95rem;
  color: var(--muted);
}

.solution-card .fix {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}

.solution-card .fix h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 6px;
}

.solution-card .fix p {
  font-size: 0.92rem;
}

.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 44px;
  text-align: center;
}

.chart-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.chart-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 70px;
  height: 260px;
  margin-top: 34px;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chart-bar {
  width: 56px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #c3d3e8, #dbe7f5);
}

.chart-bar-after {
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

.chart-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-800);
}

.chart-label {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 160px;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(150deg, var(--navy-900), #0d3a75);
  border-radius: 24px;
  padding: 64px;
  color: #fff;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta .cta-copy > p {
  color: #c3d3e8;
  margin-bottom: 22px;
}

.cta-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #dbe7f5;
  font-size: 0.97rem;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #9db4cc;
  text-align: center;
}

.form-note a {
  color: #5cc9b8;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #9db4cc;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: #5cc9b8;
}

.footer-contact li {
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  padding-bottom: 28px;
}

.footer-bottom p {
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid,
  .benefits-grid,
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(8, 26, 48, 0.1);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .site-nav li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 120;
  }

  .header-cta {
    display: none;
  }

  .logo-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 84px 0 70px;
  }

  .services-grid,
  .benefits-grid,
  .process-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 20px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cta {
    padding: 40px 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
