/* NovaForge Helsinki — Finnish studio of NovaForge */
:root {
  --bg-dark: #0a0e18;
  --bg-card: #111827;
  --bg-card-hover: #1a2336;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --accent-3: #ff4d9e;
  --accent-nordic: #00c9a7;
  --text: #e8ecf4;
  --text-muted: #9aa3b8;
  --border: rgba(124, 92, 255, 0.22);
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 90% 55% at 15% -15%, rgba(124, 92, 255, 0.18), transparent),
    radial-gradient(ellipse 70% 45% at 85% 90%, rgba(0, 201, 167, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0, 212, 255, 0.04), transparent);
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.logo .nf { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo .hel { color: var(--accent-nordic); font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; margin-left: 0.15rem; }

.nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
}

.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-nordic));
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-switch button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-nordic));
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 201, 167, 0.12);
  border: 1px solid rgba(0, 201, 167, 0.35);
  color: var(--accent-nordic);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.1rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-nordic));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(124, 92, 255, 0.55); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-full { width: 100%; justify-content: center; }

/* Hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(145deg, rgba(26, 35, 54, 0.9), rgba(17, 24, 39, 0.95));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.15), transparent 70%);
  pointer-events: none;
}
.hero-card-inner { position: relative; z-index: 1; }
.game-icon {
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.3));
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-2);
}
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.float-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(1px);
}
.shape-1 { width: 80px; height: 80px; background: var(--accent); top: 10%; left: -15px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 50px; height: 50px; background: var(--accent-nordic); bottom: 15%; right: 5%; animation: float 6s ease-in-out infinite reverse; }
.shape-3 { width: 35px; height: 35px; background: var(--accent-2); top: 45%; right: -10px; animation: float 7s ease-in-out infinite 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 201, 167, 0.4);
  background: var(--bg-card-hover);
}

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 0.9rem;
  display: inline-block;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Connection banner */
.connection-banner {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding: 0 1.5rem;
}

.connection-inner {
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.12), rgba(0, 201, 167, 0.1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.connection-inner .flag { font-size: 2rem; }
.connection-inner p { color: var(--text-muted); font-size: 0.95rem; flex: 1; min-width: 200px; }
.connection-inner strong { color: var(--text); }

/* Timeline */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-nordic));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-nordic);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 2px var(--accent-nordic);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 0.3rem;
}

.timeline-item h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.timeline-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
  border-color: rgba(0, 201, 167, 0.4);
  transform: translateY(-3px);
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.3), rgba(0, 201, 167, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.team-info h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.team-role {
  font-size: 0.8rem;
  color: var(--accent-nordic);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.team-info p { color: var(--text-muted); font-size: 0.88rem; }

/* Login */
.login-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.login-box > p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.form-options label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.login-error {
  background: rgba(255, 77, 158, 0.12);
  border: 1px solid rgba(255, 77, 158, 0.35);
  color: #ff8fb8;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}
.login-error.show { display: block; }

.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 2.5rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 280px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  max-width: 1180px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Decorative grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* Mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; gap: 2rem; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 14, 24, 0.98);
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
