/* nunubot.org v2: a dark, product-led company site. One face (Geist), product colours: Bot = pink, List = orange. */
:root {
  --bg: #0a0b0f;
  --bg-2: #101219;
  --surface: #151821;
  --surface-2: #1c2030;
  --line: #262b3a;
  --ink: #f4f5f8;
  --muted: #a9afbe;
  --bot: #ff4f9a;        /* pink as text on the dark ground */
  --bot-fill: #d4206e;   /* pink as a fill under white text */
  --bot-ink: #ffffff;
  --list: #ff7a45;
  --list-ink: #140a05;
  --white: #ffffff;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --step-small: 0.875rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --step-head: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-display: clamp(2.75rem, 1.6rem + 3.6vw, 4rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--bot); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--bot); color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--white); color: #000; padding: 10px 14px; z-index: 60; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--white); color: #0a0b0f; font-weight: 600; font-size: var(--step-body);
  transition: transform .18s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }
.btn.lg { min-height: 52px; padding: 0 26px; }
.btn.xl { min-height: 60px; padding: 0 32px; font-size: var(--step-lead); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover { background: #262b3e; }
.btn.orange { background: var(--list); color: var(--list-ink); }
.btn.pink { background: var(--bot-fill); color: var(--bot-ink); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 15, .96); transition: background-color .2s; }
.nav.scrolled { background: #0d0f15; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.02em; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.menu { display: flex; gap: 6px; margin-right: auto; }
.menu a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: var(--step-small); transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--ink); background: var(--surface); }
.nav-act { display: flex; gap: 8px; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vh, 110px) 0 clamp(80px, 12vh, 140px); background: var(--bg); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-display); font-weight: 700; letter-spacing: -0.045em; line-height: 1.0; max-width: 15ch; }
.lead { margin-top: 24px; font-size: var(--step-lead); color: var(--muted); max-width: 46ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: clamp(56px, 8vh, 96px); }
.facts li { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); padding: 24px; }
.facts b { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { color: var(--muted); font-size: var(--step-small); margin-top: 6px; }

.hero-art { position: relative; min-height: 520px; }
.art-list { position: absolute; right: 0; top: 0; width: 82%; border-radius: var(--r-lg); background: #141414; }
.art-dm { position: absolute; left: 0; bottom: 40px; width: min(440px, 86%); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.art-chip { position: absolute; right: 6%; bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: var(--step-small); font-weight: 500; outline: 6px solid var(--bg);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex: none; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .55; } }

/* ---------- Discord message fragments (Discord's own look) ---------- */
.dm { background: #313338; color: #dbdee1; padding: 16px 16px 18px; font-size: 15px; line-height: 1.375; border-radius: var(--r); text-align: left; }
.dm-row { display: flex; gap: 14px; }
.dm-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dm-body { min-width: 0; flex: 1; }
.dm-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dm-who b { color: #f2f3f5; font-weight: 600; }
.dm-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.dm-time { color: #949ba4; font-size: 12px; }
.embed { background: #2b2d31; border-left: 4px solid #ef4444; border-radius: 4px; padding: 10px 14px 14px 12px; display: grid; gap: 8px; }
.embed.amber { border-left-color: #f59e0b; } .embed.gold { border-left-color: #facc15; } .embed.green { border-left-color: #22c55e; }
.embed b { color: #f2f3f5; font-weight: 600; }
.e-title { color: #f2f3f5; font-weight: 700; font-size: 16px; }
.e-fields { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 20px; justify-content: start; }
.e-fields b { display: block; }
.embed code { font-family: monospace; font-size: 13px; background: #1e1f22; padding: 1px 4px; border-radius: 3px; }
.e-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.e-btn { font-size: 14px; font-weight: 500; color: #fff; padding: 6px 16px; border-radius: 3px; }
.e-btn.blurple { background: #5865f2; } .e-btn.grey { background: #4e5058; } .e-btn.red { background: #da373c; }

/* ---------- section basics ---------- */
section { position: relative; }
.sec-title { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; max-width: 22ch; }
.sec-lead { margin-top: 16px; color: var(--muted); font-size: var(--step-lead); max-width: 52ch; }
.brand-bot { color: var(--bot); }
.brand-list { color: var(--list); }

/* ---------- products ---------- */
.products { padding: clamp(80px, 12vh, 140px) 0; background: var(--bg-2); }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.prod {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); min-height: 340px;
  transition: transform .25s var(--ease);
}
.prod:hover { transform: translateY(-4px); }
.p-bot { background: var(--bot-fill); color: #fff; }
.p-list { background: var(--list); color: var(--list-ink); }
.prod h3 { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.prod-sub { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; max-width: 30ch; }
.prod p { font-size: var(--step-body); max-width: 44ch; }
.prod-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.prod-go svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.prod:hover .prod-go svg { transform: translateX(4px); }

/* ---------- Nunu Bot ---------- */
.bot { padding: clamp(96px, 14vh, 160px) 0; background: var(--bg); }
.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); margin-top: 56px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs button {
  font: inherit; text-align: left; color: var(--muted); background: transparent; border: 0; border-radius: var(--r);
  padding: 18px 20px; cursor: pointer; display: grid; gap: 4px; transition: background-color .2s, color .2s;
}
.tabs button b { color: var(--ink); font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.01em; }
.tabs button span { font-size: var(--step-body); }
.tabs button:hover { background: var(--surface); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.tabs button[aria-selected="true"] b { color: var(--bot); }
.stage { background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); min-height: 520px; }
.pane { animation: paneIn .35s var(--ease); }
.pane[hidden] { display: none; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--bot);
}
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 5px); width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.ticks.shields { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; }

.gi { background: #ece5d8; color: #3b3a46; border-radius: var(--r); padding: 18px; }
.gi-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gi-stats p { background: #ddd4c4; border-radius: 10px; padding: 10px 12px; display: grid; }
.gi-stats span { font-size: 12px; color: #6b6a76; }
.gi-stats b { font-size: 22px; color: #3b3a46; }
.gi-h { margin: 16px 0 10px; font-size: 13px; font-weight: 600; color: #6b6a76; }
.gi-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gi-favs figure { background: #f5f0e6; border-radius: 12px; overflow: hidden; }
.gi-favs img { background: #c98e3e; aspect-ratio: 1; width: 100%; object-fit: cover; }
.gi-favs figcaption { padding: 8px 10px; font-size: 12px; color: #6b6a76; display: grid; }
.gi-favs figcaption b { color: #3b3a46; font-size: 13px; }
.gi-foot { margin-top: 12px; font-size: 12px; color: #6b6a76; }

.sub-title { margin-top: clamp(80px, 10vh, 120px); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.03em; }
.all { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 32px; }
.all li { display: grid; gap: 4px; }
.all b { font-weight: 600; font-size: var(--step-body); }
.all span { color: var(--muted); font-size: var(--step-small); line-height: 1.5; }

/* ---------- Nunu List ---------- */
.list { padding: clamp(96px, 14vh, 160px) 0; background: var(--bg-2); }
.list-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.list .ticks li::before { background: var(--list); }
.list .ticks li::after { border-color: var(--list-ink); }
.ticks.big li { font-size: var(--step-body); }
.ticks.big b { font-weight: 600; }
.list-art { position: relative; min-height: 560px; }
.shots { position: absolute; right: 0; top: 0; width: 88%; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: #141414; }
.shot { position: absolute; inset: 0; margin: auto; width: 94%; height: auto; opacity: 0; transition: opacity .6s; }
.shot.is-on { opacity: 1; }
.shot.fill { width: 100%; height: 100%; object-fit: cover; }
.list-filters { position: absolute; left: 0; bottom: 0; width: 34%; border-radius: var(--r); background: #141414; outline: 8px solid var(--bg-2); }

/* ---------- community ---------- */
.community { padding: clamp(96px, 14vh, 160px) 0; background: var(--bg); }
.com-in { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.com-icon { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; border-radius: 32px; }
.com-live { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; background: var(--surface); padding: 10px 16px; border-radius: 999px; }

/* ---------- support band ---------- */
.support { padding: 0 0 clamp(96px, 14vh, 160px); background: var(--bg); }
.sup-in {
  background: var(--bot-fill); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.sup-in .sec-lead { color: #fff; opacity: 1; }
.sup-in .btn { background: #0a0b0f; color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--bg-2); padding: 72px 0 32px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); margin-top: 12px; }
.foot h2 { font-size: var(--step-small); font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.foot nav li + li { margin-top: 10px; }
.foot nav a { color: var(--muted); transition: color .15s; }
.foot nav a:hover { color: var(--ink); }
.foot-legal { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--step-small); }

/* ---------- entrances (only with the script) ---------- */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .menu { display: none; }
  .nav-act { margin-left: auto; }
  .hero-in, .showcase, .list-in, .com-in { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / .9; }
  .all { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .list-art { min-height: 0; aspect-ratio: 1 / .95; }
  .com-icon { max-width: 320px; }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .hide-s { display: none; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod { min-height: 0; }
  .hero-art { aspect-ratio: auto; display: grid; gap: 14px; }
  .art-list, .art-dm, .art-chip { position: static; width: 100%; }
  .art-chip { justify-self: start; }
  .dm { font-size: 14px; padding: 12px; }
  .e-fields { gap: 4px 12px; }
  .stage { min-height: 0; padding: 14px; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tabs button { flex: none; padding: 12px 16px; border-radius: 999px; background: var(--surface); }
  .tabs button span { display: none; }
  .tabs button b { font-size: var(--step-body); }
  .gi-stats { grid-template-columns: repeat(2, 1fr); }
  .gi-favs { grid-template-columns: repeat(2, 1fr); }
  .all { grid-template-columns: 1fr; gap: 20px; }
  .list-art { aspect-ratio: auto; display: grid; gap: 14px; }
  .shots, .list-filters { position: static; width: 100%; }
  .list-filters { display: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .sup-in .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .rise { opacity: 1; transform: none; }
}
