/* =========================================================
   CHILL HUNTER — $CHILLHUN
   Noir Cigar-Lounge theme
========================================================= */

:root{
  --bg:            #0a0b0f;
  --bg-alt:        #0d1020;
  --navy:          #10152b;
  --navy-light:    #1b2547;
  --navy-lighter:  #2a366a;
  --gold:          #c99a4a;
  --gold-bright:   #f0c479;
  --red:           #971415;
  --red-bright:    #d13a3a;
  --cream:         #eee7d8;
  --text-dim:      #a7acc0;
  --smoke:         #6b6b70;
  --radius:        14px;
  --shadow-gold:   0 0 30px rgba(201,154,74,.35);
  --ff-display:    'Bebas Neue', sans-serif;
  --ff-script:     'Caveat', cursive;
  --ff-body:       'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font-family:var(--ff-body);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--ff-display); letter-spacing:.02em; margin:0; }
p{ line-height:1.7; color:var(--text-dim); margin:0 0 1em; }
section{ position:relative; }

/* faint global grain */
body::after{
  content:"";
  position:fixed; inset:0;
  background:url('../img/noise-tile.png');
  background-size:220px;
  opacity:.5;
  pointer-events:none;
  z-index:9000;
  mix-blend-mode:overlay;
}

::selection{ background:var(--gold); color:#000; }

/* scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--navy-light); border-radius:10px; border:2px solid var(--bg); }

/* =========================================================
   LOADING SCREEN
========================================================= */
#loading-screen{
  position:fixed; inset:0; z-index:99999;
  display:flex; align-items:center; justify-content:center;
  background:#050608;
  transition:opacity .8s ease, visibility .8s ease;
}
#loading-screen.loaded{ opacity:0; visibility:hidden; pointer-events:none; }
.loading-bg{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  opacity:.7;
}
.loading-content{
  position:relative; z-index:2;
  display:flex; flex-direction:column; align-items:center;
  text-align:center; padding:20px;
}
.loading-portrait{
  width:min(46vw,300px);
  filter:drop-shadow(0 20px 60px rgba(0,0,0,.7));
  animation:loadFloat 3s ease-in-out infinite;
}
@keyframes loadFloat{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-14px); }
}
.loading-wordmark{
  font-family:var(--ff-display);
  font-size:clamp(2rem,7vw,3.4rem);
  letter-spacing:.08em;
  margin-top:18px;
  color:var(--cream);
}
.loading-wordmark span{ color:var(--gold); }
.loading-bar-track{
  width:min(70vw,320px); height:4px;
  background:rgba(255,255,255,.12);
  border-radius:4px; margin-top:22px; overflow:hidden;
}
.loading-bar-fill{
  height:100%; width:0%;
  background:linear-gradient(90deg,var(--red),var(--gold));
  border-radius:4px;
  transition:width .25s ease-out;
}
.loading-tag{
  margin-top:12px; font-size:.8rem; letter-spacing:.15em;
  text-transform:uppercase; color:var(--text-dim);
}

/* =========================================================
   SMOKE CANVAS (ambient particles, decorative, behind content)
========================================================= */
#smoke-canvas{
  position:fixed; inset:0;
  width:100%; height:100%;
  z-index:1;
  pointer-events:none;
  opacity:.5;
}

/* =========================================================
   HEADER
========================================================= */
#site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  background:transparent;
  transition:background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding:18px 0;
}
#site-header.scrolled{
  background:rgba(8,9,14,.85);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 24px rgba(0,0,0,.4);
  padding:10px 0;
  border-bottom:1px solid rgba(201,154,74,.15);
}
.header-inner{
  max-width:1280px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-icon{ width:38px; height:38px; object-fit:contain; }
.brand-word{
  font-family:var(--ff-display); font-size:1.3rem; letter-spacing:.05em; color:var(--cream);
}
.brand-word .accent{ color:var(--gold); }

.main-nav{ display:flex; gap:28px; }
.nav-link{
  font-size:.92rem; font-weight:600; color:var(--text-dim);
  position:relative; padding:4px 0; transition:color .25s ease;
}
.nav-link:hover{ color:var(--gold-bright); }
.nav-link::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:var(--gold); transition:right .3s ease;
}
.nav-link:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:12px; }
.icon-btn{
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(201,154,74,.25);
  transition:transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.icon-btn svg{ width:18px; height:18px; fill:var(--cream); }
.icon-btn:hover{ transform:translateY(-3px) scale(1.05); background:var(--gold); box-shadow:var(--shadow-gold); }
.icon-btn:hover svg{ fill:#171008; }

#hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;
}
#hamburger span{ width:22px; height:2px; background:var(--cream); border-radius:2px; transition:all .3s ease; }
#hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2){ opacity:0; }
#hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

#mobile-nav{
  position:fixed; top:0; right:-100%; width:min(78vw,320px); height:100vh; z-index:600;
  background:rgba(9,10,17,.98); border-left:1px solid rgba(201,154,74,.2);
  display:flex; flex-direction:column; gap:26px;
  padding:100px 32px 40px;
  transition:right .4s cubic-bezier(.7,0,.3,1);
}
#mobile-nav.open{ right:0; }
#mobile-nav .nav-link{ font-size:1.2rem; }
.mobile-socials{ display:flex; gap:14px; margin-top:10px; }

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  font-family:var(--ff-body); font-weight:700; font-size:.95rem;
  border:none; cursor:pointer; border-radius:999px;
  padding:14px 30px; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  transition:transform .25s ease, box-shadow .3s ease, background .3s ease;
  letter-spacing:.02em;
}
.btn-gold{
  background:linear-gradient(135deg,var(--gold-bright),var(--gold) 60%,#a87a34);
  color:#211505;
  box-shadow:0 10px 30px -8px rgba(201,154,74,.6);
}
.btn-gold:hover{ transform:translateY(-3px); box-shadow:0 16px 34px -8px rgba(201,154,74,.8); }
.btn-outline{
  background:transparent; color:var(--cream);
  border:1.5px solid rgba(238,231,216,.35);
}
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-bright); transform:translateY(-3px); }
.btn-lg{ padding:16px 34px; font-size:1rem; }
.btn-xl{ padding:20px 48px; font-size:1.15rem; }

/* =========================================================
   HERO
========================================================= */
.section-hero{
  min-height:100vh;
  display:flex; align-items:center;
  padding:130px 24px 60px;
  overflow:hidden;
}
.hero-bg-layer{
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  z-index:0;
}
.hero-vignette{
  position:absolute; inset:0; z-index:1;
  background:radial-gradient(ellipse at 60% 35%, transparent 0%, rgba(6,7,11,.55) 70%, rgba(6,7,11,.92) 100%);
}
.hero-spotlight-beam{
  position:absolute; top:-10%; left:50%; width:140%; height:70%;
  transform:translateX(-50%) rotate(3deg);
  background:conic-gradient(from 200deg at 60% 0%, transparent 0deg, rgba(240,196,121,.10) 18deg, transparent 40deg);
  z-index:1; pointer-events:none;
}
.hero-inner{
  position:relative; z-index:2;
  max-width:1280px; margin:0 auto; width:100%;
  display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:40px;
}
.eyebrow{
  font-size:.78rem; letter-spacing:.28em; color:var(--gold-bright);
  font-weight:700; margin-bottom:14px;
}
.hero-title{
  font-size:clamp(3rem,8vw,6.4rem); line-height:.92; color:var(--cream);
  text-shadow:0 4px 40px rgba(0,0,0,.5);
}
.hero-title .script{
  display:block; font-family:var(--ff-script); font-weight:700;
  font-size:.62em; color:var(--gold-bright); margin-top:.05em;
  text-shadow:0 0 22px rgba(240,196,121,.55);
}
.hero-tag{
  font-size:1.1rem; max-width:480px; margin:22px 0 30px; color:var(--text-dim);
}
.ca-box{
  display:inline-flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(201,154,74,.3);
  border-radius:999px; padding:10px 10px 10px 20px;
  margin-bottom:30px; max-width:100%;
}
.ca-label{
  font-family:var(--ff-display); font-size:.85rem; color:var(--gold-bright); letter-spacing:.1em;
}
.ca-value{
  font-family:monospace; font-size:.82rem; color:var(--cream);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px;
}
.ca-copy{
  display:flex; align-items:center; gap:6px;
  background:var(--gold); color:#20140a; border:none; border-radius:999px;
  padding:8px 14px; font-weight:700; font-size:.8rem; cursor:pointer;
  transition:transform .2s ease, background .2s ease;
  flex-shrink:0;
}
.ca-copy svg{ fill:#20140a; }
.ca-copy:hover{ transform:scale(1.05); background:var(--gold-bright); }
.ca-copy.copied{ background:#5ea364; color:#06210b; }
.ca-copy.copied svg{ fill:#06210b; }

.hero-ctas{ display:flex; flex-wrap:wrap; gap:16px; }

.hero-portrait-wrap{
  position:relative; display:flex; align-items:center; justify-content:center;
  perspective:1200px;
}
.hero-glow{
  position:absolute; width:80%; height:80%; border-radius:50%;
  background:radial-gradient(circle, rgba(240,196,121,.35), transparent 70%);
  filter:blur(10px); z-index:0;
}
.hero-portrait{
  position:relative; z-index:1; width:min(90%,520px);
  filter:drop-shadow(0 30px 60px rgba(0,0,0,.6));
  will-change:transform;
  transition:transform .15s ease-out;
}

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  z-index:3; display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text-dim); font-size:.7rem; letter-spacing:.2em; text-transform:uppercase;
}
.scroll-cue span{
  width:22px; height:36px; border:2px solid rgba(238,231,216,.4); border-radius:14px; position:relative;
}
.scroll-cue span::after{
  content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:4px; height:8px; border-radius:3px; background:var(--gold);
  animation:scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ top:6px; opacity:1; } 70%{ top:20px; opacity:0; } 100%{ top:20px; opacity:0; }
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee{
  background:linear-gradient(90deg,var(--navy),var(--navy-light));
  border-top:1px solid rgba(201,154,74,.25);
  border-bottom:1px solid rgba(201,154,74,.25);
  overflow:hidden; white-space:nowrap; padding:14px 0;
  position:relative; z-index:2;
}
.marquee-track{ display:inline-flex; animation:marqueeScroll 22s linear infinite; }
.marquee-track span{
  font-family:var(--ff-display); font-size:1.2rem; letter-spacing:.08em; color:var(--gold-bright);
  padding-right:0;
}
@keyframes marqueeScroll{
  0%{ transform:translateX(0); } 100%{ transform:translateX(-50%); }
}

/* =========================================================
   SECTION GENERIC
========================================================= */
.section-bg{
  position:absolute; inset:0; background-size:cover; background-position:center; z-index:0;
}
.section-header{ text-align:center; max-width:720px; margin:0 auto 50px; position:relative; z-index:2; padding:0 20px; }
.section-eyebrow{
  font-size:.78rem; letter-spacing:.28em; color:var(--gold-bright); font-weight:700; margin-bottom:10px;
}
.section-title{ font-size:clamp(2.2rem,5vw,3.4rem); color:var(--cream); }

[data-reveal]{
  opacity:0; transform:translateY(40px);
}
.revealed{
  opacity:1 !important; transform:none !important;
  transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}

/* =========================================================
   LORE
========================================================= */
.section-lore{ padding:120px 24px; }
.lore-inner{
  position:relative; z-index:2;
  max-width:1100px; margin:0 auto;
  display:grid; grid-template-columns:.8fr 1.2fr; gap:60px; align-items:center;
}
.lore-portrait{ position:relative; border-radius:var(--radius); overflow:hidden; }
.lore-portrait img{ width:100%; display:block; }
.lore-frame{
  position:absolute; inset:10px; border:1.5px solid rgba(201,154,74,.5); border-radius:calc(var(--radius) - 4px);
  pointer-events:none;
}
.lore-text{ font-size:1.05rem; }

/* =========================================================
   HOW TO BUY
========================================================= */
.section-buy{ padding:110px 24px; background:linear-gradient(180deg,var(--bg),var(--bg-alt)); }
.buy-steps{
  max-width:1200px; margin:0 auto; position:relative; z-index:2;
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
.buy-card{
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border:1px solid rgba(201,154,74,.18);
  border-radius:var(--radius); padding:30px 22px; text-align:center;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.buy-card:hover{ transform:translateY(-8px); border-color:var(--gold); box-shadow:0 18px 40px -14px rgba(0,0,0,.6); }
.buy-num{
  font-family:var(--ff-display); font-size:1.6rem; color:rgba(201,154,74,.4); margin-bottom:6px;
}
.buy-icon{
  width:58px; height:58px; margin:0 auto 16px; border-radius:50%;
  background:radial-gradient(circle,var(--navy-lighter),var(--navy));
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(201,154,74,.35);
}
.buy-icon svg{ width:26px; height:26px; fill:var(--gold-bright); }
.buy-card h3{ font-size:1.3rem; margin-bottom:10px; color:var(--cream); }
.buy-card p{ font-size:.92rem; }

/* =========================================================
   CHART
========================================================= */
.section-chart{ padding:110px 24px; }
.chart-frame-wrap{
  position:relative; z-index:2; max-width:1000px; margin:0 auto;
  border-radius:var(--radius); overflow:hidden;
  border:1px solid rgba(201,154,74,.25);
  box-shadow:0 30px 70px -30px rgba(0,0,0,.7);
}
.chart-frame-header{
  background:var(--navy); padding:12px 18px; display:flex; align-items:center; gap:8px;
  border-bottom:1px solid rgba(201,154,74,.2);
}
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot.red{ background:var(--red-bright); }
.dot.gold{ background:var(--gold); }
.dot.green{ background:#4caf6a; }
.chart-frame-title{ margin-left:10px; font-size:.8rem; color:var(--text-dim); font-family:monospace; }
.chart-embed{ width:100%; height:520px; background:#080a10; }
.chart-embed iframe{ background:#080a10; }
.chart-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:40px; color:var(--text-dim); font-size:.95rem; line-height:1.6;
}
.chart-placeholder code{
  background:rgba(201,154,74,.15); color:var(--gold-bright); padding:2px 8px; border-radius:6px; font-size:.85em;
}
.chart-fallback{ text-align:center; margin-top:26px; position:relative; z-index:2; }

/* =========================================================
   ROADMAP
========================================================= */
.section-roadmap{ padding:120px 24px 100px; }
.timeline{ position:relative; max-width:900px; margin:0 auto; z-index:2; }
.timeline-line{
  position:absolute; left:50%; top:0; bottom:0; width:2px;
  background:linear-gradient(180deg,transparent,var(--gold) 10%,var(--gold) 90%,transparent);
  transform:translateX(-50%);
}
.timeline-item{
  display:grid; grid-template-columns:1fr 60px 1fr; align-items:center; margin-bottom:50px; position:relative;
}
.timeline-item.left .timeline-card{ grid-column:1; text-align:right; }
.timeline-item.right .timeline-card{ grid-column:3; text-align:left; }
.timeline-node{
  grid-column:2; width:54px; height:54px; border-radius:50%;
  background:radial-gradient(circle,var(--navy-lighter),var(--navy));
  border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--ff-display); font-size:1.1rem; color:var(--gold-bright);
  box-shadow:0 0 24px rgba(201,154,74,.4);
  z-index:1;
}
.timeline-card{
  background:linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  border:1px solid rgba(201,154,74,.18);
  border-radius:var(--radius); padding:26px 28px;
  transition:transform .3s ease, border-color .3s ease;
}
.timeline-card:hover{ transform:translateY(-6px); border-color:var(--gold); }
.phase-tag{ font-family:var(--ff-display); color:var(--gold); letter-spacing:.1em; font-size:.95rem; margin-bottom:6px; }
.timeline-card h3{ font-size:1.4rem; margin-bottom:8px; color:var(--cream); }
.timeline-card p{ font-size:.92rem; margin:0; }

/* =========================================================
   GALLERY
========================================================= */
.section-gallery{ padding:110px 24px 130px; }
.gallery-grid{
  max-width:1100px; margin:0 auto; position:relative; z-index:2;
  display:grid; grid-template-columns:1.4fr 1fr; grid-template-rows:1fr 1fr; gap:18px;
}
.gallery-item{
  border-radius:var(--radius); overflow:hidden; border:1px solid rgba(201,154,74,.2);
  position:relative;
}
.gallery-item.big{ grid-row:1 / span 2; }
.gallery-item img{
  width:100%; height:100%; object-fit:cover; transition:transform .6s ease, filter .6s ease;
  filter:saturate(.9);
}
.gallery-item:hover img{ transform:scale(1.06); filter:saturate(1.1); }

/* =========================================================
   FOOTER
========================================================= */
#site-footer{
  position:relative; padding:120px 24px 50px; text-align:center; overflow:hidden;
}
.footer-bg{ position:absolute; inset:0; background-size:cover; background-position:center; z-index:0; }
.footer-inner{ position:relative; z-index:2; max-width:900px; margin:0 auto; }
.footer-icon{ width:70px; margin:0 auto 20px; filter:drop-shadow(0 10px 24px rgba(0,0,0,.6)); }
.footer-title{ font-size:clamp(2rem,5vw,3rem); margin-bottom:28px; color:var(--cream); }

.footer-nav-buttons{
  display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin:44px 0 34px;
}
.pill-btn{
  padding:10px 22px; border-radius:999px; border:1px solid rgba(201,154,74,.35);
  font-size:.85rem; font-weight:600; color:var(--cream);
  background:rgba(255,255,255,.03);
  transition:all .25s ease;
}
.pill-btn:hover{ background:var(--gold); color:#20140a; border-color:var(--gold); transform:translateY(-3px); }

.footer-socials{
  display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin-bottom:50px;
}
.social-big{
  display:flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:999px;
  border:1px solid rgba(201,154,74,.3);
  background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  font-weight:700; font-size:.9rem;
  transition:all .3s ease;
}
.social-big svg{ width:20px; height:20px; fill:var(--gold-bright); transition:fill .3s ease; }
.social-big:hover{ background:var(--gold); color:#20140a; transform:translateY(-4px); box-shadow:var(--shadow-gold); }
.social-big:hover svg{ fill:#20140a; }

.footer-fine{
  display:flex; flex-direction:column; gap:8px;
  font-size:.75rem; color:rgba(167,172,192,.65);
  border-top:1px solid rgba(255,255,255,.08); padding-top:26px;
}
.footer-copy{ letter-spacing:.08em; }

#copy-toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(20px);
  background:var(--gold); color:#20140a; padding:12px 22px; border-radius:999px;
  font-weight:700; font-size:.85rem; z-index:10000;
  opacity:0; pointer-events:none; transition:opacity .3s ease, transform .3s ease;
  box-shadow:0 14px 30px -8px rgba(0,0,0,.5);
}
#copy-toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .main-nav{ display:none; }
  #hamburger{ display:flex; }
  .header-actions{ gap:8px; }
  .header-actions .icon-btn{ display:none; }
  .nav-buy{ padding:11px 18px; font-size:.85rem; }
}
@media (max-width: 400px){
  .brand-word{ font-size:1.05rem; }
  .nav-buy{ padding:10px 14px; font-size:.8rem; }
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero-text{ order:2; }
  .hero-portrait-wrap{ order:1; margin-bottom:10px; }
  .hero-tag{ margin-left:auto; margin-right:auto; }
  .ca-box{ margin-left:auto; margin-right:auto; }
  .hero-ctas{ justify-content:center; }
  .lore-inner{ grid-template-columns:1fr; }
  .buy-steps{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:1fr; grid-template-rows:auto; }
  .gallery-item.big{ grid-row:auto; }
  .timeline-line{ left:26px; }
  .timeline-item{ grid-template-columns:60px 1fr; }
  .timeline-node{ grid-column:1; width:44px; height:44px; font-size:.9rem; }
  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card{ grid-column:2; text-align:left; }
}
@media (max-width: 560px){
  .buy-steps{ grid-template-columns:1fr; }
  .ca-value{ max-width:110px; }
  .btn-xl{ padding:16px 32px; font-size:1rem; }
  .chart-embed{ height:380px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}
