:root {
  --bg: #0a0e14;
  --bg-elev: #11161f;
  --bg-card: #0f141c;
  --ink: #e8eaed;
  --ink-dim: #8a939e;
  --ink-faint: #4a525d;
  --rule: #1c232e;
  --rule-bright: #2a3340;
  --accent: #00d4aa;
  --navy: #0d2444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(0,212,170,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  background: rgba(10,14,20,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand,
.nav-brand:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand svg { width: 28px; height: 28px; }
.nav-brand .word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-brand .word .it {
  color: var(--accent);
  font-weight: 300;
  letter-spacing: 4px;
  margin-left: 6px;
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #00f5c3 !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
h1 .hl { color: var(--accent); font-weight: 300; }
.hero p.lede {
  font-size: 19px;
  color: var(--ink-dim);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: #00f5c3; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-bright);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual svg.diamond {
  width: 70%;
  max-width: 360px;
  filter: drop-shadow(0 30px 60px rgba(0,212,170,0.25));
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.orbit {
  position: absolute;
  border: 1px solid var(--rule);
  border-radius: 50%;
  pointer-events: none;
}
.orbit.o1 { width: 90%; height: 90%; animation: spin 30s linear infinite; }
.orbit.o2 { width: 70%; height: 70%; border-style: dashed; animation: spin 50s linear infinite reverse; }
.orbit::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- PRINCIPLES STRIP ---------- */
.principles {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .principles-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.principle-word {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.principle-word .dot { color: var(--accent); }
.principle-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- SECTION ---------- */
section.block { padding: 120px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-head p {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 580px;
}
.section-head p + p { margin-top: 16px; }

/* ---------- SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  background: var(--bg-card);
  padding: 40px 36px;
  transition: background 0.2s ease;
  position: relative;
}
.service:hover { background: var(--bg-elev); }
.service .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.service p {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.service ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  padding: 4px 10px;
  border: 1px solid var(--rule-bright);
  border-radius: 3px;
}

/* ---------- CONTACT ---------- */
.cta-card {
  background:
    radial-gradient(circle at 80% 20%, rgba(0,212,170,0.10), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--rule-bright);
  border-radius: 8px;
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .diamond-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  width: 480px;
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.cta-card p {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
}
.contact-methods {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.contact-methods .sep {
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 32px; } }
.foot-brand,
.foot-brand:visited { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.foot-brand svg { width: 24px; height: 24px; }
.foot-brand .word {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.foot-brand .it { color: var(--accent); font-weight: 300; letter-spacing: 4px; margin-left: 6px; }
.foot-tag {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  max-width: 280px;
  line-height: 1.6;
}
.foot-cols h6 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.foot-cols ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-cols ul a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.foot-cols ul a:hover { color: var(--accent); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.foot-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.foot-meta a {
  color: var(--ink-dim);
  text-decoration: none;
}
.foot-meta a:hover { color: var(--accent); }

/* ---------- PROSE (privacy / legal pages) ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px;
  position: relative;
  z-index: 1;
}
.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.prose .updated {
  color: var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
}
.prose p {
  color: var(--ink-dim);
  margin-bottom: 16px;
  line-height: 1.65;
}
.prose ul {
  color: var(--ink-dim);
  margin-bottom: 16px;
  padding-left: 20px;
  line-height: 1.7;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

/* fade-in for sections on scroll */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
