
:root{
  --ink:#050608;
  --ink2:#0a0c11;
  --panel:#0d1018;
  --line:rgba(120,162,255,.20);
  --blue:#76a2ff;
  --ice:#dce8ff;
  --muted:#8e9ab7;
  --white:#f7f9ff;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--white);
  background:
    radial-gradient(circle at 15% 0%,rgba(59,99,225,.14),transparent 26rem),
    linear-gradient(180deg,#050608 0%,#090b10 52%,#050608 100%);
  font-family:Inter,"Helvetica Neue","Arial Narrow","Noto Sans JP","Yu Gothic UI",sans-serif;
  line-height:1.7;
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:999;
  opacity:.08;
  background-image:
    repeating-linear-gradient(0deg,rgba(255,255,255,.12) 0,rgba(255,255,255,.12) 1px,transparent 1px,transparent 3px);
  mix-blend-mode:overlay;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{width:min(var(--max),calc(100% - 36px));margin:auto}

.nav{
  position:fixed;left:0;right:0;top:0;z-index:30;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(3,4,7,.64);
  backdrop-filter:blur(15px);
}
.nav-inner{
  height:68px;display:flex;align-items:center;justify-content:space-between;gap:24px
}
.nav-logo{width:230px;max-height:38px;object-fit:contain;object-position:left center}
.nav-links{display:flex;gap:21px;font-size:12px;letter-spacing:.13em;font-weight:800}
.nav-links a{color:#a9b3c9;transition:.2s}
.nav-links a:hover{color:white;text-shadow:0 0 14px rgba(118,162,255,.8)}

.hero{
  min-height:100svh;
  display:flex;align-items:flex-end;
  position:relative;
  background:
    linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.02) 42%,rgba(0,0,0,.78) 92%,#050608 100%),
    url("assets/hero-blue.jpg") center 55%/cover no-repeat;
}
.hero:after{
  content:"";position:absolute;inset:0;pointer-events:none;
  box-shadow:inset 0 -100px 120px #050608;
}
.hero-copy{position:relative;z-index:2;padding:130px 0 68px;max-width:780px}
.eyebrow{font-size:11px;letter-spacing:.23em;color:#a9c3ff;font-weight:900;margin-bottom:18px}
.hero h1{
  font-size:clamp(29px,5.3vw,68px);line-height:1.05;letter-spacing:.02em;margin:0 0 19px;
  text-shadow:0 2px 30px rgba(17,49,129,.38)
}
.hero p{font-size:clamp(15px,1.55vw,19px);color:#e7edfb;margin:0 0 25px;white-space:pre-line}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 25px}
.tag{
  border:1px solid rgba(154,184,255,.35);background:rgba(2,5,13,.55);
  padding:6px 11px;font-size:10px;letter-spacing:.14em;font-weight:900;color:#d9e4ff
}
.buttons{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:0 16px;border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.48);font-size:11px;letter-spacing:.15em;font-weight:900;
  transition:.2s;cursor:pointer
}
.btn:hover{transform:translateY(-2px);border-color:#91b1ff;box-shadow:0 0 24px rgba(63,111,255,.22)}
.btn.primary{background:#edf2ff;color:#071020;border-color:#edf2ff}

.section{padding:90px 0;border-top:1px solid rgba(255,255,255,.055)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:34px}
.kicker{font-size:10px;letter-spacing:.22em;color:#7186bb;font-weight:900}
.section h2{margin:3px 0 0;font-size:clamp(27px,4vw,48px);letter-spacing:.02em}
.section-note{max-width:480px;color:var(--muted);font-size:13px}

.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.card{
  background:linear-gradient(180deg,rgba(18,22,33,.92),rgba(10,12,18,.94));
  border:1px solid var(--line);padding:25px;position:relative;overflow:hidden
}
.card:after{
  content:"";position:absolute;right:-45px;bottom:-70px;width:180px;height:180px;
  border:1px solid rgba(99,136,236,.12);transform:rotate(45deg)
}
.span-4{grid-column:span 4}.span-5{grid-column:span 5}.span-6{grid-column:span 6}.span-7{grid-column:span 7}.span-8{grid-column:span 8}.span-12{grid-column:span 12}
.card-label{font-size:9px;letter-spacing:.18em;font-weight:900;color:#7790cc;margin-bottom:13px}
.big{font-size:24px;font-weight:900;line-height:1.25;margin-bottom:8px}
.card p{margin:0;color:#a5aec4;font-size:13px}
.voice-lines{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:19px}
.voice-lines span{
  border-top:2px solid #729eff;background:linear-gradient(180deg,rgba(92,130,240,.13),transparent);
  padding:11px 3px 8px;text-align:center;color:#e4ebff;font-size:11px;font-weight:800
}

.profile{display:grid;grid-template-columns:150px 1fr;border-top:1px solid rgba(255,255,255,.07)}
.profile div{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.07);font-size:13px}
.profile div:nth-child(odd){color:#7180a2;font-weight:800}
.profile div:nth-child(even){color:#dbe3f5}

.demo{
  min-height:260px;display:flex;flex-direction:column;justify-content:flex-end;
  background:
   linear-gradient(180deg,transparent,rgba(2,4,8,.96)),
   radial-gradient(circle at 80% 15%,rgba(75,112,225,.27),transparent 35%),
   #0e1119;
}
.demo h3{font-size:30px;margin:0 0 2px}
.demo small{color:#7180a2;letter-spacing:.08em}
.demo-links{display:flex;gap:8px;margin-top:17px;flex-wrap:wrap}

.rule-strip{display:grid;grid-template-columns:repeat(6,1fr);border:1px solid var(--line)}
.rule{
  padding:20px 13px;min-height:112px;border-right:1px solid var(--line);
  background:rgba(11,14,21,.86)
}
.rule:last-child{border-right:0}
.rule b{display:block;font-size:11px;letter-spacing:.09em;margin-bottom:8px}
.rule span{font-size:12px;color:#8995af}
.rule.ok b{color:#c9dbff}.rule.no b{color:#fff}

.download{
  display:grid;grid-template-columns:1.3fr .7fr;gap:16px;align-items:stretch
}
.download-main{
  padding:36px;background:
    linear-gradient(130deg,rgba(57,88,174,.18),transparent 55%),
    #0c0f16;border:1px solid var(--line)
}
.download-main h3{font-size:clamp(27px,4vw,48px);margin:2px 0 8px}
.download-main p{color:#929eb8;max-width:650px}
.download-side{padding:28px;border:1px solid var(--line);background:#090b10}
.download-side code{color:#b9ccff;font-size:12px}
.disabled{opacity:.62;cursor:not-allowed}

.footer{
  border-top:1px solid rgba(255,255,255,.07);padding:42px 0 55px
}
.footer-grid{display:flex;justify-content:space-between;gap:34px;align-items:end}
.footer-logo{width:240px;opacity:.92}
.emoaf{width:150px;margin-top:25px;filter:none}
.footer p{font-size:11px;color:#68748e;margin:8px 0 0}
.footer-right{text-align:right;font-size:10px;letter-spacing:.1em;color:#63708b}

.reveal{opacity:0;transform:translateY(14px);transition:.6s ease}
.reveal.visible{opacity:1;transform:none}

@media(max-width:850px){
  .nav-links{display:none}.nav-logo{width:190px}
  .hero{background-position:57% center}
  .hero-copy{padding-bottom:50px}
  .span-4,.span-5,.span-6,.span-7,.span-8{grid-column:span 12}
  .rule-strip{grid-template-columns:repeat(2,1fr)}
  .rule{border-bottom:1px solid var(--line)}
  .download{grid-template-columns:1fr}
  .section-head{display:block}.section-note{margin-top:13px}
}
@media(max-width:560px){
  .wrap{width:min(var(--max),calc(100% - 22px))}
  .hero{min-height:800px;background-position:58% center}
  .hero h1{font-size:35px}
  .hero p{font-size:14px}
  .section{padding:68px 0}
  .profile{grid-template-columns:110px 1fr}
  .voice-lines{grid-template-columns:repeat(3,1fr)}
  .rule-strip{grid-template-columns:1fr}
  .rule{border-right:0}
  .footer-grid{display:block}.footer-right{text-align:left;margin-top:30px}
}


.character-shell{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 24% 32%, rgba(88,125,240,.18), transparent 22rem),
    linear-gradient(180deg,rgba(14,18,29,.98),rgba(8,10,15,.98));
  border:1px solid var(--line);
  min-height:780px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:10px;
  align-items:end;
}
.character-shell:before{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(255,255,255,.035) 52%, transparent 53%),
    radial-gradient(circle at 58% 55%, rgba(120,162,255,.12), transparent 24rem);
}
.character-figure{
  position:relative;
  min-height:780px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:40px 0 0;
}
.character-figure img{
  width:min(640px,94%);
  max-height:760px;
  object-fit:contain;
  object-position:center bottom;
  filter:
    drop-shadow(0 18px 44px rgba(0,0,0,.55))
    drop-shadow(0 0 28px rgba(82,121,240,.18));
}
.character-info{
  position:relative;
  z-index:1;
  padding:58px 56px 58px 18px;
  align-self:center;
}
.character-name{
  font-size:clamp(36px,5vw,74px);
  line-height:0.98;
  margin:0 0 10px;
}
.character-sub{
  font-size:14px;
  letter-spacing:.16em;
  color:#8da6de;
  font-weight:900;
  margin-bottom:20px;
}
.character-copy{
  font-size:18px;
  color:#edf3ff;
  white-space:pre-line;
  margin:0 0 24px;
}
.mini-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:26px 0 28px;
}
.mini-card{
  border:1px solid rgba(120,162,255,.18);
  background:rgba(9,12,19,.58);
  padding:14px 14px 12px;
}
.mini-card b{
  display:block;
  font-size:10px;
  letter-spacing:.18em;
  color:#7b93cc;
  margin-bottom:7px;
}
.mini-card span{
  font-size:13px;
  color:#edf3ff;
  line-height:1.5;
}
.character-note{
  font-size:12px;
  color:#7f8dad;
  max-width:420px;
}

@media(max-width:980px){
  .character-shell{
    grid-template-columns:1fr;
    min-height:unset;
  }
  .character-figure{
    min-height:540px;
    padding-top:34px;
  }
  .character-figure img{
    width:min(520px,84%);
    max-height:520px;
  }
  .character-info{
    padding:0 24px 32px;
  }
}
@media(max-width:560px){
  .character-figure{
    min-height:430px;
  }
  .character-figure img{
    width:min(410px,88%);
    max-height:430px;
  }
  .character-name{font-size:34px}
  .character-copy{font-size:16px}
  .mini-grid{grid-template-columns:1fr}
}


/* ===== V3 polish ===== */
.character-shell{
  position:relative;
  min-height:900px;
  grid-template-columns:1fr .95fr;
  background:
    radial-gradient(circle at 18% 36%, rgba(96,132,255,.24), transparent 26rem),
    radial-gradient(circle at 36% 78%, rgba(69,112,241,.14), transparent 22rem),
    linear-gradient(180deg, rgba(13,18,29,.98), rgba(7,9,14,.98));
}
.character-shell::after{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  opacity:.18;
  background:
    radial-gradient(circle at 28% 35%, rgba(129,165,255,.34), transparent 18rem),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.10) 0px,
      rgba(255,255,255,.10) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode:screen;
}
.character-figure{
  position:relative;
  min-height:900px;
  justify-content:flex-start;
  align-items:flex-end;
  padding-left:6px;
}
.character-figure::before{
  content:"";
  position:absolute;
  left:0; right:12%; bottom:0; top:8%;
  background:
    radial-gradient(circle at 42% 35%, rgba(88,124,236,.36), transparent 18rem),
    radial-gradient(circle at 28% 72%, rgba(54,94,219,.20), transparent 17rem);
  filter:blur(22px);
  pointer-events:none;
}
.character-figure img{
  position:relative;
  z-index:2;
  width:min(900px,112%);
  max-height:980px;
  margin-left:-120px;
  opacity:.46;
  object-fit:contain;
  object-position:left bottom;
  mix-blend-mode:screen;
  filter:
    drop-shadow(0 18px 44px rgba(0,0,0,.45))
    drop-shadow(0 0 34px rgba(82,121,240,.28));
}
.character-info{
  padding:74px 62px 72px 8px;
}
.character-name{
  letter-spacing:.01em;
}
.character-copy{
  font-size:19px;
  max-width:470px;
}
.mini-grid{
  gap:12px;
  margin:30px 0 30px;
}
.mini-card{
  background:rgba(10,13,20,.72);
  backdrop-filter:blur(2px);
}
.character-note{
  max-width:460px;
}

.mag-bar{
  display:inline-block;
  margin-bottom:14px;
  padding:5px 10px;
  border:1px solid rgba(120,162,255,.24);
  background:rgba(10,13,20,.58);
  color:#cfe0ff;
  font-size:10px;
  letter-spacing:.22em;
  font-weight:900;
}

.demo-stack{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:16px;
}
.demo-mini{
  min-height:150px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(78,118,236,.22), transparent 8rem),
    rgba(10,13,19,.92);
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.demo-mini b{
  font-size:24px;
  line-height:1;
}
.demo-mini span{
  font-size:12px;
  color:#94a2be;
}

.download{
  position:relative;
  overflow:hidden;
}
.download-side{
  position:relative;
  overflow:hidden;
}
.download-side::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,10,15,.08), rgba(8,10,15,.64));
  z-index:1;
}
.download-deco{
  position:absolute;
  right:-48px;
  bottom:-18px;
  width:250px;
  opacity:.18;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 24px rgba(82,121,240,.28));
  z-index:0;
}
.download-side > *{
  position:relative;
  z-index:2;
}

@media(max-width:980px){
  .character-shell{
    min-height:unset;
    grid-template-columns:1fr;
  }
  .character-figure{
    min-height:640px;
    justify-content:center;
    padding-left:0;
  }
  .character-figure img{
    width:min(720px,110%);
    max-height:680px;
    margin-left:-30px;
    opacity:.38;
  }
  .character-info{
    padding:12px 24px 38px;
  }
  .demo-stack{
    grid-template-columns:1fr;
  }
  .download-deco{
    width:190px;
    right:-28px;
    bottom:-10px;
  }
}
@media(max-width:560px){
  .character-figure{
    min-height:480px;
  }
  .character-figure img{
    width:min(520px,125%);
    max-height:520px;
    margin-left:-50px;
    opacity:.32;
  }
  .character-info{
    padding:4px 18px 28px;
  }
  .mag-bar{
    margin-bottom:10px;
  }
}


/* ===== V4 adjustments based on feedback ===== */
.hero{
  min-height:92svh;
  align-items:flex-end;
  background:
    linear-gradient(180deg,rgba(0,0,0,.04) 0%,rgba(0,0,0,.02) 38%,rgba(0,0,0,.34) 82%,#050608 100%),
    url("assets/hero-blue.jpg") center center/cover no-repeat;
}
.hero-copy{
  display:none;
}

.hero-banner-only{
  min-height:92svh;
  display:flex;
  align-items:flex-end;
}

.intro-strip{
  position:relative;
  margin-top:-12px;
  padding:38px 0 18px;
  border-top:1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(7,9,14,.98), rgba(5,6,8,1)),
    radial-gradient(circle at 25% 0%, rgba(70,112,241,.10), transparent 18rem);
}
.intro-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:24px;
  align-items:end;
}
.intro-copy h1{
  font-size:clamp(34px,5.3vw,66px);
  line-height:1.02;
  margin:0 0 16px;
}
.intro-copy p{
  font-size:clamp(15px,1.55vw,19px);
  color:#e7edfb;
  margin:0 0 22px;
  white-space:pre-line;
}
.intro-side{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-end;
  gap:16px;
}
.intro-side .eyebrow{
  margin-bottom:0;
}
.scroll-note{
  color:#6f7f9f;
  font-size:11px;
  letter-spacing:.18em;
  font-weight:800;
}

/* Character section: revert to clearer, more solid stand visual */
.character-shell{
  min-height:780px;
  grid-template-columns:1.05fr .95fr;
  background:
    radial-gradient(circle at 24% 32%, rgba(88,125,240,.18), transparent 22rem),
    linear-gradient(180deg,rgba(14,18,29,.98),rgba(8,10,15,.98));
}
.character-shell::after{
  display:none;
}
.character-figure{
  min-height:780px;
  justify-content:center;
  align-items:flex-end;
  padding-left:0;
}
.character-figure::before{
  content:"";
  position:absolute;
  left:7%; right:7%; bottom:0; top:6%;
  background:
    radial-gradient(circle at 42% 35%, rgba(88,124,236,.18), transparent 16rem);
  filter:blur(18px);
  pointer-events:none;
}
.character-figure img{
  width:min(640px,94%);
  max-height:760px;
  margin-left:0;
  opacity:1;
  mix-blend-mode:normal;
  filter:
    drop-shadow(0 18px 44px rgba(0,0,0,.55))
    drop-shadow(0 0 28px rgba(82,121,240,.18));
}
.character-info{
  padding:58px 56px 58px 18px;
}
.character-copy{
  font-size:18px;
  max-width:none;
}

@media(max-width:980px){
  .intro-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .intro-side{
    align-items:flex-start;
  }
  .character-shell{
    min-height:unset;
    grid-template-columns:1fr;
  }
  .character-figure{
    min-height:540px;
  }
  .character-figure img{
    width:min(520px,84%);
    max-height:520px;
  }
  .character-info{
    padding:0 24px 32px;
  }
}
@media(max-width:560px){
  .hero, .hero-banner-only{
    min-height:68svh;
  }
  .intro-strip{
    padding:28px 0 14px;
  }
  .intro-copy h1{
    font-size:36px;
  }
  .character-figure{
    min-height:430px;
  }
  .character-figure img{
    width:min(410px,88%);
    max-height:430px;
  }
  .character-info{
    padding:0 18px 26px;
  }
}


/* ===== V7 character layout adjustments ===== */
.character-shell{
  min-height:900px;
  grid-template-columns:0.95fr 1.05fr;
  overflow:hidden;
}

.character-figure{
  min-height:900px;
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding:0;
  overflow:hidden;
}

.character-figure::before{
  left:0;
  right:0;
  bottom:0;
  top:0;
  background:
    radial-gradient(circle at 38% 42%, rgba(93,129,244,.26), transparent 19rem),
    radial-gradient(circle at 34% 78%, rgba(63,101,226,.15), transparent 18rem);
  filter:blur(24px);
}

.character-figure img{
  width:min(860px,128%);
  max-height:980px;
  height:auto;
  margin-left:-46px;
  margin-bottom:-6px;
  object-fit:contain;
  object-position:left bottom;
  filter:
    drop-shadow(0 16px 42px rgba(0,0,0,.58))
    drop-shadow(0 0 26px rgba(82,121,240,.18));
}

.character-info{
  padding:64px 62px 60px 24px;
}

.character-name{
  font-size:clamp(34px,4.4vw,70px);
  line-height:.98;
  margin:0 0 14px;
  white-space:nowrap;
  word-break:keep-all;
  overflow-wrap:normal;
  text-wrap:nowrap;
}

.character-sub{
  margin-bottom:24px;
}

.character-copy{
  max-width:560px;
  font-size:18px;
}

.mini-grid{
  grid-template-columns:1fr 1fr;
}

@media(max-width:1200px){
  .character-shell{
    grid-template-columns:1fr 1fr;
  }
  .character-name{
    font-size:clamp(32px,4.1vw,58px);
  }
}

@media(max-width:980px){
  .character-shell{
    min-height:unset;
    grid-template-columns:1fr;
  }
  .character-figure{
    min-height:680px;
    justify-content:center;
  }
  .character-figure img{
    width:min(740px,118%);
    max-height:700px;
    margin-left:-10px;
  }
  .character-info{
    padding:8px 24px 34px;
  }
  .character-name{
    white-space:normal;
    text-wrap:balance;
    font-size:clamp(34px,8vw,54px);
  }
}

@media(max-width:560px){
  .character-figure{
    min-height:480px;
  }
  .character-figure img{
    width:min(520px,125%);
    max-height:500px;
    margin-left:-30px;
  }
  .character-info{
    padding:0 18px 26px;
  }
}
