:root{
  --gold:#f5c842;
  --gold-dim:rgba(245,200,66,0.72);
  --gold-faint:rgba(245,200,66,0.12);
  --gold-strong:#ffd76a;
  --bg:#100500;
  --bg-mid:#1c0900;
  --bg-panel:#241104;
  --bg-card:rgba(255,255,255,0.05);
  --bg-card-strong:rgba(255,255,255,0.08);
  --text:rgba(255,240,200,0.96);
  --text-mid:rgba(245,220,160,0.82);
  --text-dim:rgba(245,200,100,0.58);
  --border:rgba(245,180,50,0.2);
  --border-strong:rgba(245,200,66,0.34);
  --shadow:0 24px 80px rgba(0,0,0,0.35);
}

.hero-shell{
  width:min(var(--container-main),100%);
  margin:0 auto;
  display:grid;
  gap:26px;
  position:relative;
  z-index:1;
}

.hero-copy{
  max-width:760px;
  margin:0 auto;
}

.hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:var(--gold-dim);
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-size:11px;
}

.hero-question{
  max-width:760px;
  margin:16px auto 0;
}

.hero-helper{
  max-width:760px;
  margin:16px auto 0;
  color:var(--text-mid);
  font-size:15px;
  line-height:1.9;
}

.entry-modes{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

.entry-mode{
  padding:9px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.03);
  color:var(--text-mid);
  font-family:'Lora',Georgia,serif;
  font-size:12px;
  cursor:pointer;
  transition:all .2s ease;
}

.entry-mode.active,
.entry-mode:hover{
  border-color:var(--border-strong);
  color:var(--gold);
  background:rgba(245,200,66,0.1);
}

.hero-ask-card{
  max-width:var(--container-chat);
  margin:0 auto;
  padding:22px;
  border-radius:26px;
  border:1px solid rgba(245,200,66,0.14);
  background:
    radial-gradient(circle at top left, rgba(245,200,66,0.12), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

.hero-ask-layout{
  display:grid;
  gap:16px;
}

.hero-input{
  width:100%;
  min-height:126px;
  border-radius:22px;
  border:1px solid rgba(245,200,66,0.16);
  background:rgba(0,0,0,0.16);
  color:var(--text);
  font-family:'Lora',Georgia,serif;
  font-size:16px;
  line-height:1.8;
  padding:20px 20px 54px;
  resize:none;
  outline:none;
  transition:border-color .2s ease, transform .2s ease;
}

.hero-input::placeholder{
  color:rgba(245,200,66,0.3);
  font-style:italic;
}

.hero-input:focus{
  border-color:rgba(245,200,66,0.45);
  transform:translateY(-1px);
}

.hero-ask-actions{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.hero-meta{
  color:var(--text-dim);
  font-size:12px;
}

.hero-submit{
  min-width:140px;
  padding:14px 20px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg, var(--gold), var(--gold-strong));
  color:#1a0800;
  font-family:'Cinzel',serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:1px;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}

.hero-submit:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(245,200,66,0.2);
}

.hero-chip-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.hero-chip{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.18);
  background:rgba(255,255,255,0.04);
  color:var(--text-mid);
  font-size:12px;
  cursor:pointer;
  transition:all .2s ease;
}

.hero-chip:hover{
  border-color:rgba(245,200,66,0.45);
  background:rgba(245,200,66,0.1);
  color:var(--gold);
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}

.category-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(245,200,66,0.12);
  border-radius:20px;
  padding:18px 16px;
  text-align:left;
  cursor:pointer;
  transition:all .2s ease;
}

.category-card:hover{
  transform:translateY(-3px);
  border-color:rgba(245,200,66,0.34);
  background:rgba(255,255,255,0.07);
}

.category-card.active{
  border-color:rgba(245,200,66,0.42);
  background:rgba(245,200,66,0.1);
}

.category-card strong{
  display:block;
  color:var(--gold);
  font-family:'Cinzel',serif;
  font-size:14px;
  letter-spacing:0.8px;
  margin-bottom:8px;
}

.category-card span{
  color:var(--text-dim);
  font-size:12px;
  line-height:1.6;
}

.guide-drawer{
  max-width:var(--container-chat);
  margin:0 auto;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(245,200,66,0.14);
  border-radius:22px;
  overflow:hidden;
}

.guide-drawer summary{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--gold);
  font-family:'Cinzel',serif;
  letter-spacing:1px;
}

.guide-drawer summary::-webkit-details-marker{
  display:none;
}

.guide-drawer-copy{
  color:var(--text-dim);
  font-size:12px;
  font-family:'Lora',Georgia,serif;
  letter-spacing:0;
}

.guide-body{
  border-top:1px solid rgba(245,200,66,0.1);
  padding:0 18px 18px;
  display:grid;
  gap:14px;
}

.guide-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
}

.guide-option{
  padding:16px 14px;
  border-radius:18px;
  border:1px solid rgba(245,200,66,0.14);
  background:rgba(255,255,255,0.03);
  cursor:pointer;
  transition:all .2s ease;
}

.guide-option:hover,
.guide-option.active{
  border-color:rgba(245,200,66,0.4);
  background:rgba(245,200,66,0.1);
}

.guide-option.locked{
  opacity:.74;
}

.guide-option strong{
  display:block;
  color:var(--gold);
  font-family:'Cinzel',serif;
  font-size:13px;
  margin-bottom:7px;
}

.guide-option span{
  display:block;
  color:var(--text-mid);
  font-size:12px;
  line-height:1.65;
}

.guide-footnote{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--text-dim);
  font-size:12px;
}

.daily-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  max-width:var(--container-main);
  margin:0 auto;
}

.daily-card{
  border-radius:22px;
  padding:20px 18px;
  border:1px solid rgba(245,200,66,0.14);
  background:linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow:var(--shadow);
}

.daily-card.wide{
  grid-column:span 2;
}

.daily-tag{
  display:block;
  color:var(--text-dim);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.4px;
  margin-bottom:10px;
}

.daily-card h3{
  margin:0 0 10px;
  font-size:18px;
}

.daily-card p{
  color:var(--text-mid);
  font-size:13px;
  line-height:1.8;
  margin:0;
}

.daily-mini{
  margin-top:12px;
  color:var(--text-dim);
  font-size:12px;
}

.resume-card{
  max-width:var(--container-chat);
  margin:0 auto;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid rgba(245,200,66,0.14);
  background:rgba(255,255,255,0.05);
  display:none;
}

.resume-card.show{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.resume-card h3{
  margin:0 0 8px;
  font-size:16px;
}

.resume-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
}

.meta-pill{
  padding:5px 10px;
  border-radius:999px;
  background:rgba(245,200,66,0.08);
  border:1px solid rgba(245,200,66,0.14);
  color:var(--text-mid);
  font-size:11px;
}

.resume-card p{
  color:var(--text-mid);
  font-size:13px;
  margin:0;
}

.resume-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.mini-btn{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.22);
  background:transparent;
  color:var(--gold);
  font-family:'Lora',Georgia,serif;
  font-size:12px;
  cursor:pointer;
}

.ritual-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  max-width:var(--container-main);
  margin:0 auto;
}

.ritual-card{
  background:var(--bg-card);
  border:1px solid rgba(245,200,66,0.14);
  border-radius:20px;
  padding:20px 18px;
}

.ritual-card h3{
  font-size:16px;
  margin-bottom:8px;
}

.ritual-card p{
  color:var(--text-mid);
  font-size:13px;
  line-height:1.75;
  margin:0 0 12px;
}

.ritual-card a{
  color:var(--gold);
  text-decoration:none;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.section-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.sheet-overlay{
  align-items:flex-end;
}

.sheet{
  width:min(860px,100%);
  background:linear-gradient(180deg, rgba(31,15,5,0.98), rgba(16,5,0,0.98));
  border:1px solid rgba(245,200,66,0.16);
  border-bottom:none;
  border-radius:28px 28px 0 0;
  padding:12px 20px 24px;
  transform:translateY(24px);
  opacity:0;
  transition:all .25s ease;
}

.sheet-overlay.show .sheet{
  transform:translateY(0);
  opacity:1;
}

.sheet-handle{
  width:74px;
  height:5px;
  border-radius:999px;
  background:rgba(245,200,66,0.2);
  margin:0 auto 16px;
}

.sheet-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:18px;
}

.sheet-top h3{
  margin:0 0 6px;
}

.sheet-top p{
  margin:0;
  color:var(--text-mid);
  font-size:13px;
}

.sheet-close{
  background:transparent;
  color:var(--text-dim);
  border:none;
  font-size:14px;
  cursor:pointer;
}

.sheet-subgrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}

.sheet-chip{
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(245,200,66,0.14);
  background:rgba(255,255,255,0.04);
  color:var(--text-mid);
  font-size:13px;
  line-height:1.6;
  cursor:pointer;
  transition:all .2s ease;
}

.sheet-chip:hover,
.sheet-chip.active{
  border-color:rgba(245,200,66,0.38);
  background:rgba(245,200,66,0.1);
  color:var(--gold);
}

.chat-context{
  padding:12px 14px;
  border-top:1px solid rgba(245,200,66,0.08);
  border-bottom:1px solid rgba(245,200,66,0.08);
  background:rgba(255,255,255,0.025);
  display:grid;
  gap:12px;
}

.context-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.context-pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.16);
  background:rgba(245,200,66,0.06);
  color:var(--gold);
  font-size:11px;
  letter-spacing:.6px;
  text-transform:uppercase;
}

.context-pill.subtle{
  color:var(--text-mid);
}

.context-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.context-action{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.14);
  background:transparent;
  color:var(--text-mid);
  font-size:11px;
  cursor:pointer;
  transition:all .2s ease;
}

.context-action:hover{
  border-color:rgba(245,200,66,0.34);
  color:var(--gold);
  background:rgba(245,200,66,0.07);
}

.context-note{
  color:var(--text-dim);
  font-size:12px;
  line-height:1.7;
}

.guide-voice-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.voice-pill{
  padding:9px 12px;
  border-radius:999px;
  border:1px dashed rgba(245,200,66,0.18);
  color:var(--text-dim);
  font-size:11px;
}

.top-link-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.top-link{
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid rgba(245,200,66,0.14);
  color:var(--text-mid);
  font-size:12px;
}

.top-link:hover{
  color:var(--gold);
  border-color:rgba(245,200,66,0.35);
}

.page-shell{
  min-height:100vh;
  background:radial-gradient(circle at top, rgba(245,200,66,0.08), transparent 26%), var(--bg);
}

.page-section{
  max-width:980px;
  margin:0 auto;
  padding:74px 20px 48px;
}

.page-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
}

.page-card{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(245,200,66,0.16);
  border-radius:22px;
  padding:22px 20px;
}

.page-card ul{
  color:var(--text-mid);
  padding-left:18px;
  margin:12px 0 0;
}

.page-card li{
  margin-bottom:8px;
}

@media (max-width:860px){
  .daily-card.wide{
    grid-column:span 1;
  }
}

@media (max-width:640px){
  .hero-ask-card{
    padding:16px;
    border-radius:22px;
  }

  .hero-input{
    min-height:112px;
    padding:16px 16px 48px;
  }

  .hero-ask-actions{
    align-items:stretch;
  }

  .hero-submit{
    width:100%;
  }

  .sheet{
    padding:12px 16px 20px;
  }

  .sheet-subgrid,
  .guide-grid,
  .category-grid,
  .daily-grid,
  .ritual-grid,
  .page-grid{
    grid-template-columns:1fr;
  }
}

.hero-topbar{
  width:min(var(--container-main),100%);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.hero-trust{
  display:grid;
  gap:6px;
  max-width:520px;
}

.hero-trust-label,
.hero-language-label,
.hero-card-label,
.hero-chip-head span{
  color:var(--gold-dim);
  font-size:11px;
  letter-spacing:1.2px;
  text-transform:uppercase;
}

.hero-trust p{
  margin:0;
  color:var(--text-mid);
  font-size:14px;
  line-height:1.7;
}

.hero-language{
  min-width:240px;
  display:grid;
  gap:8px;
  justify-items:end;
}

.hero-language-switch{
  display:inline-flex;
  gap:8px;
  padding:7px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.12);
  background:rgba(255,255,255,0.04);
  box-shadow:var(--shadow);
}

.hero-lang-btn{
  min-width:96px;
}

.entry-modes{
  width:fit-content;
  margin:0 auto;
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(245,200,66,0.12);
  background:rgba(255,255,255,0.04);
  box-shadow:var(--shadow);
}

.entry-mode{
  min-width:114px;
  padding:10px 16px;
  font-size:13px;
}

.hero-copy{
  max-width:780px;
}

.hero-copy h1{
  text-wrap:balance;
}

.hero-ask-card{
  max-width:var(--container-chat);
  padding:24px;
}

.hero-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.hero-card-head h2{
  margin:8px 0 0;
  font-family:'Cinzel',serif;
  font-size:clamp(20px,3vw,28px);
  line-height:1.2;
  color:var(--gold);
}

.hero-guide-chip{
  min-width:170px;
  display:grid;
  gap:4px;
  text-align:left;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(245,200,66,0.18);
  background:rgba(255,255,255,0.04);
  color:var(--text-mid);
}

.hero-guide-chip span{
  color:var(--text-dim);
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.hero-guide-chip strong{
  color:var(--gold);
  font-family:'Cinzel',serif;
  font-size:14px;
}

.hero-meta{
  max-width:620px;
  font-size:13px;
  line-height:1.7;
}

.hero-chip-stack{
  max-width:var(--container-chat);
  margin:0 auto;
  display:grid;
  gap:12px;
}

.hero-chip-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.hero-chip-head small{
  color:var(--text-dim);
  font-size:12px;
}

.hero-chip-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.hero-chip{
  min-height:64px;
  padding:14px 16px;
  border-radius:20px;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  font-size:13px;
  line-height:1.5;
}

.category-drawer{
  max-width:var(--container-main);
  margin:0 auto;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(245,200,66,0.14);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.category-drawer-body{
  padding-top:18px;
}

.section-title-compact{
  margin:0 0 18px;
  text-align:left;
}

.section-title-compact h2{
  margin-top:10px;
}

.category-grid{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}

.category-card{
  min-height:122px;
}

.guide-drawer{
  box-shadow:var(--shadow);
}

.guide-option{
  min-height:122px;
}

body.chat-active .hero{
  padding-top:28px;
  padding-bottom:18px;
}

body.chat-active .hero-shell{
  gap:14px;
}

body.chat-active .hero-topbar{
  margin-bottom:4px;
}

body.chat-active .hero-trust p,
body.chat-active .hero-helper,
body.chat-active #entry-modes,
body.chat-active .hero-chip-stack,
body.chat-active .hero-category-section,
body.chat-active .experience-support-section{
  display:none;
}

body.chat-active .hero-copy{
  max-width:var(--container-chat);
  margin:0 auto;
  text-align:center;
}

body.chat-active .hero-kicker{
  padding:6px 12px;
}

body.chat-active .hero-copy h1{
  font-size:clamp(26px,3vw,40px);
  margin-bottom:4px;
}

body.chat-active .hero-ask-card{
  max-width:var(--container-chat);
  margin:0 auto;
  padding:18px;
  border-radius:24px;
}

body.chat-active #guide-drawer{
  max-width:var(--container-chat);
  margin:0 auto;
}

body.chat-active #guide-drawer summary{
  padding:12px 16px;
}

body.chat-active .hero-card-head{
  margin-bottom:14px;
}

body.chat-active .hero-card-head h2{
  font-size:18px;
}

body.chat-active .hero-input{
  min-height:88px;
}

@media (max-width:900px){
  .hero-topbar{
    align-items:stretch;
  }

  .hero-language{
    width:100%;
    justify-items:stretch;
  }

  .hero-language-switch{
    width:100%;
    justify-content:space-between;
  }

  .hero-chip-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:640px){
  .hero-topbar{
    gap:14px;
  }

  .hero-trust p{
    font-size:13px;
  }

  .hero-lang-btn{
    min-width:0;
    flex:1;
  }

  .hero-card-head{
    gap:12px;
  }

  .hero-guide-chip{
    width:100%;
  }

  .hero-chip-row{
    grid-template-columns:1fr;
  }

  body.chat-active .hero{
    padding-top:18px;
  }

  body.chat-active .hero-copy h1{
    font-size:28px;
  }
}
