:root {
  --bg: #091225;
  --bg-soft: #0f1d36;
  --surface: #12233e;
  --surface-2: #172c4c;
  --text: #ebf0f8;
  --muted: #b2bfd4;
  --stroke: #2a4063;
  --brand: #30c4a7;
  --brand-strong: #1ea98f;
  --accent: #58b6ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 16px 36px rgba(5, 10, 22, 0.45);
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font: 500 16px/1.6 "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, #17385f 0%, transparent 65%),
    radial-gradient(900px 500px at 100% 0%, #102f4e 0%, transparent 70%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #8fd0ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #8dd7ff;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(11, 24, 47, 0.45), rgba(17, 35, 64, 0.55));
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.78rem;
}

.section-head h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  max-width: 72ch;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  background: rgba(8, 16, 34, 0.86);
}

.site-header.scrolled {
  border-bottom-color: var(--stroke);
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  max-width: 260px;
  line-height: 1.25;
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #1a355a, #10203b);
  border: 1px solid var(--stroke);
}

.brand-logo svg {
  width: 26px;
  height: 26px;
}

.brand-logo rect,
.brand-logo path {
  fill: none;
  stroke: #7bd2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: #12233e;
  padding: 0;
  display: inline-grid;
  gap: 4px;
  place-content: center;
}

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

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

.site-nav {
  position: absolute;
  right: 1rem;
  top: calc(var(--header-h) - 4px);
  display: none;
  flex-direction: column;
  width: min(260px, calc(100% - 2rem));
  background: #10203c;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: flex;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.58rem 0.72rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(88, 182, 255, 0.14);
}

.hero {
  padding-top: 4.8rem;
}

.hero-grid {
  display: grid;
  gap: 1.2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 3.5rem);
  line-height: 1.08;
}

.lead {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 66ch;
}

.hero-cta {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--stroke);
  background: #10203d;
  color: var(--text);
  padding: 0.72rem 1rem;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #5bc9ff);
  border-color: transparent;
  color: #052019;
}

.btn-ghost {
  background: transparent;
}

.hero-points {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-points li {
  padding-left: 1.5rem;
  position: relative;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--brand);
}

.hero-card {
  background: linear-gradient(180deg, #122443, #10203a);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.hero-card p {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 0.7rem;
}

.contact-list article {
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(9, 18, 37, 0.68);
  border: 1px solid #284160;
}

.contact-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-list p {
  margin: 0.2rem 0;
}

.cards {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--stroke);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(48, 196, 167, 0.1);
  border: 1px solid rgba(48, 196, 167, 0.3);
  display: inline-grid;
  place-items: center;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.icon path {
  fill: none;
  stroke: #7fdac8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.1rem;
}

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

.maker-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.maker-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--stroke);
}

.maker-card img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 92px;
  border-radius: 8px;
  border: 1px solid #ced8e6;
  background: #ffffff;
  padding: 0.35rem 0.45rem;
  object-fit: contain;
  object-position: center;
}

.maker-card h3 {
  margin: 0.8rem 0 0.35rem;
  font-size: 1.05rem;
}

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

.process {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.process li {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.9rem;
  background: #10223d;
}

.process strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.process span {
  color: var(--muted);
}

.checks {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.checks li {
  background: #10213d;
  border: 1px solid var(--stroke);
  border-radius: 11px;
  padding: 0.75rem 0.9rem;
}

.projects {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.project {
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed #4a688d;
  background: rgba(16, 32, 60, 0.6);
}

.project h3 {
  margin: 0;
  font-size: 1.05rem;
}

.project img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #45648b;
  margin-bottom: 0.75rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project p {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.faq-list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: #10213c;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-panel {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #10223f;
}

.contact-panel p {
  margin: 0.36rem 0;
}

.lead-form {
  background: #10213d;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  gap: 0.58rem;
}

.lead-form label {
  font-weight: 700;
  font-size: 0.9rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid #3e5f85;
  background: #0b1830;
  color: var(--text);
  border-radius: 9px;
  padding: 0.7rem;
  font: inherit;
}

.lead-form textarea {
  resize: vertical;
}

.form-info {
  min-height: 1.2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.form-info.success {
  color: #7be7b8;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  background: rgba(8, 16, 34, 0.88);
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  padding: 1.25rem 0 1.4rem;
}

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

.footer-wrap nav {
  display: flex;
  gap: 1rem;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  background: #10203c;
  color: var(--text);
  display: inline-grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top svg {
  width: 22px;
  height: 22px;
}

.back-top path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 12, 24, 0.75);
}

.modal-panel {
  position: relative;
  margin: 8vh auto 0;
  width: min(620px, calc(100% - 2rem));
  max-height: 84vh;
  overflow: auto;
  background: #132744;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0;
}

.modal-panel p {
  color: var(--muted);
  margin: 0.5rem 0 1rem;
}

.modal-close {
  position: absolute;
  right: 0.5rem;
  top: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .back-top,
  .btn {
    transition: none;
  }
}

@media (min-width: 760px) {
  .section {
    padding: 5.2rem 0;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    width: auto;
    flex-direction: row;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.35rem 0.58rem;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

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

  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .projects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .maker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
