:root {
  --bg: #050505;
  --bg-offset: #0a0a0a;
  --primary: #00f5ff;
  --primary-glow: rgba(0, 245, 255, 0.4);
  --accent: #a855f7;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --white: #ffffff;
  --glass: rgba(15, 15, 15, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-main: "Inter", -apple-system, blinkmacsystemfont, sans-serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Geist Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, var(--primary-glow) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--accent-glow) 0%, transparent 40%);
  z-index: -2;
  opacity: 0.15;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}

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

.logo span::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.nav-links a:hover {
  color: var(--white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
  padding: 200px 0 120px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  background: var(--primary);
  color: var(--white);
}

.btn-secondary {
  background: var(--glass);
  color: var(--white);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Section Styling */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--white);
}

.underline {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto;
  border-radius: 20px;
}

.big-text {
  font-size: 1.75rem;
  max-width: 850px;
  margin: 0 auto;
  color: var(--text);
  line-height: 1.4;
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--glass);
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.05),
    transparent 60%
  );
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--white);
}

.feature-card p {
  color: var(--text-dim);
  font-size: 1rem;
}

/* Footer */
.footer {
  padding: 80px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer p {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Story & Vision Sections */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  margin-top: 40px;
}

.story-content p {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.8;
}

.story-content strong {
  color: var(--primary);
  font-weight: 700;
}

.story-quote {
  position: relative;
  padding: 40px;
  background: var(--bg-offset);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.story-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  font-style: italic;
}

.story-quote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 8rem;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
}

.vision-text {
  max-width: 900px;
  margin: 0 auto;
}

.vision-text .big-text {
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .tagline,
.hero .cta-buttons,
.section-header,
.feature-card,
.story-content,
.story-quote,
.vision-text {
  animation: fadeIn 0.8s ease-out forwards;
}

.hero .tagline {
  animation-delay: 0.2s;
  opacity: 0;
}
.hero .cta-buttons {
  animation-delay: 0.4s;
  opacity: 0;
}

/* Responsive Extensions */
@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
  .big-text {
    font-size: 1.4rem;
  }
}

/* Wiki Specific Layout */
.wiki-page {
  overflow-y: scroll;
}

.wiki-layout {
  display: flex;
  max-width: 1400px;
  margin: 80px auto 0;
  min-height: calc(100vh - 80px);
}

.wiki-sidebar {
  width: 300px;
  background: var(--bg-offset);
  border-right: 1px solid var(--glass-border);
  padding: 40px 24px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
}

.search-box {
  margin-bottom: 32px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-main);
  transition: border-color 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.nav-group {
  margin-bottom: 32px;
}

.nav-group h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.nav-group ul {
  list-style: none;
}

.nav-group ul li {
  margin-bottom: 8px;
}

.nav-group ul li a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: all 0.3s;
  display: block;
  padding: 4px 0;
}

.nav-group ul li a:hover,
.nav-group ul li a.active {
  color: var(--primary);
  transform: translateX(4px);
}

.wiki-content {
  flex-grow: 1;
  padding: 60px 80px;
  max-width: 900px;
}

.breadcrumb {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.content-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: -1px;
}

.content-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.content-body .lead {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 32px;
}

.content-body h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  margin-top: 48px;
  margin-bottom: 24px;
}

.content-body p {
  margin-bottom: 24px;
}

.content-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-offset);
  padding: 24px 32px;
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--white);
}

.info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 20px;
  margin: 40px 0;
  width: 100%;
  box-sizing: border-box;
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.info-card ul {
  list-style: none;
}

.info-card ul li {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.info-card ul li strong {
  color: var(--white);
  word-break: break-all;
}

.code-block-header {
  background: var(--bg-offset);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-radius: 8px 8px 0 0;
  display: inline-block;
}

pre {
  background: #000;
  padding: 24px;
  border-radius: 0 8px 8px 8px;
  border: 1px solid var(--glass-border);
  overflow-x: auto;
  margin-bottom: 32px;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
  word-wrap: break-word;
}

@media (max-width: 1024px) {
  .wiki-layout {
    flex-direction: column;
  }
  
  .wiki-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .wiki-content {
    padding: 40px 24px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .info-card {
    padding: 20px;
  }

  .method-list strong {
    font-size: 1rem;
  }

  pre {
    padding: 16px;
  }
}

/* Wiki Content Extensions */
.method-list {
  list-style: none;
  padding: 0;
}

.method-list > li {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
  display: block;
}

.method-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.method-list strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  word-wrap: break-word;
}

.method-list p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.granular-tools {
  list-style: none;
  padding: 0;
}

.granular-tools li {
  background: var(--bg-offset);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.granular-tools code {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.caution-card {
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid var(--accent);
  padding: 24px;
  border-radius: 16px;
  margin-top: 24px;
}

.caution-card p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text);
}

.caution-card p:last-child {
  margin-bottom: 0;
}
