/* Cenurys shop — shared design system.
   Dark #101010 base, periwinkle accent, Clash Display headings, Urbanist body,
   glass pill nav, cinematic blur-rise reveals, cursor-spotlight cards. */

@font-face { font-family: "Clash Display"; src: url(fonts/clash-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url(fonts/clash-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url(fonts/clash-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url(fonts/urbanist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --accent: #a3bff0;
  --acc: 163, 191, 240;
  --accent-bright: color-mix(in srgb, var(--accent), #fff 22%);
  --on-accent: #0d1424;
  --bg: #101010;
  --bg-sunken: #0b0b0c;
  --card: #151518;
  --raised: #1b1b1f;
  --text: #fff;
  --text-2: #b7b7bb;
  --muted: #8a8a90;
  --subtle: #66666c;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --ok: 96, 208, 150;
  --bad: 248, 113, 113;
  --gold: 240, 200, 110;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --edge-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --display: "Clash Display", "Urbanist", system-ui, sans-serif;
  --body: "Urbanist", system-ui, sans-serif;
  --mono: ui-monospace, "Geist Mono", "Cascadia Code", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(var(--acc), 0.5) transparent; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(var(--acc), 0.35); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; left: 50%; top: -340px; width: 1100px; height: 760px; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(var(--acc), 0.22), rgba(var(--acc), 0.06) 55%, transparent);
  filter: blur(10px); animation: amb-breathe 9s ease-in-out infinite;
}
.ambient::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes amb-breathe { 50% { opacity: 0.7; scale: 1.06; } }

/* ---------- navbar: full width → floating glass pill ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: 18px 0;
  border: 1px solid transparent;
  transition: top 0.7s var(--ease), left 0.7s var(--ease), right 0.7s var(--ease), padding 0.7s var(--ease),
    border-radius 0.7s var(--ease), border-color 0.7s ease, box-shadow 0.7s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  background: rgba(16, 16, 18, 0.62); backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  transition: opacity 0.55s ease;
}
.nav.is-pill {
  top: 12px; left: max(14px, calc((100% - clamp(760px, 64%, 1180px)) / 2)); right: max(14px, calc((100% - clamp(760px, 64%, 1180px)) / 2));
  padding: 10px 0; border-radius: 20px; border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.38), var(--edge-top);
}
.nav.is-pill::before { opacity: 1; }
.nav-inner { display: flex; align-items: center; gap: 24px; padding: 0 28px; }
.nav.is-pill .nav-inner { padding: 0 14px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #1d1d22, #0c0c0e); border: 1px solid var(--border-strong);
  box-shadow: 0 0 22px -6px rgba(var(--acc), 0.7), var(--edge-top);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { overflow: hidden; white-space: nowrap; max-width: 200px; transition: max-width 0.7s var(--ease), opacity 0.4s ease; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav.is-pill .brand-name { max-width: 0; opacity: 0; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--border-strong); cursor: pointer;
  font-weight: 700; font-size: 14px; white-space: nowrap; background: rgba(255, 255, 255, 0.04); color: #fff;
  box-shadow: var(--edge-top);
  transition: transform 0.35s var(--ease), box-shadow 0.4s ease, border-color 0.3s ease, background-color 0.3s ease, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.07); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary {
  border-color: transparent; color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 10px 30px -10px rgba(var(--acc), 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.btn-primary:hover { background: linear-gradient(180deg, #fff, var(--accent-bright)); box-shadow: 0 16px 40px -12px rgba(var(--acc), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: skewX(-20deg);
  animation: btn-shine 5.5s 1.2s ease-in-out infinite;
}
@keyframes btn-shine { 0% { left: -60%; } 16%, 100% { left: 140%; } }
.btn-lg { padding: 14px 22px; border-radius: 14px; font-size: 15px; }
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 11px; }

/* ---------- pills / badges ---------- */
.pill {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), rgba(14, 14, 17, 0.55);
  backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.pill::after {
  content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent); transform: skewX(-20deg);
  animation: pill-sheen 6s 1.5s ease-in-out infinite;
}
@keyframes pill-sheen { 0%, 70% { left: -40%; } 100% { left: 130%; } }
.pill b { color: #fff; }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ok)); box-shadow: 0 0 10px rgb(var(--ok)); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.dot.acc { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dot.warn { background: rgb(var(--gold)); box-shadow: 0 0 10px rgb(var(--gold)); }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.grad {
  background: linear-gradient(180deg, #fff 10%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acc-text { color: var(--accent); }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; margin: 0; line-height: 1.02; }
.h-hero { font-size: clamp(44px, 7.4vw, 92px); font-weight: 700; letter-spacing: -0.035em; }
.h-sec { font-size: clamp(34px, 4.6vw, 54px); }
.lead { color: var(--text-2); font-size: clamp(15px, 1.4vw, 17px); max-width: 560px; }

/* hero word rise */
.word { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(10px); animation: word-rise 1.1s var(--ease-out) forwards; animation-delay: calc(0.15s + var(--i) * 0.08s); }
@keyframes word-rise { to { opacity: 1; transform: none; filter: none; } }
.rise { opacity: 0; animation: hero-rise 1.2s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- scroll reveal (cinematic) ---------- */
.js .rv { opacity: 0; transform: translateY(40px) scale(0.97); filter: blur(12px); }
.js .rv.in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.1s ease, transform 1.4s var(--ease-out), filter 1.2s ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

/* ---------- glass card base ---------- */
.card {
  position: relative; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--card);
  box-shadow: var(--edge-top);
}

/* ---------- product card (spotlight + tilt + sheen) ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .products { grid-template-columns: repeat(4, 1fr); } }
.pcard {
  --mx: 50%; --my: 50%; --spot: 0; --rx: 0deg; --ry: 0deg;
  isolation: isolate; overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(var(--spot) * -4px));
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
  will-change: transform;
}
.pcard:hover { border-color: rgba(var(--acc), 0.28); box-shadow: 0 30px 60px -30px rgba(var(--acc), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.pc-spot, .pc-edge { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--spot); transition: opacity 0.3s; }
.pc-spot { z-index: 2; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--acc), 0.14), transparent 65%); mix-blend-mode: screen; }
.pc-edge {
  z-index: 5; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(var(--acc), 1), rgba(var(--acc), 0.2) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.pc-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(var(--acc), 0.28), transparent 60%),
    radial-gradient(60% 60% at 80% 0%, rgba(var(--acc), 0.12), transparent 70%),
    linear-gradient(180deg, #17171b, #0f0f12);
}
.pc-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 60%, #000, transparent 75%);
}
.pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-glyph {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; translate: -50% -50%; display: grid; place-items: center;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015)), #121216;
  box-shadow: 0 20px 50px -10px rgba(var(--acc), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translate(var(--ix, 0px), var(--iy, 0px)) scale(calc(1 + var(--spot) * 0.08));
  transition: transform 0.2s ease-out;
}
.pc-glyph svg { width: 34px; height: 34px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--acc), 0.7)); }
.pc-sheen { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.pc-sheen::before {
  content: ""; position: absolute; top: -30%; left: -60%; width: 40%; height: 160%; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent); transform: skewX(-18deg);
}
.pcard:hover .pc-sheen::before { animation: pc-sheen 1s var(--ease); }
@keyframes pc-sheen { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.pc-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(10, 10, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(10px);
}
.pc-tag svg { width: 12px; height: 12px; color: var(--accent); }
.pc-status {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #cdeed8;
  background: rgba(var(--ok), 0.08); border: 1px solid rgba(var(--ok), 0.22); backdrop-filter: blur(10px);
}
.pc-status .dot { width: 6px; height: 6px; }
.pc-body { position: relative; z-index: 3; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; transition: text-shadow 0.3s ease; }
.pc-name small { display: block; margin-top: 3px; font-family: var(--body); font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: 0; }
.pcard:hover .pc-name { text-shadow: 0 0 18px rgba(var(--acc), 0.45); }
.pc-desc { color: var(--muted); font-size: 13.5px; margin: 0; }
.pc-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-feats span { font-size: 11.5px; font-weight: 600; color: var(--text-2); padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.pc-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent); margin-top: auto; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pc-from { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--subtle); text-transform: uppercase; }
.pc-price { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-go { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); transition: all 0.35s var(--ease); }
.pc-go svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.pcard:hover .pc-go { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 20px -6px rgba(var(--acc), 0.8); }
.pcard:hover .pc-go svg { transform: translateX(2px) rotate(-45deg); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border-strong); outline: none;
  background: rgba(0, 0, 0, 0.35); color: #fff; font-weight: 600; transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.input::placeholder { color: var(--subtle); font-weight: 500; }
.input:focus { border-color: rgba(var(--acc), 0.6); box-shadow: 0 0 0 4px rgba(var(--acc), 0.12); background: rgba(0, 0, 0, 0.5); }
.input.mono { font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.err { color: rgb(var(--bad)); font-size: 13px; font-weight: 600; min-height: 1em; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(4, 4, 6, 0.7); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s ease; }
.modal.open .modal-bg { opacity: 1; }
.modal-panel {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px;
  border-radius: 24px; border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), #131316;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4), var(--edge-top);
  opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out), filter 0.5s ease;
  scrollbar-width: none;
}
.modal.open .modal-panel { opacity: 1; transform: none; filter: none; }
.modal-x { position: absolute; top: 16px; right: 16px; }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; translate: -50% 0; z-index: 3100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; font-weight: 700; font-size: 14px;
  background: rgba(22, 22, 26, 0.9); border: 1px solid var(--border-strong); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); animation: toast-in 0.5s var(--ease-out);
}
.toast.out { animation: toast-out 0.35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); filter: blur(6px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

