:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-soft: #07111a;
  --panel: rgba(9, 19, 29, 0.72);
  --panel-strong: rgba(11, 24, 36, 0.9);
  --line: rgba(98, 211, 255, 0.18);
  --line-strong: rgba(98, 211, 255, 0.38);
  --text: #f4f7fb;
  --muted: #a9b6c6;
  --soft: #6f7f91;
  --cyan: #34d6ff;
  --cyan-2: #67f1ff;
  --violet: #9b74ff;
  --gold: #d6a84c;
  --green: #60f0b2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 10%, rgba(42, 157, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 10% 28%, rgba(128, 84, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #03060a 0%, var(--bg) 48%, #061017 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(85, 203, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 203, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 68%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(104, 215, 255, 0.16);
  background: rgba(3, 7, 12, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.connect-button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 18px;
  min-width: 210px;
}

.brand-mark {
  color: var(--cyan);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(52, 214, 255, 0.48);
}

.brand-name {
  position: relative;
  color: #f8fbff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-name::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%);
}

.nav-links {
  gap: clamp(18px, 4vw, 44px);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a,
.connect-button,
.primary-action,
.secondary-action,
.build-card a,
.contact-links a {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.contact-links a:hover {
  color: var(--cyan-2);
}

.connect-button {
  gap: 10px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(214, 168, 76, 0.5);
  border-radius: 4px;
  color: #ffd98b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(214, 168, 76, 0.06);
}

.connect-button:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.connect-button svg {
  width: 16px;
  height: 16px;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 120px clamp(24px, 5vw, 76px) 64px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 72px 0 0 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: saturate(1.04) contrast(1.08);
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-media::before {
  background:
    linear-gradient(90deg, rgba(3, 6, 10, 0.96) 0%, rgba(3, 6, 10, 0.78) 34%, rgba(3, 6, 10, 0.18) 68%, rgba(3, 6, 10, 0.62) 100%),
    linear-gradient(180deg, rgba(3, 6, 10, 0.05), rgba(3, 6, 10, 0.96) 96%);
}

.hero-media::after {
  background: repeating-linear-gradient(180deg, transparent 0, transparent 5px, rgba(87, 225, 255, 0.035) 6px);
  opacity: 0.42;
}

.media-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(56, 198, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 198, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(90deg, transparent 0%, black 45%, black 100%);
}

.hero-content {
  width: min(760px, 100%);
  padding-top: 28px;
}

.terminal-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  color: #8bdaf1;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-line span {
  color: var(--green);
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 46px rgba(139, 232, 255, 0.16);
}

.hero-subtitle {
  margin: 22px 0 0;
  color: #eef8ff;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
}

.hero-subtitle span {
  color: var(--cyan);
  margin: 0 8px;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(220, 230, 241, 0.78);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-action {
  gap: 14px;
  border: 1px solid rgba(52, 214, 255, 0.62);
  background: rgba(13, 158, 211, 0.09);
  color: var(--cyan-2);
  box-shadow: 0 0 32px rgba(52, 214, 255, 0.12);
}

.primary-action:hover {
  background: rgba(52, 214, 255, 0.16);
  border-color: rgba(103, 241, 255, 0.92);
}

.secondary-action {
  border: 1px solid transparent;
  color: rgba(230, 237, 247, 0.64);
}

.secondary-action:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 740px;
  margin-top: 54px;
}

.capability-strip article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.capability-strip article:last-child {
  border-right: none;
}

.capability-strip svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  color: var(--cyan);
}

.capability-strip h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 720;
}

.capability-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.focus-section,
.builds-principles,
.contact-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.focus-section {
  padding: 72px 0 54px;
  border-top: 1px solid rgba(98, 211, 255, 0.12);
}

.section-heading {
  max-width: 740px;
}

.section-heading p,
.section-label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: #f6fbff;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.05;
}

.section-heading.compact h2 {
  font-size: clamp(24px, 2.3vw, 36px);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 46px;
}

.focus-grid article {
  padding: 4px 8px 4px 0;
}

.icon-shell,
.metric-icon {
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(7, 19, 29, 0.66);
}

.icon-shell {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
}

.icon-shell svg,
.metric-icon svg {
  width: 27px;
  height: 27px;
}

.cyan { color: var(--cyan); }
.violet { color: var(--violet); }
.gold { color: var(--gold); }

.focus-grid h3,
.build-card h3,
.principle-list h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
}

.focus-grid p,
.build-card p,
.principle-list p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.builds-principles {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: clamp(34px, 5vw, 70px);
  padding: 54px 0 72px;
  border-top: 1px solid rgba(98, 211, 255, 0.12);
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.build-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(121, 221, 255, 0.17);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 18, 28, 0.78);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.build-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(52, 214, 255, 0.08), transparent);
  transform: translateX(-110%);
  transition: transform 600ms ease;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 241, 255, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), transparent 42%),
    rgba(10, 23, 35, 0.9);
}

.build-card:hover::before {
  transform: translateX(110%);
}

.metric-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
}

.build-card p {
  min-height: 94px;
}

.build-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 12px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.build-card a:hover {
  color: #fff;
}

.principles-panel {
  padding-left: 10px;
}

.principle-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.principle-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.principle-list span {
  color: var(--violet);
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: end;
  padding: 38px 0 58px;
  border-top: 1px solid rgba(98, 211, 255, 0.16);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-links a,
.contact-links span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  color: var(--muted);
  font-size: 15px;
}

.contact-links svg {
  width: 24px;
  height: 24px;
  color: #8db3c4;
}

@media (max-width: 1100px) {
  .site-header {
    height: 66px;
  }

  .brand {
    min-width: auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-media {
    inset-top: 66px;
  }

  .capability-strip,
  .focus-grid,
  .build-grid,
  .builds-principles,
  .contact-section,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .capability-strip article {
    border-right: 0;
    padding-right: 0;
  }

  .build-card p {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0 18px;
  }

  .brand-mark {
    font-size: 25px;
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .connect-button {
    width: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .connect-button svg {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    padding: 108px 20px 42px;
  }

  .hero-media img {
    object-position: 62% center;
    opacity: 0.58;
  }

  .hero-media::before {
    background:
      linear-gradient(90deg, rgba(3, 6, 10, 0.94), rgba(3, 6, 10, 0.75)),
      linear-gradient(180deg, rgba(3, 6, 10, 0.05), rgba(3, 6, 10, 0.98) 94%);
  }

  .terminal-line {
    display: block;
    max-width: 270px;
    line-height: 1.7;
  }

  .hero-content h1 {
    font-size: clamp(56px, 17vw, 78px);
  }

  .hero-subtitle {
    font-size: 24px;
    line-height: 1.22;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .capability-strip {
    margin-top: 38px;
  }

  .focus-section,
  .builds-principles,
  .contact-section {
    width: calc(100% - 36px);
  }

  .focus-section {
    padding-top: 48px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: 32px;
  }

  .builds-principles {
    padding-bottom: 50px;
  }

  .build-card {
    min-height: auto;
    padding: 21px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .signal-canvas {
    display: none;
  }
}
