/* ============================================================
   Orbital Lab — Main Stylesheet
   Design: Tech / Dark
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #070a10;
  --bg-card:   #0d1117;
  --bg-dark:   #050709;
  --border:    rgba(255,255,255,.08);
  --accent:    #4af;          /* 明るいシアン */
  --accent2:   #8b5cf6;       /* パープル */
  --text:      #e2e8f0;
  --text-muted:#7a8898;
  --font-en:   'Space Grotesk', 'Inter', sans-serif;
  --font-ja:   'Noto Sans JP', sans-serif;
  --radius:    12px;
  --max-w:     1100px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .8; }

/* ---------- Starfield Canvas ---------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(7,10,16,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  text-decoration: none;
}

.logo-mark {
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}

.accent { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Orbit rings decoration */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(68,170,255,.12);
  pointer-events: none;
}

.orbit-ring--1 {
  width: 600px; height: 600px;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  animation: spin 30s linear infinite;
}

.orbit-ring--2 {
  width: 900px; height: 900px;
  right: -380px; top: 50%;
  transform: translateY(-50%);
  animation: spin 50s linear infinite reverse;
}

.orbit-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent);
}

.orbit-dot--1 {
  width: 8px; height: 8px;
  right: 98px; top: calc(50% - 300px + 80px);
  animation: orbit1 30s linear infinite;
  transform-origin: calc(100% + 200px) 300px;
}

.orbit-dot--2 {
  width: 5px; height: 5px;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  right: 70px; top: calc(50% - 450px + 80px);
  animation: orbit2 50s linear infinite reverse;
  transform-origin: calc(100% + 380px) 450px;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes orbit1 {
  to { transform: rotate(360deg); }
}

@keyframes orbit2 {
  to { transform: rotate(-360deg); }
}

.under-construction-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(68,170,255,.1);
  border: 1px solid rgba(68,170,255,.3);
  color: var(--accent);
  font-size: .8rem;
  font-family: var(--font-en);
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.hero-title {
  font-family: var(--font-ja);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title .line1 { color: var(--text-muted); font-weight: 300; }
.hero-title .line2 { color: var(--text); }

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.85;
}

.hero-sub strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero { min-height: 95vh; }
  .orbit-ring, .orbit-dot { display: none; }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Scroll Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
