/* ------------------------------
   Authentication Loading Screen
------------------------------ */
.auth-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.auth-loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  position: relative;
}

.preloader-text {
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: clamp(1.6rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.12em;
  display: flex;
  gap: 0.4em;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}

.preloader-text span {
  display: inline-block;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--orange);
  text-stroke: 2.5px var(--orange);
  font-weight: 700;
  --fill-duration: 2000ms; /* Default, can be overridden dynamically */
}

/* Animated fill layer that reveals left to right */
.preloader-text span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--orange), var(--orange-strong));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(0 100% 0 0);
  animation: fillText var(--fill-duration) ease-in-out forwards;
  animation-delay: 0.3s;
}

@keyframes fillText {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.preloader-text .clash,
.preloader-text .collaborate {
  font-weight: 800;
  letter-spacing: 0.15em;
  -webkit-text-stroke: 3px var(--orange);
  text-stroke: 3px var(--orange);
}

.preloader-text .and {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.7;
  margin: 0 0.2em;
  letter-spacing: 0.1em;
  -webkit-text-stroke: 1.5px var(--orange);
  text-stroke: 1.5px var(--orange);
}

.loading-content {
  text-align: center;
  color: var(--txt);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #3f3f46;
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.loading-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------
   Base & Theme
------------------------------ */
:root{
  /* Palette lifted from the in-game quiz screen (game.css) so the landing page
     and the product read as one surface. Flat and opaque throughout: the depth
     comes from negative space and value steps, not from blur or translucency. */
  --bg:#18181b;            /* game screen ground */
  --panel:#27272a;         /* == .answer-inner card */
  --panel-strong:#2d2d30;  /* == .answer:hover card */
  --glass-stroke:#3f3f46;  /* == .answer-inner border */
  --stroke-soft:#27272a;   /* quiet divider */
  --stroke-strong:#52525b; /* hover border */
  --txt:#fafafa;
  --muted:#a1a1aa;         /* game muted */
  --dim:#71717a;           /* game label grey */
  --orange:#f97316;        /* game orange, not the old #f97316 */
  --orange-strong:#fb923c;
  --good:#10b981;
  --bad:#ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html{
  height:100%;
  scroll-behavior: smooth;
}
body{
  height:100%;
  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: one flat colour
   The orange mesh gradient, the 40px grid overlay and the three blurred orbs
   used to live here. They are gone: the page sits on the same solid #18181b
   the quiz screen uses, and the layout is separated by space, not by lighting.
------------------------------ */
.bg-mesh,
.grid-overlay,
.orbs{ display:none !important; }

/* ------------------------------
   Header
------------------------------ */
.header{ display:flex; align-items:center; justify-content:space-between; padding:24px 0; position: relative; }
.header-right{ display:flex; align-items:center; gap:12px; }
.brand{ display:flex; gap:.6rem; align-items:center; text-decoration:none; color:var(--txt); font-weight:800; letter-spacing:.2px; }

.logo{ height:100px; width:auto; display:block; }

.nav{ 
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display:flex; 
  gap:1rem; 
  align-items:center; 
}
.nav a{ color:var(--txt); text-decoration:none; opacity:.9; padding:.6rem .9rem; border-radius:10px; transition:all .25s ease; }

/* Login button */
.login-btn{ flex:0 0 auto; display:flex; align-items:center; gap:0; text-decoration:none; color:var(--txt); font-weight:600; font-size:.95rem; padding:.3rem .6rem; border-radius:50px; background:transparent; border:none; cursor:pointer; position:relative; }
.icon-wrap{
  position:relative; width:38px; height:38px; border-radius:50%;
  background: #2d2d30; border: 2px solid #3f3f46;
  display:grid; place-items:center; z-index:2;
}
.profile-icon{ font-size:1.2rem; line-height:1; }

/* red cutout badge */
.alert{ position:absolute; top:-2px; right:-2px; width:14px; height:14px; background:var(--bg); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.alert::after{ content:""; width:8px; height:8px; background:#ff3b30; border-radius:50%; }

/* login bubble */
.login-bubble{
  position:relative; transform-origin:left center; margin-left:-10px; max-width:0; opacity:0; overflow:hidden; white-space:nowrap;
  padding:.5rem 1rem .5rem 1.1rem; border-radius:0 999px 999px 0; border:1px solid rgba(249,115,22,0.45); border-left:none;
  color:var(--txt);
  background:
    linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08)),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: 0 10px 28px rgba(249,115,22,0.25), inset 0 0 24px rgba(249,115,22,0.12);
  transition: max-width .35s ease, opacity .35s ease, transform .35s ease;
  transform: translateX(-6px) scale(.98);
}
.login-bubble::before{
  content:""; position:absolute; left:-18px; top:50%; transform:translateY(-50%);
  width:26px; height:26px; border-radius:50%;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(249,115,22,0.08)), linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border:1px solid rgba(249,115,22,0.45);  
  box-shadow: 0 8px 20px rgba(249,115,22,0.22), inset 0 0 18px rgba(249,115,22,0.10);
  z-index:1;
}
.login-btn:hover .login-bubble{ max-width:140px; opacity:1; transform: translateX(0) scale(1); }

/* ------------------------------
   Buttons
------------------------------ */
.btn{
  display:inline-block; text-decoration:none; color:var(--txt);
  padding:.9rem 1.2rem; border-radius:14px;
  border:1px solid var(--glass-stroke);
  background: #27272a;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 16px 40px rgba(249,115,22,0.25), var(--shadow); }
.btn.primary{
  background:
    linear-gradient(135deg, rgba(249,115,22,0.35), rgba(249,115,22,0.10)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-color: rgba(249,115,22,0.45);
}
.btn.outline{ background:transparent; border-color: rgba(255,255,255,0.2); }
.btn.ghost{ background:transparent; border-color:transparent; }
.btn.tiny{ padding:.5rem .8rem; border-radius:10px; font-size:.9rem; }

/* ------------------------------
   Hero pill buttons
------------------------------ */
.pill-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.1px;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  border: 2px solid transparent;
}
.pill-btn .pill-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.pill-btn .pill-icon svg{
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}
.pill-primary{
  color: #fff;
  background: linear-gradient(180deg, #ff9a3b, #f97316 62%, #f06a10);
  box-shadow:
    0 10px 0 #c85a0c,
    0 18px 30px rgba(0,0,0,0.35);
}
.pill-primary:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 12px 0 #b8530b,
    0 22px 36px rgba(0,0,0,0.4);
}
.pill-primary:active{
  transform: translateY(6px);
  box-shadow:
    0 4px 0 #b34e08,
    0 12px 24px rgba(0,0,0,0.35);
}
/* Was a light grey button, which read as a foreign object on the flat dark
   ground. Rebuilt in the quiz screen's card colours: #27272a fill, #3f3f46
   border, and the same hard un-blurred offset the .answer cards stack with. */
.pill-outline{
  color: #e4e4e7;
  background: #27272a;
  border-color: #3f3f46;
  box-shadow:
    0 8px 0 #1a1a1c,
    0 16px 26px rgba(0,0,0,0.35);
}
.pill-outline:hover{
  transform: translateY(-2px);
  border-color: #52525b;
  background: #2d2d30;
  box-shadow:
    0 10px 0 #1a1a1c,
    0 20px 30px rgba(0,0,0,0.4);
}
.pill-outline:active{
  transform: translateY(6px);
  box-shadow:
    0 4px 0 #18181b,
    0 12px 22px rgba(0,0,0,0.35);
}

/* ------------------------------
   Hero
------------------------------ */
.hero{ display:grid; grid-template-columns: 1.05fr .95fr; gap:2rem; align-items:center; padding: 28px 0 18px; }
.hero h1{ font-size: clamp(2rem, 5vw, 4rem); line-height:1.05; margin:0 0 .6rem; }
.accent{ color: var(--orange-strong); }
.chip{ display:inline-flex; align-items:center; gap:.45rem; padding:.4rem .75rem; border-radius:999px; border:1px solid var(--glass-stroke); background: #27272a; font-weight:800; }
.hero p{ color:var(--muted); font-size: clamp(1rem, 1.7vw, 1.15rem); }
.hero .cta{ display:flex; gap:1rem; margin:1.1rem 0 0.8rem; }
.hero-badges{ display:flex; gap:.6rem; flex-wrap:wrap; }
.badge{ font-size:.85rem; padding:.45rem .7rem; border-radius:999px; background: rgba(249,115,22,0.13); border:1px solid rgba(249,115,22,0.35); }

/* Was the glassmorphism primitive (translucent fill + blur). Now a plain card
   built the way the quiz screen builds .answer-inner: opaque fill, 2px zinc
   border, no blur, no bloom. */
.glass{ background: var(--panel); border: 2px solid var(--glass-stroke); border-radius: 16px; }
.glass-lite{ background: #27272a; border: 1px dashed #3f3f46; border-radius: 14px; padding: .8rem 1rem; }

.hero-cards{ display:grid; gap:1rem; }

/* ------------------------------
   Game Preview Card (Hero Mockup)
------------------------------ */
.game-preview {
  display: flex;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  min-height: 480px;
}

/* Sidebar */
.gp-sidebar {
  width: 80px;
  background: rgba(0,0,0,0.4);
  border-right: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
}

.gp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem;
  border-radius: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 64px;
}

.gp-nav-item svg {
  width: 20px;
  height: 20px;
  color: #52525b;
  stroke-width: 2;
}

.gp-nav-item span {
  font-size: 0.5rem;
  font-weight: 600;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gp-nav-item:hover svg,
.gp-nav-item:hover span {
  color: var(--muted);
}

.gp-nav-item.gp-ember {
  margin-top: auto;
  background: #27272a;
  border: 1px solid #27272a;
}

.gp-nav-item.gp-ember svg {
  color: var(--orange);
}

.gp-nav-item.gp-ember span {
  color: #71717a;
}

/* Main Content */
.gp-main {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header */
.gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gp-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  border: 1px solid #27272a;
}

.gp-course {
  display: flex;
  flex-direction: column;
}

.gp-mode {
  font-size: 0.55rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gp-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e4e4e7;
}

.gp-stats {
  display: flex;
  gap: 0.75rem;
}

.gp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.6rem;
  background: #1c1c1f;
  border: 1px solid #27272a;
  border-radius: 0.5rem;
}

.gp-stat span {
  font-size: 0.5rem;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.gp-stat strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--txt);
}

.gp-stat-accent strong {
  color: var(--orange);
}

/* Progress Dots */
.gp-progress {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.gp-step {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #27272a;
}

.gp-step svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
  color: var(--bg);
}

.gp-step.completed {
  background: #10b981;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.25);
}

.gp-step.failed {
  background: #ef4444;
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
}

.gp-step.current {
  position: relative;
  background: transparent;
}

.gp-spinner {
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  border-radius: 50%;
  border-top-color: transparent;
  animation: gp-spin 1s linear infinite;
}

.gp-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.gp-step.pending {
  background: transparent;
}

.gp-bar {
  width: 8px;
  height: 3px;
  background: #3f3f46;
  border-radius: 999px;
}

.gp-line {
  flex: 1;
  height: 2px;
  background: #27272a;
  margin: 0 0.25rem;
}

.gp-line.completed {
  background: linear-gradient(90deg, #10b981, #10b981);
}

@keyframes gp-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Question */
.gp-question {
  text-align: center;
  padding: 0.5rem 0;
}

.gp-q-num {
  font-size: 0.7rem;
  font-weight: 500;
  color: #71717a;
  letter-spacing: 0.02em;
}

.gp-question h3 {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #f4f4f5;
  margin: 0.4rem 0 0.25rem;
  line-height: 1.3;
}

.gp-subtext {
  font-size: 0.7rem;
  color: var(--muted);
}

/* Answer Grid */
.gp-answers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.gp-answer {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid #27272a;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.gp-answer:hover {
  border-color: rgba(255,255,255,0.2);
}

.gp-letter {
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1c1c1f;
  border-right: 1px solid #27272a;
  font-size: 0.75rem;
  font-weight: 700;
  color: #71717a;
}

.gp-text {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  display: flex;
  align-items: center;
}

.gp-answer.gp-selected {
  border-color: rgba(255,255,255,0.3);
  background: #27272a;
}

.gp-answer.gp-selected .gp-letter,
.gp-answer.gp-selected .gp-text {
  color: #f4f4f5;
}

/* Timer Bars */
.gp-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.gp-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gp-bar-chip {
  min-width: 36px;
  height: 24px;
  padding: 0 0.5rem;
  background: var(--bg);
  border-radius: 999px;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.6),
              inset -2px -2px 6px rgba(255,255,255,0.02);
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #f4f4f5;
}

.gp-bar-chip svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
  fill: var(--orange);
}

.gp-bar-track {
  flex: 1;
  height: 16px;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
  box-shadow: inset 2px 2px 6px rgba(0,0,0,0.6),
              inset -2px -2px 6px rgba(255,255,255,0.02);
  border: 1px solid #27272a;
}

.gp-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.15s linear;
}

.gp-timer-fill {
  width: 35%;
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  box-shadow: 0 1px 4px rgba(255,255,255,0.2);
  animation: gp-timer-shrink 5s linear infinite;
}

.gp-streak-fill {
  width: 65%;
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.3);
}

@keyframes gp-timer-shrink {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* Responsive */
@media (max-width: 768px) {
  .gp-sidebar {
    width: 60px;
  }
  .gp-nav-item {
    width: 48px;
    padding: 0.4rem;
  }
  .gp-nav-item span {
    display: none;
  }
  .gp-stats {
    gap: 0.4rem;
  }
  .gp-stat {
    padding: 0.25rem 0.4rem;
  }
  .gp-stat strong {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .gp-sidebar {
    display: none;
  }
  .game-preview {
    min-height: 400px;
  }
  .gp-header {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }
  .gp-answers {
    grid-template-columns: 1fr;
  }
}

/* Legacy card styles (kept for compatibility) */
.card{ padding:1rem; }
.card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.6rem; opacity:.95; }
.dot{ display:inline-block; width:.7rem; height:.7rem; border-radius:50%; background: #3f3f46; }
.dot.live{ background: var(--orange); animation: ping 1.4s ease-out infinite; }
.dot.searching{ background: #3f3f46; animation: pulse 1.6s ease-in-out infinite; }
@keyframes ping{ 0%{ box-shadow: 0 0 0 0 rgba(249,115,22,0.6); } 100%{ box-shadow: 0 0 0 16px rgba(249,115,22,0); } }
@keyframes pulse{ 0%,100%{ transform: scale(1); opacity:.75; } 50%{ transform: scale(1.15); opacity:1; } }

.timer{ padding:.35rem .6rem; border-radius:8px; font-weight:600; letter-spacing:.5px; background: rgba(249,115,22,0.15); border:1px solid rgba(249,115,22,0.38); }
.rivals{ display:grid; grid-template-columns: 1fr auto 1fr; align-items:center; gap:.8rem; margin:.4rem 0 .8rem; }
.rival{ display:flex; gap:.6rem; align-items:center; background: #27272a; padding:.5rem .6rem; border-radius:12px; border:1px solid #3f3f46; }
.rival img{ width:30px; height:30px; border-radius:8px; }
.vs{ font-weight:800; letter-spacing:.8px; padding:.2rem .55rem; border-radius:10px; border:1px solid #3f3f46; background: #27272a; }
.progress-wrap{ display:grid; gap:.5rem; margin:.8rem 0; }
.progress{ height:10px; border-radius:999px; position:relative; overflow:hidden; background: #27272a; border:1px solid #3f3f46; }
.progress::after{ content:""; position:absolute; inset:0; width:var(--val,50%); border-radius:inherit; background: linear-gradient(90deg, rgba(249,115,22,0.0), rgba(249,115,22,0.6)); animation: sweep 2.6s ease-in-out infinite; }
.progress.you::after{ background: linear-gradient(90deg, rgba(249,115,22,0.25), rgba(249,115,22,0.85)); }
.progress.rival::after{ background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.35)); }
@keyframes sweep{ 0%{ width: 0%; } 50%{ width: var(--val,50%); } 100%{ width: calc(var(--val,50%) + 8%); } }
.score{ display:grid; grid-template-columns: repeat(3, 1fr); gap:.6rem; margin-top:.4rem; }
.score div{ background: #27272a; border:1px solid #3f3f46; padding:.6rem .7rem; border-radius:12px; text-align:center; }
.score span{ color:var(--muted); font-size:.8rem; }
.score strong{ display:block; font-size:1.1rem; margin-top:.1rem; }

/* ------------------------------
   Features grid
------------------------------ */
.features{ display:grid; grid-template-columns: repeat(4, 1fr); gap:1rem; padding: 28px 0; }
.feat{ padding:1.1rem; min-height:170px; }
.feat .icon{ font-size:1.5rem; }
.feat h3{ margin:.4rem 0; }
.feat p{ color:var(--muted); }

/* ------------------------------
   Ember AI section
------------------------------ */
.ai{ padding:1.2rem; display:grid; grid-template-columns: 1.1fr .9fr; gap:1.2rem; align-items:center; margin: 12px 0 28px; }
.ai-left h2{ margin:.2rem 0 .4rem; }
.ai-list{ list-style: none; padding:0; margin:.6rem 0 1rem; }
.ai-list li{ margin:.25rem 0; }
.ai-cta{ display:flex; gap:.6rem; flex-wrap:wrap; }
.ai-right{ display:grid; place-items:center; }
.ai-mock{ width:100%; min-height:220px; border-radius:14px; position:relative; overflow:hidden; display:grid; place-items:center; }
.ai-bubble{ padding:.55rem .75rem; border-radius:999px; border:1px solid #3f3f46; background: #27272a; margin:.35rem 0; animation: fadeUp .9s ease-out both; }
.ai-bubble.alt{ animation-delay:.15s; }
.ai-bubble.glow{ animation-delay:.3s; box-shadow: 0 0 24px rgba(249,115,22,.25) inset, 0 10px 28px rgba(249,115,22,.18); }

/* ------------------------------
   Anti-Cheat section
------------------------------ */
.anti{ padding:1rem; margin: 8px 0 28px; }
.anti-head{ display:flex; align-items:center; gap:1rem; margin-bottom:.6rem; }
.anti-logo{ width:72px; height:72px; object-fit:contain; filter: drop-shadow(0 10px 24px rgba(249,115,22,.22)); }
.anti-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:.8rem; }
.anti-card{ padding:.9rem; border:1px solid #3f3f46; border-radius:14px; background: #27272a; }

/* ------------------------------
   Uploads section
------------------------------ */
.upload{ padding:1rem; display:grid; grid-template-columns: 1.1fr .9fr; gap:1.2rem; margin: 8px 0 28px; align-items:center; }
.drop{ display:flex; align-items:center; justify-content:center; gap:.9rem; min-height:220px; border-radius:18px; border:1px dashed #3f3f46; }
.drop-icon{ font-size:1.6rem; }
.drop-copy strong{ color:#fff; }

/* ------------------------------
   Pricing
------------------------------ */
.pricing{ padding:1rem; margin: 8px 0 28px; }
.pricing-head{ text-align:center; margin-bottom:.6rem; }
.tiers{ display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; }
.tier{ padding:1.1rem; border:1px solid #3f3f46; border-radius:16px; background: #27272a; position:relative; }
.tier h3{ margin:.2rem 0 .4rem; }
.price{ font-size:2rem; font-weight:800; margin:.2rem 0 .6rem; color:var(--orange-strong); text-shadow: 0 0 12px rgba(249,115,22,.35); }
.price span{ font-size:1.5rem; color:var(--muted); font-weight:600; }
.features-list{ list-style:none; padding:0; margin:0 0 1rem 0; }
.features-list li{ margin:.35rem 0; color:var(--txt); }
.tier-pro{ border-color: rgba(249,115,22,.5); box-shadow: 0 0 20px -5px rgba(249,115,22,.3); }
.tier-pro .flag{
  position:absolute; top:12px; right:12px; font-size:.75rem; font-weight:800;
  padding:.28rem .55rem; border-radius:999px; background: rgba(249,115,22,.18); border:1px solid rgba(249,115,22,.45);
}

/* ------------------------------
   Steps & Beta (existing)
------------------------------ */
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap:1rem; padding: 8px 0 24px; }
.step{ padding:1rem; }
.step-num{ width:34px; height:34px; display:grid; place-items:center; font-weight:800; border-radius:10px; margin-bottom:.4rem; background: rgba(249,115,22,0.18); border:1px solid rgba(249,115,22,0.35); }

.beta{ padding:1.2rem; text-align:center; margin: 8px auto 28px; }
.beta p{ color:var(--muted); }
.beta-form{ display:flex; gap:.5rem; justify-content:center; margin: .8rem 0; }
.beta-form input{
  width:min(380px, 80vw); padding:.9rem 1rem; border-radius:14px; color:var(--txt);
  background: #27272a; border:1px solid #3f3f46;
  outline:none; transition:border-color .2s ease, box-shadow .2s ease;
}
.beta-form input:focus{ border-color: rgba(249,115,22,0.55); box-shadow: 0 0 0 4px rgba(249,115,22,0.15); }

/* ------------------------------
   Footer
------------------------------ */
.footer{ display:flex; align-items:center; justify-content:space-between; padding: 18px 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); }

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

.float-up{ transform: translateY(8px) translateZ(0); animation: floatUp 1s ease-out forwards; }
.float-up.delay-1{ animation-delay:.2s; }
@keyframes floatUp{ 0%{ opacity:0; transform: translateY(12px) scale(.98); } 100%{ opacity:1; transform: translateY(0) scale(1); } }

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 1100px){
  .tiers{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .hero-cards{ grid-template-columns: 1fr 1fr; }
  .features{ grid-template-columns: 1fr 1fr; }
  .row{ grid-template-columns: 32px 1fr 100px 100px 70px; }
  .ai{ grid-template-columns: 1fr; }
  .upload{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav a:not(.btn){ display:none; }
  .hero-cards{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .beta-form{ flex-direction:column; align-items:center; }
  .footer{ flex-direction:column; gap:.6rem; }
  .tiers{ grid-template-columns: 1fr; }
}

/* Small niceties */
.muted{ color:var(--muted); }
.br-md{ display:none; }
@media (min-width: 820px){ .br-md{ display:inline; } }

/* ========== Section heads & pills ========== */
.section-head{margin-bottom:16px}
.section-head.center{text-align:center}
.section-head h2{margin:.3rem 0}
.pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.35rem .7rem; border-radius:999px;
  background: rgba(249,115,22,.18); border:1px solid rgba(249,115,22,.45);
  font-weight:700; letter-spacing:.2px;
}
.pill-ghost{
  background: #27272a;
  border:1px solid #3f3f46;
}

.panel-xl{ padding:1.1rem; margin:8px auto 28px; }

/* ========== Anti-Cheat grid ========== */
.anti-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.anti-card{ padding:1rem; min-height:140px; }
.big-icon{ font-size:1.6rem; margin-bottom:.4rem; }

/* ========== AI grid ========== */
.ai-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.ai-card{ padding:1rem; min-height:140px; }

/* ========== Uploads block ========== */
.upload-demo{
  display:grid; grid-template-columns: 1fr 1.2fr; gap:1rem; align-items:stretch; margin-top:.4rem;
}
.drop{
  display:grid; place-items:center; text-align:center; padding:1.2rem; border-radius:16px;
  border:1px dashed #3f3f46;
}
.steps-list{ list-style:none; margin:0; padding:0; display:grid; gap:.6rem; }
.steps-list li{
  display:flex; align-items:center; gap:.8rem; padding:.8rem 1rem; border-radius:14px;
}
.steps-list li span{
  width:28px; height:28px; display:grid; place-items:center; border-radius:10px;
  background: rgba(249,115,22,.18); border:1px solid rgba(249,115,22,.45); font-weight:800;
}
.note{ margin-top:.6rem }

/* ========== Pricing ========== */
.pricing .plans{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1rem;
}
.plan{ padding:1rem; display:flex; flex-direction:column; gap:.7rem; }
.plan h3{ margin:.2rem 0 }
.plan .price{ font-size:2rem; font-weight:800; }
.plan .price small{ font-size:.9rem; color:var(--muted); font-weight:600; margin-left:.25rem }
.plan .feat-list{ list-style:none; padding:0; margin:.2rem 0 .4rem; display:grid; gap:.5rem; }
.plan .feat-list li{ display:flex; align-items:center; gap:.6rem; padding:.7rem .8rem; border:1px solid #3f3f46; border-radius:12px; background: #27272a; }
.dot-mini{ width:.5rem; height:.5rem; border-radius:50%; background: #3f3f46; display:inline-block; }
.dot-orange{ background: var(--orange); box-shadow:0 0 10px rgba(249,115,22,.45) }
.plan .block{ display:block; text-align:center; }
.plan-pro{ outline:1px solid rgba(249,115,22,.45); box-shadow: 0 0 0 0 rgba(249,115,22,.25), var(--shadow); }
.plan-badge{ width:max-content; }

/* ========== Responsive tweaks ========== */
@media (max-width: 980px){
  .anti-grid, .ai-grid{ grid-template-columns:1fr 1fr; }
  .upload-demo{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .pricing .plans{ grid-template-columns:1fr; }
}

section.panel-xl,
#anticheat,
#ember-ai,
#uploads,
#pricing {
  text-align: center;
  margin: 0 auto 40px;
  padding: 2rem 1rem;
}

/* Make their grids centered as well */
.anti-grid,
.ai-grid,
.upload-demo,
.pricing .plans {
  justify-content: center;
  align-items: start;
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  margin: .3rem 0;
}

.pricing .plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

/* Variants */
.plan-badge.pill-ghost {
  background: #2d2d30;
  border: 1px solid #3f3f46;
  color: #fff;
}

.plan-badge.pill {
  background: rgba(249,115,22, 0.18);
  border: 1px solid rgba(249,115,22, 0.45);
  color: var(--orange);
}

/* ---- PRICING: fix wrapped feature rows so they don't look odd ---- */
.plan .feat-list li{
  /* replace the flex row with a 2-col grid: dot | text */
  display: grid !important;
  grid-template-columns: 14px 1fr;   /* dot width, then text */
  column-gap: .75rem;
  align-items: center;
  text-align: left;                  /* keep copy left-aligned even when wrapping */
  padding: .7rem 1rem;
  line-height: 1.35;
  border-radius: 12px;
  background: #27272a;
}

/* keep the dot crisp, vertically centered, and not pushing text */
.plan .feat-list li .dot-mini{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0;                         /* no extra offset */
  flex: none;                        /* in case older rules linger */
}

/* subtle polish for long lines */
.plan .feat-list li span,
.plan .feat-list li strong{
  text-wrap: balance;                /* nicer multi-line breaks (supported in modern browsers) */
  word-break: normal;
}

/* optional: tighten very long lines on smaller widths */
@media (max-width: 600px){
  .plan .feat-list li{ padding: .65rem .85rem; }
}

/* ---- Upload area styling ---- */
.upload-area {
  border: 2px dashed #3f3f46;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  background: #27272a;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Hover state: orange glow */
.upload-area:hover {
  border-color: #f97316;
  background: rgba(249,115,22, 0.08);
  box-shadow: 0 0 25px rgba(249,115,22, 0.4);
}

/* Upload icon */
.upload-area .icon {
  font-size: 3rem;
  color: #f97316;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}
.upload-area:hover .icon {
  transform: translateY(-3px);
}

/* Title text */
.upload-area strong {
  font-size: 1.3rem;
  color: #fff;
}

/* Subtext */
.upload-area span {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  color: rgba(255,255,255,0.7);
}

/* =========== Ember AI unified =========== */
.emberai-wrap { margin: 80px 0; }
.emberai-card{
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: radial-gradient(90% 120% at 10% 10%, rgba(249,115,22,0.08), transparent 60%),
              rgba(255,255,255,0.04);
  border: 1px solid #27272a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.emberai-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 960px){ .emberai-grid{ grid-template-columns: 1fr; } }

.eyebrow{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  background: #2d2d30;
  border: 1px solid #3f3f46;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: 8px;
}

.emberai-title{
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 4px 0 6px;
}
.emberai-title span{ color: var(--orange, #f97316); text-shadow: 0 0 18px rgba(249,115,22,.35); }

.emberai-sub{
  color: rgba(255,255,255,.85);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.5;
  margin-bottom: 18px;
}

.emberai-bullets{ list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.emberai-bullets li{
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #27272a;
  border: 1px solid #3f3f46;
}
.dot{ width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; }
.dot-orange{ background: #f97316; box-shadow: 0 0 10px rgba(249,115,22,.6); }
.dot-green{ background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,.4); }

.emberai-cta{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Right demo panel */
.glass-panel{
  border-radius: 20px;
  background: #27272a;
  border: 1px dashed #3f3f46;
  padding: clamp(16px, 2.5vw, 22px);
}

.demo-pill-row{ display: flex; justify-content: flex-end; margin-bottom: 12px; }
.pill-pill{
  padding: 10px 16px;
  border-radius: 999px;
  background: #2d2d30;
  border: 1px solid #3f3f46;
  color: #fff;
}

.demo-card{
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid #3f3f46;
  margin-bottom: 14px;
  transition: transform .2s;
}
.demo-card.pulse{ animation: pulse 700ms ease; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 rgba(249,115,22,0.0); }
  50%{ box-shadow: 0 0 25px rgba(249,115,22,0.35); }
  100%{ box-shadow: 0 0 0 rgba(249,115,22,0.0); }
}
.demo-label{ font-size: 12px; opacity: .7; margin-bottom: 4px; }
.demo-value{ font-size: 20px; font-weight: 700; }

.demo-actions{ display: flex; gap: 10px; margin-top: 6px; }
.btn.small{ padding: 10px 14px; font-size: 14px; }

.demo-feedback{
  opacity: 0; transform: translateY(8px);
  transition: .25s ease; font-size: 14px;
  color: rgba(255,255,255,.9);
  margin-top: 10px;
}
.demo-feedback.show{ opacity: 1; transform: translateY(0); }

.emberai-foot{
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 14px; opacity: .9;
}

/* Buttons (re-use your existing tokens if present) */
.btn{
  border-radius: 16px; padding: 12px 18px;
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #fff; font-weight: 700;
}
.btn-ghost{ background: #27272a; }
.btn-ember{
  background: linear-gradient(180deg, #ff8a34, #f97316);
  border-color: rgba(249,115,22,.5);
}
.btn.glow{ box-shadow: 0 10px 30px rgba(249,115,22,.35); }
.btn:hover{ filter: brightness(1.05); transform: translateY(-1px); }

/* Center Ember AI section */
.emberai-wrap {
  display: flex;
  justify-content: center;   /* horizontally center */
  align-items: center;       /* vertically center if there's extra height */
  margin: 80px auto;
  max-width: 1200px;         /* keeps content from stretching too wide */
}

/* ------------------------------
   Profile Menu (Global)
------------------------------ */
.profile-chip{
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1px solid #3f3f46;
  background: #27272a;
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-chip:hover{ 
  box-shadow: 0 10px 24px rgba(249,115,22,.2); 
  border-color: rgba(249,115,22,.45); 
}
.profile-chip .avatar{
  width:28px; 
  height:28px; 
  border-radius:50%;
  display:grid; 
  place-items:center; 
  background: #2d2d30;
  border: 1px solid #3f3f46;
}
.profile-menu{
  position:absolute; 
  right:0; 
  top:calc(100% + 8px);
  min-width: 200px; 
  padding: 6px; 
  border-radius: 14px;
  background: #2d2d30;
  border: 1px solid #3f3f46; 
  box-shadow: var(--shadow);
  background-clip: padding-box; 
  overflow: hidden; 
  z-index: 9999;
}
.profile-menu a{
  display:flex; 
  align-items:center; 
  gap:.6rem; 
  color: var(--txt); 
  text-decoration:none;
  padding:.6rem .8rem; 
  border-radius:10px; 
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.profile-menu a:hover{ 
  background: #27272a; 
  border-color: rgba(255,255,255,.18); 
}
.profile-menu a#signOutBtn{ 
  color: #ff5d5d; 
}
.profile-menu a#signOutBtn:hover{ 
  background: rgba(255,93,93,.12); 
  border-color: rgba(255,93,93,.45); 
}

.emberai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal space columns */
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  width: 100%;
}

@media (max-width: 960px) {
  .emberai-grid {
    grid-template-columns: 1fr;
    text-align: center;     /* center text for smaller screens */
  }
}

/* ============================================
   BENTO GRID SECTION
   ============================================ */

.bento-section {
  padding: 80px 0;
  margin: 40px auto;
}

.bento-header {
  text-align: center;
  margin-bottom: 48px;
}

.bento-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 12px 0 8px;
}

.bento-header .muted {
  font-size: 18px;
  max-width: 500px;
  margin: 0 auto;
}

.bento-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(249,115,22, 0.15);
  border: 1px solid rgba(249,115,22, 0.35);
  color: #f97316;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Main Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Card Sizing */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-small {
  grid-column: span 1;
  grid-row: span 1;
}

/* Base Card Styles */
.bento-card {
  position: relative;
  border-radius: 24px;
  background: #27272a;
  border: 1px solid #27272a;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-card-inner {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Icon Wrapper */
.bento-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(249,115,22, 0.2), rgba(249,115,22, 0.08));
  border: 1px solid rgba(249,115,22, 0.3);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.bento-icon-wrap svg {
  width: 24px;
  height: 24px;
  color: #f97316;
}

.bento-card:hover .bento-icon-wrap {
  transform: scale(1.08) rotate(-5deg);
}

/* Security card icon */
.bento-security .bento-icon-wrap {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.08));
  border-color: rgba(46, 204, 113, 0.3);
}

.bento-security .bento-icon-wrap svg {
  color: #2ecc71;
}

/* Upload card icon */
.bento-upload .bento-icon-wrap {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.3);
}

.bento-upload .bento-icon-wrap svg {
  color: #3b82f6;
}

/* Badge Styles */
.bento-badge {
  display: inline-block;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(249,115,22, 0.15);
  color: #f97316;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.badge-green {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

/* Card Typography */
.bento-card h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.2;
}

.bento-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Feature List in AI Card */
.bento-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.bento-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #27272a;
  border: 1px solid #27272a;
  font-size: 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.bento-features li:hover {
  transform: translateX(4px);
  background: #2d2d30;
}

.bento-features li svg {
  width: 18px;
  height: 18px;
  color: #f97316;
  flex-shrink: 0;
}

/* Link Button */
.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a34, #f97316);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}

.bento-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249,115,22, 0.35);
}

.bento-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.bento-link:hover svg {
  transform: translateX(4px);
}

/* Mini Features for Security Card */
.bento-mini-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.bento-mini-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.bento-mini-features svg {
  width: 14px;
  height: 14px;
  color: #2ecc71;
}

/* Upload Zone */
.upload-mini {
  margin-top: auto;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border-radius: 14px;
  border: 2px dashed rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

.upload-zone svg {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.upload-zone span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Stat Cards */
.bento-stat {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-stat .bento-card-inner {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #27272a;
  border: 1px solid #3f3f46;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
  color: #f97316;
}

.bento-stat:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bento Footer */
.bento-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 14px;
}

.bento-footer svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ============================================
   BENTO RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .bento-medium {
    grid-column: span 1;
  }
  
  .bento-small {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .bento-large,
  .bento-medium,
  .bento-small {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .bento-section {
    padding: 40px 0;
  }
  
  .bento-header {
    margin-bottom: 32px;
  }
}

/* ============================================
   BENTO AI CARD - TWO COLUMN LAYOUT
   ============================================ */

.bento-ai-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  height: 100%;
}

.bento-ai-left {
  display: flex;
  flex-direction: column;
}

/* Topic Mastery Bars */
.topic-mastery {
  margin-top: auto;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid #27272a;
}

.mastery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mastery-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mastery-avg {
  font-size: 11px;
  font-weight: 700;
  color: #f97316;
}

.mastery-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mastery-bar-item {
  display: grid;
  grid-template-columns: 70px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.bar-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.bar-track {
  height: 6px;
  background: #2d2d30;
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #f97316, #ff8a34);
  border-radius: 3px;
  transition: width 1s ease-out;
}

.bar-fill.bar-weak {
  background: linear-gradient(90deg, #ff5d5d, #ff7a7a);
}

.bar-pct {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.bento-ai-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

/* Performance Graph */
.ai-graph-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #27272a;
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-ai:hover .ai-graph-container {
  transform: translateY(-2px);
  border-color: rgba(249,115,22, 0.25);
}

.ai-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.graph-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.graph-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2ecc71;
}

.graph-trend svg {
  width: 14px;
  height: 14px;
}

.ai-graph {
  position: relative;
}

.graph-svg {
  width: 100%;
  height: 60px;
  overflow: visible;
}

.graph-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 2s ease forwards;
}

.graph-area {
  opacity: 0;
  animation: fadeInArea 1s ease 0.5s forwards;
}

.graph-dot {
  opacity: 0;
  animation: pulseDot 1.5s ease infinite 1.5s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
  to { opacity: 1; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.3); }
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.graph-labels span {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

/* Skill Cloud Pills */
.ai-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.skill-pill {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(249,115,22, 0.15);
  border: 1px solid rgba(249,115,22, 0.3);
  color: #f97316;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  animation: floatPill 4s ease-in-out infinite;
}

.skill-pill.skill-weak {
  background: rgba(255, 93, 93, 0.15);
  border-color: rgba(255, 93, 93, 0.3);
  color: #ff5d5d;
}

.skill-float-1 { animation-delay: 0s; }
.skill-float-2 { animation-delay: 0.5s; }
.skill-float-3 { animation-delay: 1s; }

@keyframes floatPill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* AI Bottom Row - Status + Mascot */
.ai-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* AI Pulse Indicator - Minimal */
.ai-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid #27272a;
}

/* Brainy Mascot */
.ai-mascot {
  flex-shrink: 0;
}

.brainy-img {
  width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(249,115,22, 0.2));
  transition: transform 0.3s ease;
}

.bento-ai:hover .brainy-img {
  transform: scale(1.05) translateY(-2px);
}

.pulse-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a34, #f97316);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pulse-core svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.pulse-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   AI METRICS ROW
   ============================================ */

.ai-metrics-row {
  display: flex;
  gap: 12px;
}

/* Ring Chart */
.ai-ring-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid #27272a;
}

.ring-svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.ring-fill {
  fill: none;
  stroke: #f97316;
  stroke-width: 3;
  stroke-linecap: round;
  animation: ringDraw 1.5s ease-out forwards;
}

@keyframes ringDraw {
  from { stroke-dasharray: 0, 100; }
}

.ring-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}

.ring-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Streak Box */
.ai-streak-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid #27272a;
}

.streak-flame {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(249,115,22, 0.15);
  display: grid;
  place-items: center;
}

.streak-flame svg {
  width: 18px;
  height: 18px;
  color: #f97316;
}

.streak-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}

.streak-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Questions Box */
.ai-questions-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid #27272a;
}

.questions-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.15);
  display: grid;
  place-items: center;
}

.questions-icon svg {
  width: 18px;
  height: 18px;
  color: #2ecc71;
}

.questions-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 6px;
}

.questions-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================
   SECURITY SCAN ANIMATION
   ============================================ */

.security-scan {
  margin-top: 12px;
  position: relative;
  height: 40px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(46, 204, 113, 0.15);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #2ecc71, transparent);
  animation: scanMove 2s ease-in-out infinite;
  box-shadow: 0 0 15px #2ecc71;
}

@keyframes scanMove {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 2px); }
}

.scan-grid {
  display: flex;
  gap: 4px;
  padding: 8px;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.scan-cell {
  width: 20px;
  height: 24px;
  border-radius: 4px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  transition: all 0.3s ease;
}

.scan-cell.active {
  background: rgba(46, 204, 113, 0.25);
  border-color: rgba(46, 204, 113, 0.5);
  animation: cellPulse 1.5s ease infinite;
}

@keyframes cellPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ============================================
   UPLOAD FILE ICONS
   ============================================ */

.file-icons {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}

.file-icon {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.fi-pdf {
  background: rgba(255, 93, 93, 0.2);
  color: #ff5d5d;
}

.fi-doc {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.fi-ppt {
  background: rgba(255, 152, 67, 0.2);
  color: #ff9843;
}

.bento-upload:hover .file-icon {
  opacity: 1;
  transform: translateY(-2px);
}

.bento-upload:hover .fi-pdf { animation: bounceIcon 0.6s ease 0s; }
.bento-upload:hover .fi-doc { animation: bounceIcon 0.6s ease 0.1s; }
.bento-upload:hover .fi-ppt { animation: bounceIcon 0.6s ease 0.2s; }

@keyframes bounceIcon {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   STAT BARS
   ============================================ */

.stat-bar {
  width: 100%;
  height: 4px;
  background: #2d2d30;
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f97316, #ff8a34);
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-bar-green {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.stat-bar-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bento-stat:hover .stat-bar-fill {
  width: var(--fill);
}

/* Enhanced Stat Value Animation */
.stat-value {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.bento-stat:hover .stat-value {
  transform: scale(1.05);
}

/* ============================================
   MINIMAL MICROINTERACTIONS
   ============================================ */

/* Feature list hover */
.bento-features li {
  transition: all 0.25s ease;
}

.bento-features li:hover {
  transform: translateX(6px);
  background: rgba(249,115,22, 0.08);
  border-color: rgba(249,115,22, 0.2);
}

.bento-features li svg {
  transition: transform 0.25s ease;
}

.bento-features li:hover svg {
  transform: scale(1.1);
}

/* Upload zone hover */
.upload-zone {
  transition: all 0.3s ease;
}

.bento-upload:hover .upload-zone {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.08);
}

.upload-zone svg {
  transition: transform 0.25s ease;
}

.bento-upload:hover .upload-zone svg {
  transform: translateY(-2px);
}

/* Mini features stagger */
.bento-mini-features span {
  transition: all 0.25s ease;
  opacity: 0.8;
}

.bento-security:hover .bento-mini-features span {
  opacity: 1;
  transform: translateX(3px);
}

.bento-security:hover .bento-mini-features span:nth-child(1) { transition-delay: 0s; }
.bento-security:hover .bento-mini-features span:nth-child(2) { transition-delay: 0.05s; }
.bento-security:hover .bento-mini-features span:nth-child(3) { transition-delay: 0.1s; }

/* ============================================
   BENTO AI RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .bento-ai-content {
    grid-template-columns: 1fr;
  }
  
  .bento-ai-right {
    display: none;
  }
}

@media (max-width: 640px) {
  .ai-skill-cloud {
    justify-content: center;
  }
  
  .ai-metrics-row {
    flex-wrap: wrap;
  }
}

/* ============================================
   NEW PRICING SECTION
   ============================================ */

.pricing-section {
  padding: 60px 20px;
  margin: 40px auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(249,115,22, 0.12);
  border: 1px solid rgba(249,115,22, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
  margin-bottom: 12px;
}

.pricing-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 8px 0 12px;
}

.pricing-header .muted {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 12px;
}

.billing-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.billing-btn:hover {
  color: #fff;
}

.billing-btn.active {
  background: #2d2d30;
  color: #fff;
}

.save-tag {
  padding: 3px 8px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #2ecc71;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Pricing Card */
.pricing-card {
  position: relative;
  background: #1c1c1f;
  border: 1px solid #27272a;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-content {
  position: relative;
  padding: 24px 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Card Glow (subtle) */
.card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.pricing-card:hover .card-glow {
  opacity: 1;
}

.glow-orange {
  background: radial-gradient(ellipse, rgba(249,115,22, 0.15) 0%, transparent 70%);
}

.glow-ember {
  background: radial-gradient(ellipse, rgba(249,115,22, 0.2) 0%, transparent 70%);
}

.glow-edu {
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

/* Popular/Ember Tags - Centered at top, spanning border */
.popular-tag,
.ember-tag,
.edu-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  z-index: 10;
  white-space: nowrap;
}

.popular-tag {
  background: #8b5cf6;
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.35);
}

.popular-tag i,
.ember-tag i,
.edu-tag i {
  width: 11px;
  height: 11px;
}

.ember-tag {
  background: linear-gradient(135deg, #f97316, #ff5500);
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px rgba(249,115,22, 0.35);
}

.edu-tag {
  background: #3b82f6;
  border: none;
  color: #fff;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
}

/* Card variants - no special borders */
.card-popular,
.card-ember,
.card-edu {
  /* Same as regular cards */
}

/* Tier Badges - matching subscription.css */
.tier-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border: 1px solid;
}

.tier-free {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.tier-basic {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.tier-plus {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.08));
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

.tier-pro {
  background: linear-gradient(135deg, rgba(249,115,22, 0.15), rgba(249,115,22, 0.08));
  border-color: rgba(249,115,22, 0.35);
  color: #fb923c;
}

.tier-edu {
  background: linear-gradient(135deg, rgba(57, 217, 138, 0.15), rgba(57, 217, 138, 0.08));
  border-color: rgba(57, 217, 138, 0.35);
  color: #39d98a;
}

/* Plan Title */
.plan-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

/* Plan Price */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.plan-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.plan-price .amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.plan-price .period {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

.plan-price .custom-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

/* Plan Description */
.plan-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Plan Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.plan-features li i {
  width: 14px;
  height: 14px;
  color: #2ecc71;
  flex-shrink: 0;
}

/* Plan CTA Buttons */
.plan-cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta-outline {
  background: transparent;
  border: 1px solid #3f3f46;
  color: #fff;
}

.cta-outline:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.cta-primary {
  background: rgba(249,115,22, 0.15);
  border: 1px solid rgba(249,115,22, 0.4);
  color: #f97316;
}

.cta-primary:hover {
  background: rgba(249,115,22, 0.25);
  border-color: rgba(249,115,22, 0.6);
  transform: translateY(-1px);
}

.cta-ember {
  background: #f97316;
  border: none;
  color: #fff;
  box-shadow: 0 0 20px -5px rgba(249,115,22, 0.3);
}

.cta-ember:hover {
  box-shadow: 0 6px 20px rgba(249,115,22, 0.4);
  transform: translateY(-2px);
}

/* Pricing Note */
.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 13px;
}

.pricing-note i {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pricing-card:nth-child(4),
  .pricing-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  
  .pricing-header h2 {
    font-size: 1.8rem;
  }
  
  .billing-toggle {
    flex-direction: column;
  }
}

/* ============================================
   MEGA FOOTER
   ============================================ */

.mega-footer {
  position: relative;
  width: 100%;
  padding-top: 100px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  height: 280px;
}

.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.38em;
  transform: translateX(-50%);
  font-size: clamp(140px, 26vw, 380px);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  text-align: center;
}

.footer-copyright {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
  z-index: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin: 0;
}

/* ------------------------------
   3D Button (Header CTA)
------------------------------ */
.btn-3d {
  width: 140px;
  height: 50px;
  position: relative;
  background: none;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-3d-top {
  width: 100%;
  height: 100%;
  background: #f97316;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7mm;
  outline: 2px solid #111;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-3d-bottom {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #d96b15;
  top: 10px;
  left: 0;
  border-radius: 7mm;
  outline: 2px solid #111;
  z-index: -1;
}

.btn-3d-bottom::before {
  position: absolute;
  content: "";
  width: 2px;
  height: 9px;
  background: #111;
  bottom: 0;
  left: 15%;
}

.btn-3d-bottom::after {
  position: absolute;
  content: "";
  width: 2px;
  height: 9px;
  background: #111;
  bottom: 0;
  left: 85%;
}

.btn-3d:active .btn-3d-top {
  transform: translateY(10px);
}

.btn-3d::before {
  position: absolute;
  content: "";
  width: calc(100% + 2px);
  height: 100%;
  background: #555;
  top: 14px;
  left: -1px;
  border-radius: 7mm;
  outline: 2px solid #111;
  z-index: -2;
}

/* Hover shine effect */
.btn-3d-top::before {
  position: absolute;
  content: "";
  width: 15px;
  height: 100%;
  background: #3f3f46;
  transform: skewX(30deg);
  left: -20px;
  transition: 0.25s;
}

.btn-3d:hover .btn-3d-top::before {
  left: calc(100% + 20px);
}

/* ============================================================================
   Powered by Ember — outline bento
   The cards were filled panels (#27272a, 24px radius) sitting on the page.
   Now they are outlines only: no fill, square corners, one hairline rule.
   Everything inside them is the page background too, so the section reads as
   a drawn grid over the ground rather than a stack of tiles. Only data ink
   keeps colour — bar fills, the progress line, the accuracy ring, icons.
   Scoped to #platform-features so no other page section is affected.
   ========================================================================= */

/* Square corners throughout the section, including nested panels and chips. */
#platform-features *,
#platform-features *::before,
#platform-features *::after {
  border-radius: 0 !important;
}

/* The card itself: outline only. */
#platform-features .bento-card {
  background: transparent;
  border: 1px solid var(--glass-stroke);
}

#platform-features .bento-card:hover {
  transform: none;
  border-color: var(--stroke-strong);
}

/* Every interior surface drops back to the ground. */
#platform-features .bento-card-inner,
#platform-features .topic-mastery,
#platform-features .ai-graph-container,
#platform-features .ai-ring-chart,
#platform-features .ai-streak-box,
#platform-features .ai-questions-box,
#platform-features .bento-features li,
#platform-features .bento-features li:hover,
#platform-features .stat-icon,
#platform-features .security-scan,
#platform-features .upload-mini,
#platform-features .file-icons {
  background: transparent;
}

/* Interior panels keep a hairline so the structure survives without a fill. */
#platform-features .topic-mastery,
#platform-features .ai-graph-container,
#platform-features .ai-streak-box,
#platform-features .ai-questions-box {
  border: 1px solid var(--stroke-soft);
}

#platform-features .bento-ai:hover .ai-graph-container {
  transform: none;
  border-color: var(--glass-stroke);
}

/* Feature rows become ruled lines instead of filled pills. */
#platform-features .bento-features li {
  border: 0;
  border-bottom: 1px solid var(--stroke-soft);
}

#platform-features .bento-features li:last-child {
  border-bottom: 0;
}

/* Icon wells, badges and pills: outline + accent text, no tinted fill. */
#platform-features .bento-icon-wrap,
#platform-features .bento-badge,
#platform-features .skill-pill,
#platform-features .file-icon,
#platform-features .upload-zone {
  background: transparent;
}

#platform-features .bento-badge {
  border: 1px solid currentColor;
}

#platform-features .upload-zone:hover {
  background: transparent;
  border-color: #3b82f6;
}

/* The one filled element left is the primary action, which has to stay a button. */
#platform-features .bento-link {
  background: var(--orange);
}

/* Data ink is deliberately untouched below: .bar-fill, .stat-bar-fill,
   .graph-line/.graph-area, .ring-fill and .scan-cell.active still carry
   their colour — they encode values, not decoration. Their tracks flatten. */
#platform-features .bar-track,
#platform-features .stat-bar {
  background: var(--stroke-soft);
}

#platform-features .scan-cell {
  background: transparent;
  border: 1px solid var(--stroke-soft);
}
