/* 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));
}

.home-page {
  position: relative;
}

.home-page header,
.home-page main,
.home-page footer {
  position: relative;
  z-index: 1;
}

.grid-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rain-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 126, 28, 1);
  box-shadow: 0 0 12px rgba(255, 126, 28, 0.88), 0 0 4px rgba(255, 214, 170, 0.95);
  transform: translate3d(0, 0, 0);
  transition: none;
  will-change: transform, opacity;
}

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 .container,
.site-footer .container {
  width: min(1720px, 99vw);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.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;
  align-items: center;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  color: var(--text);
}

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

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

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

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

.site-nav {
  display: flex;
}

.site-nav .icon-btn {
  display: none;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 2rem;
}

.home-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.home-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

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

.site-nav .nav-link-products {
  color: #ff7a00;
}

.site-nav .nav-link-request {
  color: #97baff;
}

.site-nav .nav-link-products:hover,
.site-nav .nav-link-products[aria-current="page"] {
  color: #ff7a00;
}

.site-nav .nav-link-request:hover,
.site-nav .nav-link-request[aria-current="page"] {
  color: #97baff;
}

.icon-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.header-ig {
  display: inline-flex;
  margin-left: auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.header-ig svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.6rem;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.62);
  border-radius: 0;
  min-height: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #97baff;
}

.lang-btn:hover {
  color: var(--text);
}


.logo {
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 1rem;
}

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

.logo-mark {
  display: block;
  width: auto;
  height: 2.2rem;
  flex: 0 0 auto;
}

.logo-text {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.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%;
}

.home-draft-card {
  width: min(1080px, 100%);
  min-height: 460px;
  background: var(--surface);
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 12px;
  padding: 1.6rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home-draft-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.home-draft-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.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;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.product-grid .product-card {
  order: 1;
  transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
}

.product-grid .product-card.is-active {
  order: 0;
  grid-column: 1 / -1;
  transform: scale(1.02);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 20px rgba(0, 0, 0, 0.14);
}

.product-grid .product-card.is-condensed {
  transform: scale(0.84);
  opacity: 0.55;
}

.product-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  color: rgba(20, 20, 20, 0.62);
}

.product-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-details {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.7rem;
  align-items: start;
}

.product-details[hidden] {
  display: none !important;
}

.product-details p,
.product-details ul {
  margin: 0.4rem 0;
  color: var(--muted);
}

.product-photo-block {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.product-detail-block h3 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-details ul {
  padding-left: 1rem;
}

.product-request-btn {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
}

.product-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.product-photo-trigger {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  min-height: 7.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.72);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.photo-lightbox-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
}

.photo-lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #97baff;
  font-size: 1.7rem;
  cursor: pointer;
}

.photo-lightbox-content {
  min-height: 340px;
  border: 1px dashed rgba(20, 20, 20, 0.24);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(20, 20, 20, 0.76);
  background: rgba(255, 255, 255, 0.72);
}

.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;
}

.product-details-toggle {
  background: #97baff;
  border-color: #7aa6ea;
  color: #111;
}

.product-details-toggle:hover {
  background: #a9c7ff;
  color: #111;
}

.product-card.is-active .product-details-toggle {
  display: none !important;
}

.product-close-toggle {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #97baff;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.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);
}

.quantity-options {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.quantity-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quantity-option {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  cursor: pointer;
}

.quantity-options input[type="radio"]:checked + .quantity-option {
  background: #97baff;
  border-color: #7aa6ea;
}

.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: 80;
    overflow: visible;
  }

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

  .nav-wrap {
    padding: 0.65rem 0 0.8rem;
  }

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

  .home-draft-card {
    min-height: 340px;
    padding: 1rem;
  }

  .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;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    z-index: 81;
    gap: 0.55rem 0.7rem;
  }

  .logo {
    margin-right: auto;
  }

  .header-ig {
    margin-left: auto;
  }

  .lang-switch {
    margin-left: 0;
    order: 3;
    position: static;
    transform: none;
  }

  .logo-mark {
    height: 2rem;
  }

  .logo-text {
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1.2rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(236, 236, 232, 0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    z-index: 90;
  }

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

  .site-nav .icon-btn {
    display: none;
  }

  .site-nav a {
    min-height: 2.5rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(20, 20, 20, 0.14);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    justify-content: flex-start;
  }

  .site-nav .home-icon {
    margin-top: 1.2rem;
  }

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

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

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

  .product-grid .product-card.is-active {
    grid-column: span 1;
  }

  .product-details {
    display: block;
  }

  .product-photo-block {
    grid-column: auto;
    grid-row: auto;
  }

  .product-grid .product-card.is-condensed {
    transform: none;
    opacity: 0.9;
  }

  .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) {
  .grid-rain {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
