/* ===================================================
   STACKR LABS CLONE — CSS
   =================================================== */

:root {
  --bg-dark:       #051A21;
  --bg-dark-trans: rgba(5, 26, 33, 0.85);
  --cyan-bright:   #4BE9FF;
  --cyan-primary:  #44EAE5;
  --cyan-light:    #32E6FF;
  --cyan-hover:    #00fff0;
  --text-white:    #ffffff;
  --text-muted:    #CEDCE1;
  --text-dim:      #6193A4;
  --text-dark:     #051A21;
  --footer-bg:     #CEDCE1;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1472px;
  --tr: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-dark);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 30px;
}

/* ── Announcement Banner ───────────────────────── */
.announcement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cyan-bright);
  height: 48px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  z-index: 100;
  position: relative;
  transition: opacity 0.2s;
}
.announcement-banner:hover {
  opacity: 0.92;
}

/* ── Header ────────────────────────────────────── */
.header {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  z-index: 90;
  height: 100px;
  padding: 24px 0;
  transition: all 0.4s cubic-bezier(0.85, 0, 0.15, 1);
}
.header.scrolled {
  top: 0;
  height: 75px;
  padding: 14px 0;
  background: var(--bg-dark-trans);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 24px;
  transition: all 0.4s ease;
}
.header.scrolled .nav-wrapper {
  border-bottom: 1px solid transparent;
  padding-bottom: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}
.stackr-logo-svg {
  width: 140px;
  height: auto;
  transition: width 0.4s ease;
}
.header.scrolled .stackr-logo-svg {
  width: 110px;
}

.header-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-white);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--cyan-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.box-wrapper {
  display: flex;
  gap: 4px;
}
.box {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  transition: transform 0.4s ease;
}

/* Mobile Menu */
@media (max-width: 1024px) {
  .header-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: var(--bg-dark);
    padding: 120px 40px 40px;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 80;
  }
  .header.menu-open .header-nav {
    transform: translateY(0);
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .nav-link {
    font-size: 2rem;
    font-weight: 600;
  }
  .hamburger {
    display: flex;
  }
}

/* ── Hero Section ──────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.heading-xxl {
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--text-white);
}

.text-xl {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
  max-width: 525px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.primary-btn {
  background-color: var(--cyan-primary);
  color: var(--text-dark);
  border: 1px solid #000;
}
.primary-btn:hover {
  background-color: var(--cyan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(68,234,229,0.35);
}
.secondary-btn {
  background-color: var(--text-muted);
  color: var(--text-dark);
  border: 1px solid var(--text-muted);
}
.secondary-btn:hover {
  background-color: #e4ebee;
  transform: translateY(-2px);
}

/* ── Features Section ──────────────────────────── */
.features {
  padding: 120px 0;
  position: relative;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }
}

.feature-card {
  text-align: center;
  max-width: 410px;
  margin: 0 auto;
}
.feature-card-offset {
  margin-top: 80px;
}
@media (max-width: 1024px) {
  .feature-card-offset {
    margin-top: 0;
  }
}

.feature-icon-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 36px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-svg {
  width: 100%;
  height: 100%;
}

.heading-lg {
  font-size: clamp(1.6rem, 2.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.text-link {
  color: var(--cyan-primary);
  text-decoration: underline;
}

/* ── News / Research Section ───────────────────── */
.news-section {
  padding: 100px 0 140px;
}
.section-title-wrap {
  margin-bottom: 50px;
}
.news-margin-top {
  margin-top: 120px;
}
.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  transition: transform 0.3s ease;
}
.news-card-link:hover {
  transform: translateY(-4px);
}

.news-img-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  margin-bottom: 24px;
  background: var(--bg-dark-trans);
  border: 1px solid rgba(50,230,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.keystores-bg { background: linear-gradient(135deg, rgba(50,230,255,0.1), rgba(5,26,33,0.9)); }
.attestations-bg { background: linear-gradient(135deg, rgba(68,234,229,0.1), rgba(5,26,33,0.9)); }
.points-bg { background: linear-gradient(135deg, rgba(75,233,255,0.15), rgba(5,26,33,0.9)); }
.beta-bg { background: linear-gradient(135deg, rgba(0,255,240,0.1), rgba(5,26,33,0.9)); }
.wrong-bg { background: linear-gradient(135deg, rgba(50,230,255,0.12), rgba(5,26,33,0.9)); }
.accrual-bg { background: linear-gradient(135deg, rgba(68,234,229,0.1), rgba(5,26,33,0.9)); }
.seed-bg { background: linear-gradient(135deg, rgba(75,233,255,0.2), rgba(5,26,33,0.9)); }
.announce-bg { background: linear-gradient(135deg, rgba(50,230,255,0.15), rgba(5,26,33,0.9)); }

.img-code-overlay {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan-light);
  letter-spacing: 0.1em;
  background: rgba(5,26,33,0.8);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(50,230,255,0.3);
}

.publish-date {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.heading-md {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-white);
}

/* ── Usecases Section ──────────────────────────── */
.usecase {
  padding: 100px 0 140px;
  position: relative;
}
.usecase-layout {
  display: grid;
  grid-template-columns: 3.5fr 8.5fr;
  gap: 60px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .usecase-layout { grid-template-columns: 1fr; }
}

.usecase-intro {
  position: sticky;
  top: 120px;
}
.usecase-title {
  margin-bottom: 24px;
}
.usecase-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .usecase-grid { grid-template-columns: 1fr; }
}

.usecase-item {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 40px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.usecase-item:hover {
  border-color: rgba(50,230,255,0.3);
  background: rgba(50,230,255,0.03);
  transform: translateY(-2px);
}

.usecase-icon {
  margin-bottom: 24px;
}
.no-limits-glow {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cyan-light);
  text-shadow: 0 0 12px var(--cyan-light);
}

.uc-title {
  margin-bottom: 12px;
}
.uc-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Footer Section ────────────────────────────── */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-dark);
  padding: 100px 0 30px;
  position: relative;
}

.footer-logo-wrap {
  margin-bottom: 60px;
}
.footer-logo-svg {
  width: 185px;
  height: auto;
}

.footer-nav-grid {
  display: flex;
  gap: 120px;
  margin-bottom: 100px;
  flex-wrap: wrap;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-links a {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: rgba(5, 26, 33, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(5,26,33,0.15);
  padding-top: 30px;
}
.copyright {
  font-size: 1rem;
  color: rgba(5, 26, 33, 0.6);
  font-weight: 500;
  transition: color 0.2s ease;
}
.copyright:hover {
  color: var(--text-dark);
}

/* ── Scroll animations ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
