/* ------------------------------------------------------------------
   Lovebite — holding page
   Palette sampled from logo.webp / logotext.webp. Single committed
   dark theme: the brand is a neon sign in a dark room, and a light
   variant would be wrong, so every colour is painted explicitly.
   ------------------------------------------------------------------ */
:root {
  --ink:        #0B0810;
  --ink-2:      #130D1C;
  --ink-3:      #1A1226;
  --line:       #2E2145;
  --line-2:     #4A3570;
  --violet:     #6E46B4;
  --violet-hot: #A47BFF;
  --violet-glow:#7C4DFF;
  --bone:       #F4F1F8;
  --muted:      #A49BB4;
  --muted-dim:  #776D90;

  --wrap: 1080px;

  --font-display: "Bahnschrift", "Avenir Next Condensed", "HelveticaNeue-CondensedBold",
                  "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
                  "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Cascadia Mono", ui-monospace, "SF Mono", Consolas,
                  "Liberation Mono", monospace;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(124, 77, 255, .22), transparent 60%),
    radial-gradient(90% 60% at 8% 42%,   rgba(110, 70, 180, .14), transparent 62%),
    radial-gradient(90% 60% at 96% 78%,  rgba(164, 123, 255, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain — pulls the flat gradients toward the grunge texture
   that sits behind the logo artwork. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: .055;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9;
}

/* height:auto is load-bearing — the width/height attributes on the marks
   would otherwise apply as literal CSS heights and stretch them. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--violet-hot); }

:focus-visible {
  outline: 2px solid var(--violet-hot);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(56px, 11vw, 104px) clamp(48px, 9vw, 88px);
  text-align: center;
  overflow: hidden;
}

.hero__bloom {
  position: absolute;
  top: -12%;
  left: 50%;
  width: min(1000px, 150vw);
  aspect-ratio: 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(124, 77, 255, .40), rgba(124, 77, 255, .10) 55%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 640px;
}

/* The mark ships with its own background baked in, so rather than fight
   the seam it is framed as a lit sign — the same offset double rule the
   product boards use, which is the frame on Lovebite's own vendor ads. */
.hero__markwrap {
  position: relative;
  width: clamp(220px, 42vw, 390px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  outline: 1px solid rgba(74, 53, 112, .4);
  outline-offset: 6px;
  box-shadow: 0 0 70px rgba(124, 77, 255, .3),
              0 20px 55px rgba(0, 0, 0, .6);
}

.hero__mark { width: 100%; }

.hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 600;
  font-size: clamp(1.35rem, 4.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: .012em;
  text-wrap: balance;
  color: var(--bone);
}

.hero__sub {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(.95rem, 1.6vw, 1.03rem);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: .715rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--violet-hot);
  box-shadow: 0 0 8px var(--violet-glow);
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  background: rgba(26, 18, 38, .55);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
  border-color: var(--violet-hot);
  background: rgba(110, 70, 180, .28);
  box-shadow: 0 0 22px rgba(124, 77, 255, .3);
  transform: translateY(-2px);
}

.btn--primary {
  border-color: var(--violet-hot);
  background: linear-gradient(180deg, var(--violet) 0%, #4E2F86 100%);
  box-shadow: 0 0 26px rgba(124, 77, 255, .3);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #7E52CC 0%, #5A379A 100%);
  box-shadow: 0 0 34px rgba(124, 77, 255, .45);
}

.btn__arrow { color: var(--violet-hot); }
.btn--primary .btn__arrow { color: var(--bone); }

/* ------------------------------------------------------------- sections */

.section { padding-block: clamp(44px, 8vw, 76px); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 38px);
}

.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .705rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet-hot);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--bone);
}

.section__lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
}

/* ------------------------------------------------------------ vendor grid
   The ads are finished artwork with their own typography baked in, so
   they are shown whole (contain, never cropped) inside a frame that
   echoes the offset double rule on the ads themselves. */

/* Held to two columns so four boards read as a clean 2x2 and the ad
   artwork stays large enough for its own lettering to be readable. */
.boards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.4vw, 34px);
}

@media (min-width: 760px) {
  .boards { grid-template-columns: repeat(2, 1fr); }
}

.board {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--ink-2);
  outline: 1px solid rgba(74, 53, 112, .38);
  outline-offset: 5px;
  transition: outline-color .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .25s ease;
}

.board:hover {
  border-color: var(--line-2);
  outline-color: var(--violet-hot);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55),
              0 0 26px rgba(124, 77, 255, .16);
  transform: translateY(-3px);
}

.board__media {
  aspect-ratio: 4 / 3;
  background: #07050B;
  border-bottom: 1px solid var(--line);
}

.board__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.board__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.board__name {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .022em;
  text-transform: uppercase;
  color: var(--bone);
}

.board__desc {
  margin: 0;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Spec chips mirror the mono spec block in the corner of every ad. */
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.specs li {
  padding: 4px 9px;
  border: 1px solid var(--line);
  background: rgba(110, 70, 180, .12);
  font-family: var(--font-mono);
  font-size: .655rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.board__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--violet);
  background: rgba(124, 77, 255, .15);
  font-family: var(--font-mono);
  font-size: .655rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-hot);
}

/* ----------------------------------------------------------- link tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3) 0%, var(--ink-2) 100%);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tile:hover {
  border-color: var(--violet-hot);
  box-shadow: 0 0 24px rgba(124, 77, 255, .18);
  transform: translateY(-3px);
}

.tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet-hot);
}

.tile__name {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: .015em;
  color: var(--bone);
}

.tile__meta {
  font-size: .875rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--line);
  padding-block: clamp(34px, 6vw, 54px);
  background: rgba(7, 5, 11, .5);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

/* Screen blend plus a fade on the long top/bottom edges dissolves the
   wordmark's baked-in plate. The letters sit between 15% and 81% of the
   banner height, so the stops stay clear of them. */
.footer__mark {
  width: clamp(150px, 26vw, 210px);
  mix-blend-mode: screen;
  opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 92%, transparent 100%);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: .695rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  text-align: right;
}

.footer__meta strong {
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 560px) {
  .footer__inner { justify-content: center; }
  .footer__meta  { text-align: center; align-items: center; }
}

/* ---------------------------------------------------------------- motion */

@keyframes breathe {
  from { opacity: .62; transform: scale(.96); }
  to   { opacity: 1;   transform: scale(1.05); }
}

/* One-time light sweep across the mark, like a sign catching the light. */
@keyframes sweep {
  from { transform: translateX(-130%) skewX(-18deg); }
  to   { transform: translateX(230%)  skewX(-18deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero__bloom { animation: breathe 9s ease-in-out infinite alternate; }

.hero__markwrap::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 248, .16), transparent);
  animation: sweep 1.5s cubic-bezier(.4, 0, .2, 1) .55s both;
  pointer-events: none;
}

.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .hero__bloom { animation: none; opacity: .85; }
  .hero__markwrap::after { animation: none; opacity: 0; }
  .js .reveal, .js .reveal.is-in { opacity: 1; animation: none; }
  .btn, .board, .tile { transition: none; }
  .btn:hover, .board:hover, .tile:hover { transform: none; }
}
