:root {
  --bg: #080a0f;
  --panel: #111722;
  --panel-strong: #171f2c;
  --text: #f4f7fb;
  --muted: #aab5c4;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #53d6b5;
  --accent-2: #f2b84b;
  --accent-3: #7ca7ff;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(8, 10, 15, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 15, 0.92);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 210px;
  min-width: 210px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  padding: 104px clamp(20px, 5vw, 64px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: center;
  overflow: hidden;
  padding-top: 130px;
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  background: #080a0f;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.92), rgba(8, 10, 15, 0.66) 50%, rgba(8, 10, 15, 0.42)),
    radial-gradient(circle at 78% 36%, rgba(83, 214, 181, 0.18), transparent 32%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

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

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.section-heading {
  width: min(var(--max-width), 100%);
  margin: 0 auto 44px;
}

.about-grid,
.service-grid,
.proof-grid,
.contact-panel {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-grid p,
.projects-copy,
.contact-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services,
.projects {
  background: #0c1018;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 270px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card.wide {
  grid-column: span 2;
}

.service-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-grid div {
  min-height: 168px;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.projects-copy {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
  padding: 42px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-link {
  color: var(--accent-3);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  color: var(--accent-3);
  font-weight: 800;
}

.footer-links a {
  display: inline-flex;
  position: relative;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  line-height: 1.2;
}

.footer-links a + a {
  margin-left: 16px;
}

.footer-links a + a::before {
  content: "|";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-58%);
  color: var(--line);
  font-weight: 400;
}

.legal-main {
  min-height: 100vh;
  padding-top: 118px;
}

.legal-main.legal-main {
  display: block;
}

.legal-hero,
.legal-content {
  width: min(980px, 100%);
  margin: 0 auto;
}

.legal-hero {
  padding-bottom: 28px;
}

.legal-main .legal-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}

.legal-summary {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-block {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-main .legal-block h2 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-block p:last-child,
.legal-block ul:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  margin: 0;
  padding-left: 20px;
}

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

.legal-card {
  min-height: 180px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card a,
.legal-block a {
  color: var(--accent-3);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 20px;
    display: none;
    width: min(280px, calc(100vw - 40px));
    padding: 18px;
    background: rgba(17, 23, 34, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .site-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .about-grid,
  .proof-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .section {
    padding: 74px 20px;
  }

  .hero {
    min-height: 90vh;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.4rem);
  }

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

  .service-card.wide {
    grid-column: auto;
  }

  .contact-panel {
    padding: 26px;
  }

  .site-footer {
    flex-direction: column;
  }

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

  .brand {
    width: 168px;
    min-width: 168px;
  }
}
