:root{
  --bg: rgba(255,255,255,0.68);
  --text: #1f2937;
  --brand: #3b82f6;
  --brand-2: #22d3ee;
  --shadow: 0 10px 30px rgba(3,7,18,.24);
  --radius: 18px;
  --header-h: 64px;
}
*{box-sizing:border-box}
html,body{
  margin:0;
  color:var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:#000; /* fallback */
}

html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
}
body{
  margin:0;
  color:var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background-image: url("assets/img/1_NemuSat.png");
  background-attachment: fixed; /* smoother on mobile */
  background-size: cover;
  background-position: center;
  background-repeat:no-repeat;
}
@media (min-width: 768px){
  body{ background-attachment: fixed; }
}
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background-image: url("assets/img/1_NemuSat.png");
  background-size: cover; background-position: center; background-repeat: no-repeat;
  will-change: transform;
}

img{max-width:100%; height:auto; display:block}
.container{width:min(1100px, 92vw); margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:1rem;top:1rem;background:#fff;color:#000;padding:.5rem 1rem;border-radius:8px;z-index:1001}

/* Header / Nav */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index:1000;
  isolation:isolate;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: rgba(18,18,18,0.32);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 480px){
  .site-header{ backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0}
.brand{font-weight:800;letter-spacing:.3px;color:#fff}

/* Primary nav (desktop) */
.primary-nav{display:flex; align-items:center}
.nav-list{display:flex;gap:.2rem;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.nav-list a{
  display:inline-block;padding:.6rem .8rem;border-radius:999px;
  color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.18);
  transition: transform .15s ease, background .2s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.nav-list a:hover{background:rgba(255,255,255,.12);transform:translateY(-1px)}

/* Mobile menu toggle */
.nav-toggle{
  display:inline-flex; flex-direction:column; gap:4px;
  width:44px; height:44px; align-items:center; justify-content:center;
  border-radius:10px; border:1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color:#fff; cursor:pointer;
}
.nav-toggle .nav-toggle-bar{width:22px; height:2px; background:#fff; display:block; border-radius:2px}
@media (min-width: 900px){
  .nav-toggle{ display:none; }
}

/* Off‑canvas nav for mobile */
@media (max-width: 899.98px){
  .primary-nav{
    position: fixed;
    top: var(--header-h); right: 0; left: 0;
    transform: translateY(-6px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-header.is-open .primary-nav{
    opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav-list{
    flex-direction: column; gap: 0; 
    background: rgba(12,12,12,.88);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: .4rem;
  }
  .nav-list a{
    display:block; width:100%; padding: 14px 12px;
    border-radius: 10px; border:none;
  }
}

/* Desktop full-width, no separators */
@media (min-width: 900px){
  .site-header .nav-wrap{ width:100%; max-width:none; padding-left:24px; padding-right:24px; }
  .site-header .container{ width:100%; max-width:none; }
  .nav-list{ flex:1; justify-content: space-between; gap:0; }
  .nav-list a{ border:none !important; background: transparent !important; padding:.6rem .8rem; }
}

/* Sections */
.section{padding: clamp(56px, 8vw, 110px) 0;}
.hero .container{color:#fff;text-shadow: 0 2px 14px rgba(0,0,0,.35)}
.hero-title{font-size: clamp(26px, 5.5vw, 52px); margin:0 0 .6rem; font-weight:800}
.hero-subtitle{font-size: clamp(15px, 3.5vw, 22px);max-width: 850px;margin:0 0 1.2rem}
.cta-row{display:flex; gap:.8rem; flex-wrap:wrap}
.btn{
  background:linear-gradient(90deg, var(--brand), var(--brand-2));
  border:none; color:#fff; padding:.9rem 1.1rem; border-radius:999px; text-decoration:none; box-shadow:var(--shadow); font-weight:700;
  min-height:44px; /* touch target */
}
.btn-outline{background:transparent;border:1px solid rgba(255,255,255,.7)}

/* Plain content wrapper */
.plain{padding: clamp(12px, 2.5vw, 24px)}
.plain h2{margin-top:0;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.55)}
.figure{margin: 12px 0 0}
.figure img{display:block; width:100%; height:auto}

/* Footer */
.site-footer{padding:32px 0; color:#fff; background:rgba(0,0,0,.6); border-top:1px solid rgba(255,255,255,.12)}
.footer-inner{display:flex; align-items:center; justify-content:space-between}
.footer-inner a{color:#fff}

/* Back-to-top button */
.back-to-top{
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1200;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; cursor: pointer;
  font-size: 22px; font-weight: 800; line-height: 48px;
  color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top:active{ transform: translateY(1px); }
.back-to-top.hidden{ opacity:0; pointer-events:none; transform: translateY(10px); }

/* Main offset for fixed header */
main{ padding-top: var(--header-h, 64px); }

/* Focus styles */
:focus-visible{ outline: 3px solid rgba(34,211,238,.9); outline-offset: 2px;}

body::after{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.45) 100%);
  pointer-events:none;
}




@media (max-width: 768px){
  /* Mobile: make background scroll with content for smoother performance */
  body::before,
  body::after{ position:absolute; }
}

/* === Footer logo layout (ChatGPT update) === */
.site-footer .footer-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-copy,
.footer-top {
  flex: 1 1 0;
}
.footer-logo-wrap {
  flex: 0 0 auto;
  text-align: center;
}
.footer-logo {
  /* display: block;
  margin-inline: auto;
  max-height: 28px;     desktop 
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;  centered fitted */

  height: clamp(280px, 4.5vw, 440px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .site-footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy,
  .footer-top {
    flex: 0 0 auto;
  }
  .footer-logo {
    max-height: 96x;   /* mobile */
    max-width: 420px;   
    /* 24x140 */
  }
}
