:root {
  --bg-color: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1f242c;
  --bg-badge: rgba(0, 229, 255, 0.12);
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --accent-cyan: #00e5ff;
  --accent-purple: #a855f7;
  --accent-blue: #38bdf8;
  --border-subtle: #30363d;
  --border-focus: rgba(0, 229, 255, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.15);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--text-main);
  background: var(--bg-card);
  text-decoration: none;
}

nav a.active {
  color: var(--accent-cyan);
  background: var(--bg-card);
  border: 1px solid var(--border-focus);
}

/* Hero Section */
.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  transition: transform 0.3s ease;
}

.hero-icon:hover {
  transform: scale(1.04) rotate(1deg);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--bg-badge);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 16px;
}

/* Content & Cards */
main {
  flex: 1;
  padding-bottom: 64px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 229, 255, 0.3);
  align-self: flex-start;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent-cyan);
  color: #000;
  text-decoration: none;
}

/* Policy / Document Layout */
.document-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  margin: 32px auto;
}

.doc-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.doc-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.meta-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.highlight-box {
  background: rgba(0, 229, 255, 0.05);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.highlight-box p {
  margin: 0;
  color: #c9d1d9;
  font-size: 0.95rem;
}

.doc-section {
  margin-bottom: 36px;
}

.doc-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.doc-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e6edf3;
  margin: 20px 0 8px;
}

.doc-section p {
  color: #c9d1d9;
  margin-bottom: 14px;
}

.doc-section ul {
  margin: 12px 0 16px 24px;
  color: #c9d1d9;
}

.doc-section li {
  margin-bottom: 8px;
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.info-table th, .info-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-subtle);
}

.info-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 600;
}

.info-table td {
  color: #c9d1d9;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 32px 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 680px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .document-container {
    padding: 24px 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
