/* Eira — Design System
   Dark premium fintech · Glassmorphism · Purple + Lime
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── VARIABLES ─── */

:root {
  --bg:         #07070d;
  --bg2:        #0c0c16;
  --bg3:        #101020;
  --card:       rgba(255,255,255,0.03);
  --card-b:     rgba(255,255,255,0.06);
  --card-h:     rgba(255,255,255,0.06);
  --glass:      rgba(255,255,255,0.04);
  --glass-b:    rgba(255,255,255,0.08);
  --text:       #eeedf5;
  --dim:        #9994b8;
  --muted:      #5d5878;
  --green:      #b8f24e;
  --purple:     #a855f7;
  --purple-d:   #7c3aed;
  --purple-glow:rgba(168,85,247,0.15);
  --green-glow: rgba(184,242,78,0.12);
  --gold:       #facc15;
  --coral:      #f87171;
  --teal:       #2dd4bf;
  --blue:       #60a5fa;
  --font:       'Sora', sans-serif;
  --font-display:'Sora', sans-serif;
  --mono:       'JetBrains Mono', monospace;
  --ease:       cubic-bezier(0.23, 1, 0.32, 1);
  --max-w:      1180px;
  --r:          16px;
  --rl:         24px;
}

/* ─── RESET ─── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

/* ─── NAVIGATION ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7,7,13,0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--card-b);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--bg);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--dim);
  transition: color 0.2s;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.3s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(184, 242, 78, 0.2);
}

/* ─── SECTION UTILITIES ─── */

.sec-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sec-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--purple);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.sec-desc {
  font-size: 16px;
  color: var(--dim);
  line-height: 1.7;
  max-width: 550px;
}

/* ─── BUTTONS ─── */

.btn-p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(184, 242, 78, 0.12);
  transition: all 0.3s var(--ease);
}

.btn-p:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 50px rgba(184, 242, 78, 0.3), 0 0 80px rgba(184, 242, 78, 0.15);
}

.btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  color: var(--dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-g:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  border-radius: 8px;
  transition: transform 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.btn-sm:hover {
  transform: translateY(-1px);
}

.btn-sm.green {
  background: var(--green);
  color: var(--bg);
}

.btn-sm.purple {
  background: var(--purple);
  color: #fff;
}

.btn-sm.ghost {
  background: transparent;
  border: 1px solid var(--glass-b);
  color: var(--dim);
}

.btn-sm.ghost:hover {
  border-color: rgba(255,255,255,0.15);
  color: var(--text);
}

/* ─── CARDS ─── */

.card {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--r);
  padding: 28px;
  position: relative;
  overflow: visible;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--green));
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(168, 85, 247, 0.12);
}

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

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card-lg {
  background: var(--card);
  border: 1px solid var(--card-b);
  border-radius: var(--rl);
  padding: 40px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

/* ─── BADGE / PILL ─── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 100px;
  font-size: 13px;
  color: var(--dim);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── GLOW BACKGROUNDS ─── */

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.glow-purple {
  background: var(--purple);
  opacity: 0.07;
}

.glow-green {
  background: var(--green);
  opacity: 0.06;
}

/* ─── FOOTER ─── */

.footer {
  border-top: 1px solid var(--card-b);
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer a {
  color: var(--dim);
  transition: color 0.2s;
}

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

/* ─── ARTICLE STYLES ─── */

.article-hero {
  padding-top: 140px;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text);
  margin: 48px 0 16px;
  line-height: 1.25;
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 36px 0 12px;
}

.article-body p {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body blockquote {
  border-left: 3px solid var(--purple);
  background: var(--glass);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 var(--r) var(--r) 0;
}

.article-body blockquote p {
  color: var(--text);
  margin-bottom: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-cta {
  max-width: 740px;
  margin: 0 auto 80px;
  padding: 48px 40px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(184,242,78,0.06));
  border: 1px solid var(--card-b);
  border-radius: var(--rl);
  text-align: center;
  position: relative;
  overflow: visible;
  transition: transform 0.4s var(--ease);
}

.article-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.3), 0 0 80px rgba(168, 85, 247, 0.12);
}

.article-cta:hover {
  transform: translateY(-4px);
}

.article-cta:hover::after {
  opacity: 1;
}

.article-cta .sec-title {
  margin-bottom: 12px;
}

.article-cta .sec-desc {
  margin: 0 auto 24px;
}

/* ─── KEYFRAMES — ENTRANCE ─── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered entrance helper classes */
.fade-up       { animation: fadeUp 0.6s var(--ease) both; }
.fade-up-d1    { animation: fadeUp 0.6s var(--ease) 0.08s both; }
.fade-up-d2    { animation: fadeUp 0.6s var(--ease) 0.16s both; }
.fade-up-d3    { animation: fadeUp 0.6s var(--ease) 0.24s both; }
.fade-up-d4    { animation: fadeUp 0.6s var(--ease) 0.32s both; }
.fade-up-long  { animation: fadeUp 0.8s var(--ease) 0.2s both; }

/* ─── KEYFRAMES — AMBIENT / LOOPING ─── */

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fl       { animation: bob 5s ease-in-out infinite; }
.fl.f1    { animation-delay: 0s; }
.fl.f2    { animation-delay: 1.8s; }
.fl.f3    { animation-delay: 3.6s; }

@keyframes wordCycle {
  0%,  18%  { transform: translateY(0); }
  25%, 43%  { transform: translateY(-1.1em); }
  50%, 68%  { transform: translateY(-2.2em); }
  75%, 93%  { transform: translateY(-3.3em); }
  100%      { transform: translateY(-4.4em); }
}

.rw {
  display: inline-block;
  overflow: hidden;
  height: 1.1em;
  vertical-align: bottom;
}

.rws {
  display: inline-block;
  animation: wordCycle 8s var(--ease) infinite;
}

.rws span {
  display: block;
  height: 1.1em;
  line-height: 1.1em;
}

@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

.ticker {
  overflow: hidden;
  width: 100%;
}

.tt {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

/* ─── KEYFRAMES — INTERACTIVE ─── */

@keyframes barFill {
  from { width: 0; }
  to   { width: 65%; }
}

/* ─── SCROLL REVEAL (JS-driven) ─── */

/*
  Initial state applied via JS so content remains visible without JS.
  JS adds .reveal-init → hidden, then swaps to .revealed on intersect.
*/

.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .nav-links .nav-link {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 16px;
  }

  .card {
    padding: 20px;
  }

  .card-lg {
    padding: 28px 20px;
  }

  .article-hero {
    padding-top: 110px;
  }

  .article-body {
    padding: 0 16px 60px;
  }

  .article-cta {
    padding: 36px 24px;
  }

  .sec-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .btn-p, .btn-g {
    padding: 12px 22px;
    font-size: 14px;
  }

  .footer {
    padding: 36px 16px;
  }
}

/* ─── TEXT HIGHLIGHTS ─── */

.hl-g { color: var(--green); }
.hl-p { color: var(--purple); }

/* ─── LAYOUT HELPERS ─── */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section.alt {
  background: var(--bg2);
}

.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}
