/* EP–133 K.O. II–inspired: cool gray chassis, safety orange, high-contrast display strips */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #d4d4d0;
  --bg-deep: #c9c9c4;
  --surface: #ecece8;
  --surface-dark: #1a1a1a;
  --text: #141414;
  --muted: #4a4a48;
  --muted-on-dark: #b8b8b4;
  --accent: #ff5c00;
  --accent-hover: #e65500;
  --border: #a8a8a2;
  --border-dark: #333;
  --led-cyan: #00e5ff;
  --led-lime: #b8ff00;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  background-image: radial-gradient(
      circle,
      rgba(0, 0, 0, 0.06) 1px,
      transparent 1px
    );
  background-size: 10px 10px;
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0.01em;
  padding-left: max(0px, env(safe-area-inset-left, 0));
  padding-right: max(0px, env(safe-area-inset-right, 0));
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0));
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration-color: rgba(20, 20, 20, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer nav a {
  font-size: 0.8125rem;
}

.nav-wrap,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Mobile hamburger (only shown on small screens) */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex: 0 0 auto;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.nav-toggle-icon {
  display: inline-block;
  width: 1.2rem;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 2px;
  background: var(--text);
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.site-nav {
  display: flex;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

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


.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.logo:hover {
  color: var(--accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}

.hero-minimal-inner {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-minimal .cta-group {
  margin-top: 0;
  justify-content: center;
}

.hero,
.section {
  padding: 4rem 0;
}

.hero.hero-minimal {
  padding: 3rem 0;
}

.section-muted {
  background: var(--surface-dark);
  color: var(--muted-on-dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.section-muted h2 {
  color: #f2f2f0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.section-muted p {
  color: var(--muted-on-dark);
}

.grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.content-narrow {
  width: min(760px, 100%);
}

.badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #9a9a96 0%, #8a8a8a 100%);
  color: #111;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  touch-action: manipulation;
}

.btn:hover {
  filter: brightness(1.05);
  color: #111;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: #cc4a00;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.form {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: rgba(236, 236, 232, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 30px rgba(0, 0, 0, 0.06);
}

.form-row {
  margin-top: 0.85rem;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.page-title-center {
  text-align: center;
}

.section-title-center {
  text-align: center;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.form-section {
  margin-top: 1.75rem;
}

.form-row-notes {
  margin-top: 1.4rem;
}

.input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font: inherit;
}

.input.product-fixed {
  border-color: transparent;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none;
}

.input.product-fixed[readonly] {
  background: transparent;
}

.input[readonly] {
  background: rgba(255, 255, 255, 0.35);
  color: rgba(20, 20, 20, 0.8);
}

.textarea {
  resize: vertical;
}

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin: 1rem 0 0;
  background: rgba(255, 255, 255, 0.35);
}

.legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.form-help {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.form-actions {
  margin-top: 1.25rem;
}

.cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-muted .btn {
  border-color: #555;
  background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
  color: #eee;
}

.section-muted .btn:hover {
  color: #fff;
}

.section-muted .btn-primary {
  background: var(--accent);
  border-color: #cc4a00;
  color: #fff;
}

.section-muted .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

p,
li {
  color: var(--muted);
}

.section-muted a:not(.btn) {
  color: var(--led-cyan);
  text-decoration-color: rgba(0, 229, 255, 0.45);
}

.section-muted a:not(.btn):hover {
  color: var(--led-lime);
  text-decoration-color: var(--led-lime);
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--text);
}

h1 {
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h2 {
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .hero,
  .section {
    padding: 2.25rem 0;
  }

  .nav-wrap {
    padding: 0.75rem 0;
  }

  .hero.hero-minimal {
    padding: 2rem 0;
    min-height: 0;
  }

  .nav-wrap,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-grid {
    padding: 1.25rem 0 1.6rem;
  }

  .nav-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    width: auto;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(236, 236, 232, 0.98);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  }

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

  .site-nav a {
    min-height: 2.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(20, 20, 20, 0.12);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    justify-content: flex-start;
  }

  .site-nav a[aria-current="page"] {
    border-color: rgba(20, 20, 20, 0.28);
    background: rgba(255, 92, 0, 0.12);
  }

  .footer-grid nav {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

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

  .content-narrow {
    width: 100%;
  }

  .card,
  .product-card {
    padding: 0.95rem;
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 20rem;
    margin-inline: auto;
  }

  .cta-group .btn {
    width: 100%;
    margin-top: 0.35rem;
  }

  .hero-minimal .cta-group {
    max-width: 18rem;
  }

  .product-card .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
