/* =========================================================================
   copipi — shared styles (variables, nav, footer)
   ========================================================================= */

:root {
  --bg:        #06070a;
  --bg-soft:   #0a0c10;
  --surface:   #111317;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.14);
  --mint:      #5EE8F0;
  --mint-soft: rgba(94,232,240,0.10);
  --ink:       #ffffff;
  --dim:       rgba(255,255,255,0.62);
  --faint:     rgba(255,255,255,0.40);
  --glow-mint: 0 0 26px rgba(94,232,240,0.55), 0 0 56px rgba(94,232,240,0.28);
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-jp:    "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1180px;
  --radius: 28px;
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6,7,10,0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(6,7,10,0.82); }
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand .name { font-family: var(--font-round); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; color: var(--ink); }

/* hamburger */
.hamburger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.hamburger span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}
.hamburger span:nth-child(1) { width: 22px; }
.hamburger span:nth-child(2) { width: 16px; }
.hamburger span:nth-child(3) { width: 22px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(280px, 80vw);
  background: var(--surface); z-index: 200;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; align-items: center; justify-content: center;
}
.drawer.open { transform: translateX(0); }
.drawer-nav { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.drawer-link {
  font-family: var(--font-round); font-weight: 700; font-size: 22px;
  color: var(--ink); transition: color .2s; text-decoration: none;
}
.drawer-link:hover { color: var(--mint); }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 199; opacity: 0; pointer-events: none; transition: opacity .35s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

/* appstore badge */
.appstore-badge { display: inline-block; transition: transform .2s, opacity .2s; }
.appstore-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.appstore-badge img { display: block; height: 44px; width: auto; }
.footer { border-top: 1px solid rgba(255,255,255,0.09); padding-block: 24px; text-align: center; }
.footer .wrap { padding: 0 24px; }
.footer .copy { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: rgba(255,255,255,0.40); letter-spacing: 0.1em; margin: 0 0 10px; }
.footer .eula { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: rgba(255,255,255,0.22); letter-spacing: 0.08em; text-decoration: none; transition: color .2s; }
.footer .eula:hover { color: rgba(255,255,255,0.62); }
