@font-face {
  font-family: "Lilita One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lilita-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2-variations"), url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --bg: #0b0714;
  --bg-2: #120a22;
  --surface: #1a1030;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3eefc;
  --muted: #b7a9d6;
  --magenta: #ff2bd6;
  --violet: #8b3dff;
  --violet-deep: #5b1fd6;
  --glow: rgba(255, 43, 214, 0.45);
  --display: "Lilita One", "Arial Black", Impact, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Bricolage Grotesque", system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(36px, 5.6vw, 60px); text-transform: uppercase; }
h3 { font-size: 26px; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--magenta); color: #000; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  background: rgba(11, 7, 20, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand img { width: 96px; height: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a, .mobile a {
  font-family: var(--label); font-weight: 700; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.12em; text-decoration: none; color: var(--muted);
  transition: color 0.15s;
}
.nav__links a:hover, .nav__links a:focus-visible, .mobile a:hover { color: var(--magenta); }
.nav__toggle {
  display: none; flex-direction: column; gap: 5px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px var(--gutter) 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.mobile a { padding: 10px 0; font-size: 18px; }
.mobile[hidden] { display: none; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 9vw, 120px);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(45% 40% at 50% 35%, rgba(255, 43, 214, 0.28), transparent 70%),
    radial-gradient(50% 45% at 50% 55%, rgba(139, 61, 255, 0.32), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  mask-image: radial-gradient(80% 80% at 50% 42%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 42%, #000 40%, transparent 100%);
}
.hero__logo-wrap { position: relative; width: min(720px, 92vw); animation: float 6s ease-in-out infinite; }
.hero__logo {
  width: 100%;
  filter: drop-shadow(0 0 32px var(--glow)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Specular sweep clipped to the logo shape */
.hero__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("assets/logo.webp") center / 100% 100% no-repeat;
  mask: url("assets/logo.webp") center / 100% 100% no-repeat;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 56%, transparent 62%);
  background-size: 300% 100%;
  background-position: 120% 0;
  mix-blend-mode: screen;
  animation: shine 11s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
@keyframes shine {
  0%, 65% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

/* Soft light drifting around the traced outline */
.hero__trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; mix-blend-mode: screen; }
.comet__tail { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.comet--m .comet__tail { stroke: #ff5ce3; }
.comet--v .comet__tail { stroke: #b57cff; }
.comet__tail--wide { stroke-width: 70; opacity: 0.32; filter: url(#trace-glow); stroke-dasharray: 260 740; }
.comet__tail--mid  { stroke-width: 22; opacity: 0.35; filter: url(#trace-soft); stroke-dasharray: 180 820; }
.comet--v .comet__tail--wide { opacity: 0.26; }
.comet--v .comet__tail--mid { opacity: 0.28; }

/* Whole-logo breathing glow */
.hero__logo { animation: breathe 7s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 28px rgba(255, 43, 214, 0.38)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
  50%      { filter: drop-shadow(0 0 54px rgba(255, 43, 214, 0.62)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo-wrap, .hero__logo, .hero__shine { animation: none; }
  .hero__shine, .hero__trace { display: none; }
}
.hero__tag {
  margin-top: 28px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 42px); letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fff, var(--magenta) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 10px; color: var(--muted); max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--magenta), var(--violet-deep));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 28px rgba(255, 43, 214, 0.35);
}
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 36px rgba(255, 43, 214, 0.55); }
.btn--ghost { color: var(--text); border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section--alt { position: relative; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section__head { margin-bottom: 36px; }
.section__head h2 { position: relative; display: inline-block; }
.section__head h2::after {
  content: ""; display: block; height: 4px; width: 56px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--violet));
}
.section__head p { margin-top: 12px; color: var(--muted); font-size: 19px; font-weight: 500; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); }
.card {
  grid-column: span 6;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 43, 214, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.card--feature { grid-column: span 12; flex-direction: row; }
.card--feature .card__art { flex: 0 0 48%; min-height: 300px; }
.card__art {
  position: relative; min-height: 180px;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255, 43, 214, 0.5), transparent 70%),
    radial-gradient(60% 80% at 80% 90%, rgba(139, 61, 255, 0.6), transparent 70%),
    var(--bg-2);
}
.card__art--dim { opacity: 0.6; }
.card__mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 400; font-size: 180px; color: rgba(255, 255, 255, 0.08);
}
.card__badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--label); font-weight: 800; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--magenta);
}
.card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card__body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tags li {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(139, 61, 255, 0.18); color: #d9c6ff; border: 1px solid rgba(139, 61, 255, 0.35);
}
@media (max-width: 820px) {
  .card { grid-column: span 12; }
  .card--feature { flex-direction: column; }
  .card--feature .card__art { flex-basis: auto; min-height: 200px; }
}

/* Studio */
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.split__text { display: grid; gap: 16px; font-size: 19px; color: var(--muted); }
.split__text p:first-child { font-weight: 600; font-size: 22px; line-height: 1.4; }
.split__text p:first-child { color: var(--text); }
.pillars { display: grid; gap: 14px; }
.pillars li {
  display: grid; gap: 4px; padding: 18px 20px;
  border-left: 3px solid var(--magenta); background: var(--surface); border-radius: 0 10px 10px 0;
}
.pillars strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: 19px; }
.pillars span { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Signup */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.signup input {
  flex: 1 1 260px; min-width: 0;
  padding: 13px 16px; border-radius: 10px; font: inherit;
  background: var(--surface); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14);
}
.signup input::placeholder { color: #7f6fa3; }
.signup input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 43, 214, 0.25); }
.signup__note { flex-basis: 100%; min-height: 1.6em; color: var(--magenta); font-weight: 500; }
.signup__note.is-error { color: #ff7b7b; }
.signup__fine { color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; gap: 22px; }
.contact__mail {
  font-family: var(--display); font-weight: 400; font-size: clamp(24px, 4vw, 40px); letter-spacing: 0.02em;
  text-decoration: none; color: var(--text);
  background: linear-gradient(90deg, var(--magenta), var(--violet)) no-repeat 0 100% / 0 3px;
  transition: background-size 0.25s;
  width: fit-content;
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 3px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-block; padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16); color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social a:hover, .social a:focus-visible { color: #fff; border-color: var(--magenta); background: rgba(255, 43, 214, 0.12); }

/* Footer */
.footer {
  display: grid; justify-items: center; gap: 12px;
  padding: 40px var(--gutter) 48px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center;
}
.footer img { width: 100px; opacity: 0.8; }
