:root {
  --bg: #0a0d12;
  --surface: #11161f;
  --text: #f1f4f8;
  --muted: #8993a4;
  --line: #28313e;
  --neon: #b4ff39;
  --accent: #8a7dff;
}

[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5e6878;
  --line: #d9dde3;
  --neon: #477c00;
  --accent: #5143d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  transition: 0.25s;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
}

.glow-one {
  top: -220px;
  left: -100px;
  background: var(--accent);
}

.glow-two {
  right: -140px;
  bottom: 0;
  background: var(--neon);
}

.header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.brand span {
  color: var(--neon);
}

nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.85rem;
}

nav a:hover {
  color: var(--neon);
}

.theme-toggle {
  padding: 9px 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: bold;
}

.hero {
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 40px;
}

.status,
.section-label,
.terminal-line,
.hero-bottom,
.contact-small,
.footer {
  font-family: monospace;
  letter-spacing: 0.06em;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
}

.status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 14px var(--neon);
}

.terminal-line {
  margin: 60px 0 15px;
  color: var(--muted);
}

.terminal-line strong {
  color: var(--neon);
}

h1, h2, h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3rem, 8vw, 7.3rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

em {
  color: var(--accent);
  font-style: normal;
}

.hero-description {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 0 19px;
  border: 1px solid var(--line);
  font-weight: bold;
}

.button-primary {
  color: #101408;
  border-color: var(--neon);
  background: var(--neon);
}

.button-primary span {
  font-size: 1.3rem;
}

.button-ghost {
  color: var(--text);
  background: var(--surface);
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 90px;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: var(--neon);
}

.services,
.contact {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  color: var(--neon);
  font-size: 0.72rem;
}

.services-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: end;
  margin: 35px 0 65px;
}

.services-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.services-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.services-grid article {
  min-height: 240px;
  padding: 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}

.services-grid span {
  color: var(--neon);
  font-family: monospace;
  font-size: 0.8rem;
}

.services-grid h3 {
  margin: 50px 0 13px;
  font-size: 1.35rem;
}

.services-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.work {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 31px 10px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s, color 0.2s;
}

.work-item:hover {
  padding-right: 22px;
  padding-left: 22px;
  color: var(--neon);
}

.work-number,
.work-item p {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.78rem;
}

.work-item h3 {
  margin-bottom: 7px;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.work-item p {
  margin: 0;
}

.work-arrow {
  font-size: 1.8rem;
}

.contact {
  text-align: center;
}

.contact-small {
  margin: 65px 0 16px;
  color: var(--muted);
  font-size: 0.75rem;
}

.contact-email {
  display: inline-flex;
  gap: 16px;
  margin-top: 35px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--neon);
  color: var(--neon);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.67rem;
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero-bottom p {
    display: none;
  }

  .services,
  .contact,
  .work {
    padding: 80px 0;
  }

  .services-heading,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-heading {
    gap: 18px;
    margin-bottom: 40px;
  }

  .services-grid article {
    min-height: 190px;
  }

  .services-grid h3 {
    margin-top: 35px;
  }

  .work-item {
    grid-template-columns: 35px 1fr auto;
    gap: 10px;
  }

  .footer {
    display: block;
    line-height: 1.8;
  }
}