:root {
  --bg: #07090d;
  --bg-2: #0c1118;
  --panel: #10151c;
  --line: #1e2a38;
  --text: #e6edf3;
  --muted: #8b9aab;
  --copper: #e8a317;
  --copper-dim: #9a6d12;
  --ok: #3ecf8e;
  --danger: #e05a4f;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Oswald", "IBM Plex Sans", sans-serif;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--copper);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 10px var(--copper);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1 em {
  font-style: normal;
  color: var(--copper);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.lead,
.section-head p {
  color: var(--muted);
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.btn-primary {
  background: var(--copper);
  color: #16120a;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--copper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--copper);
  border-radius: 10px;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.brand-led {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.nav-cta {
  color: #16120a !important;
  background: var(--copper);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 10px 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 163, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 23, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.panel-card {
  background: linear-gradient(180deg, #141c26, var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.panel-head,
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.panel-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}

.badge-run {
  color: #082014;
  background: var(--ok);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.panel-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.1rem;
}

.gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--copper) 72%, var(--line) 0);
}

.gauge-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--panel);
}

.gauge > div {
  position: relative;
  text-align: center;
}

.gauge strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--display);
}

.gauge small,
.tags dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0;
}

.tags div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
}

.tags dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.led {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.led.ok {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.spacer {
  flex: 1;
}

.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1rem 0;
}

.strip p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  border-color: var(--copper-dim);
}

.card-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  margin-top: 0;
  flex: 1;
}

.card ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.92rem;
}

.card li {
  padding: 0.25rem 0 0.25rem 0.9rem;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--copper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.steps li {
  border-top: 2px solid var(--copper);
  padding-top: 1rem;
}

.steps span {
  font-family: var(--mono);
  color: var(--copper);
  font-size: 0.85rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.facts li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.facts strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--copper);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b1016;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-open img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease;
}

.gallery-wide .gallery-open img {
  object-position: center 42%;
}

.gallery-open:hover img,
.gallery-open:focus-visible img {
  transform: scale(1.03);
}

.gallery figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.95rem;
}

.gallery figcaption span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--copper);
}

.lightbox {
  border: 1px solid var(--line);
  background: #0b1016;
  color: var(--text);
  padding: 0;
  max-width: min(960px, 94vw);
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(4, 6, 10, 0.82);
}

.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 0.75rem 2.6rem 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.75);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--copper);
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(232, 163, 23, 0.12), transparent 55%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0;
}

.cta-inner p:last-of-type {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-card {
  font-style: normal;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.4rem 1.1rem;
  background: var(--panel);
}

.contact-card p {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.7rem;
  margin: 0.85rem 0;
  color: var(--text);
}

.contact-card span:first-child {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-card a {
  color: var(--copper);
  text-decoration: none;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1016;
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--copper);
  border-color: transparent;
}

.form-error {
  color: var(--danger);
  margin: 0;
}

.form-ok {
  color: var(--ok);
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wa-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  background: #25d366;
  color: #06210f;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 30;
}

@media (max-width: 1080px) {
  .hero-inner,
  .about-grid,
  .contact-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery figure:first-child,
  .gallery-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-open img {
    aspect-ratio: 4 / 3;
  }

  .panel-card {
    max-width: 440px;
  }

  .cards,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-inner,
  .cards,
  .steps,
  .about-grid,
  .contact-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    overflow: visible;
    backdrop-filter: none;
    background: #07090d;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 1rem;
    right: 1rem;
    z-index: 50;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: #0e151f;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .cards,
  .steps,
  .field-row,
  .panel-body {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

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

  .gallery-open img {
    transition: none;
  }
}
