/* ============================================================
   HOME PAGE — home.css
   ============================================================ */

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

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

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(1,141,209,0.18) 0%, transparent 70%);
  top: -20%; left: -15%;
  animation: float 8s ease-in-out infinite;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(243,201,9,0.1) 0%, transparent 70%);
  bottom: -10%; right: -10%;
  animation: float 10s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(1,141,209,0.12) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation: float 6s ease-in-out infinite;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1,141,209,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,141,209,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.hero__badge { animation: fadeUp 0.6s ease 0.1s both; }

.hero__heading {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
  animation: fadeUp 0.7s ease 0.3s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.4s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1;
  animation: fadeIn 1s ease 1s both;
}
.hero__scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--maithraa-blue), transparent);
  animation: pulse-scroll 1.5s ease-in-out infinite;
}
@keyframes pulse-scroll {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.8); }
}

/* ── TICKER ── */
.ticker-bar {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.ticker-sep { color: var(--maithraa-gold); flex-shrink: 0; }

/* ── ECOSYSTEM OVERVIEW ── */
.ecosystem-overview { background: var(--maithraa-dark); }

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}
.section-header.text-center {
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}
.section-header.text-center .section-label { justify-content: center; }
.section-header.text-center .section-label::before { display: none; }

.eco-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* FIX: 2x2 */
  gap: 1.5rem;
  align-items: stretch;
}

.eco-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eco-card:hover {
  border-color: var(--maithraa-blue);
  transform: translateY(-6px);
  box-shadow: var(--shadow-blue);
  color: inherit;
}
.eco-card--featured {
  grid-column: auto;
}
.eco-card--labs:hover { border-color: var(--maithraa-gold); box-shadow: var(--shadow-gold); }

.eco-card__glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(1,141,209,0.15), transparent 70%);
  pointer-events: none;
}
.eco-card__icon { font-size: 2.2rem; }
.eco-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}
.eco-card__desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.eco-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eco-card__tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.eco-card__arrow {
  font-size: 1.2rem;
  color: var(--maithraa-blue);
  align-self: flex-end;
  transition: var(--transition);
}
.eco-card:hover .eco-card__arrow { transform: translateX(4px); }

/* ── TECH HIGHLIGHT ── */
.tech-highlight {
  position: relative;
  overflow: hidden;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-highlight__bg { position: absolute; inset: 0; z-index: 0; }
.tech-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.tech-features { display: flex; flex-direction: column; gap: 1.25rem; margin: 2rem 0; }
.tech-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tech-feature__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.tech-feature__dot--blue { background: var(--maithraa-blue); box-shadow: 0 0 8px var(--maithraa-blue); }
.tech-feature__dot--gold { background: var(--maithraa-gold); box-shadow: 0 0 8px var(--maithraa-gold); }
.tech-feature__title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.2rem; }
.tech-feature__desc { font-size: 0.88rem; color: var(--text-muted); }

/* Layer diagram */
.layer-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.layer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--surface-1);
  text-align: center;
}
.layer--1 { border-color: rgba(1,141,209,0.5); background: rgba(1,141,209,0.05); }
.layer--2 { border-color: rgba(243,201,9,0.5); background: rgba(243,201,9,0.05); }
.layer--3 { border-color: rgba(1,141,209,0.3); }
.layer--4 { border-color: rgba(243,201,9,0.3); }
.layer--5 { border-color: rgba(1,141,209,0.5); background: rgba(1,141,209,0.05); }

.layer__label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.layer__tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }
.layer-arrow { color: var(--maithraa-blue); font-size: 1.2rem; padding: 0.25rem 0; }

/* ── MTRA TEASER ── */
.mtra-teaser { background: var(--maithraa-dark); }
.mtra-card {
  position: relative;
  background: linear-gradient(135deg, var(--surface-1) 0%, rgba(243,201,9,0.06) 100%);
  border: 1px solid rgba(243,201,9,0.3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 3.5rem;
}
.mtra-card__glow {
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(243,201,9,0.12), transparent 70%);
  pointer-events: none;
}
.mtra-card__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.mtra-card__left { display: flex; flex-direction: column; gap: 1.5rem; }
.mtra-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.mtra-stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mtra-stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

/* Token visual */
.token-visual {
  position: relative;
  width: 200px; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.token-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  animation: spin-slow linear infinite;
}
.token-ring--1 {
  width: 200px; height: 200px;
  border-color: rgba(243,201,9,0.3);
  animation-duration: 20s;
}
.token-ring--2 {
  width: 155px; height: 155px;
  border-color: rgba(243,201,9,0.5);
  border-style: dashed;
  animation-duration: 15s;
  animation-direction: reverse;
}
.token-ring--3 {
  width: 110px; height: 110px;
  border-color: rgba(1,141,209,0.4);
  animation-duration: 10s;
}
.token-core {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--maithraa-gold), #C9A400);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(243,201,9,0.4);
}
.token-symbol {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--maithraa-dark);
  line-height: 1;
}
.token-name {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: rgba(0,8,13,0.7);
  text-transform: uppercase;
}

/* ── WHY SECTION ── */
.why-section { background: var(--surface-1); border-top: 1px solid var(--border); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.why-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.why-card:hover {
  border-color: var(--maithraa-blue);
  transform: translateY(-4px);
}
.why-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(1,141,209,0.12);
  line-height: 1;
  margin-bottom: 1rem;
  position: absolute;
  top: 1.25rem; right: 1.5rem;
}
.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.why-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── CTA STRIP ── */
.cta-strip { background: var(--maithraa-dark); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 4rem;
  background: linear-gradient(135deg, var(--surface-1), rgba(1,141,209,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}
.cta-text h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.cta-text p { color: var(--text-muted); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .tech-grid { grid-template-columns: 1fr; gap: 3rem; }
  .mtra-card__inner { grid-template-columns: 1fr; }
  .token-visual { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .eco-cards { grid-template-columns: 1fr; }
  .eco-card--featured { grid-column: span 1; }
  .hero__stats { gap: 1.5rem; }
  .hero__stat-divider { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 2rem; flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}
