@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --background: 222 47% 5%;
  --foreground: 210 40% 96%;
  --card: 222 40% 8%;
  --primary: 217 91% 60%;
  --primary-foreground: 222 47% 6%;
  --muted: 220 30% 12%;
  --muted-foreground: 215 20% 62%;
  --accent: 220 30% 14%;
  --border: 217 28% 16%;
  --radius: 0.375rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  background-image:
    linear-gradient(to right, hsl(217 28% 16% / 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(217 28% 16% / 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: hsl(var(--primary) / 0.35);
}

.wrap {
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
}

.display {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: hsl(var(--background) / 0.85);
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: hsl(var(--foreground));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

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

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-ghost:hover {
  background: hsl(var(--accent));
}

.btn-full {
  width: 100%;
}

.icon-btn {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.5);
  display: grid;
  place-items: center;
  color: hsl(var(--foreground));
}

.badge {
  position: absolute;
  top: -0.3rem;
  right: -0.3rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.hero {
  display: grid;
  gap: 3rem;
  padding: 6rem 0 5rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 99px;
  background: hsl(var(--primary) / 0.7);
}

h1,
.h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

h2,
.h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}

h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.lead {
  max-width: 36rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checks span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-visual {
  position: relative;
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  min-height: 0;
  box-shadow: 0 30px 80px hsl(217 91% 40% / 0.12);
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 1344 / 768;
  object-fit: contain;
  object-position: center;
}

.work-grid .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 832;
  object-fit: contain;
  object-position: center;
  border-radius: 0.45rem;
  margin-bottom: 1rem;
}

.visual-meta {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  color: hsl(var(--muted-foreground));
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.marquee-wrap {
  overflow: hidden;
  border-block: 1px solid hsl(var(--border) / 0.7);
  padding: 1rem 0;
}

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.marquee span {
  padding: 0 1.6rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

section {
  padding: 5.5rem 0;
}

.kicker {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: hsl(var(--card) / 0.55);
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.5rem 1.4rem;
}

.card:hover {
  border-color: hsl(var(--primary) / 0.4);
}

.idx {
  color: hsl(var(--primary));
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.8rem;
}

.card p,
.muted {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.process {
  display: grid;
  gap: 0;
}

.process-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem 0;
  border-top: 1px solid hsl(var(--border));
}

.process-row:last-child {
  border-bottom: 1px solid hsl(var(--border));
}

.when {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.stats {
  display: grid;
  gap: 1.5rem;
  padding-top: 3.5rem;
}

.stat strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 2.6rem;
  letter-spacing: -0.03em;
}

.stat span {
  color: hsl(var(--muted-foreground));
  font-size: 0.92rem;
}

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

.metric {
  margin-top: 1.1rem;
  color: hsl(var(--primary));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote {
  margin-top: 1.5rem;
  padding: 1.6rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card) / 0.4);
}

.quote p {
  font-size: 1.15rem;
  line-height: 1.6;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  color: hsl(var(--muted-foreground));
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.split {
  display: grid;
  gap: 2rem;
}

.cta-box {
  background: hsl(var(--card) / 0.6);
  border: 1px solid hsl(var(--border));
  border-radius: 0.9rem;
  padding: 2rem;
}

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 3rem 0 2rem;
  background: hsl(var(--background) / 0.92);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.legal {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

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

.product-card .thumb-img,
.product-card .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0.55rem;
  margin-bottom: 1rem;
  display: block;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.price {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
}

.form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
}

input,
select,
textarea {
  width: 100%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.45rem;
  padding: 0.75rem 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid hsl(var(--primary) / 0.45);
  border-color: hsl(var(--primary));
}

.row2 {
  display: grid;
  gap: 0.85rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}

.qty {
  width: 4.2rem;
  padding: 0.45rem 0.5rem;
}

.notice {
  padding: 0.9rem 1rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  background: hsl(var(--primary) / 0.08);
  border-radius: 0.55rem;
  color: hsl(var(--foreground));
  font-size: 0.9rem;
  line-height: 1.5;
}

.thumb-core {
  background: radial-gradient(circle at 30% 20%, #60a5fa, #0b1220 60%);
}
.thumb-studio {
  background: radial-gradient(circle at 70% 10%, #38bdf8, #0b1220 58%);
}
.thumb-vision {
  background: radial-gradient(circle at 40% 80%, #818cf8, #0b1220 55%);
}
.thumb-rack {
  background: radial-gradient(circle at 20% 50%, #22d3ee, #0b1220 60%);
}
.thumb-guard {
  background: radial-gradient(circle at 60% 30%, #818cf8, #0b1220 58%);
}
.thumb-pipe {
  background: radial-gradient(circle at 25% 70%, #38bdf8, #0b1220 58%);
}
.thumb-field {
  background: radial-gradient(circle at 80% 40%, #34d399, #0b1220 58%);
}
.thumb-archive {
  background: radial-gradient(circle at 50% 20%, #a78bfa, #0b1220 58%);
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.45rem;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0 0 1rem;
}

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

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  z-index: 50;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
  .cards,
  .stats,
  .work-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-row {
    grid-template-columns: 80px 1fr 1.6fr 140px;
    align-items: start;
  }
  .row2,
  .split,
  .footer-grid,
  .checkout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding-top: 7rem;
  }
  .cards,
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .work-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
}
