:root {
  --void: #07090d;
  --panel: #10151d;
  --panel-2: #151c25;
  --ink: #10141a;
  --text: #eef5f8;
  --muted: #9aa8b3;
  --paper: #f4f7f8;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: #dbe4e8;
  --cyan: #2bd6d6;
  --green: #6bd17e;
  --red: #ff5d73;
  --amber: #f3b64a;
  --blue: #4c7dff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--void);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(7, 9, 13, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 54px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(43, 214, 214, 0.42));
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name {
  color: var(--white);
  font-size: 1.34rem;
  font-weight: 650;
  line-height: 1;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  color: var(--text);
  font-weight: 850;
}

.section {
  padding: clamp(68px, 9vw, 124px) clamp(18px, 4vw, 64px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(rgba(43, 214, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 214, 214, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 74% 24%, rgba(76, 125, 255, 0.23), transparent 31%),
    radial-gradient(circle at 16% 82%, rgba(107, 209, 126, 0.13), transparent 28%),
    var(--void);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 930px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(2.75rem, 5.7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 950px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.1vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-text,
.section-heading p,
.contact-section p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

.hero-actions,
.hero-proof,
.filters,
.stack-cloud,
.project-meta {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 12px;
  margin-top: 32px;
}

.button,
.filter,
.project-link {
  min-height: 46px;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button,
.filter {
  border: 1px solid transparent;
}

.primary {
  color: #061014;
  background: var(--cyan);
  box-shadow: 0 16px 40px rgba(43, 214, 214, 0.22);
}

.secondary,
.filter {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.hero-proof {
  gap: 9px;
  margin-top: 26px;
}

.hero-proof span,
.project-meta span,
.stack-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 820;
}

.hero-proof span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.ops-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(21, 28, 37, 0.98), rgba(10, 14, 20, 0.98));
  box-shadow: var(--shadow);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.console-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.console-header span:nth-child(2) {
  background: var(--amber);
}

.console-header span:nth-child(3) {
  background: var(--green);
}

.console-header strong {
  margin-left: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.86rem;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.console-line,
.pipeline div,
.rescue-card,
.rescue-list article,
.service-grid article,
.project-card,
.testimonial-grid figure,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.console-line {
  padding: 18px;
}

.console-line span,
.pipeline span,
.kicker {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-line strong {
  display: block;
  margin-top: 10px;
  font-size: 1.3rem;
}

.console-line.ok strong {
  color: var(--green);
}

.console-line.warn strong {
  color: var(--amber);
}

.console-line.error strong {
  color: var(--red);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 22px 22px;
}

.pipeline div {
  padding: 18px;
  background: rgba(43, 214, 214, 0.07);
}

.pipeline strong {
  display: block;
  margin-top: 8px;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #c7f7e1;
  background: #05070a;
  border-top: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, monospace;
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f4f7f8;
  color: var(--ink);
}

.trust-strip div {
  padding: 28px clamp(18px, 4vw, 64px);
  border-right: 1px solid var(--line-dark);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.22rem;
}

.trust-strip span {
  margin-top: 7px;
  color: #5f6d78;
  line-height: 1.45;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 900px;
}

.rescue-section,
.work-section {
  background: #0b0f15;
}

.rescue-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
}

.rescue-card,
.rescue-list article {
  padding: 26px;
}

.primary-card {
  background:
    linear-gradient(140deg, rgba(43, 214, 214, 0.16), rgba(76, 125, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.primary-card h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

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

.primary-card p,
.rescue-list p,
.service-grid p,
.project-card p,
.testimonial-grid blockquote {
  color: var(--muted);
  line-height: 1.62;
}

.services-section,
.testimonials {
  background: var(--paper);
  color: var(--ink);
}

.services-section .section-heading p,
.testimonials .section-heading p {
  color: #5f6d78;
}

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

.service-grid article {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
  border-color: var(--line-dark);
}

.service-icon {
  display: inline-grid;
  min-width: 46px;
  height: 36px;
  margin-bottom: 34px;
  place-items: center;
  color: #061014;
  background: var(--cyan);
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 950;
}

.seo-services-section {
  background: #eef3f5;
  color: var(--ink);
}

.seo-services-section .section-heading p,
.seo-service-grid p {
  color: #5f6d78;
}

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

.seo-service-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.seo-service-grid h3 {
  max-width: 320px;
  font-size: 1.18rem;
}

.filters {
  gap: 10px;
  margin-bottom: 28px;
}

.filter.active {
  color: #061014;
  background: var(--cyan);
  border-color: var(--cyan);
}

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

.project-load-error {
  grid-column: 1 / -1;
  color: var(--muted);
}

.project-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: var(--panel);
}

.project-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #17202a;
  border-bottom: 1px solid var(--line);
}

.project-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-meta {
  gap: 8px;
  margin: auto 0 12px;
}

.project-meta span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.project-link {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: fit-content;
  color: var(--cyan);
  background: rgba(43, 214, 214, 0.08);
  border: 1px solid rgba(43, 214, 214, 0.28);
}

.architecture-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.arch-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(43, 214, 214, 0.08);
  border: 1px solid rgba(43, 214, 214, 0.22);
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 850;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
}

.case-modal.open {
  display: flex;
}

.case-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: modalBackdropIn 420ms ease-out both;
}

.case-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(760px, 88vh);
  overflow: auto;
  padding: clamp(26px, 5vw, 46px);
  background:
    linear-gradient(180deg, rgba(21, 28, 37, 0.98), rgba(10, 14, 20, 0.98));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 54%;
  animation: modalPanelIn 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.case-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.case-modal-panel h2 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.case-modal-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.case-modal-content dl {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
}

.case-modal-content dl div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.case-modal-content dt {
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-modal-content dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-modal-backdrop,
  .case-modal-panel {
    animation: none;
  }
}

.stack-section {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #141015;
  background-size: 38px 38px;
}

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

.tech-matrix article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tech-matrix h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1rem;
}

.stack-cloud {
  gap: 12px;
}

.stack-cloud span {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

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

.testimonial-grid.all-testimonials {
  grid-template-columns: repeat(5, 1fr);
}

.testimonial-grid figure {
  margin: 0;
  padding: 26px;
  background: var(--white);
  border-color: var(--line-dark);
}

.testimonial-grid blockquote {
  margin: 0 0 20px;
  color: #5f6d78;
  font-size: 1.03rem;
}

.testimonial-grid figcaption {
  font-weight: 850;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 6vw, 90px);
  background: #07090d;
}

.contact-section a {
  color: var(--cyan);
}

.contact-section address {
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
  padding: clamp(20px, 4vw, 34px);
  background: var(--panel);
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: var(--red);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 64px);
  color: var(--muted);
  background: #05070a;
  border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .hero,
  .rescue-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .service-grid,
  .seo-service-grid,
  .tech-matrix,
  .testimonial-grid.all-testimonials,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 3rem;
  }

  .console-grid,
  .pipeline,
  .trust-strip,
  .rescue-list,
  .service-grid,
  .seo-service-grid,
  .tech-matrix,
  .project-grid,
  .testimonial-grid.all-testimonials,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

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