/* ============================================================
   GraphLinq.io — meme culture landing
   Vanilla CSS. Purple / dark / neon. Mobile-first.
   ============================================================ */

:root {
  --bg: #0b0614;
  --bg-2: #120a22;
  --surface: #1a1030;
  --surface-2: #211540;
  --line: rgba(168, 85, 247, 0.22);
  --ink: #f4eefe;
  --muted: #b9a9d6;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ff2fd0;
  --cyan: #22d3ee;
  --lime: #39ff14;
  --gold: #e8c14b;
  --grad: linear-gradient(120deg, #a855f7, #22d3ee);
  --grad2: linear-gradient(120deg, #ff2fd0, #39ff14);
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(124, 58, 237, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(168,85,247,0.28), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(34,211,238,0.18), transparent 55%),
    radial-gradient(600px 600px at 50% 120%, rgba(255,47,208,0.18), transparent 60%);
  pointer-events: none; z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1160px, 92vw); margin-inline: auto; position: relative; z-index: 1; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad2 { background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; letter-spacing: .3px;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--grad); color: #150826;
  box-shadow: 0 12px 30px -10px rgba(168,85,247,.7);
}
.btn--primary:hover { box-shadow: 0 18px 40px -8px rgba(34,211,238,.6); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--cyan); }
.btn--discord { background: #5865F2; color: #fff; }
.btn--discord:hover { box-shadow: 0 14px 34px -10px rgba(88,101,242,.8); }
.btn--pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 12px 30px -10px rgba(168,85,247,.6); }
  50% { box-shadow: 0 12px 40px -6px rgba(34,211,238,.75); }
}

/* ---------------- Tags / kickers ---------------- */
.tag {
  display: inline-block; font-family: var(--font-mono);
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255,47,208,.14); color: var(--pink);
  border: 1px solid rgba(255,47,208,.4);
}
.tag--wobble { animation: wobble 3.5s ease-in-out infinite; }
@keyframes wobble { 0%,100%{transform:rotate(-2deg)} 50%{transform:rotate(2deg)} }

.kicker { font-family: var(--font-mono); color: var(--cyan); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }

.h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.05; margin: .6rem 0 .4rem; }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 60ch; }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,6,20,.6);
  border-bottom: 1px solid var(--line);
}
.nav__inner { width: min(1160px,92vw); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; height: 68px; }
.nav__links { display: none; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 500; color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: .5rem 1rem; border-radius: 999px; background: var(--grad); color:#150826 !important; font-family: var(--font-display); font-weight: 800; }
.nav__cta:hover { transform: translateY(-2px); }
.nav__burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav__burger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg);}
.nav__burger.open span:nth-child(2){ opacity:0;}
.nav__burger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg);}
.nav__mobile { display: grid; gap: .2rem; max-height: 0; overflow: hidden; transition: max-height .3s ease; background: rgba(18,10,34,.96); border-bottom: 1px solid var(--line); }
.nav__mobile.open { max-height: 320px; }
.nav__mobile a { padding: .9rem 6vw; font-family: var(--font-display); font-weight: 700; border-top: 1px solid var(--line); }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 92vh; display: grid; align-items: center; overflow: hidden; padding: 5rem 0 3rem; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,6,20,.5), rgba(11,6,20,.82) 60%, var(--bg)),
    radial-gradient(60% 60% at 50% 40%, transparent, rgba(11,6,20,.4));
}
.hero__content { position: relative; z-index: 2; width: min(1160px,92vw); margin-inline:auto; }
.hero__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: .98; letter-spacing: -1px;
  margin: 1rem 0 1.1rem; text-shadow: 0 6px 30px rgba(0,0,0,.5);
}
.hero__title .stroke {
  color: transparent; -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 24px rgba(34,211,238,.35);
}
.hero__sub { color: #e7dcff; max-width: 56ch; font-size: clamp(1rem,2.2vw,1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 2rem; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: .6rem 0; margin-top: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: scroll 18s linear infinite; font-family: var(--font-mono); color: var(--lime); font-size: .9rem; }
.ticker__track span::before { content: "◆ "; color: var(--pink); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* floating coins */
.floaty { position: absolute; z-index: 1; width: 64px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.45)); }
.coin { animation: bob 5s ease-in-out infinite; }
.floaty--1 { top: 18%; right: 8%; width: 84px; animation-delay: 0s; }
.floaty--2 { bottom: 22%; right: 20%; width: 62px; }
.floaty--3 { top: 30%; left: 6%; width: 72px; display: none; }
.floaty--1 .coin { animation-delay: -1s; }
.floaty--2 .coin { animation-delay: -2.5s; }
@keyframes bob { 0%,100%{ transform: translateY(0) rotate(-6deg);} 50%{ transform: translateY(-18px) rotate(6deg);} }

/* ---------------- SECTIONS ---------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; z-index: 1; }
.head { text-align: center; margin-bottom: 2.6rem; }
.head .lead { margin-inline: auto; }

/* ---------------- COMMUNITY GALLERY ---------------- */
.community { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--purple); }
.card__frame { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #0d0720; }
.card--wide .card__frame { aspect-ratio: 16 / 10; }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__frame img { transform: scale(1.06) rotate(.5deg); }
.card figcaption { padding: 1rem 1.1rem 1.2rem; }
.card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.card figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------------- WHAT IS ---------------- */
.what { background: var(--bg-2); }
.what__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; align-items: center; }
.what__media { position: relative; }
.what__frame { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--purple); box-shadow: var(--shadow); rotate: -1.5deg; }
.what__frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sticker { position: absolute; font-family: var(--font-mono); font-weight: 700; font-size: .78rem; padding: .45rem .8rem; border-radius: 8px; rotate: -6deg; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.sticker--tl { top: -14px; left: -10px; background: var(--lime); color: #06210a; }
.sticker--br { bottom: -14px; right: -8px; background: var(--pink); color: #2a0322; rotate: 8deg; }
.what__copy p { color: var(--muted); margin-top: 1rem; }
.what__joke { color: var(--cyan) !important; font-family: var(--font-mono); font-size: .95rem; }
.ticks { list-style: none; margin: 1.4rem 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--ink); }
.ticks li::before { content: "▸"; position: absolute; left: 0; color: var(--lime); font-weight: 700; }

/* ---------------- WHY WE VIBE ---------------- */
.why { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.why__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.vibe {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s, border-color .2s, background .2s;
}
.vibe:hover { transform: translateY(-5px) rotate(-.4deg); border-color: var(--cyan); background: var(--surface-2); }
.vibe__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(168,85,247,.16); color: var(--purple); margin-bottom: 1rem; }
.vibe__ico svg { width: 24px; height: 24px; }
.vibe:hover .vibe__ico { color: var(--cyan); background: rgba(34,211,238,.16); }
.vibe h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: .4rem; }
.vibe p { color: var(--muted); font-size: .96rem; }

/* ---------------- JOIN / CTA ---------------- */
.join { text-align: center; background:
  radial-gradient(600px 300px at 50% 0%, rgba(168,85,247,.25), transparent 70%), var(--bg); }
.join__inner { max-width: 720px; margin-inline: auto; display: grid; gap: 1.1rem; justify-items: center; }
.join__title { text-shadow: 0 0 40px rgba(255,47,208,.3); }
.join__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: .5rem; }
.join__fine { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------------- FOOTER ---------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 3rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.4rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer__col h4 { font-family: var(--font-display); margin-bottom: .8rem; color: var(--ink); }
.footer__col a { display: block; color: var(--muted); padding: .3rem 0; transition: color .15s; }
.footer__col a:hover { color: var(--cyan); }
.footer__socials { display: flex; gap: .8rem; }
.footer__socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.footer__socials a:hover { color: var(--ink); border-color: var(--purple); transform: translateY(-3px); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 1.2rem 0; text-align: center; }
.footer__bottom p { color: var(--muted); font-size: .85rem; width: min(1160px,92vw); margin-inline: auto; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (min-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 3; }
  .card--wide .card__frame { aspect-ratio: 21/9; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .what__grid { grid-template-columns: 1fr 1fr; }
  .floaty--3 { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
