/* ══════════════════════════════════════
   Rovion – Global Styles
   ══════════════════════════════════════ */

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

:root {
  --primary: #00e5ff;
  --accent: #7c4dff;
  --pink: #ff6ec7;
  --dark: #0a0e17;
  --dark2: #111827;
  --dark3: #161d2e;
  --glass: rgba(255,255,255,0.04);
  --glass2: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.08);
  --glass-border2: rgba(255,255,255,0.12);
  --text: #e0e0e0;
  --muted: #888;
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Particle Canvas ── */
#particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── Navigation ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 3rem;
  height: 72px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}
.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: 0.15em;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: #aaa; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; transition: 0.3s;
}

/* Mobile menu */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(10,14,23,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: center;
    padding: 2rem 0; gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
}

/* ── Page Hero ── */
.page-hero {
  position: relative; z-index: 1;
  min-height: 55vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}
.page-hero .badge {
  display: inline-block;
  padding: 0.4rem 1.4rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--primary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}
.page-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease 0.2s both;
}
.page-hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}
.page-hero .lead {
  font-size: 1.1rem; color: var(--muted);
  max-width: 580px; font-weight: 300;
  animation: fadeUp 0.8s ease 0.35s both;
}

/* ── Section Utilities ── */
.section {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
}
.section--alt { background: var(--dark2); }
.section--glow { background: linear-gradient(180deg, transparent, rgba(0,229,255,0.025), transparent); }
.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 800px; margin: 0 auto; }

.section-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--primary); text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900; margin-bottom: 1.2rem; line-height: 1.3;
}
.section-desc {
  color: var(--muted); font-size: 1rem;
  max-width: 580px; margin-bottom: 3.5rem;
}

/* ── Cards ── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,229,255,0.25);
  box-shadow: 0 8px 40px rgba(0,229,255,0.06);
}
.card--accent:hover { border-color: rgba(124,77,255,0.3); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem; font-weight: 700;
  border-radius: 999px; border: none;
  cursor: pointer; transition: all 0.3s;
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #000;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.3);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary); color: #000;
  box-shadow: 0 0 30px rgba(0,229,255,0.25);
}
.btn--lg { padding: 1.1rem 3rem; font-size: 1.05rem; }

/* ── Footer ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center; padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: #555; font-size: 0.78rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
