/* ============================================
   Tala — Gold Theme Base & Landing
   ============================================ */

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

:root {
  --bg: #08080A;
  --bg-card: #111114;
  --bg-option: #16161A;
  --bg-option-hover: #1C1C22;
  --bg-option-active: #1F1C14;
  --border: rgba(255,255,255,0.07);
  --border-active: #D4A017;
  --text: #F5F5F0;
  --text-secondary: #A8A89A;
  --text-muted: #5C5C52;
  --gold: #F5C842;
  --gold-dark: #D4A017;
  --gold-deep: #B8860B;
  --gold-light: #FFE17D;
  --gold-glow: rgba(245,200,66,0.15);
  --green: #4CAF50;
  --yellow: #F5C842;
  --orange: #E17055;
  --red: #FF6B6B;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100dvh; overflow-x: hidden; }

.screen { display: none; min-height: 100dvh; position: relative; }
.screen--active { display: flex; }
#screen-landing.screen--active { display: block; }
.screen--enter { animation: screenIn 0.45s var(--ease) forwards; }
@keyframes screenIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); font-size: 15px; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); outline: none; -webkit-tap-highlight-color: transparent; text-decoration: none; }
.btn:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.btn--primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #0A0A0A; padding: 14px 36px; min-height: 50px; box-shadow: 0 4px 24px rgba(245,200,66,0.25); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(245,200,66,0.35); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--text-secondary); padding: 14px 36px; min-height: 50px; border: 1px solid var(--border); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.18); color: var(--text); }
.btn--outline { background: transparent; color: var(--gold); padding: 8px 20px; min-height: 36px; border: 1px solid rgba(245,200,66,0.3); font-size: 13px; }
.btn--outline:hover { border-color: var(--gold); background: rgba(245,200,66,0.06); }
.btn--sm { font-size: 13px; padding: 8px 20px; min-height: 36px; }
.btn--lg { font-size: 16px; padding: 18px 44px; min-height: 56px; }
.btn--full { width: 100%; }

/* ====== NAV ====== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 0 20px; background: rgba(8,8,10,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__icon { width: 28px; height: 28px; }
.nav__brand { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

/* ====== HERO ====== */
.hero { display: flex; align-items: center; justify-content: center; gap: 60px; min-height: 100dvh; padding: 100px 24px 60px; max-width: 1100px; margin: 0 auto; width: 100%; position: relative; }
.hero__glow { position: absolute; top: -20%; left: 30%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,200,66,0.08) 0%, transparent 70%); pointer-events: none; }
.hero__content { flex: 1; max-width: 540px; }
.hero__badge { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); padding: 6px 14px; border: 1px solid rgba(245,200,66,0.2); border-radius: 100px; margin-bottom: 24px; background: rgba(245,200,66,0.05); }
.hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero__title br { display: block; }
.hero__sub { font-size: clamp(15px, 2vw, 17px); line-height: 1.65; color: var(--text-secondary); max-width: 460px; margin-bottom: 32px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__note { font-size: 13px; color: var(--text-muted); }
.hero__visual { flex: 0 0 340px; display: flex; flex-direction: column; gap: 14px; }
.hero__card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; animation: floatUp 0.8s var(--ease) forwards; opacity: 0; }
.hero__card--1 { animation-delay: 0.2s; }
.hero__card--2 { animation-delay: 0.4s; }
.hero__card--3 { animation-delay: 0.6s; }
@keyframes floatUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero__card-label { font-size: 12px; font-weight: 500; color: var(--text-muted); display: block; margin-bottom: 6px; }
.hero__card-value { font-size: 28px; font-weight: 700; display: block; }
.hero__card-value.gold { color: var(--gold); }
.hero__card-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.hero__card-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 2px; }
.hero__alloc { margin-top: 8px; }
.hero__alloc-bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; display: flex; }
.hero__alloc-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.hero__alloc-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-secondary); }
.hero__alloc-legend strong { color: var(--text); }

/* ====== FEATURES ====== */
.section-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 12px; text-align: center; }
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 16px; line-height: 1.2; }
.section-sub { font-size: 15px; color: var(--text-secondary); text-align: center; max-width: 520px; margin: 0 auto 40px; line-height: 1.6; }
.features { padding: 80px 24px; border-top: 1px solid var(--border); }
.features__inner { max-width: 1000px; margin: 0 auto; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: all var(--transition); }
.feature-card:hover { border-color: rgba(245,200,66,0.2); transform: translateY(-2px); }
.feature-card__num { font-size: 32px; font-weight: 800; color: var(--gold); opacity: 0.4; margin-bottom: 14px; }
.feature-card__title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ====== PILLARS ====== */
.pillars { padding: 80px 24px; border-top: 1px solid var(--border); }
.pillars__inner { max-width: 800px; margin: 0 auto; }
.pillars__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); text-align: center; transition: all var(--transition); }
.pillar:hover { border-color: rgba(245,200,66,0.15); }
.pillar__icon { font-size: 24px; }
.pillar__text { font-size: 12px; font-weight: 500; color: var(--text-secondary); line-height: 1.3; }

/* ====== CTA SECTION ====== */
.cta-section { padding: 80px 24px; border-top: 1px solid var(--border); text-align: center; }
.cta-section__inner { max-width: 520px; margin: 0 auto; }
.cta-section__title { font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-section__sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

/* ====== FOOTER ====== */
.footer { padding: 32px 24px; border-top: 1px solid var(--border); }
.footer__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer__logo { display: flex; align-items: center; gap: 8px; }
.footer__icon { width: 22px; height: 22px; }
.footer__brand { font-size: 16px; font-weight: 600; }
.footer__copy { font-size: 12px; color: var(--text-muted); }

/* ====== RESPONSIVE — LANDING ====== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; gap: 40px; padding-top: 100px; }
  .hero__content { max-width: 100%; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__visual { flex: none; width: 100%; max-width: 400px; }
  .features__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
  .nav__inner { height: 56px; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 28px; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { padding: 14px 6px; }
}
