/* Usagi Hub — site.css (PRD + typography: Inter body / Sora display) */
@import url('/assets/tokens.css');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 11, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--bdr);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  min-width: 0;
  color: var(--white);
}

.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.15;
}

.nav-brand-title {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-brand-usagi {
  font-size: 18px;
  color: var(--gold);
}

.nav-brand-hub {
  font-size: 15px;
  color: var(--white);
}

.nav-brand-slogan {
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--txt3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  padding: 7px 12px;
  border-radius: 7px;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(212, 166, 58, 0.08);
  text-shadow: 0 0 18px rgba(212, 166, 58, 0.22);
}

.nav-links a.active {
  color: var(--white);
  background: rgba(229, 231, 235, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: 7px;
  padding: 2px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--txt3);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-switch button.active {
  background: var(--gold-bg);
  color: var(--gold);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid var(--bdr2);
  background: var(--card);
  color: var(--txt2);
  cursor: pointer;
  font-size: 14px;
}

.prefs-dropdown {
  position: relative;
}

.prefs-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--bdr2);
  border-radius: 7px;
  background: var(--card);
  color: var(--txt2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.prefs-dropdown__caret {
  font-size: 10px;
  opacity: 0.7;
}

.prefs-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  background: var(--surf);
  border: 1px solid var(--bdr);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 400;
}

.prefs-dropdown__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prefs-dropdown__group + .prefs-dropdown__group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--bdr);
}

.prefs-dropdown__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt3);
  padding: 2px 6px;
}

.prefs-dropdown__group button {
  border: 0;
  background: transparent;
  color: var(--txt2);
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.prefs-dropdown__group button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.prefs-dropdown__group button.active {
  background: var(--gold-bg);
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sm);
  padding: 8px 16px;
  min-height: 44px;
  transition: all 0.25s ease;
}

.btn-outline {
  border: 1px solid var(--bdr2);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(229, 231, 235, 0.05);
  border-color: rgba(229, 231, 235, 0.2);
}

.btn-gold {
  background: var(--gold);
  color: #0a0c12;
  font-weight: 600;
  border: 0;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

.btn-block {
  width: 100%;
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid var(--bdr2);
  background: var(--card);
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}

.nav-mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 190;
  background: var(--bg2);
  border-bottom: 1px solid var(--bdr);
  padding: 16px 20px 20px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  z-index: 185;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.nav-mobile-links a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 10px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--txt2);
  transition: all 0.25s ease;
}

.nav-mobile-links a:hover {
  color: var(--gold);
  background: rgba(212, 166, 58, 0.08);
}

.nav-mobile-links a.active {
  color: var(--white);
  background: rgba(229, 231, 235, 0.06);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-mobile-lang {
  margin-bottom: 12px;
}

.nav-mobile-lang .lang-switch {
  width: 100%;
  justify-content: center;
}

.nav-mobile-lang .lang-switch button {
  flex: 1;
  padding: 10px;
}

.hero-demo h1 .hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--gold);
}

/* ── Main ── */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  min-height: 50vh;
}

/* ── Footer ── */
.site-footer {
  margin-top: 56px;
  background: var(--bg);
  border-top: 1px solid var(--bdr);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-main {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.footer-main .footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(0, 1.85fr);
  gap: 48px 80px;
  align-items: start;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.footer-brand-name {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-brand-slogan {
  font-size: 12px;
  font-weight: 400;
  font-style: italic;
  color: var(--txt3);
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 14px;
  color: var(--txt2);
  line-height: 1.8;
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--bdr2);
  background: rgba(19, 24, 41, 0.6);
  display: grid;
  place-items: center;
  color: var(--txt2);
  transition: all 0.25s ease;
}

.footer-social a:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: var(--gold-bg);
}

.footer-social a svg {
  display: block;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}

.footer-col-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bdr);
}

.footer-col-intro {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin: -4px 0 14px;
  line-height: 1.8;
}

.footer-col-list {
  list-style: none;
}

.footer-col-list li {
  margin-bottom: 12px;
}

.footer-col-list a {
  font-size: 14px;
  font-weight: 400;
  color: var(--txt2);
  transition: all 0.25s ease;
  display: inline-block;
  line-height: 1.8;
}

.footer-col-list a:hover {
  color: var(--gold);
}

/* Risk — full-width band */
.footer-risk-band {
  border-top: 1px solid rgba(224, 82, 82, 0.12);
  border-bottom: 1px solid rgba(224, 82, 82, 0.12);
  background: linear-gradient(
    180deg,
    rgba(224, 82, 82, 0.06) 0%,
    rgba(224, 82, 82, 0.02) 100%
  );
  padding: 32px 24px;
}

.footer-risk-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.footer-risk-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-risk-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(224, 82, 82, 0.12);
  border: 1px solid rgba(224, 82, 82, 0.25);
  color: #f0a0a0;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.footer-risk-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.footer-risk-body {
  font-size: 12px;
  color: var(--txt3);
  line-height: 1.8;
}

.footer-risk-body p {
  margin: 0;
}

.footer-risk-body p + p {
  margin-top: 12px;
}

.footer-bottom {
  padding: 24px 0 32px;
  background: var(--bg2);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer-copy {
  font-size: 12px;
  color: var(--txt3);
}

.footer-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 12px;
}

.footer-bar-links a {
  color: var(--txt2);
  transition: all 0.25s ease;
}

.footer-bar-links a:hover {
  color: var(--gold);
}

.footer-dot {
  color: var(--txt3);
  user-select: none;
}

@media (max-width: 960px) {
  .footer-main .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-desc {
    max-width: none;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
  }
}

@media (max-width: 720px) {
  .footer-main {
    padding: 56px 0 48px;
  }

  .footer-inner {
    padding: 0 18px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-risk-band {
    padding: 24px 18px;
  }

  .footer-risk-body {
    font-size: 12px;
    text-align: left;
  }

  .footer-risk-head {
    justify-content: flex-start;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-col:last-child {
    grid-column: auto;
  }

  .footer-brand-slogan {
    display: none;
  }
}

/* ── Responsive (nav) ── */
@media (max-width: 959px) {
  .nav-links--desktop,
  .nav-actions--desktop {
    display: none;
  }

  .nav-hamburger {
    display: grid;
    place-items: center;
  }

  .nav-logo {
    width: 34px;
    height: 34px;
  }

  .nav-brand-usagi {
    font-size: 16px;
  }

  .nav-brand-hub {
    font-size: 14px;
  }

  .nav-brand-slogan {
    font-size: 11px;
    max-width: 130px;
  }
}

@media (max-width: 380px) {
  .nav-brand-slogan {
    display: none;
  }

  .nav-inner {
    gap: 10px;
    padding: 0 12px;
  }

  .home-container {
    padding: 0 14px;
  }
}

@media (max-width: 320px) {
  .nav-brand-title {
    font-size: 15px;
  }

  .footer-inner {
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 14px;
  }
}

/* Light theme: see /assets/tokens.css */
