/* Ivywell — dark theme, warm-gold accent */
:root {
  --bg: #0C0F14;
  --bg-soft: #12161D;
  --surface: #161B24;
  --surface-2: #1B2130;
  --line: #242B38;
  --line-strong: #313A4C;
  --text: #E8EAED;
  --text-muted: #9AA3B2;
  --gold: #D9A441;
  --gold-strong: #C8923E;
  --gold-soft: #E0B45C;
  --gold-dim: #B98A2E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Overlay navigation ---------- */
.overlay-nav .nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}

.brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}

.brand::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background-color: var(--gold);
  vertical-align: middle;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  z-index: 70;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.overlay-nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.overlay-nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.overlay-nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.overlay-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 65;
}

.overlay-nav.open .overlay-menu {
  opacity: 1;
  visibility: visible;
}

.overlay-close {
  position: absolute;
  top: 24px;
  right: 40px;
  font-size: 44px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

.overlay-close:hover {
  color: var(--gold);
}

.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.overlay-link {
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 700;
  color: var(--text);
  padding: 4px 16px;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.overlay-link:hover {
  color: var(--gold);
  letter-spacing: 1px;
}

.overlay-foot {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 28px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Hero ---------- */
.split-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 150px 48px 90px;
  max-width: 1240px;
  margin: 0 auto;
  background-color: var(--bg);
}

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

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 30px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--gold);
  color: #0C0F14;
}

.btn-primary:hover {
  background-color: var(--gold-soft);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-notes {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 360px;
}

.terminal {
  background-color: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-a { background-color: #E05555; }
.dot-b { background-color: var(--gold); }
.dot-c { background-color: #4CAF7D; }

.term-title {
  margin-left: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.term-body {
  padding: 22px 20px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  line-height: 1.9;
}

.term-cmd {
  color: var(--text);
}

.term-ok {
  color: #7BC99A;
}

.term-status {
  color: var(--gold-soft);
}

.pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--gold);
  margin-right: 8px;
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--gold); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.visual-card {
  position: absolute;
  background-color: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
}

.card-a {
  bottom: -28px;
  left: -24px;
}

.card-b {
  top: -22px;
  right: -14px;
}

.visual-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.visual-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 44px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Section head ---------- */
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Numbered list (services) ---------- */
.numbered-list {
  padding: 100px 48px;
  max-width: 1080px;
  margin: 0 auto;
  background-color: var(--bg);
}

.service-list {
  list-style: none;
}

.service-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-item:first-child {
  border-top: 1px solid var(--line);
}

.service-index {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.service-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.service-body p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
}

/* ---------- Comparison section ---------- */
.comparison-section {
  padding: 100px 48px;
  background-color: var(--bg-soft);
}

.comparison-table-wrap {
  max-width: 1080px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background-color: var(--surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.comparison-table thead th {
  padding: 20px 22px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.comparison-table .col-ivy {
  background-color: var(--surface-2);
  color: var(--gold-soft);
}

.comparison-table tbody td {
  padding: 18px 22px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .col-topic {
  color: var(--text);
  font-weight: 600;
}

.comparison-table .col-ivy {
  color: var(--text);
}

/* ---------- About band ---------- */
.about-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 110px 48px;
  max-width: 1160px;
  margin: 0 auto;
  background-color: var(--bg);
}

.about-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-copy p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-points span {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  font-size: 14px;
  color: var(--text);
  background-color: var(--surface);
}

.about-plate {
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
}

.plate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.plate-tag {
  font-weight: 700;
  color: var(--gold);
}

.plate-id {
  font-size: 13px;
  color: var(--text-muted);
}

.plate-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.plate-row:last-child {
  border-bottom: none;
}

.plate-key {
  color: var(--text-muted);
  white-space: nowrap;
}

.plate-val {
  color: var(--text);
  text-align: right;
}

/* ---------- Engagement (contact) ---------- */
.engagement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 110px 48px;
  max-width: 1160px;
  margin: 0 auto;
  background-color: var(--bg-soft);
}

.engage-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.engage-copy > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 480px;
}

.engage-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
}

.detail a,
.detail span {
  font-size: 17px;
  color: var(--text);
}

.detail a:hover {
  color: var(--gold-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 32px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
  padding: 13px 15px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background-color: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form .btn {
  margin-top: 18px;
}

.form-note {
  min-height: 22px;
  font-size: 14px;
  color: var(--gold-soft);
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.footer-cols {
  background-color: #090B0F;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 70px 48px 50px;
  max-width: 1240px;
  margin: 0 auto;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-col a,
.footer-col span {
  font-size: 15px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-base a {
  color: var(--text-muted);
}

.footer-base a:hover {
  color: var(--gold);
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split-hero,
  .about-band,
  .engagement {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-visual {
    min-height: 320px;
  }

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

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 600px) {
  .overlay-nav .nav-bar {
    padding: 14px 20px;
  }

  .split-hero,
  .numbered-list,
  .comparison-section,
  .about-band,
  .engagement {
    padding-left: 22px;
    padding-right: 22px;
  }

  .service-item {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }

  .service-index {
    font-size: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 50px 22px 40px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .overlay-close {
    right: 20px;
  }

  .overlay-foot {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
}
