:root {
  --bg: #060708;
  --panel: #101316;
  --panel-2: #171b20;
  --ink: #f3efe4;
  --muted: #a4abb3;
  --line: rgba(243, 239, 228, 0.14);
  --accent: #7dd3fc;
  --accent-2: #8d2034;
  --gold: #d6b874;
  --scrollLogoY: 0px;
  --scrollLogoRotate: 0deg;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.14), transparent 26rem),
    linear-gradient(180deg, #050607 0%, #101112 48%, #08090b 100%);
  color: var(--ink);
  min-width: 320px;
}

body::before {
  content: "H F +";
  position: fixed;
  inset: auto -6vw 10vh auto;
  z-index: -1;
  color: rgba(243, 239, 228, 0.055);
  font-size: clamp(7rem, 22vw, 22rem);
  font-weight: 900;
  letter-spacing: 0;
  transform: translateY(var(--scrollLogoY)) rotate(var(--scrollLogoRotate));
  transition: transform 120ms linear;
  pointer-events: none;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(6, 7, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.brand-logo-img {
  width: 78px;
  height: 28px;
  object-fit: cover;
  object-position: left center;
  border: 1px solid var(--line);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  color: var(--muted);
  font-size: 0.92rem;
}

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

.button,
.ghost-button,
.text-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0.72rem 1rem;
  font-weight: 800;
}

.button {
  background: var(--ink);
  color: #08090b;
}

.button.dark {
  background: #0b0d0f;
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.text-button {
  background: transparent;
  color: var(--accent);
  padding-inline: 0;
}

.cart-button {
  position: relative;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 0.4rem;
  border-radius: 999px;
  background: var(--accent-2);
  color: white;
  font-size: 0.8rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: calc(100vh - 74px);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4rem);
  padding: clamp(1.5rem, 5vw, 4rem);
}

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

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-wordmark {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 540px;
  margin: 0 0 1.45rem;
  padding: 0.2rem 0 0.25rem;
  line-height: 0.78;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wordmark-row {
  display: flex;
  align-items: end;
  gap: clamp(0.45rem, 1.5vw, 0.85rem);
  max-width: 100%;
}

.wordmark-top,
.wordmark-main {
  display: block;
  font-weight: 950;
  letter-spacing: 0;
}

.wordmark-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
  border: 2px solid rgba(243, 239, 228, 0.8);
  padding: 0.08em 0.12em 0.12em;
  color: transparent;
  -webkit-text-stroke: 1.7px var(--ink);
  text-stroke: 1.7px var(--ink);
  font-size: clamp(2.35rem, 4.7vw, 4.2rem);
  box-shadow: 0.08em 0.08em 0 rgba(141, 32, 52, 0.85);
  transform: skewX(-5deg);
}

.wordmark-top span {
  display: inline-grid;
  place-items: center;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.02em;
  border: 2px solid var(--accent);
  color: var(--accent);
  -webkit-text-stroke: 0;
  text-stroke: 0;
  font-size: 0.58em;
  line-height: 1;
  transform: skewX(5deg) rotate(5deg);
}

.wordmark-main {
  color: var(--ink);
  font-size: clamp(3.1rem, 7.1vw, 6.25rem);
  transform: skewX(-9deg);
  text-shadow:
    0.055em 0 var(--accent-2),
    -0.018em 0 var(--accent);
}

.wordmark-main::after {
  content: "";
  display: block;
  height: 0.08em;
  width: 76%;
  margin-top: 0.05em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: skewX(9deg);
}

.wordmark-tag {
  justify-self: start;
  margin-top: 0.6rem;
  border: 1px solid var(--accent);
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  padding: 0.32rem 0.5rem;
  font-size: clamp(0.66rem, 1.4vw, 0.88rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.hero-copy > p {
  color: var(--muted);
  max-width: 590px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.7rem 0;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 0.7rem;
  max-width: 420px;
}

.countdown div {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.countdown strong {
  display: block;
  font-size: 2rem;
}

.countdown span {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-media {
  min-height: 70vh;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #0c0e11;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 8, 0.18), transparent 48%);
}

.section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 3.5rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin-bottom: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 430px;
  line-height: 1.55;
  margin-bottom: 0;
}

.filters {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.1rem;
}

select,
input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0d0f;
  color: var(--ink);
  padding: 0 0.85rem;
}

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

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: #15181d;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.product-media:hover img {
  transform: scale(1.04);
}

.product-media span {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: rgba(6, 7, 8, 0.78);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-info {
  padding: 1rem;
}

.product-info p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.product-info h3 {
  min-height: 2.5rem;
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
}

.price-line {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.price-line s {
  color: var(--muted);
}

.drop-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.drop-strip div {
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.drop-strip strong {
  display: block;
  font-size: 1.2rem;
}

.drop-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: stretch;
}

.story-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  display: grid;
  align-content: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.story-copy h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
}

.story-copy p,
.admin-login p {
  color: var(--muted);
  line-height: 1.65;
}

.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(0, 0, 0, 0.68);
}

.modal.is-open,
.drawer.is-open {
  display: block;
}

.modal-panel {
  position: absolute;
  inset: 5vh 5vw;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08090b;
  overflow: auto;
}

.modal-media img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #14171b;
  border-radius: 8px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.gallery-row button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: #101316;
  overflow: hidden;
}

.gallery-row button.is-active {
  border-color: var(--accent);
}

.gallery-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.modal-copy {
  padding: 1rem;
}

.close-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  float: right;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.size-row button {
  min-width: 52px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.size-row button.is-active {
  background: var(--ink);
  color: #08090b;
}

.modal-copy ul {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.1rem;
}

.product-detail-section {
  margin-top: 1.05rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.product-detail-section h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.detail-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.spec-list,
.gateway-status {
  display: grid;
  gap: 0.6rem;
}

.spec-list div,
.gateway-status div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.spec-list span,
.gateway-status span {
  color: var(--muted);
}

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

.policy-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.policy-grid h4 {
  margin: 0 0 0.5rem;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  min-height: 100vh;
  background: #08090b;
  border-left: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item h4 {
  margin: 0 0 0.25rem;
}

.cart-item p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.cart-footer {
  margin-top: auto;
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.cart-total,
.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.checkout-form,
.summary-box,
.admin-login,
.admin-dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.checkout-form input,
.admin-login input,
.admin-editor input,
.admin-editor select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1013;
  color: var(--ink);
  padding: 0.75rem 0.8rem;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.payment-status {
  color: var(--accent);
  min-height: 1.4rem;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.admin-login {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
}

.admin-login label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.admin-auth-status {
  min-height: 1.4rem;
  color: var(--accent);
}

.information-section {
  padding-top: 2rem;
}

.admin-entry {
  display: none;
}

body.admin-route .admin-entry {
  display: block;
}

.policy-section {
  border-top: 1px solid var(--line);
}

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

.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.08), transparent 38%),
    var(--panel);
  padding: 1rem;
}

.policy-card h3 {
  margin-bottom: 0.7rem;
}

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

.policy-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
}

.info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.info-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.info-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.info-panel dd {
  margin: 0;
  line-height: 1.6;
  font-weight: 800;
}

.admin-dashboard {
  display: none;
}

.admin-shell.is-authenticated .admin-dashboard {
  display: grid;
  gap: 1rem;
}

.admin-shell.is-authenticated .admin-login {
  display: none;
}

.admin-sessionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
}

.admin-sessionbar span {
  color: var(--muted);
  font-weight: 800;
}

.admin-owner-panel {
  display: none;
}

.admin-shell.is-owner .admin-owner-panel {
  display: grid;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.5rem;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.24rem 0.54rem;
  background: rgba(125, 211, 252, 0.14);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.8rem;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-metrics div,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 1rem;
}

.admin-metrics strong {
  display: block;
  font-size: 1.65rem;
}

.admin-metrics span,
.admin-card-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 1rem;
}

.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-card-head h3 {
  margin-bottom: 0;
}

.admin-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-editor img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #111418;
}

.admin-editor label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.admin-editor .full,
.admin-editor button {
  grid-column: 1 / -1;
}

.footer {
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 80;
  transform: translate(-50%, 2rem);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: #08090b;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-weight: 900;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .story-layout,
  .checkout-layout,
  .admin-grid,
  .policy-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 52vh;
  }

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

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: center;
  }

  .brand-lockup small {
    display: none;
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero-wordmark {
    width: 100%;
  }

  .wordmark-top {
    font-size: clamp(2.1rem, 16vw, 3.4rem);
    -webkit-text-stroke-width: 1.5px;
    text-stroke-width: 1.5px;
  }

  .wordmark-main {
    font-size: clamp(2.65rem, 18vw, 4.15rem);
    text-shadow: 0.045em 0 var(--accent-2);
  }

  .wordmark-tag {
    margin-top: 0.4rem;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .countdown,
  .product-grid,
  .drop-strip,
  .info-panel,
  .admin-metrics,
  .policy-grid,
  .admin-editor,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    inset: 0;
    border-radius: 0;
  }

  .footer {
    flex-direction: column;
  }
}
