/* Reality Deleted — cinematic covert / dream-architecture UI */

:root {
  --bg: #06080c;
  --bg-elev: #0b0f16;
  --bg-panel: #0e141d;
  --bg-card: #101722;
  --line: rgba(168, 216, 240, 0.12);
  --line-strong: rgba(168, 216, 240, 0.28);
  --text: #e8eef4;
  --muted: #8a9aab;
  --dim: #5c6b7a;
  --signal: #8ec8e6;
  --signal-bright: #b8dff0;
  --signal-dim: rgba(142, 200, 230, 0.15);
  --signal-glow: rgba(142, 200, 230, 0.35);
  --steel: #6b8499;
  --ok: #8ec8e6;
  --radius: 2px;
  --nav-h: 64px;
  --wrap: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Syne", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .parallax-layer,
  .grain,
  .scanlines { display: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--signal-bright);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* —— Ambient layers —— */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(165deg, transparent 40%, rgba(142, 200, 230, 0.03) 70%, transparent),
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(142, 200, 230, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 70%, rgba(80, 120, 160, 0.06), transparent 50%);
  will-change: transform;
}

.ambient-frame {
  position: absolute;
  inset: 4vh 3vw;
  border: 1px solid rgba(168, 216, 240, 0.06);
  pointer-events: none;
}

.ambient-frame::before,
.ambient-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(168, 216, 240, 0.35);
  border-style: solid;
}

.ambient-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.ambient-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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");
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.03;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.4) 2px,
    rgba(0, 0, 0, 0.4) 3px
  );
}

.fx-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 10000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(6, 8, 12, 0.85);
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.fx-toggle:hover {
  color: var(--signal-bright);
  border-color: var(--line-strong);
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.logo span {
  color: var(--signal);
  font-weight: 500;
}

.logo-mark {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--signal-bright);
}

.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--signal);
  border: 1px solid var(--signal);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  background: var(--signal-bright);
  color: var(--bg);
  box-shadow: 0 0 24px var(--signal-glow);
}

.btn-ghost {
  color: var(--signal-bright);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--signal-dim);
  color: #fff;
  box-shadow: none;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.68rem;
}

.nav-cta {
  margin-left: 0.35rem;
}

/* —— Typography —— */
.eyebrow,
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 .signal-word {
  color: var(--signal);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head p,
.hero-lead,
.merch-copy {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

section {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

/* —— Hero —— */
.hero {
  padding: 4.5rem 0 5rem;
  border-top: none;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border: 1px solid rgba(168, 216, 240, 0.07);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-item strong {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal-bright);
  font-weight: 500;
}

.trust-item span {
  font-size: 0.8rem;
  color: var(--dim);
}

.hero-visual {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 0.65rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(168, 216, 240, 0.08);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0.65rem 0.25rem 0.15rem;
}

.hero-frame-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
  padding: 0 0.15rem;
}

/* —— Feature / cards —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-strong);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -0.25rem -0.25rem 1rem;
  width: calc(100% + 0.5rem);
  filter: saturate(0.8);
}

.feature-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--signal);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card .link-out {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* —— Filters & product cards —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-btn.active {
  color: var(--bg);
  background: var(--signal);
  border-color: var(--signal);
}

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

.cards-dense {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.35rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(142, 200, 230, 0.06);
}

.card-featured {
  background: linear-gradient(160deg, rgba(142, 200, 230, 0.06), transparent 60%), var(--bg-card);
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.65rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card > p {
  flex: 1;
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--signal-bright);
}

.link-out {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.link-out:hover {
  color: #fff;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* —— Merch / Labs —— */
.merch,
.labs {
  background: var(--bg-elev);
}

.merch-inner,
.labs-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.labs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.labs-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
}

.labs-list li:last-child {
  border-bottom: none;
}

.labs-list span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

/* —— FAQ —— */
.faq-list {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: 1rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-body a {
  color: var(--signal-bright);
}

/* —— Socials —— */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0.75rem 1rem;
}

.social-chip span {
  color: var(--steel);
  font-size: 0.62rem;
}

.social-chip.coming-soon {
  cursor: default;
  opacity: 0.85;
}

.social-chip.coming-soon:hover {
  color: var(--muted);
}

/* —— Contact —— */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-item {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 1.5rem;
}

.contact-item h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.contact-item a {
  font-size: 1.05rem;
  color: var(--signal-bright);
}

.contact-item p {
  margin: 0.5rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

/* —— Page hero (products) —— */
.page-hero {
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.page-hero > .wrap > p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #04060a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin: 0.85rem 0 0;
  color: var(--dim);
  font-size: 0.88rem;
  max-width: 18rem;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--signal-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--dim);
}

.footer-bottom p {
  margin: 0;
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brands a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.footer-brands a:hover {
  color: var(--signal-bright);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid,
  .merch-inner,
  .labs-inner {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .cards,
  .cards-dense,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(6, 8, 12, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin: 0.85rem 0 0;
    text-align: center;
  }

  .feature-grid,
  .cards,
  .cards-dense,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .fx-toggle {
    bottom: 0.65rem;
    right: 0.65rem;
  }
}
