/* ---------- Theme ---------- */
:root{
  --bg:#0b0b0b;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.12);
  --glass-stroke: rgba(255,255,255,0.18);
  --txt:#f6f6f6;
  --muted:#c7c7c7;
  --orange:#ff7a18;
  --orange-strong:#ff8c32;
  --good:#39d98a;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0; font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--txt); background:var(--bg); overflow-x:hidden;
}
.container{ width:min(1200px,92vw); margin-inline:auto }

/* ---------- Background ---------- */
.bg-mesh{
  position:fixed; inset:-10vmax; z-index:-3;
  background:
    radial-gradient(40vmax 40vmax at 15% 15%, rgba(255,122,24,.15), transparent 60%),
    radial-gradient(50vmax 50vmax at 85% 25%, rgba(255,122,24,.08), transparent 60%),
    radial-gradient(55vmax 55vmax at 50% 90%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #0a0a0a 100%);
  filter:saturate(1.1);
  animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift{ 0%{ transform:translateY(0)} 100%{ transform:translateY(-2vh)} }
.grid-overlay{
  position:fixed; inset:0; z-index:-2;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/40px 40px;
  mask-image: radial-gradient(80% 60% at 50% 40%, rgba(0,0,0,.9), transparent 80%);
  pointer-events:none;
}
.orbs{ position:fixed; inset:0; z-index:-1; pointer-events:none }
.orb{ position:absolute; width:28vmax; height:28vmax; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,122,24,.20), rgba(255,122,24,0) 70%);
  filter: blur(30px); animation: float 14s ease-in-out infinite }
.o1{ top:10%; left:-8%; animation-delay:-2s }
.o2{ bottom:-10%; right:-6%; animation-duration:18s }
.o3{ top:55%; left:60%; width:22vmax; height:22vmax; animation-duration:16s }
@keyframes float{ 0%{ transform: translate(0,0) } 50%{ transform: translate(2vmax,-1vmax) } 100%{ transform: translate(-1vmax,1vmax) } }

/* ---------- Header ---------- */
.header{
  display:flex; align-items:center; justify-content:space-between; padding:24px 0;
}
.brand{ display:flex; gap:.6rem; align-items:center; color:var(--txt); text-decoration:none }
.logo{ height:80px; width:auto }
.nav{ display:flex; gap:1rem; align-items:center }
.nav a{ color:var(--txt); text-decoration:none; opacity:.9; padding:.6rem .9rem; border-radius:10px; transition:.25s }
.nav a:hover{ background: rgba(255,122,24,.12); opacity:1; }

.ember-logo {
  width: 90px;       /* adjust size as needed */
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,122,24,.6));
  animation: emberPulse 3s ease-in-out infinite;
}

@keyframes emberPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255,122,24,.5)); }
  50%     { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(255,122,24,.9)); }
}

/* ---------- Glass + Buttons ---------- */
.glass{
  background: var(--panel);
  border: 1px solid var(--glass-stroke);
  border-radius: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  text-decoration:none; color:#fff;
  font-weight:700; font-size:1rem; line-height:1;
  padding:.9rem 1.2rem; border-radius:14px; border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  box-shadow: 0 8px 24px rgba(255,122,24,.28);
  transition: transform .2s ease, box-shadow .3s ease;
}
.btn svg{ width:20px; height:20px; stroke:#fff }
.btn:hover{ transform: translateY(-3px); box-shadow: 0 12px 32px rgba(255,122,24,.45) }
.btn.outline{
  background: transparent; border-color: rgba(255,255,255,.22);
  color: var(--txt); box-shadow: none;
}
.pill{ padding:.35rem .7rem; border-radius:999px; border:1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08) }
.pill.small{ font-size:.9rem; padding:.25rem .6rem }
.pill .save{ margin-left:.35rem; color:#fff; background: linear-gradient(135deg, rgba(255,122,24,.25), rgba(255,122,24,.45)); padding:.1rem .4rem; border-radius:999px; }

/* ---------- Hero ---------- */
.hero{
  display:grid; grid-template-columns: 1.2fr .8fr; align-items:center; gap:1rem;
  padding:1rem; margin-top:.2rem;
}
.accent{ color:var(--orange-strong); text-shadow: 0 0 16px rgba(255,122,24,.35) }
.muted{ color:var(--muted) }
.toggle{
  display:inline-flex;
  gap:.6rem;
  align-items:center;
  margin-top:.5rem;
}

.toggle .pill{
  appearance:none;          /* remove native button look */
  border:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.45rem .9rem;
  border-radius:999px;
  font-weight:700;
  font-size:.95rem;
  color:var(--txt);         /* ensure readable on dark */
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
}

.toggle .pill:hover{
  transform: translateY(-1px);
  border-color: rgba(255,122,24,.45);
  box-shadow: 0 10px 26px rgba(255,122,24,.22);
}

/* active/selected state */
.toggle .pill.active{
  color:#fff;
  background: linear-gradient(135deg, rgba(255,122,24,.35), rgba(255,122,24,.12));
  border-color: rgba(255,122,24,.55);
  text-shadow: 0 0 12px rgba(255,122,24,.35);
}

/* little “Save 20%” badge inside the pill */
.toggle .pill .save{
  display:inline-block;
  padding:.15rem .5rem;
  border-radius:999px;
  font-weight:800;
  font-size:.85rem;
  color:#fff;
  background: linear-gradient(135deg, rgba(255,122,24,.35), rgba(255,122,24,.18));
  border:1px solid rgba(255,122,24,.5);
  box-shadow: inset 0 0 10px rgba(255,255,255,.12), 0 0 16px rgba(255,122,24,.22);
}

/* keyboard focus */
.toggle .pill:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(255,122,24,.45);
  border-color: rgba(255,122,24,.65);
}
.ember-burst{ position:relative; width:220px; height:220px; margin-inline:auto }
.ember-burst .ring,.ember-burst .r2{
  position:absolute; inset:0; border-radius:50%; border: 10px solid transparent;
  background:
    conic-gradient(from 0deg, rgba(255,122,24,.0) 0 55%, rgba(255,122,24,.7) 55% 72%, rgba(255,122,24,.0) 72% 100%)
    border-box;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
          mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 0);
  filter: blur(.3px) saturate(1.1); animation: sweep 6s ease-in-out infinite;
}
.ember-burst .r2{ transform: scale(.86) rotate(20deg); animation-duration: 7.5s; opacity:.8 }
.ember-burst .spark{
  position:absolute; inset:0; border-radius:50%;
  background: radial-gradient(closest-side, rgba(255,122,24,.25), transparent 70%);
  filter: blur(10px); animation: pulse 3.5s ease-in-out infinite;
}
.ember-burst .center{
  position:absolute; inset:0; display:grid; place-items:center; text-align:center;
  margin: 55px; border-radius:20px; border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px); font-weight:800;
}
@keyframes sweep{ 0%,100%{ rotate:0deg } 50%{ rotate:180deg } }
@keyframes pulse{ 0%,100%{ transform:scale(1) } 50%{ transform:scale(1.05) } }

/* ---------- Plans ---------- */
.plans{ display:grid; grid-template-columns: 1fr 1fr; gap:1rem; margin-top:1rem }
.plan{ padding:1rem; display:grid; align-content:start; gap:.6rem; position:relative }
.plan .badge {
  padding:.25rem .6rem;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-weight:800;
  display:inline-block;

  margin-bottom:.6rem;   /* 👈 add spacing below the badge */
}
.plan.pro .badge{ background: linear-gradient(135deg, rgba(255,122,24,.28), rgba(255,122,24,.10)); border-color: rgba(255,122,24,.45); box-shadow: 0 0 20px rgba(255,122,24,.25) }
.plan-head h2{ margin:.15rem 0 0 }
.price{ display:flex; align-items:flex-end; gap:.35rem; margin:.2rem 0 }
.price .amount{ font-size:2rem; font-weight:800 }
.price .per{ color:var(--muted) }

.features{ list-style:none; padding:0; margin:0; display:grid; gap:.45rem }
.row{ display:flex; align-items:center; gap:.6rem; padding:.55rem .7rem; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); border-radius:12px }
.dot{ width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,.35) }
.dot.ok{ background: rgba(255,255,255,.6) }
.dot.plus{ background: linear-gradient(135deg, var(--orange), var(--orange-strong)) }
.cta{ display:grid; gap:.3rem; margin-top:.4rem }

.btn.upgrade{
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  font-weight:800; font-size:1rem; letter-spacing:.3px;
  padding:1rem 1.6rem; border-radius:14px;
  background: linear-gradient(135deg,#ff7a18,#ff8c32);
  border:1px solid rgba(255,122,24,.6); color:#fff;
  box-shadow: 0 8px 24px rgba(255,122,24,.28), 0 0 20px rgba(255,122,24,.35);
  position:relative;

  /* KEY: keep every pixel clipped to the rounded shape */
  overflow:hidden;
  clip-path: inset(0 round 14px);
  -webkit-mask-image: radial-gradient(#000 70%, #000 70%); /* ensures WebKit clipping */
  mask-image: radial-gradient(#000 70%, #000 70%);
  will-change: transform;
}

.btn.upgrade svg{ width:20px; height:20px; stroke:#fff; flex-shrink:0 }

/* sheen layer (no bleed outside due to clip-path) */
.btn.upgrade::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 60%);
  transform: translateX(-140%) skewX(-18deg);   /* start well off left */
  transition: transform .6s ease;
  pointer-events:none;
}

.btn.upgrade:hover{ transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255,122,24,.45), 0 0 40px rgba(255,122,24,.55);
}

/* move sheen fully across and off right */
.btn.upgrade:hover::after{
  transform: translateX(140%) skewX(-18deg);
}

.btn.upgrade:active{ transform: translateY(0); box-shadow: 0 3px 12px rgba(255,122,24,.4) }

/* ---------- Comparison strip ---------- */
.compare{ padding:1rem; margin:1rem auto; overflow:hidden }
.compare h3{ margin-top:0 }
.compare .grid{ display:grid; grid-template-columns: 1fr 1fr; gap:1rem }
.compare .col{ padding:.8rem; border-radius:16px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14) }
.compare .col h4{ margin:.1rem 0 .4rem }
.compare .col.pro{ border-color: rgba(255,122,24,.45) }

/* ---------- Footer ---------- */
.footer{
  display:flex; align-items:center; justify-content:space-between; padding:24px 0 40px; color:var(--muted)
}
.foot-nav{ display:flex; gap:1rem }
.foot-nav a{ color:var(--muted); text-decoration:none }
.foot-nav a:hover{ color:var(--txt) }

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:22px; transform:translateX(-50%) translateY(20px);
  opacity:0; padding:.7rem 1rem; border-radius:14px; border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color:var(--txt); transition:.35s ease; z-index:20
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0) }

/* ---------- Motion ---------- */
.fade-in{ opacity:0; transform: translateY(16px); animation: fadeUp .9s ease-out forwards }
@keyframes fadeUp{ to{ opacity:1; transform: translateY(0) } }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .plans{ grid-template-columns: 1fr; }
  .compare .grid{ grid-template-columns: 1fr; }
  .ember-burst{ margin: 12px auto 0 }
}