/* hide.is — premium storefront design system */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
  --void: #030303;
  --ink: #f4f2ed;
  --ink-dim: rgba(244, 242, 237, 0.62);
  --ink-faint: rgba(244, 242, 237, 0.28);
  --line: rgba(244, 242, 237, 0.12);
  --line-strong: rgba(244, 242, 237, 0.35);
  --invert: #f4f2ed;
  --invert-fg: #030303;
  --display: "Syne", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font: 400 15px/1.65 var(--display);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}

a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: rgba(3, 3, 3, 0.88);
  backdrop-filter: blur(12px);
}

.logo {
  font: 700 15px/1 var(--display);
  letter-spacing: 0.38em;
  text-transform: lowercase;
  border: 0;
}

.logo span {
  opacity: 0.35;
}

.nav-links {
  display: flex;
  gap: 28px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a { border: 0; opacity: 0.55; }
.nav-links a:hover { opacity: 1; }

/* ── Hero ── */
.hero {
  padding: 148px 0 72px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 28px;
}

.hero h1 {
  margin: 0;
  font: 800 clamp(3.2rem, 11vw, 7.5rem)/0.92 var(--display);
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-lead {
  margin: 36px 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-dim);
  font-weight: 400;
}

.hero-rule {
  margin-top: 56px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.hero-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  animation: rule-draw 1.4s var(--ease) 0.2s forwards;
}

@keyframes rule-draw {
  to { transform: scaleX(1); }
}

.marquee {
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: marquee 28s linear infinite;
}

.marquee-track span { white-space: nowrap; }

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

/* ── Sections ── */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font: 600 clamp(1.5rem, 3vw, 2rem)/1 var(--display);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  max-width: 28ch;
  font: 400 13px/1.5 var(--mono);
  color: var(--ink-dim);
  text-align: right;
}

/* ── Product grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  background: var(--void);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

.product:hover {
  background: var(--invert);
  color: var(--invert-fg);
}

.product:hover .product-meta,
.product:hover .product-desc,
.product:hover .product-index {
  color: rgba(3, 3, 3, 0.55);
}

.product-index {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}

.product h3 {
  margin: 0;
  font: 700 clamp(1.4rem, 2.5vw, 1.85rem)/1.05 var(--display);
  letter-spacing: -0.03em;
}

.product-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
  flex: 1;
}

.product-price {
  font: 600 clamp(2rem, 4vw, 2.6rem)/1 var(--display);
  letter-spacing: -0.04em;
}

.product-price small {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-left: 8px;
}

.product-meta {
  font: 400 11px/1.4 var(--mono);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

.product button {
  margin-top: 8px;
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: inherit;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 22px;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product:hover button {
  border-color: var(--invert-fg);
  background: var(--invert-fg);
  color: var(--invert);
}

.product button:disabled { opacity: 0.4; cursor: wait; }

/* ── Panels (checkout / payment) ── */
.panel {
  margin-top: 48px;
  border: 1px solid var(--line);
  padding: 32px;
  animation: panel-in 0.6s var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.panel h3 {
  margin: 0 0 24px;
  font: 600 1.25rem/1 var(--display);
  letter-spacing: -0.02em;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.row label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  min-width: 72px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 0;
  font: 400 14px/1.4 var(--mono);
  outline: none;
  transition: border-color 0.3s var(--ease);
}

input:focus { border-color: var(--ink); }

.btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover {
  background: var(--ink);
  color: var(--void);
}

.btn.primary {
  background: var(--ink);
  color: var(--void);
  border-color: var(--ink);
}

.btn.primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn:disabled { opacity: 0.35; cursor: wait; }

.pay {
  font: 500 14px/1.5 var(--mono);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0;
  word-break: break-all;
}

.status { font: 400 13px/1.5 var(--mono); }
.status.pending { color: var(--ink-dim); }
.status.fulfilled { color: var(--ink); font-weight: 500; }
.status.error { color: #c45c5c; }
.status.err { color: #c45c5c; }
.status.ok { color: var(--ink); }

.key {
  font: 500 clamp(1rem, 3vw, 1.35rem)/1.4 var(--mono);
  letter-spacing: 0.08em;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  word-break: break-all;
}

.hidden { display: none !important; }
.muted { color: var(--ink-dim); }
.loading { color: var(--ink-faint); font: 400 13px/1 var(--mono); }

/* ── Account page cards ── */
.page-header {
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin: 0;
  font: 700 clamp(2rem, 5vw, 3.2rem)/1 var(--display);
  letter-spacing: -0.03em;
}

.page-header p {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--ink-dim);
}

.card {
  border: 1px solid var(--line);
  padding: 28px;
  margin: 24px 0;
}

.card h2 {
  margin: 0 0 20px;
  font: 600 1.1rem/1 var(--display);
  letter-spacing: 0.02em;
}

.card label {
  display: block;
  margin: 14px 0 6px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.card input[type="text"],
.card input[type="email"],
.card input[type="password"] {
  width: 100%;
  display: block;
  min-width: 0;
}

.card button {
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--void);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
}

.card button.secondary {
  background: transparent;
  color: var(--ink);
}

pre {
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px;
  overflow: auto;
  font: 400 12px/1.5 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
}

.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.site-footer p {
  margin: 0;
  font: 400 11px/1.6 var(--mono);
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .nav-links { gap: 16px; font-size: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { text-align: left; }
  .hero { padding-top: 120px; }
}
