:root {
  --bg: #08001a;
  --surface: #100828;
  --elevated: #170b35;

  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);

  --accent: #22d3ee;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(
    circle at 50% 0%,
    var(--surface),
    var(--bg)
  );
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 2rem 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.logo {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 4px;
  text-shadow: 0 0 20px var(--primary-glow);
  position: relative;
}

.logo span {
  color: var(--primary-light);
}

main {
  flex: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

ul {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--primary-glow);
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-light);
  box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.glass-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn:hover {
  color: #fff;
  text-shadow: none;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.4);
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Document specific styles */
.doc-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 2rem;
  font-weight: 600;
}

.back-link::before {
  content: "←";
  margin-right: 0.5rem;
}
