:root {
  --ink: #eef4ee;
  --muted: #a8b3ac;
  --quiet: #738078;
  --surface: rgba(15, 29, 24, 0.82);
  --surface-strong: #10251d;
  --line: rgba(224, 239, 229, 0.13);
  --accent: #bafc64;
  --accent-soft: rgba(186, 252, 100, 0.12);
  --blue: #8bd8ff;
  --page: #07120f;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--page);
  background-size: 72px 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.11;
}

.ambient-one {
  top: -16rem;
  right: -10rem;
  background: var(--accent);
}

.ambient-two {
  bottom: 5rem;
  left: -20rem;
  background: var(--blue);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(186, 252, 100, 0.4);
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4c96b;
  box-shadow: 0 0 0 5px rgba(244, 201, 107, 0.09);
}

.hero {
  display: grid;
  min-height: 690px;
  align-content: center;
  padding: 90px 0 110px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  justify-content: space-between;
  width: min(100%, 760px);
  margin-bottom: 48px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.73rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1000px;
  margin-bottom: 34px;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  font-weight: 520;
  letter-spacing: -0.072em;
  line-height: 0.93;
}

h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.27rem);
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #10210e;
  background: var(--accent);
}

.button-secondary {
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover {
  border-color: rgba(186, 252, 100, 0.34);
  color: var(--ink);
}

.workspace,
.services,
.architecture {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.section-heading p,
.architecture-copy p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.7;
}

.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 540;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

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

.environment-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(16px);
}

.production-card {
  background:
    radial-gradient(circle at 86% 10%, rgba(186, 252, 100, 0.1), transparent 37%),
    var(--surface);
}

.development-card {
  background:
    radial-gradient(circle at 86% 10%, rgba(139, 216, 255, 0.09), transparent 37%),
    var(--surface);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.environment-number,
.service-index {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-live span {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(186, 252, 100, 0.7);
}

.status-private span {
  background: var(--blue);
}

.environment-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 560;
  letter-spacing: -0.04em;
}

.environment-card p {
  max-width: 510px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.feature-list li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "↳";
}

.card-action {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--quiet);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.82rem;
}

.compact-heading {
  grid-template-columns: 1fr;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 128px;
  border-bottom: 1px solid var(--line);
}

.service-copy h3 {
  margin-bottom: 7px;
  font-size: 1.2rem;
  font-weight: 590;
}

.service-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-state {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.service-state.muted {
  color: #efca80;
  background: rgba(239, 202, 128, 0.1);
}

.service-state.private {
  color: var(--blue);
  background: rgba(139, 216, 255, 0.1);
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 90px;
  align-items: center;
}

.architecture-copy p {
  max-width: 520px;
  margin-top: 28px;
}

.architecture-flow {
  display: flex;
  align-items: center;
}

.flow-node {
  display: grid;
  min-width: 126px;
  min-height: 126px;
  place-content: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-align: center;
  background: rgba(15, 29, 24, 0.82);
}

.flow-node span,
.flow-node small {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
}

.flow-node strong {
  margin: 4px 0 2px;
  font-size: 0.85rem;
}

.flow-line {
  width: clamp(25px, 4vw, 60px);
  height: 1px;
  background: var(--line);
}

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 0.8rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 880px) {
  .hero {
    min-height: 620px;
  }

  .section-heading,
  .architecture {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .environment-grid {
    grid-template-columns: 1fr;
  }

  .environment-card {
    min-height: 480px;
  }

  .architecture-flow {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 78px;
  }

  .header-meta {
    font-size: 0;
  }

  .hero {
    min-height: 640px;
    padding: 70px 0 82px;
  }

  .eyebrow {
    margin-bottom: 38px;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .workspace,
  .services,
  .architecture {
    padding: 82px 0;
  }

  .environment-card {
    min-height: 500px;
    border-radius: 18px;
  }

  .service-row {
    grid-template-columns: 32px 1fr;
    gap: 18px;
    padding: 22px 0;
  }

  .service-state {
    grid-column: 2;
    justify-self: start;
  }

  .architecture-flow {
    flex-direction: column;
  }

  .flow-line {
    width: 1px;
    height: 26px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

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

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