/*
 * Copyright 2026 Oware 2048 Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
  --bg-dark: #0A0E1A;
  --bg-card: rgba(16, 24, 40, 0.85);
  --bg-card-hover: rgba(22, 34, 58, 0.95);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --border-gold: rgba(255, 215, 0, 0.35);
  --neon-cyan: #00F0FF;
  --neon-emerald: #00FF88;
  --neon-gold: #FFD700;
  --text-main: #F0F4F8;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.7;
  padding: 24px 16px 60px 16px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  max-width: 860px;
  width: 100%;
}

header {
  text-align: center;
  padding: 40px 0 32px 0;
  border-bottom: 1px solid var(--border-cyan);
  margin-bottom: 36px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-cyan);
  margin-bottom: 12px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #FFFFFF;
  margin-bottom: 8px;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.3);
}

.subtitle {
  color: var(--text-muted);
  font-size: 15px;
}

.nav-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--neon-cyan);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-cyan);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  background: var(--neon-cyan);
  color: #0A0E1A;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 24px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

h2:first-of-type {
  margin-top: 0;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-emerald);
  margin-top: 18px;
  margin-bottom: 8px;
}

p, ul, ol {
  color: var(--text-main);
  font-size: 15px;
  margin-bottom: 14px;
}

ul, ol {
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

strong {
  color: #FFFFFF;
}

.highlight-box {
  background: rgba(0, 255, 136, 0.06);
  border-left: 3px solid var(--neon-emerald);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-main);
}

.contact-box {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
}

.contact-box h3 {
  color: var(--neon-gold);
  margin-top: 0;
}

a {
  color: var(--neon-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #FFFFFF;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.portal-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.2);
}

.portal-card h3 {
  color: #FFFFFF;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.portal-card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.portal-card .action-text {
  color: var(--neon-cyan);
  font-size: 13px;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 32px 0 16px 0;
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .card { padding: 20px 16px; }
}
