:root {
  --ink: #071218;
  --slate: #0b1c24;
  --panel: #102833;
  --mist: #c5d9d4;
  --text: #e8f2ef;
  --muted: #8aa8a1;
  --accent: #3dd6c3;
  --accent-dim: #1f8f84;
  --warm: #f0b429;
  --line: rgba(61, 214, 195, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(61, 214, 195, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(240, 180, 41, 0.08), transparent 50%),
    linear-gradient(165deg, #050d12 0%, var(--slate) 42%, #0a222c 100%);
  line-height: 1.55;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #7eefe2; }

.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border: 2px solid var(--accent);
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, transparent 42%, var(--accent) 42% 58%, transparent 58%),
    linear-gradient(45deg, transparent 42%, var(--warm) 42% 52%, transparent 52%);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav a { color: var(--mist); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav-sibling {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--accent) !important;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.brand-hero {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--text);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.9s 0.08s cubic-bezier(.2,.8,.2,1) both;
}
.lede {
  margin: 0 0 1.6rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise 0.9s 0.16s cubic-bezier(.2,.8,.2,1) both;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.24s cubic-bezier(.2,.8,.2,1) both;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #62e6d5; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--mist);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  position: relative;
  min-height: 320px;
  animation: fade 1.1s 0.2s ease both;
}
.mesh { width: 100%; height: auto; max-height: 520px; }
.pulse-ring { animation: pulse 4.5s ease-in-out infinite; }
.links path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 2.4s ease forwards;
}
.links path:nth-child(2) { animation-delay: .15s; }
.links path:nth-child(3) { animation-delay: .28s; }
.links path:nth-child(4) { animation-delay: .4s; }
.links path:nth-child(5) { animation-delay: .52s; }
.links path:nth-child(6) { animation-delay: .64s; }
.node { opacity: 0; animation: pop .5s ease forwards; }
.n1 { animation-delay: .9s; } .n2 { animation-delay: 1s; }
.n3 { animation-delay: 1.1s; } .n4 { animation-delay: 1.2s; }
.n5 { animation-delay: 1.3s; } .n6 { animation-delay: 1.4s; }
.core { filter: drop-shadow(0 0 12px rgba(61,214,195,.45)); }

.section {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}
.section-lede {
  margin: 0 0 2rem;
  max-width: 48ch;
  color: var(--muted);
}

.feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.feat-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: 1rem 2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.feat-list li:last-child { border-bottom: 1px solid var(--line); }
.feat-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feat-list span { color: var(--muted); }

.section-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}
.meta {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}
.meta > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.meta dt { color: var(--muted); font-size: 0.88rem; }
.meta dd { margin: 0; font-weight: 600; }

.aside-panel {
  background: linear-gradient(160deg, rgba(16,40,51,.9), rgba(7,18,24,.7));
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.aside-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.aside-panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.aside-panel a:last-child { border-bottom: 0; padding-bottom: 0; }
.aside-panel a:hover { color: var(--accent); }

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.contact-item {
  display: inline-flex;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(16, 40, 51, 0.45);
}
.contact-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.foot {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.muted { color: var(--muted); margin: 0; }
.foot p { margin: 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 2rem; }
  .hero-visual { order: -1; min-height: 240px; }
  .section-split { grid-template-columns: 1fr; }
  .feat-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .nav a:not(.nav-sibling) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
