/* ============================================================
   SCUP LABS — GLOBAL STYLES
   Nav, footer, shared components, utilities
   ============================================================ */

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-1);
  color: var(--text-0);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── NOISE TEXTURE ───────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.35;
}

/* ── LAYOUT CONTAINER ────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
@media (max-width: 768px) { .container { padding: 0 var(--space-md); } }

/* ── SECTION DEFAULTS ────────────────────────────────────────── */
section { padding: var(--space-xl) 0; }
section.alt { background: var(--bg-2); }

/* ── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--space-lg);
}
.section-label::after {
  content: '';
  flex: 0 0 48px; height: 1px;
  background: var(--border-acc);
}

/* ── SECTION HEADING ─────────────────────────────────────────── */
.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--space-md);
}
.section-sub {
  font-size: var(--fs-md);
  color: var(--text-1);
  line-height: 1.7;
  max-width: 560px;
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-0);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display);
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em;
  border: none; border-radius: var(--r-sm);
  padding: 14px 28px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  color: #fff;
  box-shadow: 0 4px 24px rgba(27,111,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27,111,255,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border-1);
}
.btn-ghost:hover {
  border-color: var(--border-acc);
  color: var(--accent-cyan);
  background: rgba(0,196,255,0.06);
}
.btn-mint {
  background: var(--accent-mint);
  color: #080C14;
}
.btn-mint:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,229,160,0.35);
}

/* ── CARD ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--shadow-glow);
}

/* ── TAG / BADGE ─────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-acc);
  color: var(--accent-cyan);
  background: rgba(0,196,255,0.07);
}
.tag.mint {
  border-color: rgba(0,229,160,0.25);
  color: var(--accent-mint);
  background: rgba(0,229,160,0.07);
}
.tag.blue {
  border-color: rgba(27,111,255,0.3);
  color: var(--accent-blue);
  background: rgba(27,111,255,0.08);
}

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border-0);
  backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(8,12,20,0.75);
  transition: background var(--t-med);
}
#nav .container {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text-0); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--accent-cyan); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px; color: var(--text-0);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
#footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border-0);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand p {
  font-size: 14px; color: var(--text-1); line-height: 1.7;
  margin-top: 16px; max-width: 280px;
}
.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px; color: var(--text-1);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-0);
  padding-top: var(--space-md);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  letter-spacing: 0.06em;
}

/* ── GLOW ORBS (ambient atmosphere) ─────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.orb-blue  { background: radial-gradient(circle, rgba(27,111,255,0.18) 0%, transparent 70%); }
.orb-cyan  { background: radial-gradient(circle, rgba(0,196,255,0.14) 0%, transparent 70%); }
.orb-mint  { background: radial-gradient(circle, rgba(0,229,160,0.12) 0%, transparent 70%); }

/* ── GRID TEXTURE ────────────────────────────────────────────── */
.grid-tex {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes float-up { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px currentColor; }
  50%      { box-shadow: 0 0 16px currentColor, 0 0 32px rgba(0,196,255,0.3); }
}
@keyframes orb-drift-1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,60px)} }
@keyframes orb-drift-2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,30px)} }
@keyframes orb-drift-3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }

.float-in { animation: float-up 0.7s var(--ease) both; }

/* ── RESPONSIVE NAV ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
