:root {
  color-scheme: dark;
  --background: #111214;
  --background-secondary: #18191c;
  --surface: #202125;
  --surface-raised: #25262b;
  --wine: #651f32;
  --wine-light: #91344f;
  --wine-text: #d9a2b1;
  --orange: #e87528;
  --orange-light: #f1944d;
  --text-primary: #f3f3f3;
  --text-secondary: #a9aaae;
  --border: rgba(255, 255, 255, 0.09);
  --content-width: 1180px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:focus-visible {
  outline: 3px solid var(--orange-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--orange);
  color: #111214;
  font-weight: 750;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.72);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner {
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(232, 117, 40, 0.45);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(101, 31, 50, 0.85), rgba(232, 117, 40, 0.14));
  color: var(--orange-light);
  font-size: 0.85rem;
}

.nav-list {
  display: flex;
  gap: clamp(18px, 4vw, 34px);
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  list-style: none;
}

.nav-list a:hover {
  color: var(--orange-light);
}

.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--background) 0%, transparent 46%, rgba(17, 18, 20, 0.38) 100%);
  content: "";
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 700px;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 7vw, 100px);
  padding-top: 72px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-block: 80px 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--orange);
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.4vw, 6rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h1 em {
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 420;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-light);
  font-size: 0.92rem;
  font-weight: 700;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.hero-visual {
  position: relative;
  width: min(42vw, 500px);
  aspect-ratio: 1;
  justify-self: center;
}

.visual-grid {
  position: absolute;
  inset: 14%;
  opacity: 0.4;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle, #000 5%, transparent 68%);
}

.orbit {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(232, 117, 40, 0.24);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbit::before,
.orbit::after {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  content: "";
}

.orbit::before {
  inset: 11%;
}

.orbit::after {
  inset: 28%;
  border-color: rgba(145, 52, 79, 0.42);
}

.orbit-small {
  inset: 29%;
  transform: rotate(52deg);
}

.node {
  position: absolute;
  top: 16%;
  left: 5%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.node-orange {
  background: var(--orange);
  box-shadow: 0 0 26px rgba(232, 117, 40, 0.65);
}

.node-wine {
  background: var(--wine-light);
  box-shadow: 0 0 22px rgba(145, 52, 79, 0.7);
}

.visual-core {
  position: absolute;
  inset: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: rgba(32, 33, 37, 0.7);
  box-shadow: 0 0 70px rgba(101, 31, 50, 0.24);
  transform: rotate(45deg);
}

.visual-core > * {
  transform: rotate(-45deg);
}

.core-bracket {
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
}

.core-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.data-label {
  position: absolute;
  color: rgba(243, 243, 243, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label-one {
  top: 12%;
  right: 4%;
}

.label-two {
  bottom: 12%;
  left: 2%;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-wine {
  top: 12%;
  right: 12%;
  width: 360px;
  height: 360px;
  background: rgba(101, 31, 50, 0.2);
}

.hero-glow-orange {
  right: 35%;
  bottom: -20%;
  width: 220px;
  height: 220px;
  background: rgba(232, 117, 40, 0.07);
}

.tools-section {
  padding-block: clamp(80px, 10vw, 132px);
  background: linear-gradient(180deg, var(--background-secondary), var(--background));
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 250px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(37, 38, 43, 0.92), rgba(27, 28, 31, 0.92));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::after {
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 31, 50, 0.34), transparent 70%);
  content: "";
}

.tool-card:hover {
  border-color: rgba(232, 117, 40, 0.38);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), 0 0 26px rgba(232, 117, 40, 0.05);
  transform: translateY(-4px);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.tool-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(232, 117, 40, 0.25);
  border-radius: 13px;
  background: rgba(232, 117, 40, 0.08);
  color: var(--orange-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 760;
}

.tool-arrow {
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: color 180ms ease, transform 180ms ease;
}

.tool-card:hover .tool-arrow {
  color: var(--orange-light);
  transform: translate(2px, -2px);
}

.tool-card-content {
  align-self: end;
}

.tool-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--wine-text);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.tool-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.noscript-message {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background:
    radial-gradient(circle at 72% 25%, rgba(101, 31, 50, 0.2), transparent 32%),
    var(--background);
}

.error-content { max-width: 760px; }

.error-content h1 { margin-bottom: 24px; }

.error-content > p:not(.eyebrow) {
  margin: 0 0 24px;
  color: var(--text-secondary);
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 116px 68px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-visual {
    width: min(82vw, 400px);
    margin: 12px auto -54px;
    opacity: 0.72;
  }

}

@media (max-width: 480px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .nav-list {
    gap: 16px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-layout {
    padding-top: 108px;
  }

  .hero-visual {
    margin-top: 0;
  }

  .tool-card {
    min-height: 225px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .text-link:hover span,
  .tool-card:hover,
  .tool-card:hover .tool-arrow {
    transform: none;
  }
}
