/* Hub2 LP — Cosmic / Magic / Premium */
:root {
  --bg: #0A0E1A;
  --bg-2: #0d1226;
  --bg-3: #141a33;
  --ink: #F5F7FB;
  --ink-2: #C9CFE3;
  --ink-3: #8089A8;
  --ink-4: #4A5275;
  --line: rgba(245, 247, 251, 0.08);
  --line-strong: rgba(245, 247, 251, 0.16);
  --gold: #F5C842;
  --gold-2: #FFD96B;
  --gold-deep: #B8902A;
  --violet: oklch(0.55 0.15 285);
  --teal: oklch(0.7 0.12 200);
  --rose: oklch(0.7 0.14 20);
  --grad-portal: radial-gradient(60% 80% at 50% 40%, oklch(0.32 0.09 270) 0%, #0A0E1A 70%);
  --grad-gold: linear-gradient(180deg, #FFE38B 0%, #F5C842 45%, #C89515 100%);
  --shadow-gold: 0 0 0 1px rgba(245, 200, 66, 0.4), 0 8px 32px -8px rgba(245, 200, 66, 0.5), 0 1px 0 inset rgba(255, 255, 255, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Noto Serif JP', 'Times New Roman', serif; letter-spacing: 0.02em; }
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; font-feature-settings: normal; }

/* Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section { position: relative; }

/* Starfield */
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
.star.gold { background: var(--gold); box-shadow: 0 0 6px rgba(245, 200, 66, 0.8); }

/* Section dividers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: rgba(245, 200, 66, 0.04);
  text-transform: uppercase;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  border-radius: 50%;
  transform: rotate(45deg);
}

.section-h2 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-h2 .gold-text { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  position: relative;
  white-space: nowrap;
}
.btn-gold {
  background: var(--grad-gold);
  color: #1a1505;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.6), 0 16px 48px -8px rgba(245, 200, 66, 0.7), 0 1px 0 inset rgba(255, 255, 255, 0.4);
  filter: brightness(1.08);
}
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s, transform 0.8s;
  transform: translateX(-100%);
  pointer-events: none;
}
.btn-gold:hover::after {
  opacity: 1;
  transform: translateX(100%);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--gold);
  color: var(--gold);
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--line-strong); }

/* Glow accents */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Hero portal ring */
.portal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 200, 66, 0.18);
  pointer-events: none;
}

/* Hero portal — move under headline on small screens */
@media (max-width: 880px) {
  .hero-portal {
    left: 50% !important;
    top: 50% !important;
    opacity: 0.5;
  }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 200, 66, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Grid lines decoration */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 247, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 251, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Nav */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 14, 26, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(245, 200, 66, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.badge-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 80px;
  position: relative;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 16px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 10px; }
footer a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}
footer a:hover { color: var(--gold); }
footer .copy {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}
