/* ChatIP GRAIL V2 — Ownership Era UI */
:root{
  --bg:#020b10;
  --fg:#c8ffd4;
  --mint:#7fffd4;
  --aqua:#3ee7b0;
  --blue:#4ad6ff;
  --purple:#2b0f2f;
  --orange:#ffb24d;
  --gold:#ffdf7f;
  --green:#00c688;
  --booth-bg:url('assets/booth-bg-placeholder.jpg');
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

.bg-overlay{
  position:fixed; inset:0;
  background:
    linear-gradient(180deg, rgba(4,12,16,.7), rgba(4,12,16,.9)),
    var(--booth-bg) center/cover no-repeat fixed;
  z-index:-1;
  filter:saturate(1.1) contrast(1.05);
}

.site-header{
  position:sticky; top:0;
  backdrop-filter: blur(8px);
  background:rgba(5,18,24,.5);
  border-bottom:1px solid rgba(127,255,212,.15);
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 20px; z-index:10;
}
.brand img{height:36px}
.nav a{color:#bfffe9; text-decoration:none; margin:0 10px; font-weight:600}
.nav .btn{margin-left:8px}

.hero{padding:110px 24px 60px; text-align:center; max-width:1100px; margin:auto}
h1{font-size:44px; margin:0 0 10px}
h1 span{display:block; font-size:20px; color:#b8fce6}
.sub{opacity:.9; margin:8px auto 24px; max-width:800px}
.hint{opacity:.6}

section{max-width:1100px; margin:0 auto; padding:48px 24px}
h2{color:var(--mint); font-size:28px; margin:0 0 16px}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.grid3 article{background:rgba(8,24,28,.6); border:1px solid rgba(127,255,212,.15); padding:16px; border-radius:12px}

.pills{display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin:16px 0 0}
.pills li{background:rgba(43,15,47,.7); border:1px solid rgba(255,178,77,.25); color:#ffdca8; padding:8px 12px; border-radius:999px; font-weight:700; letter-spacing:.2px}

.path{background:rgba(0,198,136,.06); border-top:1px solid rgba(0,198,136,.2); border-bottom:1px solid rgba(0,198,136,.2)}
.path .beam{color:#9bffd8; text-shadow:0 0 14px #00c688}
.path ol{max-width:700px; margin:auto;}

.pricing .tiers{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.card{background:rgba(8,24,28,.6); border:1px solid rgba(127,255,212,.15); padding:18px; border-radius:14px; text-align:center}
.card.hot{border-color:rgba(255,178,77,.5); box-shadow:0 0 24px rgba(255,178,77,.18) inset}
.card h3{margin:6px 0 4px}
.card p{font-size:26px; margin:8px 0 6px; color:#ffdf7f}

.btn{border:1px solid rgba(127,255,212,.4); background:transparent; color:#d7ffee; padding:12px 18px; border-radius:12px; text-decoration:none; display:inline-block; cursor:pointer; font-weight:800}
.btn.primary{background:linear-gradient(90deg,#ffb24d,#ffd86b); color:#170b00; border:none}
.btn.alt{background:linear-gradient(90deg,#4ad6ff,#7fffd4); color:#00272a; border:none}
.btn.ghost{border-color:rgba(127,255,212,.5)}

.btn.small{padding:10px 14px; font-size:14px}

.cta-row{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

.download .code{background:rgba(5,18,24,.8); padding:14px; border-radius:10px; border:1px solid rgba(127,255,212,.15); overflow:auto; white-space:pre-wrap}

.footer{padding:40px 20px; text-align:center; opacity:.7}

@media (max-width:1000px){
  .grid3{grid-template-columns:1fr}
  .pricing .tiers{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .pricing .tiers{grid-template-columns:1fr}
  h1{font-size:34px}
}


/* === PARALLAX + BREATHING BOOTH EFFECT === */
.bg-overlay{
  position:fixed; inset:0;
  background:
    radial-gradient(circle at 60% 20%, rgba(0,198,136,.16), transparent 55%),
    linear-gradient(180deg, rgba(4,12,16,.82), rgba(4,12,16,.97)),
    var(--booth-bg) center 0 / cover no-repeat fixed;
  z-index:-1;
  filter:saturate(1.12) contrast(1.03);
  animation: boothBreath 10s ease-in-out infinite alternate;
  will-change: background-position, filter;
}
body.scrolling .bg-overlay{
  animation-play-state: running;
}
@keyframes boothBreath{
  0%{
    background-position: center 0, center 0, center 0;
    filter:saturate(1.05) contrast(1.0) brightness(1.0);
  }
  50%{
    background-position: center -10px, center 0, center -12px;
    filter:saturate(1.15) contrast(1.06) brightness(1.06);
  }
  100%{
    background-position: center -20px, center 0, center -22px;
    filter:saturate(1.22) contrast(1.08) brightness(1.12);
  }
}

/* subtle moving grid glow at the ground plane */
.hero::after{
  content:"";
  position:absolute; left:50%; bottom:-40px;
  width:140%; max-width:1200px; height:220px;
  transform:translateX(-50%);
  background:
    radial-gradient(circle at 30% 0, rgba(127,255,212,.16), transparent 65%),
    radial-gradient(circle at 70% 0, rgba(74,214,255,.12), transparent 70%);
  opacity:.8;
  mix-blend-mode:screen;
  pointer-events:none;
  animation:gridFlow 14s linear infinite;
}
@keyframes gridFlow{
  0%{transform:translate(-50%,0) skewX(-4deg); opacity:.75;}
  50%{transform:translate(-48%,4px) skewX(-1deg); opacity:.95;}
  100%{transform:translate(-52%,0) skewX(-4deg); opacity:.75;}
}

.hero{position:relative; z-index:1;}


.newsletter{
  background:rgba(5,10,20,.9);
  border-radius:16px;
  border:1px solid rgba(127,255,212,.25);
  box-shadow:0 0 26px rgba(0,198,136,.2);
}
.newsletter p{max-width:720px;}
.nl-form{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}
.nl-form input[type=email]{
  flex:1 1 220px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(127,255,212,.4);
  background:rgba(3,12,18,.9);
  color:#eafff5;
}
.newsletter small{opacity:.7;font-size:11px;}
@media(max-width:640px){
  .nl-form{flex-direction:column;}
}
