/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --navy-deep:#071433;
  --navy:#0B1F4D;
  --blue:#2F6FED;
  --sky:#4FA8DE;
  --gold:#D4AF37;
  --gold-light:#F0D77B;
  --cream:#F7F8FB;
  --ink:#0F1B33;
  --ink-soft:#4A5570;
  --white:#FFFFFF;

  --font-display:'Sora', sans-serif;
  --font-body:'Inter', sans-serif;

  --radius:16px;
  --radius-sm:10px;
  --shadow-soft:0 20px 45px -20px rgba(11,31,77,0.35);
  --shadow-card:0 10px 30px -12px rgba(11,31,77,0.25);
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
.container{max-width:1180px;margin:0 auto;padding:0 24px;}
em{font-style:normal;color:var(--blue);}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;scroll-behavior:auto !important;}
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash{
  position:fixed;inset:0;z-index:999;
  background:radial-gradient(circle at 50% 30%, var(--navy) 0%, var(--navy-deep) 75%);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .7s ease, visibility .7s ease;
}
#splash.hide{opacity:0;visibility:hidden;pointer-events:none;}
.splash-inner{text-align:center;}
.splash-badge{
  width:120px;height:120px;object-fit:contain;
  animation:badgePop 1.1s cubic-bezier(.34,1.56,.64,1) both;
  filter:drop-shadow(0 10px 25px rgba(212,175,55,0.35));
}
@keyframes badgePop{
  0%{transform:scale(.3) rotate(-8deg);opacity:0;}
  60%{transform:scale(1.08) rotate(2deg);opacity:1;}
  100%{transform:scale(1) rotate(0);opacity:1;}
}
.splash-school{
  margin-top:18px;
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:.14em;
  font-size:.8rem;
  color:var(--gold-light);
}
.splash-loader{
  margin-top:22px;display:flex;gap:6px;justify-content:center;
}
.splash-loader span{
  width:7px;height:7px;border-radius:50%;background:var(--sky);
  animation:bounce 1s infinite ease-in-out;
}
.splash-loader span:nth-child(2){animation-delay:.15s;}
.splash-loader span:nth-child(3){animation-delay:.3s;}
@keyframes bounce{
  0%,80%,100%{transform:translateY(0);opacity:.5;}
  40%{transform:translateY(-6px);opacity:1;}
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:200;
  background:rgba(7,20,51,0);
  transition:background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled{
  background:rgba(7,20,51,0.92);
  backdrop-filter:blur(10px);
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
}
.nav-wrap{
  max-width:1180px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.brand{display:flex;align-items:center;gap:10px;}
.brand-crest{width:34px;height:34px;object-fit:contain;}
.brand-text{
  font-family:var(--font-display);font-weight:700;color:var(--white);
  font-size:1rem;letter-spacing:.01em;
}
.nav-links{display:flex;gap:28px;}
.nav-links a{
  color:rgba(255,255,255,0.85);font-size:.92rem;font-weight:500;
  transition:color .2s ease;
}
.nav-links a:hover{color:var(--gold-light);}
.nav-cta{padding:10px 18px;font-size:.85rem;}
@media (max-width:820px){
  .nav-links{display:none;}
}

/* ============================================================
   BUTTONS & CHIPS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 26px;border-radius:999px;font-family:var(--font-display);
  font-weight:700;font-size:.92rem;letter-spacing:.01em;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
  border:2px solid transparent;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--gold);color:var(--navy-deep);box-shadow:0 10px 25px -8px rgba(212,175,55,0.6);}
.btn-primary:hover{background:var(--gold-light);}
.btn-gold{background:var(--gold);color:var(--navy-deep);}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,0.5);color:var(--white);}
.btn-ghost:hover{background:rgba(255,255,255,0.1);}

.chip{
  display:inline-block;padding:8px 16px;border-radius:999px;
  font-family:var(--font-display);font-weight:600;font-size:.78rem;
  letter-spacing:.05em;text-transform:uppercase;
}
.chip-outline{border:1.5px solid rgba(255,255,255,0.5);color:var(--white);}
.chip-solid{background:var(--blue);color:var(--white);}
.chip-row{margin:16px 0 10px;}

.eyebrow{
  display:block;font-family:var(--font-display);font-weight:700;
  color:var(--blue);letter-spacing:.12em;text-transform:uppercase;
  font-size:.78rem;margin-bottom:10px;
}
.eyebrow-light{color:var(--sky);text-align:center;}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;min-height:100vh;display:flex;align-items:center;
  padding:120px 0 80px;overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;background-size:cover;background-position:center;
  filter:saturate(0.9);
}
.hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(120deg, rgba(7,20,51,0.94) 15%, rgba(11,31,77,0.85) 55%, rgba(47,111,237,0.55) 100%);
}
.hero-ring{
  position:absolute;border-radius:50%;border:2px solid rgba(79,168,222,0.35);
  pointer-events:none;
}
.ring-1{width:520px;height:520px;top:-160px;right:-140px;}
.ring-2{width:340px;height:340px;bottom:-120px;right:120px;border-color:rgba(212,175,55,0.3);}

.hero-content{
  position:relative;z-index:2;max-width:1180px;margin:0 auto;padding:0 24px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:50px;align-items:center;
}
.hero-text h1{
  font-family:var(--font-display);font-weight:800;
  font-size:clamp(2.4rem,5vw,3.6rem);line-height:1.05;color:var(--white);
  margin-top:16px;
}
.hero-text .accent{color:var(--gold);}
.hero-slogan{
  font-family:var(--font-display);font-weight:800;color:var(--sky);
  letter-spacing:.08em;font-size:1.1rem;margin-top:16px;
}
.hero-sub{
  color:rgba(255,255,255,0.82);font-size:1.02rem;line-height:1.6;
  margin-top:14px;max-width:480px;
}
.hero-actions{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap;}
.hero-actions.center{justify-content:center;}

.hero-photo{position:relative;justify-self:center;}
.photo-frame{
  width:280px;height:340px;border-radius:24px;overflow:hidden;
  border:4px solid rgba(255,255,255,0.25);box-shadow:var(--shadow-soft);
  transform:rotate(2deg);
}
.photo-frame img{width:100%;height:100%;object-fit:cover;}
.photo-tag{
  position:absolute;left:-10px;bottom:-18px;
  background:var(--white);border-radius:var(--radius-sm);
  padding:12px 18px;box-shadow:var(--shadow-card);
  display:flex;flex-direction:column;transform:rotate(-2deg);
}
.photo-tag strong{font-family:var(--font-display);font-size:.92rem;color:var(--navy);}
.photo-tag span{font-size:.74rem;color:var(--ink-soft);margin-top:2px;}

@media (max-width:900px){
  .hero-content{grid-template-columns:1fr;text-align:center;}
  .hero-sub{margin:14px auto 0;}
  .hero-actions{justify-content:center;}
  .hero-photo{margin-top:20px;}
  .photo-tag{left:50%;transform:translateX(-50%) rotate(0);bottom:-16px;}
}

/* ============================================================
   ABOUT
   ============================================================ */
.section{padding:96px 0;}
.about-grid{
  display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center;
}
.about-copy h2{
  font-family:var(--font-display);font-weight:800;font-size:clamp(1.8rem,3.4vw,2.6rem);
  color:var(--navy);line-height:1.15;margin-bottom:18px;
}
.about-copy p{color:var(--ink-soft);line-height:1.75;margin-bottom:16px;font-size:1.02rem;}
.about-stats{display:flex;gap:28px;margin-top:24px;flex-wrap:wrap;}
.stat{display:flex;flex-direction:column;}
.stat strong{font-family:var(--font-display);color:var(--blue);font-size:1.15rem;}
.stat span{font-size:.78rem;color:var(--ink-soft);margin-top:2px;text-transform:uppercase;letter-spacing:.05em;}
.about-poster img{
  border-radius:var(--radius);box-shadow:var(--shadow-card);
}
@media (max-width:860px){
  .about-grid{grid-template-columns:1fr;}
  .about-poster{order:-1;max-width:380px;margin:0 auto;}
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto{background:linear-gradient(180deg, var(--navy-deep), var(--navy) 60%, var(--navy-deep));}
.section-title-light{
  font-family:var(--font-display);font-weight:800;color:var(--white);
  text-align:center;font-size:clamp(1.8rem,3.4vw,2.5rem);margin:0 auto 48px;
  max-width:640px;line-height:1.2;
}
.manifesto-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;
}
.m-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius);padding:28px 24px;
  transition:transform .25s ease, background .25s ease;
}
.m-card:hover{transform:translateY(-6px);background:rgba(255,255,255,0.08);}
.m-icon{font-size:1.8rem;margin-bottom:14px;}
.m-card h3{font-family:var(--font-display);color:var(--gold-light);font-size:1.05rem;margin-bottom:10px;}
.m-card p{color:rgba(255,255,255,0.78);font-size:.94rem;line-height:1.6;}
@media (max-width:900px){
  .manifesto-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:600px){
  .manifesto-grid{grid-template-columns:1fr;}
}

/* ============================================================
   VOTE / CTA
   ============================================================ */
.vote{position:relative;padding:110px 0;overflow:hidden;}
.vote-bg{position:absolute;inset:0;background-size:cover;background-position:center;}
.vote-overlay{position:absolute;inset:0;background:linear-gradient(160deg, rgba(7,20,51,0.95), rgba(47,111,237,0.75));}
.vote-content{position:relative;z-index:2;text-align:center;max-width:640px;margin:0 auto;}
.vote-content h2{
  font-family:var(--font-display);font-weight:800;color:var(--white);
  font-size:clamp(1.9rem,3.6vw,2.8rem);line-height:1.15;margin:18px 0 20px;
}
.vote-date{color:var(--gold-light);font-weight:600;font-size:1.05rem;margin-bottom:8px;}
.vote-note{color:rgba(255,255,255,0.8);line-height:1.6;margin-bottom:10px;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{background:var(--navy-deep);padding:40px 0 28px;}
.footer-grid{
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:16px;padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand{display:flex;align-items:center;gap:12px;}
.footer-crest{width:38px;height:38px;object-fit:contain;}
.footer-brand strong{display:block;color:var(--white);font-family:var(--font-display);font-size:.95rem;}
.footer-brand span{display:block;color:rgba(255,255,255,0.6);font-size:.78rem;margin-top:2px;}
.footer-tag{
  font-family:var(--font-display);font-weight:800;color:var(--gold);
  letter-spacing:.08em;font-size:.9rem;
}
.footer-copy{
  text-align:center;color:rgba(255,255,255,0.45);font-size:.78rem;margin-top:18px;
}

.footer-credit{
  text-align:center;color:rgba(255,255,255,0.35);font-size:.72rem;margin-top:6px;
}

.msg-dev-links{
  display:flex;flex-direction:column;gap:6px;margin-top:8px;
}
.msg-dev-link{
  display:inline-flex;align-items:center;gap:6px;
  background:#25D366;color:#fff;text-decoration:none;
  font-size:.85rem;font-weight:600;padding:8px 12px;border-radius:10px;
  width:fit-content;
}
.msg-dev-link:hover{opacity:.9;}

/* ============================================================
   FLOATING ACTION BUTTONS
   ============================================================ */
.fab-stack{
  position:fixed;right:20px;bottom:20px;z-index:150;
  display:flex;flex-direction:column;gap:14px;align-items:center;
}
.fab{
  width:58px;height:58px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 28px -8px rgba(0,0,0,0.4);
  border:none;cursor:pointer;transition:transform .2s ease;
}
.fab:hover{transform:scale(1.08);}
.fab-icon{font-size:1.5rem;}
.fab-wa{background:#25D366;}
.fab-ai{background:linear-gradient(135deg, var(--gold), var(--gold-light));}

/* ============================================================
   AI ASSISTANT PANEL
   ============================================================ */
.ai-backdrop{
  position:fixed;inset:0;background:rgba(7,20,51,0.45);
  z-index:160;opacity:0;visibility:hidden;transition:opacity .3s ease, visibility .3s ease;
}
.ai-backdrop.show{opacity:1;visibility:visible;}

.ai-panel{
  position:fixed;right:20px;bottom:20px;z-index:170;
  width:360px;max-width:calc(100vw - 40px);height:520px;max-height:calc(100vh - 100px);
  background:var(--white);border-radius:20px;
  box-shadow:0 25px 60px -15px rgba(0,0,0,0.4);
  display:flex;flex-direction:column;overflow:hidden;
  transform:translateY(20px) scale(.96);opacity:0;visibility:hidden;
  transition:all .28s cubic-bezier(.34,1.56,.64,1);
}
.ai-panel.open{transform:translateY(0) scale(1);opacity:1;visibility:visible;}

.ai-header{
  background:linear-gradient(120deg, var(--navy), var(--blue));
  padding:16px 18px;display:flex;align-items:center;justify-content:space-between;
}
.ai-header-title{display:flex;align-items:center;gap:10px;}
.ai-avatar{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.15);
  display:flex;align-items:center;justify-content:center;font-size:1.1rem;
}
.ai-header-title strong{display:block;color:var(--white);font-family:var(--font-display);font-size:.92rem;}
.ai-header-title span{display:block;color:rgba(255,255,255,0.7);font-size:.72rem;margin-top:1px;}
.ai-close{
  background:none;border:none;color:rgba(255,255,255,0.85);font-size:1rem;
  cursor:pointer;width:30px;height:30px;border-radius:50%;
}
.ai-close:hover{background:rgba(255,255,255,0.12);}

.ai-messages{
  flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;
  background:#F3F5FA;
}
.msg{max-width:82%;padding:11px 14px;border-radius:14px;font-size:.88rem;line-height:1.5;}
.msg-bot{background:var(--white);color:var(--ink);align-self:flex-start;border-bottom-left-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.06);}
.msg-user{background:var(--blue);color:var(--white);align-self:flex-end;border-bottom-right-radius:4px;}
.msg-wa-link{
  display:inline-block;margin-top:8px;background:#25D366;color:#fff;
  padding:8px 14px;border-radius:999px;font-size:.8rem;font-weight:600;
}

.ai-suggestions{
  padding:10px 14px;display:flex;gap:8px;flex-wrap:wrap;background:var(--white);
  border-top:1px solid #eef0f5;
}
.chip-suggest{
  background:#EEF2FC;color:var(--navy);border:none;padding:7px 12px;
  border-radius:999px;font-size:.76rem;cursor:pointer;font-family:var(--font-body);
  transition:background .2s ease;
}
.chip-suggest:hover{background:#DCE6FB;}

.ai-input-row{
  display:flex;gap:8px;padding:12px 14px;background:var(--white);
  border-top:1px solid #eef0f5;
}
.ai-input-row input{
  flex:1;border:1.5px solid #e3e7f0;border-radius:999px;padding:11px 16px;
  font-family:var(--font-body);font-size:.88rem;outline:none;
}
.ai-input-row input:focus{border-color:var(--blue);}
.ai-send{
  width:42px;height:42px;border-radius:50%;border:none;background:var(--blue);
  color:var(--white);font-size:1rem;cursor:pointer;flex-shrink:0;
}
.ai-send:hover{background:var(--navy);}

@media (max-width:480px){
  .ai-panel{width:calc(100vw - 24px);right:12px;bottom:88px;height:60vh;}
  .fab-stack{right:14px;bottom:14px;}
}
