:root {
  --bg: #10131a;
  --bg-alt: #161a24;
  --card: #191e29;
  --border: #2a3040;
  --text: #e8eaf0;
  --text-dim: #8b93a6;
  --accent: #e0a458;
  --accent-dim: #8a6636;
  --accent-soft: rgba(224, 164, 88, 0.12);
  --radius: 10px;
  --max-width: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

img { max-width: 100%; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.wordmark .dot { color: var(--accent); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.2s ease;
}

nav.main-nav a:hover { color: var(--text); }
nav.main-nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #241505;
  box-shadow: 0 6px 20px rgba(224, 164, 88, 0.22);
}

.btn-primary:hover { opacity: 0.92; }

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

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

/* Hero */

.hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

.hero-graphic .node {
  fill: var(--accent);
  filter: drop-shadow(0 0 3px rgba(224, 164, 88, 0.7));
}

.hero-graphic .node-near {
  filter: drop-shadow(0 0 7px rgba(224, 164, 88, 0.95)) drop-shadow(0 0 16px rgba(224, 164, 88, 0.5));
}

.hero-graphic .node-far {
  filter: blur(1.5px);
  opacity: 0.5;
}

.hero-graphic .node-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0.6;
  filter: drop-shadow(0 0 6px rgba(224, 164, 88, 0.6));
}

.hero-graphic .edge {
  fill: none;
  stroke: rgba(224, 164, 88, 0.22);
  stroke-width: 1;
}

.hero-core-glow {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 164, 88, 0.5), rgba(224, 164, 88, 0.14) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  animation: core-breathe 8s ease-in-out infinite;
}

@keyframes core-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-core-glow { animation: none; }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 500px at 30% 40%, rgba(16,19,26,0.88), transparent 70%),
    linear-gradient(180deg, rgba(16,19,26,0.35), rgba(16,19,26,0.75) 75%, var(--bg) 100%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .hero-graphic { opacity: 0.45; }
  .hero-core-glow { width: 360px; height: 360px; }
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(224, 164, 88, 0.22);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 780px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 0 36px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-dim);
  font-size: 1.02rem;
}

.check-list li strong { color: var(--text); font-weight: 600; }

.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  padding: 3px;
  box-sizing: border-box;
}

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

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  max-width: 620px;
}

.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* Sections */

section { padding: 88px 0; }

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

.section-head { max-width: 620px; margin: 0 0 56px; }

.section-head .eyebrow { margin-bottom: 12px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.section-head p { color: var(--text-dim); margin: 0; }

/* Services grid */

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

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 40%), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 28px rgba(0,0,0,0.28), 0 0 0 1px rgba(224,164,88,0.06);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid p { color: var(--text-dim); margin: 0 0 16px; }

.stat-list {
  display: grid;
  gap: 24px;
}

.stat-list .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

.stat-list .stat span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Trust grid */

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

.trust-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trust-item:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.trust-item .service-icon {
  font-size: 1.1rem;
  background: var(--accent-soft);
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.trust-item p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* ROI calculator */

.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 40px;
  align-items: center;
}

.roi-inputs {
  display: grid;
  gap: 20px;
}

.roi-result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 32px;
  padding: 20px 24px;
  border: 1px dashed var(--border);
}

.roi-result-tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
}

.roi-tick-tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.roi-tick-tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.roi-tick-bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.roi-tick-br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.roi-result-label {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roi-result-value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 24px rgba(224, 164, 88, 0.35);
}

.roi-result-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}

.table-scroll {
  overflow-x: auto;
}

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

.stage-table th, .stage-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.stage-table th {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stage-table td:nth-child(3),
.stage-table td:nth-child(4),
.stage-table td:nth-child(5),
.stage-table td:nth-child(6) {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}

.stage-table td:first-child {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Roadmap */

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

.roadmap-step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--accent-dim);
}

.roadmap-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.roadmap-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.roadmap-phase {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.roadmap-step p:not(.roadmap-phase) {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 860px) {
  .roi-calculator { grid-template-columns: 1fr; }
  .roi-result { margin-left: 0; }
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info p { color: var(--text-dim); }

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.contact-info a { text-decoration: none; color: var(--text); }
.contact-info a:hover { color: var(--accent); }

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.roi-inputs input {
  font-family: var(--font-mono);
  font-size: 1rem;
}

.roi-inputs label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.ok { color: var(--accent); }
.form-status.error { color: #f08a8a; }

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

footer a { text-decoration: none; color: var(--text-dim); }
footer a:hover { color: var(--text); }

footer .footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Legal pages */

.legal-page main {
  padding: 120px 0 96px;
  max-width: 760px;
}

.legal-page h1 {
  font-family: var(--font-display);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 40px;
}

.legal-page p, .legal-page li { color: var(--text-dim); }

.placeholder {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Scroll reveal */

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

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.trust-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.trust-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.trust-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.roadmap .reveal:nth-child(2) { transition-delay: 0.08s; }
.roadmap .reveal:nth-child(3) { transition-delay: 0.16s; }
.roadmap .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  nav.main-nav.open { display: block; }

  nav.main-nav ul {
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }

  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
}
