/* Home page only: the legacy base rules the home page still uses (moved from index.html). Loaded before css/site.css, so the bundle still wins ties. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.65;overflow-x:hidden;-webkit-font-smoothing:antialiased;transition:background .3s ease,color .3s ease}
[data-theme="light"] .mobile-menu{background:rgba(255,255,255,0.97)}
[data-theme="light"] .hero-canvas{opacity:.30;filter:brightness(.5) saturate(1.15)}
.theme-toggle{background:transparent;border:1px solid var(--border2);color:var(--text2);width:38px;height:38px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}
.theme-toggle:hover{border-color:var(--accent);color:var(--accent3)}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .icon-sun{display:none}
.theme-toggle .icon-moon{display:block}
[data-theme="light"] .theme-toggle .icon-sun{display:block}
[data-theme="light"] .theme-toggle .icon-moon{display:none}
.mobile-menu .theme-toggle{width:100%;height:auto;justify-content:flex-start;gap:.6rem;padding:.7rem 1rem;font-family:var(--sans);font-size:.95rem;font-weight:500}
.theme-toggle .tt-label{display:none}
.mobile-menu .theme-toggle .tt-label{display:inline}
#syrax-loader{position:fixed;inset:0;z-index:99999;background:#111e26;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.75rem;transition:opacity .55s ease,visibility .55s ease}
[data-theme="light"] #syrax-loader{background:#eef3f4}
#syrax-loader.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
html.no-loader #syrax-loader{display:none}
.syrax-loader-ringwrap{position:relative;width:184px;height:184px;display:flex;align-items:center;justify-content:center}
.syrax-loader-ring-outer{position:absolute;width:184px;height:184px;border-radius:50%;border:1px solid rgba(15,168,176,0.12);border-top-color:rgba(15,168,176,0.08);animation:syrax-loader-spin 2.4s linear infinite reverse}
.syrax-loader-ring{position:absolute;width:168px;height:168px;border-radius:50%;border:2px solid transparent;border-top-color:#0fa8b0;border-right-color:rgba(15,168,176,0.25);animation:syrax-loader-spin 1s linear infinite}
#syrax-loader .syrax-loader-mark{width:140px;height:140px;object-fit:contain;animation:syrax-loader-pulse 1.8s ease-in-out infinite}
.syrax-loader-label{font-family:var(--mono,'JetBrains Mono',monospace);font-size:.6875rem;text-transform:uppercase;letter-spacing:.18em;color:rgba(15,168,176,0.6)}
@media(prefers-reduced-motion:reduce){.syrax-loader-ring,.syrax-loader-ring-outer,#syrax-loader .syrax-loader-mark{animation:none}#syrax-loader{transition:opacity .2s ease}}
.nav-links{display:flex;align-items:center;gap:0;list-style:none}
.nav-links a{color:var(--text2);text-decoration:none;font-size:.78rem;font-weight:500;letter-spacing:.04em;padding:0 .8rem;height:90px;display:flex;align-items:center;transition:color .2s;border-bottom:2px solid transparent;white-space:nowrap}
.nav-links a:hover{color:var(--text)}
.nav-links a.active{color:var(--accent3);border-bottom-color:var(--accent)}
.nav-hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;border:none;background:transparent}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--text2);border-radius:2px;transition:all .3s}
.nav-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-hamburger.open span:nth-child(2){opacity:0}
.nav-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;position:fixed;top:90px;left:0;right:0;bottom:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:rgba(17,30,38,0.97);backdrop-filter:blur(24px);border-bottom:1px solid var(--border);z-index:999;padding:1rem 1.5rem 1.5rem}
.mobile-menu.open{display:block}
.mobile-menu a{display:block;color:var(--text2);text-decoration:none;font-size:.88rem;font-weight:500;padding:.75rem 0;border-bottom:1px solid var(--border);transition:color .2s}
.mobile-menu a:last-child{border-bottom:none}
.mobile-menu a:hover,.mobile-menu a:active{color:var(--accent3)}
@media(max-width:1240px){.nav-links a{padding:0 .45rem;font-size:.74rem;letter-spacing:.02em}.nav-cta .btn-ghost:first-child{display:none}}
@media(min-width:1241px) and (max-width:1355px){.nav-cta .btn-ghost,.nav-cta .btn-primary{white-space:nowrap}.nav-links a{padding:0 min(.8rem,calc((100vw - 1184px) / 14))}}
@media(min-width:1209px) and (max-width:1240px){.nav-cta .btn-ghost,.nav-cta .btn-primary{white-space:nowrap}.nav-links a{padding:0 min(.45rem,calc((100vw - 1153px) / 14))}}
@media(min-width:1093px) and (max-width:1208px){.nav-cta .btn-ghost,.nav-cta .btn-primary{white-space:nowrap}.nav-cta .theme-toggle+.btn-ghost{display:none}.nav-links a{padding:0 min(.45rem,calc((100vw - 1037px) / 14))}}
@media(min-width:901px) and (max-width:1092px){.nav-links{display:none}.nav-hamburger{display:flex}.nav-cta .btn-ghost{display:none}}
@media(max-width:900px){.nav-hamburger{display:flex}}
.btn-ghost{background:transparent;border:1px solid var(--border2);color:var(--text2);font-family:var(--sans);font-size:.8rem;font-weight:500;padding:.5rem 1.1rem;border-radius:6px;cursor:pointer;transition:all .2s;letter-spacing:.02em}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent3)}
.nav-mega{position:static}
.nav-dropdown{position:relative}
.nav-dropdown{position:relative}
.page{display:none;padding-top:90px;min-height:100vh;position:relative;z-index:1}
.page.active{display:block}
.hero{position:relative;min-height:calc(100vh - 90px);display:flex;align-items:center;overflow:visible;padding:6rem 2rem 5rem;z-index:1}
.hero-canvas{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:0;pointer-events:none}
.hero h1{font-family:var(--display);font-size:clamp(2.7rem,5.6vw,5rem);font-weight:800;line-height:1.08;letter-spacing:-.02em;max-width:none;margin-bottom:2rem;animation:fadeUp .8s .1s ease both;}
[data-theme="light"] .hero h1,[data-theme="light"] .hero h1 .ac,[data-theme="light"] .hero h1 .gl{text-shadow:none}
.tag{font-size:.6875rem;font-family:var(--mono);background:rgba(15,168,176,.1);border:1px solid rgba(15,168,176,.25);color:var(--accent);padding:.15rem .5rem;border-radius:100px;margin-left:.5rem;vertical-align:middle;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;display:inline-block}
section{padding:3.5rem 2rem;position:relative;background:transparent}
.zk-feat{display:flex;gap:1rem;padding:1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;transition:border-color .2s,box-shadow .2s}
.zk-feat{position:relative;overflow:hidden}
.zk-feat::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:0;transition:opacity .3s}
.zk-feat:hover{border-color:var(--border3);box-shadow:0 4px 20px rgba(15,168,176,.10)}
.zk-feat:hover::before{opacity:1}
.zk-feat h4,.zk-feat h3{font-family:var(--display);font-size:.9rem;font-weight:700;margin-bottom:.3rem}
.zk-feat p{font-size:.8rem;color:var(--text2);line-height:1.6}
.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.75rem;transition:border-color .2s,transform .2s,box-shadow .2s}
.card{position:relative;overflow:hidden}
.card::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:0;transition:opacity .3s}
.card:hover{border-color:var(--border3);transform:translateY(-2px);box-shadow:0 8px 30px rgba(15,168,176,.10)}
.card:hover::before{opacity:1}
.card h3{font-family:var(--display);font-size:1rem;font-weight:700;margin-bottom:.6rem}
.card p{font-size:.83rem;color:var(--text2);line-height:1.65}
.gov-dash-prop { background:var(--bg2); border:1px solid var(--border); border-radius:10px; padding:.9rem 1.1rem; transition:border-color .2s; }
.gov-dash-prop:hover { border-color:var(--border3); }
.gov-dash-prop:hover { border-color:var(--border3); }
.gov-dash-prop-head { display:flex; align-items:center; gap:.6rem; margin-bottom:.5rem; flex-wrap:wrap; }
.gov-dash-prop-status { font-family:var(--mono); font-size:.6875rem; padding:.15rem .55rem; border-radius:100px; margin-left:auto; }
.gov-dash-prop-status.passed { background:rgba(34,197,94,.1); color:#22c55e; border:1px solid rgba(34,197,94,.2); }
.gov-dash-prop-status.passed { background:rgba(34,197,94,.1); color:#22c55e; border:1px solid rgba(34,197,94,.2); }
.gov-dash-prop-status.active { background:rgba(15,168,176,.1); color:var(--accent3); border:1px solid rgba(15,168,176,.2); }
.gov-dash-prop-status.active { background:rgba(15,168,176,.1); color:var(--accent3); border:1px solid rgba(15,168,176,.2); }
.gov-dash-prop-status.pending { background:rgba(251,191,36,.08); color:#fbbf24; border:1px solid rgba(251,191,36,.18); }
.gov-dash-prop-status.pending { background:rgba(251,191,36,.08); color:#fbbf24; border:1px solid rgba(251,191,36,.18); }
.gov-dash-prop{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:.9rem 1rem;transition:border-color .2s}
.gov-dash-prop-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.45rem;flex-wrap:wrap}
.gov-dash-prop-status{font-family:var(--mono);font-size:.6875rem;padding:.12rem .5rem;border-radius:100px;margin-left:auto;text-transform:uppercase;letter-spacing:.05em}
.reveal.visible{opacity:1;transform:translateY(0)}
@media(max-width:900px){
    .nav-links{display:none}
  }
@media(max-width:640px){
    nav{padding:0 1rem}
    .hero h1{font-size:2rem;}
    .hero{padding:2.5rem 1rem 2rem;min-height:auto}
    .hero-actions{flex-direction:column;gap:.75rem}
    section{padding:2.5rem 1rem}
    .page-hero{padding:2rem 1rem 1.5rem}
    .page-hero h1{font-size:1.8rem;}
    .hero-sub{font-size:.95rem}
    .footer{padding:2.5rem 1rem 1.5rem}
    footer{padding:2.5rem 1rem 1.5rem}
  }
@media(max-width:380px){
    .hero h1{font-size:1.75rem}
  }
.role-toggle{width:32px;height:32px;border-radius:6px;background:transparent;border:1px solid var(--border2);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;flex-shrink:0;color:var(--text3);font-size:.9rem}
.role-toggle:hover{border-color:var(--accent);color:var(--accent)}
.role-body{border-top:1px solid var(--border);padding:1.75rem;display:none}
.role-body.open{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem}
.form-status{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;min-height:1.2rem}
.form-status.success{color:var(--green)}
.form-status.error{color:var(--gold)}
.role-body.open{grid-template-columns:1fr}
.role-body.open{padding:1.25rem}
@media(max-width:900px){
        .role-body.open{grid-template-columns:1fr}
      }
@media(max-width:600px){
        .role-body.open{padding:1.25rem}
      }
.gov-wallet-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:1rem; margin:2rem 0; }
.gov-wallet-btn { background:var(--surface); border:1px solid var(--border2); border-radius:14px; padding:1.5rem 1rem; display:flex; flex-direction:column; align-items:center; gap:.75rem; cursor:pointer; transition:all .22s; position:relative; }
.gov-wallet-btn:hover { border-color:var(--accent); background:rgba(15,168,176,.06); transform:translateY(-2px); }
.gov-wallet-btn.connected { border-color:var(--accent3); background:rgba(0,174,199,.06); }
.gov-wallet-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; }
.gov-wallet-name { font-size:.78rem; font-weight:600; color:var(--text2); text-align:center; }
.gov-wallet-badge { position:absolute; top:.5rem; right:.5rem; width:8px; height:8px; border-radius:50%; background:var(--accent3); display:none; }
.gov-wallet-btn.connected .gov-wallet-badge { display:block; }
.gov-connected-bar { background:rgba(0,174,199,.07); border:1px solid rgba(0,174,199,.2); border-radius:12px; padding:1rem 1.5rem; display:none; align-items:center; justify-content:space-between; margin-bottom:2rem; }
.gov-connected-bar.show { display:flex; }
.gov-proposals-grid { display:flex; flex-direction:column; gap:1rem; margin-top:1.5rem; }
@media(max-width:1100px) {
    .gov-wallet-grid { grid-template-columns:repeat(3,1fr); }
  }
@media(max-width:768px) {
    .gov-wallet-grid { grid-template-columns:repeat(2,1fr); }
  }
@media (max-width: 900px) {
    html, body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
    * { -webkit-tap-highlight-color: transparent; }
    button, a, [role="button"] { touch-action: manipulation; }
    img, canvas, video, embed, object { max-width: 100%; }
    h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; hyphens: none; }
    input, select, textarea { font-size: 16px !important; }
    .hero-canvas { width: 100%; max-width: 100vw; }
  }
@media (max-width: 900px) {
    nav { padding: 0 1.5rem; }
    .role-body.open { grid-template-columns: 1fr; }
    .gov-wallet-grid { grid-template-columns: repeat(3, 1fr); }
  }
@media (max-width: 768px) {

    
    nav {
      height: 72px;
      padding: 0 max(1.25rem, env(safe-area-inset-left));
      padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    
    
    .nav-links { display: none; }
    
    .nav-cta .btn-ghost,
    .nav-cta a.btn-primary,
    .nav-hamburger { display: flex !important; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0.5rem; }
    
    
    [data-theme="light"] .hero-canvas { opacity: .14; filter: brightness(.45) saturate(1.1); }

    
    .page { padding-top: 72px; }
    .hero { min-height: auto; padding: 1.75rem 1.25rem 1.5rem; }
    .nl-panel { top: 72px; }

    
    .mobile-menu {
      top: 64px;
      padding: 0.75rem max(1.25rem, env(safe-area-inset-left)) max(1.75rem, env(safe-area-inset-bottom));
      padding-right: max(1.25rem, env(safe-area-inset-right));
    }
    .mobile-menu a {
      padding: 0.875rem 0;
      font-size: 0.95rem;
      font-weight: 500;
      letter-spacing: 0.01em;
    }
    

    
    .hero-content { text-align: center; }
    .hero h1 {
      font-size: clamp(2rem, 8.5vw, 2.8rem);
      line-height: 1.08;
      letter-spacing: -0.025em;
      margin: 0.875rem 0 1rem;
    }
    .hero-sub {
      font-size: 0.92rem;
      line-height: 1.7;
      max-width: 360px;
      margin: 0 auto 1.25rem;
    }
    .hero-actions {
      flex-direction: column;
      align-items: stretch;
      gap: 0.625rem;
      max-width: 320px;
      margin: 0 auto 1.25rem;
    }
    .hero-actions .btn-lg {
      width: 100%;
      text-align: center;
      justify-content: center;
      padding: 0.9rem 1.5rem;
      font-size: 0.9rem;
      min-height: 52px;
    }
    
    .hero-status {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem 1.25rem;
      padding-top: 1.25rem;
      margin-top: 1.25rem;
      max-width: 360px;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
      border-top: 1px solid var(--border);
    }

    
    section, .section { padding: 3rem 1.25rem; }

    
    .page-hero h1,
    .page-hero p { text-align: center; }
    
    .eco-card, .eco-card *, .card, .card * { text-align: center; }
    .eco-card h3, .eco-card h4, .eco-card p,
    .card h3, .card h4, .card p,
    .zk-feat h4, .zk-feat p,
    .feat-icon, .card-icon, .eco-icon,.zk-feat h3{ text-align: center; }
    .section-inner,
    .page-hero-inner,
    .footer-inner,
    .section-title {
      font-size: clamp(1.6rem, 6vw, 2.1rem);
      line-height: 1.18;
      letter-spacing: -0.02em;
      margin-top: 0.75rem;
    }
    .page-hero { padding: 2.5rem 1.25rem 2rem; }
    .page-hero h1 { font-size: clamp(1.75rem, 6.5vw, 2.5rem); line-height: 1.15; }

    

    

    

    

    

    

    
    .btn-primary, .btn-ghost, .btn-secondary { min-height: 44px; }

    

    

    

    
    .gov-wallet-grid { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }

    
    
    .zk-feat { flex-direction: column; align-items: center; text-align: center; }
    .zk-feat h4,.zk-feat h3{ text-align: center; }
    .zk-feat p { text-align: center; }
    .rwa-card { text-align: center; }
    .card { text-align: center; }
    
    
    
    
    
    
    


    
    .nl-panel { width: 100vw; border-radius: 0; right: -100vw; }
    .nl-row { grid-template-columns: 1fr; }
    .nl-trigger { bottom: max(1.25rem, env(safe-area-inset-bottom)); right: max(1.25rem, env(safe-area-inset-right)); }

    
    .sx-win { right: 1rem; bottom: 5.5rem; width: calc(100vw - 2rem); max-height: 70svh; }
    .sx-launcher { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }

    
    .role-body.open { grid-template-columns: 1fr; padding: 1.25rem; }
  }
@media (max-width: 480px) {
    nav { height: 60px; padding: 0 1rem; }
    .mobile-menu { top: 60px; }
    .page { padding-top: 60px; }
    .hero { min-height: auto; padding: 1.5rem 1rem 1.25rem; }
    .nl-panel { top: 60px; }

    .hero h1 { font-size: clamp(1.85rem, 8.5vw, 2.3rem); }
    .hero-sub { font-size: 0.9rem; }
    .hero-actions { max-width: 300px; }

    section, .section { padding: 2.5rem 1rem; }
    .page-hero { padding: 2rem 1rem 1.5rem; }

    .gov-wallet-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    .footer, footer { padding: 2.5rem 1rem max(1.5rem, env(safe-area-inset-bottom)); padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
    .sx-win { right: 0.75rem; bottom: 5rem; width: calc(100vw - 1.5rem); }
    .sx-launcher { right: max(0.75rem, env(safe-area-inset-right)); bottom: max(0.75rem, env(safe-area-inset-bottom)); }
  }
@media(prefers-reduced-motion:reduce){
    *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
    .reveal{opacity:1!important;transform:none!important}
    .hero h1,.hero-badge,.hero-sub,.hero-actions,.hero-status{animation:none!important;opacity:1!important;transform:none!important}
  }
@media (max-width: 375px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { max-width: 100%; }
  }
@media (max-width: 600px) {
    .tag { font-size: .6875rem; margin-left: 0.3rem; }
  }
@media print {
    *,*::before,*::after{color:#000!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important}
    nav,footer,.mobile-menu,#chat-btn,.skip-link,canvas,.btn-primary,.btn-ghost,.btn-lg{display:none!important}
    .page{display:block!important;opacity:1!important}
    .section-title,.hero h1{color:#000!important}
    a[href]:after{content:" ("attr(href)")";font-size:.75em}
    a[href^="#"]:after,a[href^="javascript:"]:after{content:""}
    .card,.feature-card,.grid-card{break-inside:avoid;border:1px solid #ccc!important}
  }
