 :root{
    --bg:            #140f0d;
    --bg-alt:        #1c1412;
    --bg-alt-2:      #241a17;
    --ember:         #c4172c;
    --ember-bright:  #e8433d;
    --gold:          #c9a227;
    --gold-soft:     #e8ce7c;
    --parchment:     #f4ebdf;
    --ash:           #9c8b83;
    --line:          rgba(244,235,223,0.10);
    --shadow-ember:  0 0 40px rgba(196,23,44,0.25);
  }

  *{ box-sizing:border-box; }

  html{ scroll-behavior:smooth; }

  body{
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(196,23,44,0.16), transparent 60%),
      radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201,162,39,0.08), transparent 60%),
      var(--bg);
    color:var(--parchment);
    font-family:'Jost', sans-serif;
    font-weight:300;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3,h4,.font-display{
    font-family:'Cinzel', serif;
    letter-spacing:0.02em;
  }

  .mono{ font-family:'Space Mono', monospace; }

  a{ color:var(--gold-soft); text-decoration:none; }
  a:hover{ color:var(--ember-bright); }

  ::selection{ background:var(--ember); color:var(--parchment); }

  /* ---------- Nav ---------- */
  .navbar{
    background:rgba(20,15,13,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--line);
  }
  .navbar-brand{
    font-family:'Cinzel', serif;
    font-weight:700;
    letter-spacing:0.08em;
    color:var(--parchment) !important;
    font-size:1.05rem;
  }
  .navbar-brand .dragon-mark{ color:var(--ember); margin-right:.4rem; }
  .nav-link{
    color:var(--ash) !important;
    font-size:.9rem;
    letter-spacing:.03em;
    padding:.5rem 1rem !important;
  }
  .nav-link:hover{ color:var(--parchment) !important; }
  .btn-ember{
    background:linear-gradient(135deg, var(--ember), var(--ember-bright));
    border:none;
    color:var(--parchment);
    font-weight:500;
    letter-spacing:.02em;
    padding:.55rem 1.4rem;
    border-radius:2px;
    box-shadow:var(--shadow-ember);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .btn-ember:hover{
    color:var(--parchment);
    transform:translateY(-2px);
    box-shadow:0 6px 30px rgba(196,23,44,0.4);
  }
  .btn-outline-gold{
    border:1px solid var(--gold);
    color:var(--gold-soft);
    background:transparent;
    padding:.55rem 1.4rem;
    border-radius:2px;
    letter-spacing:.02em;
    transition:all .2s ease;
  }
  .btn-outline-gold:hover{
    background:var(--gold);
    color:var(--bg);
  }

  /* ---------- Hero ---------- */
  .hero{
    padding:7.5rem 0 5rem;
    position:relative;
    overflow:hidden;
  }
  .hero::before{
    content:"";
    position:absolute; inset:0;
    background-image:
      repeating-linear-gradient(90deg, transparent, transparent 79px, var(--line) 80px);
    opacity:.4;
    mask-image:linear-gradient(to bottom, black, transparent 80%);
    pointer-events:none;
  }
  .eyebrow{
    font-family:'Space Mono', monospace;
    font-size:.75rem;
    letter-spacing:.25em;
    text-transform:uppercase;
    color:var(--gold-soft);
  }
  .eyebrow::before{ content:"◆ "; color:var(--ember); }
  .hero h1{
    font-size:clamp(2.2rem, 5vw, 3.6rem);
    line-height:1.15;
    margin:1rem 0 1.4rem;
  }
  .hero h1 em{
    font-style:normal;
    color:var(--ember-bright);
  }
  .hero p.lead{
    color:var(--ash);
    font-size:1.15rem;
    max-width:640px;
  }
  .cycle-badge{
    display:inline-flex; align-items:center; gap:.5rem;
    border:1px solid var(--line);
    background:var(--bg-alt);
    padding:.5rem 1rem;
    border-radius:2px;
    font-family:'Space Mono', monospace;
    font-size:.82rem;
    color:var(--gold-soft);
    margin-top:1.8rem;
  }

  /* ---------- Section shell ---------- */
  section{ padding:5rem 0; position:relative; }
  .section-title{
    font-size:clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom:.6rem;
  }
  .section-sub{
    color:var(--ash);
    max-width:620px;
    margin-bottom:3rem;
  }
  .divider-rule{
    width:56px; height:2px;
    background:var(--ember);
    margin-bottom:1.2rem;
  }

  /* ---------- Pillar cards ---------- */
  .pillar-card{
    background:var(--bg-alt);
    border:1px solid var(--line);
    border-radius:4px;
    padding:2rem 1.8rem;
    height:100%;
    transition:border-color .25s ease, transform .25s ease;
  }
  .pillar-card:hover{
    border-color:var(--ember);
    transform:translateY(-4px);
  }
  .pillar-icon{
    font-size:1.8rem;
    display:inline-block;
    margin-bottom:1rem;
  }
  .pillar-card h3{
    font-size:1.05rem;
    margin-bottom:1rem;
  }
  .pillar-card ul{
    list-style:none;
    padding:0; margin:0;
    font-size:.92rem;
    color:var(--ash);
  }
  .pillar-card ul li{
    padding:.5rem 0;
    border-top:1px solid var(--line);
  }
  .pillar-card ul li:first-child{ border-top:none; }
  .pillar-card ul li strong{
    color:var(--parchment);
    font-weight:500;
    display:block;
  }

  /* ---------- Nossa Essência (missão / visão / valores) ---------- */
  .essence-card{
    background:var(--bg-alt);
    border:1px solid var(--line);
    border-left:3px solid var(--ember);
    border-radius:4px;
    padding:2rem 2rem;
    height:100%;
  }
  .essence-icon{
    font-size:1.7rem;
    display:inline-block;
    margin-bottom:.8rem;
  }
  .essence-card h3{
    font-size:1.15rem;
    margin-bottom:.8rem;
  }
  .essence-card p{
    color:var(--ash);
    font-size:.95rem;
    margin-bottom:0;
  }
  .values-heading{
    font-size:1.1rem;
    color:var(--gold-soft);
    text-align:center;
    margin:1rem 0 2rem;
    position:relative;
  }
  .values-heading::before, .values-heading::after{
    content:"";
    display:inline-block;
    width:40px; height:1px;
    background:var(--line);
    vertical-align:middle;
    margin:0 1rem;
  }
  .value-chip{
    text-align:center;
    padding:1.6rem 1rem;
    height:100%;
    border-radius:4px;
    transition:transform .25s ease, background .25s ease;
  }
  .value-chip:hover{
    background:var(--bg-alt);
    transform:translateY(-4px);
  }
  .value-icon{
    font-size:1.6rem;
    display:inline-block;
    width:56px; height:56px;
    line-height:56px;
    border-radius:50%;
    background:var(--bg-alt-2);
    border:1px solid var(--line);
    margin-bottom:.9rem;
  }
  .value-chip h4{
    font-family:'Cinzel', serif;
    font-size:.95rem;
    color:var(--parchment);
    margin-bottom:.5rem;
  }
  .value-chip p{
    color:var(--ash);
    font-size:.82rem;
    line-height:1.5;
    margin-bottom:0;
  }

  /* ---------- Wheel of 13 moons ---------- */
  .wheel-wrap{
    display:flex;
    justify-content:center;
    padding:2rem 0 1rem;
  }
  .wheel{
    position:relative;
    width:560px;
    max-width:100%;
    aspect-ratio:1/1;
  }
  .wheel-ring{
    position:absolute; inset:8%;
    border:1px dashed var(--line);
    border-radius:50%;
    animation:spin 120s linear infinite;
  }
  .wheel-ring.inner{
    inset:20%;
    border:1px solid var(--line);
    animation:spin 90s linear infinite reverse;
  }
  @keyframes spin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
  @media (prefers-reduced-motion: reduce){
    .wheel-ring{ animation:none; }
  }
  .wheel-center{
    position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:110px; height:110px;
    border-radius:50%;
    background:radial-gradient(circle at 35% 30%, var(--ember-bright), var(--ember) 60%, #7d0f1c 100%);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    box-shadow:var(--shadow-ember);
    text-align:center;
  }
  .wheel-center .num{ font-family:'Cinzel',serif; font-size:1.6rem; font-weight:700; line-height:1; }
  .wheel-center .lbl{ font-family:'Space Mono',monospace; font-size:.62rem; letter-spacing:.15em; margin-top:.2rem; }
  .wheel-node{
    position:absolute;
    width:78px;
    transform:translate(-50%,-50%);
    text-align:center;
    cursor:pointer;
    user-select:none;
  }
  .wheel-node .dot{
    width:44px; height:44px;
    margin:0 auto .35rem;
    border-radius:50%;
    background:var(--bg-alt-2);
    border:1px solid var(--line);
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem;
    transition:all .2s ease;
  }
  .wheel-node .name{
    font-size:.68rem;
    color:var(--ash);
    letter-spacing:.02em;
    line-height:1.2;
  }
  .wheel-node:hover .dot, .wheel-node.active .dot{
    border-color:var(--gold);
    background:var(--bg-alt);
    box-shadow:0 0 18px rgba(201,162,39,0.35);
    transform:scale(1.08);
  }
  .wheel-node:hover .name, .wheel-node.active .name{ color:var(--gold-soft); }

  /* ---------- Calendar accordion ---------- */
  .accordion-item{
    background:var(--bg-alt);
    border:1px solid var(--line);
    margin-bottom:.7rem;
    border-radius:4px !important;
    overflow:hidden;
  }
  .accordion-button{
    background:var(--bg-alt);
    color:var(--parchment);
    font-family:'Cinzel', serif;
    font-size:1rem;
    font-weight:600;
    box-shadow:none !important;
  }
  .accordion-button::after{ filter:invert(1) sepia(1) saturate(4) hue-rotate(-30deg); }
  .accordion-button:not(.collapsed){
    background:var(--bg-alt-2);
    color:var(--gold-soft);
  }
  .accordion-button:focus{ box-shadow:none; }
  .accordion-body{
    background:var(--bg-alt);
    padding-top:0;
  }
  .moon-tag{
    display:inline-flex; align-items:center; gap:.5rem;
    font-size:1.4rem;
  }
  .moon-meta{
    font-family:'Space Mono', monospace;
    font-size:.72rem;
    color:var(--ash);
    letter-spacing:.05em;
    margin-left:auto;
    margin-right:1rem;
    text-transform:uppercase;
    white-space:nowrap;
  }
  .event-row{
    display:flex;
    align-items:flex-start;
    gap:.9rem;
    padding:.75rem 0;
    border-top:1px solid var(--line);
  }
  .event-row:first-child{ border-top:none; }
  .event-date{
    font-family:'Space Mono', monospace;
    font-size:.8rem;
    color:var(--gold-soft);
    min-width:52px;
  }
  .event-icon{ font-size:1.05rem; }
  .event-title{ color:var(--parchment); font-size:.95rem; }
  .event-note{ color:var(--ash); font-size:.82rem; }
  .badge-workshop{
    background:var(--ember);
    color:var(--parchment);
    font-family:'Space Mono', monospace;
    font-size:.62rem;
    letter-spacing:.05em;
    padding:.2rem .5rem;
    border-radius:2px;
    margin-left:.5rem;
    vertical-align:middle;
  }

  /* ---------- Final CTA ---------- */
  .cta-final{
    background:linear-gradient(135deg, var(--bg-alt-2), var(--bg-alt));
    border:1px solid var(--line);
    border-radius:6px;
    padding:3.5rem 2rem;
    text-align:center;
    position:relative;
    overflow:hidden;
  }
  .cta-final::after{
    content:"🐉";
    position:absolute;
    font-size:12rem;
    opacity:.05;
    right:-2rem; bottom:-4rem;
    transform:rotate(-12deg);
  }
  .cta-final h2{ position:relative; z-index:1; }
  .cta-final p{ color:var(--ash); position:relative; z-index:1; }

  /* ---------- Footer ---------- */
  footer{
    border-top:1px solid var(--line);
    padding:3rem 0 2rem;
    color:var(--ash);
    font-size:.9rem;
  }
  footer h6{
    font-family:'Space Mono', monospace;
    font-size:.72rem;
    letter-spacing:.15em;
    text-transform:uppercase;
    color:var(--gold-soft);
    margin-bottom:.8rem;
  }
  footer a{ color:var(--ash); }
  footer a:hover{ color:var(--ember-bright); }
  .footer-bottom{
    border-top:1px solid var(--line);
    margin-top:2rem;
    padding-top:1.2rem;
    font-size:.8rem;
    text-align:center;
    color:var(--ash);
  }

  @media (max-width:767px){
    .wheel{ width:100%; height:auto; }
    .wheel-node{ width:60px; }
    .wheel-node .dot{ width:36px; height:36px; font-size:1.05rem; }
    .wheel-node .name{ font-size:.6rem; }
    .moon-meta{ display:block; margin:.3rem 0 0; }
  }
