/* ============================================================
   TELESCOPIUM PORTAL — Deep Space Luxury UI
   ============================================================ */

/* ----------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------- */
:root {
  /* Background */
  --bg-primary: #080B14;
  --bg-deep: #111827;
  --bg-glass: rgba(17, 24, 39, 0.65);
  --bg-glass-hover: rgba(17, 24, 39, 0.85);
  --bg-card: rgba(255, 255, 255, 0.03);

  /* Brand */
  --brand-blue: #3B82F6;
  --brand-purple: #8B5CF6;
  --brand-blue-dim: rgba(59, 130, 246, 0.15);
  --brand-purple-dim: rgba(139, 92, 246, 0.15);

  /* Text */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-glass-hover: rgba(255, 255, 255, 0.12);

  /* Spacing */
  --section-gap: clamp(4rem, 10vw, 8rem);
  --content-max: 1120px;
  --nav-height: 64px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

/* Selection */
::selection {
  background: rgba(59, 130, 246, 0.35);
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.nav-header.scrolled {
  background: rgba(8, 11, 20, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nav-brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-brand:hover {
  color: var(--brand-blue);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* External link indicator */
.nav-link[href^="https"]::after {
  background: linear-gradient(90deg, var(--brand-purple), var(--brand-blue));
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--nav-height) clamp(1.25rem, 4vw, 2.5rem) 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--bg-primary) 100%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.4) 0%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  animation: hero-fade-in 1s var(--ease-out) both;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brandmark {
  margin-bottom: 2rem;
}

.hero-mark {
  width: clamp(120px, 16vw, 180px);
  height: clamp(120px, 16vw, 180px);
  margin: 0 auto;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 36px rgba(59, 130, 246, 0.35))
    drop-shadow(0 0 72px rgba(139, 92, 246, 0.18));
  transition:
    filter var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.hero-mark:hover {
  filter:
    drop-shadow(0 0 52px rgba(59, 130, 246, 0.5))
    drop-shadow(0 0 88px rgba(139, 92, 246, 0.28));
  transform: scale(1.04);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.btn-primary:hover {
  background: #2563EB;
  border-color: #2563EB;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

/* ----------------------------------------------------------
   Sections — Shared
   ---------------------------------------------------------- */
.section {
  padding: var(--section-gap) clamp(1.25rem, 4vw, 2.5rem);
}

.section-container {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* ----------------------------------------------------------
   Glass Card (shared)
   ---------------------------------------------------------- */
.glass-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.glass-card-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.glass-card:hover .glass-card-shine {
  opacity: 1;
}

/* ----------------------------------------------------------
   Ecosystem
   ---------------------------------------------------------- */
.ecosystem {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.04) 0%, transparent 100%),
    var(--bg-primary);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ecosystem-card {
  color: var(--text-primary);
  text-decoration: none;
  min-height: 220px;
  padding: 2rem 1.75rem;
}

.ecosystem-card--static {
  cursor: default;
}

.ecosystem-card--static:hover {
  transform: none;
}

.card-icon {
  color: var(--brand-blue);
  margin-bottom: 1.25rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.ecosystem-card:hover .card-icon {
  color: var(--brand-purple);
}

.ecosystem-card--static:hover .card-icon {
  color: var(--text-muted);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: auto;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 450;
  color: var(--brand-blue);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
}

.ecosystem-card:hover .card-link {
  color: var(--brand-purple);
}

.card-arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.ecosystem-card:hover .card-arrow {
  transform: translateX(3px);
}

.card-tag {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

/* ----------------------------------------------------------
   Scope
   ---------------------------------------------------------- */
.scope {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(139, 92, 246, 0.04) 0%, transparent 100%),
    var(--bg-deep);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.scope-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.scope-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  transition:
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out);
}

.scope-item:hover .scope-icon {
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.05);
}

.scope-title {
  font-size: 1rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.scope-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----------------------------------------------------------
   Roadmap
   ---------------------------------------------------------- */
.roadmap {
  background: var(--bg-primary);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.roadmap-phase {
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-glass);
  transition: border-color var(--duration-base) var(--ease-out);
}

.roadmap-phase:hover {
  border-color: var(--border-glass-hover);
}

.phase-indicator {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phase-indicator--current .phase-dot {
  background: var(--brand-blue);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.phase-indicator--next .phase-dot {
  background: var(--brand-purple);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.phase-indicator--later .phase-dot {
  background: var(--text-muted);
}

.phase-label {
  font-size: 0.85rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.phase-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phase-items li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.phase-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-glass);
  padding: 4rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}

.footer-container {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-brandmark {
  margin-bottom: 1rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Daily Brief
   ---------------------------------------------------------- */
.daily-brief {
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 100%),
    var(--bg-deep);
}

.section-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

/* Asymmetric grid: news card gets more width */
.brief-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.brief-card {
  padding: 1.25rem 1.25rem;
  min-height: 0;
}

.brief-card:hover {
  transform: translateY(-2px);
}

/* Brief card header */
.brief-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.brief-card-header svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

/* ---- Weather ---- */
.brief-weather-body {
  text-align: center;
  padding: 0.25rem 0;
}

.weather-city {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.weather-temp {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.125rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--brand-blue) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weather-condition {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.weather-details {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.weather-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
}

.weather-updated {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ---- Tech News ---- */
.brief-tech-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  counter-reset: news-counter;
}

.news-item {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-glass);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-item:first-child {
  padding-top: 0;
}

.news-item-title {
  display: block;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.news-item-title {
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

a.news-item-title:hover {
  color: var(--brand-blue);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.news-item-source {
  font-weight: 500;
  color: var(--text-secondary);
}

.news-item-time {
  opacity: 0.7;
}

.news-item-original {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.45;
  line-height: 1.3;
  margin-top: 0.1rem;
  /* One-line clamp */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Quote ---- */
.brief-card--quote {
  justify-content: flex-start;
}

.brief-quote-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  padding: 0.25rem 0;
}

.quote-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--brand-purple);
  quotes: none;
}

.quote-author {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.quote-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.quote-original {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.45;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

/* ---- Fallback ---- */
.brief-fallback {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}

/* ----------------------------------------------------------
   Scroll-Reveal Animation
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   Responsive — Tablet (≤1024px)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brief-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ----------------------------------------------------------
   Responsive — Mobile (≤640px)
   ---------------------------------------------------------- */
@media (max-width: 640px) {
  /* Navigation */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 11, 20, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--duration-base) var(--ease-out),
      opacity var(--duration-fast) var(--ease-out);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem);
    font-size: 0.95rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    min-height: 90dvh;
    padding-top: calc(var(--nav-height) + 2rem);
  }

  .hero-mark {
    width: clamp(96px, 30vw, 120px);
    height: clamp(96px, 30vw, 120px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Ecosystem */
  .ecosystem-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Daily Brief */
  .brief-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Scope */
  .scope-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Roadmap */
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------
   Responsive — Small Mobile (≤400px)
   ---------------------------------------------------------- */
@media (max-width: 400px) {
  .hero-title {
    letter-spacing: 0.1em;
  }

  .hero-mark {
    width: clamp(84px, 32vw, 100px);
    height: clamp(84px, 32vw, 100px);
  }

  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
  }
}
