:root {
  --bg: #0e0f10;
  --bg-2: #17181a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(238, 241, 244, 0.2);
  --line-soft: rgba(238, 241, 244, 0.1);
  --accent: #6d6aff;
  --accent-2: #aab7ff;
  --accent-line: rgba(109, 106, 255, 0.38);
  --accent-glow: rgba(109, 106, 255, 0.2);
  --text: #f4f5f5;
  --muted: #8f9398;
  --soft: #c8cbcf;
  --primary: #6d6aff;
  --primary-soft: #aab7ff;
  --primary-strong: #dde4ff;
  --slate-glow: rgba(255, 255, 255, 0.08);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(109, 106, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 90% 4%, rgba(255, 255, 255, 0.06), transparent 32rem),
    linear-gradient(180deg, #1f2023 0%, #0e0f10 48%, #17181a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

a {
  color: inherit;
}

.site-header,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 10px;
}

.site-header::after {
  content: "";
  flex: 1;
  height: 1px;
  order: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

.brand {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  display: block;
}

.nav {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  border-color: var(--accent-line);
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.36fr);
  gap: 22px;
  align-items: stretch;
  padding: 72px 0 34px;
}

.hero-copy,
.signal-card,
.tile,
.contact {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(109, 106, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.052);
}

.hero-copy::before,
.signal-card::before,
.project-card::before,
.tile::before,
.delivery-grid article::before,
.contact::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.hero-copy::after,
.signal-card::after,
.project-card::after,
.tile::after,
.delivery-grid article::after,
.contact::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 12px;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--primary-soft) 0 5px, transparent 5px 8px, var(--primary-soft) 8px 13px, transparent 13px 16px, var(--primary-soft) 16px 21px, transparent 21px 24px, var(--primary-soft) 24px 29px);
  opacity: 0.72;
}

.orbital-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(ellipse 40% 70% at 72% 22%, transparent 46%, rgba(170, 183, 255, 0.42) 47%, transparent 48%),
    radial-gradient(ellipse 54% 84% at 74% 38%, transparent 47%, rgba(109, 106, 255, 0.34) 48%, transparent 49%),
    repeating-radial-gradient(ellipse at 72% 32%, rgba(170, 183, 255, 0.15) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(90deg, transparent, #000 42%, transparent 94%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(32px, 4.1vw, 50px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 780px;
  margin-bottom: 22px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-proof {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-proof li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 1px;
  border-radius: 0;
  background: var(--primary-soft);
  box-shadow: 0 0 14px rgba(109, 106, 255, 0.52);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 760;
  border: 0;
  font-size: 15px;
}

.copy-email {
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.copy-email:active {
  transform: translateY(1px) scale(0.985);
}

.copy-email.copied {
  border-color: rgba(170, 183, 255, 0.78);
  background: rgba(109, 106, 255, 0.14);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #101113;
  box-shadow: 0 18px 45px rgba(109, 106, 255, 0.2);
}

.button.secondary {
  border: 1px solid rgba(170, 183, 255, 0.28);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost {
  color: var(--primary-soft);
  background: transparent;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(170, 183, 255, 0.42);
  border-radius: 0;
  padding: 0 16px;
  color: var(--text);
  background: rgba(28, 29, 32, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.signal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(109, 106, 255, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(38, 39, 43, 0.9), rgba(22, 23, 26, 0.74));
}

.panel-index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(170, 183, 255, 0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.signal-kicker {
  margin: 0 0 12px;
  color: var(--primary-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-card h2 {
  max-width: none;
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.16;
}

.hero-contact p {
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.65;
}

.hero-contact-actions {
  display: grid;
  gap: 10px;
}

.hero-contact-actions .button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  white-space: normal;
  text-align: center;
}

.section {
  position: relative;
  z-index: 1;
  padding: 56px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  align-self: end;
  margin-bottom: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 80px;
  background: linear-gradient(90deg, var(--accent-line), var(--line-soft), transparent);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 0;
  padding: 22px;
}

.tile.compact {
  min-height: 190px;
}

.tile p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 72%),
    rgba(24, 25, 28, 0.72);
  box-shadow: var(--shadow);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary-soft);
  font-size: 12px;
  font-weight: 760;
}

.project-card p {
  color: var(--soft);
  line-height: 1.65;
}

.project-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.project-card dl div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.project-card dt {
  margin-bottom: 5px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.demo-repos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-note {
  max-width: 860px;
  margin: -6px 0 22px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.7;
}

.demo-grid {
  align-items: stretch;
}

.demo-card {
  min-height: 430px;
  background:
    radial-gradient(circle at 86% 0%, rgba(109, 106, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 58%),
    rgba(25, 26, 29, 0.78);
}

.repo-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  border: 1px solid rgba(170, 183, 255, 0.34);
  border-radius: 0;
  padding: 0 14px;
  color: var(--primary-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: rgba(109, 106, 255, 0.055);
}

.repo-link:hover {
  border-color: rgba(170, 183, 255, 0.82);
  background: rgba(109, 106, 255, 0.14);
  color: var(--text);
}

.delivery {
  border-bottom: 1px solid var(--line);
}

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

.delivery-grid article {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(109, 106, 255, 0.055), transparent 50%),
    rgba(25, 26, 29, 0.66);
}

.delivery-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(170, 183, 255, 0.34);
  border-radius: 0;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 800;
  background: rgba(109, 106, 255, 0.065);
}

.delivery-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 36px 0 68px;
  overflow: hidden;
  border-radius: 0;
  padding: clamp(24px, 4vw, 38px);
}

.contact h2 {
  max-width: 760px;
}

.contact p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

@media (max-width: 860px) {
  .site-header,
  main {
    width: min(100% - 24px, 1120px);
  }

  .site-header,
  .section-heading,
  .contact {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .site-header::after {
    display: none;
  }

  .hero,
  .intro,
  .grid.three,
  .project-grid,
  .delivery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
  }

  .nav {
    justify-content: start;
  }

  .hero-copy,
  .signal-card,
  .tile,
  .project-card,
  .contact {
    padding: 18px;
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .contact-actions {
    width: 100%;
    justify-items: stretch;
  }
}
