:root {
  color-scheme: dark;
  --ink: #f7f4ed;
  --muted: #c3baaa;
  --paper: #151610;
  --panel: #202216;
  --panel-2: #27291c;
  --line: rgba(247, 244, 237, 0.18);
  --accent: #d8ff54;
  --accent-2: #ff6b35;
  --steel: #9db6bd;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(216, 255, 84, 0.08), transparent 34%),
    linear-gradient(210deg, rgba(255, 107, 53, 0.08), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(21, 22, 16, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover,
footer a:hover,
.contact-copy a:hover {
  color: var(--accent);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  padding: clamp(44px, 7vw, 94px) clamp(18px, 5vw, 76px) clamp(28px, 5vw, 70px);
}

.hero-copy {
  max-width: 780px;
}

.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 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  max-width: 980px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.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;
  cursor: pointer;
}

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

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

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.device-shell {
  width: min(88vw, 430px);
  aspect-ratio: 0.74;
  padding: 28px;
  border: 1px solid rgba(247, 244, 237, 0.2);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 10px),
    linear-gradient(145deg, #2c3020, #11130d 58%, #2b2c25);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.screen {
  min-height: 145px;
  padding: 20px;
  border: 1px solid rgba(216, 255, 84, 0.35);
  border-radius: 8px;
  background: #0b150d;
  color: var(--accent);
  box-shadow: inset 0 0 34px rgba(216, 255, 84, 0.12);
}

.screen strong {
  display: block;
  margin-top: 20px;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  line-height: 1.1;
}

.screen-line {
  display: block;
  width: 78%;
  height: 8px;
  margin-bottom: 12px;
  background: rgba(216, 255, 84, 0.55);
}

.screen-line.short {
  width: 48%;
}

.lights {
  display: flex;
  gap: 14px;
  margin: 26px 0;
}

.lights span {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 22px rgba(255, 107, 53, 0.62);
}

.lights span:nth-child(2) {
  background: var(--accent);
  box-shadow: 0 0 22px rgba(216, 255, 84, 0.62);
}

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

.keypad span {
  min-height: 54px;
  border: 1px solid rgba(247, 244, 237, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 237, 0.07);
}

.printed-part {
  position: absolute;
  border: 1px solid rgba(247, 244, 237, 0.12);
  border-radius: 8px;
  background: linear-gradient(145deg, #6d7760, #2d342b);
  box-shadow: var(--shadow);
}

.part-one {
  width: 150px;
  height: 92px;
  right: 2%;
  top: 8%;
  transform: rotate(9deg);
}

.part-two {
  width: 120px;
  height: 164px;
  left: 2%;
  bottom: 7%;
  transform: rotate(-12deg);
}

.section {
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.intro p,
.interactive-copy p,
.contact-copy p,
.quality article p,
.portfolio-grid p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats li {
  min-height: 142px;
  padding: 18px;
  background: var(--panel);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: 2rem;
  line-height: 1;
}

.stats span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.portfolio-grid article,
.quality-list article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 34, 22, 0.84);
}

.portfolio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border: 1px solid rgba(216, 255, 84, 0.34);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 900;
}

.quality {
  background: rgba(247, 244, 237, 0.035);
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quality-list ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.quality-list li + li {
  margin-top: 8px;
}

.interactive,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.signal-panel {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(247, 244, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 237, 0.08) 1px, transparent 1px),
    #10130e;
  background-size: 42px 42px;
}

.ping {
  position: absolute;
  inset: 50%;
  width: 54px;
  height: 54px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ping-two {
  width: 190px;
  height: 190px;
  opacity: 0.38;
}

.ping-three {
  width: 330px;
  height: 330px;
  opacity: 0.16;
}

.phone {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: min(220px, calc(100% - 64px));
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(247, 244, 237, 0.16);
  border-radius: 8px;
  background: #202216;
  box-shadow: var(--shadow);
}

.phone span {
  display: block;
  width: 42px;
  height: 8px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: var(--accent-2);
}

.phone strong,
.phone small {
  display: block;
}

.phone small {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(247, 244, 237, 0.2);
  border-radius: 8px;
  background: #10130e;
  color: var(--ink);
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

input[type="file"] {
  min-height: auto;
  padding: 12px;
}

textarea {
  resize: vertical;
  padding: 12px;
}

.field-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.form-status[data-state="error"] {
  color: #ff9a74;
}

.form-status a {
  text-decoration: underline;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

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

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

  .hero-visual {
    min-height: 470px;
  }

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

  .quality-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .device-shell {
    padding: 18px;
  }

  .portfolio-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats li {
    min-height: 110px;
  }

  .part-one,
  .part-two {
    display: none;
  }

  footer {
    flex-direction: column;
  }
}
