/* ============================================================
   TILCAYO AURA — $AURINO
   "The Aura Is Awake" — astral-twin / spirit-echo theme
   ============================================================ */

:root{
  --void: #120d0a;
  --void-2: #1c1510;
  --void-3: #241b14;
  --cream: #f5eede;
  --cream-dim: #d9cdb4;
  --cream-dust: #ada08a;
  --gold: #e2a962;
  --gold-deep: #a9723c;
  --gold-soft: #f0c893;
  --sage: #9bb383;
  --rose: #cf9298;
  --line: rgba(226,169,98,0.18);
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --ease: cubic-bezier(.16,.84,.44,1);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ margin:0; padding:0; overflow-x:hidden; }

body{
  background:var(--void);
  color:var(--cream);
  font-family:var(--font-body);
  font-weight:400;
  line-height:1.6;
  position:relative;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed; inset:0;
  background-image:url('../images/grain.webp');
  background-size:220px 220px;
  opacity:.5;
  mix-blend-mode:overlay;
  pointer-events:none;
  z-index:9000;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
::selection{ background:var(--gold); color:var(--void); }

.eyebrow{
  font-family:var(--font-mono);
  font-size:.72rem;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:.6em;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--gold);
  display:inline-block;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  margin:0;
  color:var(--cream);
}
.section-title{
  font-size:clamp(2.2rem,5vw,3.6rem);
  line-height:1.05;
  margin:.4em 0 .5em;
}
.section-title em{ color:var(--gold); font-style:normal; }
p{ color:var(--cream-dim); }

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(20px,5vw,48px);
}

.section{ position:relative; padding:120px 0; overflow:hidden; }
.section-bg{
  position:absolute; inset:-5%;
  background-size:cover; background-position:center;
  opacity:.28; filter:saturate(1.05);
  z-index:0;
}
.section-bg::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, var(--void) 0%, rgba(18,13,10,.72) 40%, var(--void) 100%);
}
.section > .wrap{ position:relative; z-index:1; }

/* ---------------- Buttons ---------------- */
.btn{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  font-family:var(--font-mono);
  font-size:.82rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:16px 30px;
  border-radius:100px;
  border:1px solid var(--line);
  background:rgba(245,238,222,0.03);
  color:var(--cream);
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease, background .3s ease;
  white-space:nowrap;
  overflow:hidden;
}
.btn::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(226,169,98,.35), transparent 70%);
  opacity:0; transition:opacity .3s ease;
}
.btn:hover::before{ opacity:1; }
.btn:hover{ transform:translateY(-3px); border-color:var(--gold); }

.btn-gold{
  background:linear-gradient(135deg, var(--gold-soft), var(--gold) 50%, var(--gold-deep));
  color:#1c1108;
  border:1px solid transparent;
  font-weight:600;
  box-shadow:0 10px 30px rgba(226,169,98,.25);
}
.btn-gold:hover{ box-shadow:0 16px 40px rgba(226,169,98,.4); transform:translateY(-3px) scale(1.02); }

.btn-ghost{ background:transparent; }

.btn-icon{ padding:14px; border-radius:50%; width:46px; height:46px; }
.btn-icon svg{ width:18px; height:18px; }

.btn-copy{ min-width:230px; justify-content:space-between; }
.btn-copy .ca-text{
  font-size:.76rem; overflow:hidden; text-overflow:ellipsis; max-width:150px;
}
.btn-copy .copy-ico{ flex:0 0 auto; opacity:.8; }
.btn-copy.copied{ border-color:var(--sage); color:var(--sage); }

.cta-row{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; }

/* ---------------- Preloader ---------------- */
#preloader{
  position:fixed; inset:0; z-index:99999;
  background:var(--void);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition:opacity .9s var(--ease), visibility .9s var(--ease);
}
#preloader.hidden{ opacity:0; visibility:hidden; pointer-events:none; }
.pre-photo-wrap{
  position:relative; width:min(64vw,340px); aspect-ratio:1/1;
  border-radius:50%; overflow:hidden;
  box-shadow:0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6);
}
.pre-photo-wrap img{
  width:100%; height:100%; object-fit:cover; object-position:30% 40%;
  transform:scale(1.15);
  filter:saturate(1.05) brightness(.92);
  animation:preBreathe 3.2s ease-in-out infinite;
}
@keyframes preBreathe{ 0%,100%{transform:scale(1.15)} 50%{transform:scale(1.22)} }
.pre-ring{
  position:absolute; inset:-14px; border-radius:50%;
  border:1px solid var(--gold); opacity:.55;
  animation:preSpin 9s linear infinite;
}
.pre-ring.r2{ inset:-30px; opacity:.28; animation-duration:14s; animation-direction:reverse; }
@keyframes preSpin{ to{ transform:rotate(360deg); } }
.pre-word{
  margin-top:38px; font-family:var(--font-mono);
  letter-spacing:.4em; text-transform:uppercase; font-size:.78rem; color:var(--cream-dust);
}
.pre-bar{
  margin-top:18px; width:200px; height:2px; background:rgba(245,238,222,.12);
  border-radius:2px; overflow:hidden;
}
.pre-bar-fill{ height:100%; width:0%; background:linear-gradient(90deg,var(--gold-deep),var(--gold)); transition:width .25s ease; }

/* ---------------- Header ---------------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:18px clamp(16px,4vw,40px);
  display:flex; align-items:center; justify-content:space-between;
  transition:background .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
header.scrolled{
  background:rgba(18,13,10,.78);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  padding-top:12px; padding-bottom:12px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:38px; height:38px; border-radius:50%; overflow:hidden; border:1px solid var(--line); flex:0 0 auto; }
.brand-mark img{ width:100%; height:100%; object-fit:cover; }
.brand-text{ font-family:var(--font-display); font-size:1.25rem; font-weight:600; letter-spacing:.02em; }
.brand-text .tick{ display:block; font-family:var(--font-mono); font-size:.62rem; letter-spacing:.2em; color:var(--gold); }
.nav-socials{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; }

/* ---------------- Hero ---------------- */
.hero{
  min-height:100vh;
  display:flex; align-items:center;
  padding:150px 0 90px;
  position:relative;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;
}
.hero-copy .eyebrow{ margin-bottom:22px; }
.hero-copy h1{
  font-size:clamp(3rem,7vw,5.4rem);
  line-height:.98;
}
.hero-copy h1 .line2{ color:var(--gold); display:block; }
.hero-sub{
  margin-top:22px; max-width:440px; font-size:1.05rem;
}
.hero-ticker{
  font-family:var(--font-mono); color:var(--gold); font-size:1rem; letter-spacing:.1em;
  margin-top:18px; display:block;
}
.hero-ctas{ margin-top:38px; }

.hero-visual{
  position:relative; perspective:1400px; width:100%;
}
.hero-frame{
  position:relative; width:100%; aspect-ratio:1/1.02; margin:0 auto;
  transform-style:preserve-3d;
}
.hero-frame .halo{
  position:absolute; inset:-16%; border-radius:50%;
  background:radial-gradient(circle at 50% 45%, rgba(226,169,98,.38), transparent 62%);
  filter:blur(6px);
  animation:haloPulse 5s ease-in-out infinite;
}
@keyframes haloPulse{ 0%,100%{opacity:.75; transform:scale(1);} 50%{opacity:1; transform:scale(1.04);} }
.hero-photo-ring{
  position:absolute; inset:6%; border-radius:44% 56% 52% 48%/50% 46% 54% 50%;
  border:1px solid var(--gold); opacity:.5;
  animation:blobMorph 12s ease-in-out infinite;
}
@keyframes blobMorph{
  0%,100%{ border-radius:44% 56% 52% 48%/50% 46% 54% 50%; }
  50%{ border-radius:54% 46% 48% 52%/44% 54% 46% 56%; }
}
.hero-photo{
  position:absolute; inset:10%; border-radius:50%;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(226,169,98,.4);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; object-position:32% 38%; }
.hero-sparkle{ position:absolute; width:6px; height:6px; border-radius:50%; background:var(--gold-soft); box-shadow:0 0 10px 2px var(--gold); opacity:.85; }

/* ---------------- Marquee strip ---------------- */
.marquee-strip{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--void-2);
  padding:16px 0; overflow:hidden; position:relative;
}
.marquee-track{ display:flex; gap:48px; white-space:nowrap; width:max-content; animation:marquee 26s linear infinite; }
.marquee-track span{
  font-family:var(--font-mono); font-size:.82rem; letter-spacing:.25em; text-transform:uppercase; color:var(--cream-dust);
}
.marquee-track span em{ color:var(--gold); font-style:normal; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------------- Lore ---------------- */
.lore-grid{ display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:start; }
.lore-visual{ position:relative; }
.lore-photo{
  border-radius:24px; overflow:hidden; position:relative;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
.lore-photo img{ width:100%; display:block; }
.lore-cards{ display:grid; gap:20px; margin-top:30px; }
.lore-card{
  border:1px solid var(--line); border-radius:18px; padding:26px 28px;
  background:linear-gradient(160deg, rgba(226,169,98,.06), rgba(226,169,98,0) 60%);
  transform:translateY(24px); opacity:0;
}
.lore-card h3{ font-size:1.3rem; margin-bottom:8px; color:var(--gold-soft); }
.lore-card p{ margin:0; font-size:.95rem; }
.lore-num{ font-family:var(--font-mono); color:var(--gold); font-size:.75rem; letter-spacing:.2em; display:block; margin-bottom:10px; }

/* ---------------- How to buy ---------------- */
.hb-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:50px; }
.hb-card{
  border:1px solid var(--line); border-radius:20px; padding:32px 26px;
  background:rgba(245,238,222,.03);
  transform:translateY(30px) rotateX(6deg); opacity:0;
  transition:transform .5s var(--ease), border-color .3s ease;
}
.hb-card:hover{ border-color:var(--gold); transform:translateY(-6px) !important; }
.hb-step{
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--gold); color:var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.95rem; margin-bottom:20px;
}
.hb-card h3{ font-size:1.2rem; margin-bottom:8px; }
.hb-card p{ font-size:.9rem; margin:0; }

/* ---------------- Chart ---------------- */
.chart-panel{
  border:1px solid var(--line); border-radius:24px; overflow:hidden;
  background:var(--void-2); margin-top:44px; box-shadow:var(--shadow);
}
.chart-head{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  padding:20px 26px; border-bottom:1px solid var(--line);
}
.chart-head .dot{ width:8px; height:8px; border-radius:50%; background:var(--sage); box-shadow:0 0 8px var(--sage); display:inline-block; margin-right:8px; }
.chart-frame{ position:relative; aspect-ratio:16/9; background:var(--void); }
.chart-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.chart-placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  text-align:center; padding:20px;
}
.chart-placeholder .ring{
  width:64px; height:64px; border-radius:50%; border:1px solid var(--gold); opacity:.6;
  display:flex; align-items:center; justify-content:center;
  animation:preSpin 6s linear infinite;
}
.chart-placeholder p{ font-family:var(--font-mono); font-size:.8rem; letter-spacing:.1em; color:var(--cream-dust); max-width:320px; }

/* ---------------- Roadmap ---------------- */
.road-track{ position:relative; margin-top:70px; padding-left:2px; }
.road-line{
  position:absolute; left:23px; top:0; bottom:0; width:2px;
  background:linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.road-line-fill{
  position:absolute; left:0; top:0; width:100%; height:0%;
  background:linear-gradient(180deg, var(--gold), var(--gold-deep));
  transition:height .1s linear;
}
.road-item{ position:relative; padding:0 0 60px 66px; }
.road-item:last-child{ padding-bottom:0; }
.road-dot{
  position:absolute; left:10px; top:2px; width:28px; height:28px; border-radius:50%;
  background:var(--void-2); border:1px solid var(--gold); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:.7rem; color:var(--gold);
  transform:scale(.7); opacity:.4; transition:transform .5s var(--ease), opacity .5s var(--ease), box-shadow .5s ease;
}
.road-item.active .road-dot{ transform:scale(1); opacity:1; box-shadow:0 0 18px rgba(226,169,98,.6); background:var(--gold); color:var(--void); }
.road-item h3{ font-size:1.5rem; margin-bottom:8px; }
.road-item p{ max-width:520px; margin:0; }
.road-tag{ font-family:var(--font-mono); font-size:.7rem; letter-spacing:.2em; color:var(--gold); text-transform:uppercase; }

/* ---------------- Footer ---------------- */
footer{
  position:relative; padding:100px 0 46px;
  border-top:1px solid var(--line);
  overflow:hidden;
}
.footer-top{ text-align:center; margin-bottom:56px; }
.footer-top h2{ font-size:clamp(2rem,5vw,3rem); }
.footer-links{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:60px;
}
.footer-link{
  border:1px solid var(--line); border-radius:16px; padding:20px 22px;
  display:flex; align-items:center; justify-content:space-between;
  background:rgba(245,238,222,.02);
  transition:border-color .3s ease, transform .35s var(--ease), background .3s ease;
}
.footer-link:hover{ border-color:var(--gold); transform:translateY(-4px); background:rgba(226,169,98,.06); }
.footer-link span{ font-family:var(--font-mono); font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; }
.footer-link svg{ width:16px; height:16px; opacity:.7; }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between;
  padding-top:34px; border-top:1px solid var(--line);
}
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width:34px; height:34px; border-radius:50%; border:1px solid var(--line); }
.footer-legal{ font-size:.78rem; color:var(--cream-dust); font-family:var(--font-mono); }
.footer-socials{ display:flex; gap:10px; }

/* ---------------- misc ---------------- */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }
.reveal.d1{ transition-delay:.08s; }
.reveal.d2{ transition-delay:.16s; }
.reveal.d3{ transition-delay:.24s; }
.reveal.d4{ transition-delay:.32s; }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(16px);
  background:var(--cream); color:var(--void); font-family:var(--font-mono); font-size:.8rem;
  padding:12px 20px; border-radius:100px; opacity:0; pointer-events:none;
  transition:opacity .35s ease, transform .35s ease; z-index:9999; letter-spacing:.05em;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* particle canvas */
#aura-canvas{ position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.55; mix-blend-mode:screen; }

/* ---------------- Responsive ---------------- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:380px; margin:0 auto; }
  .lore-grid{ grid-template-columns:1fr; }
  .hb-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-links{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .section{ padding:80px 0; }
  .hero{ padding-top:120px; }
  .hb-grid{ grid-template-columns:1fr; }
  .footer-links{ grid-template-columns:1fr; }
  .nav-socials{
    position:fixed; top:0; right:0; height:100vh; width:76vw; max-width:300px;
    background:rgba(18,13,10,.97); backdrop-filter:blur(16px);
    flex-direction:column; justify-content:center; gap:22px;
    transform:translateX(100%); transition:transform .5s var(--ease);
    border-left:1px solid var(--line); z-index:600;
  }
  .nav-socials.open{ transform:translateX(0); }
  .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:50%; border:1px solid var(--line);
    background:rgba(245,238,222,.03); position:relative; z-index:700;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
    content:""; position:absolute; width:18px; height:1.5px; background:var(--cream); transition:.3s ease;
  }
  .nav-toggle span::before{ transform:translateY(-6px); }
  .nav-toggle span::after{ transform:translateY(6px); }
  .nav-toggle.open span{ background:transparent; }
  .nav-toggle.open span::before{ transform:rotate(45deg); }
  .nav-toggle.open span::after{ transform:rotate(-45deg); }
  .btn-copy{ min-width:0; }
}
