/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
}

/* Navigation */
.navbar {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-brand h1 {
  font-size: 1.5rem;
  color: #2c3e50;
  font-weight: 700;
}

.version {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #2196f3;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 8px 16px rgba(30, 64, 175, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #1e40af;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.hero-badge {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Content Sections */
.content-section {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h2 {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 0.5rem;
}

.content-section h3 {
  color: #34495e;
  margin: 1.5rem 0 1rem;
  font-size: 1.5rem;
}

.content-section h4 {
  color: #555;
  margin: 1.25rem 0 0.75rem;
  font-size: 1.1rem;
}

.content-section p {
  margin-bottom: 1rem;
  color: #555;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.comparison-item {
  padding: 1.5rem;
  border-radius: 8px;
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
}

.comparison-item.highlight {
  background: #e3f2fd;
  border-color: #2196f3;
}

.comparison-item h4 {
  margin-top: 0;
  color: #2c3e50;
}

.flow {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  text-align: center;
}

.problem {
  color: #d32f2f;
  font-size: 0.9rem;
  font-style: italic;
}

.benefit {
  color: #388e3c;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Signatures */
.signatures {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
}

.signature-layer {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  position: relative;
}

.layer-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #3b82f6;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.signature-layer h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.code-preview {
  background: white;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.code-preview code {
  display: block;
  margin: 0.25rem 0;
}

.code-preview .sig {
  color: #9c27b0;
  font-weight: 600;
}

.arrow {
  font-size: 2rem;
  color: #3b82f6;
  font-weight: bold;
}

.why-matters {
  background: #e8f5e9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #4caf50;
  margin-top: 2rem;
}

.why-matters h3 {
  color: #2e7d32;
  margin-top: 0;
}

.why-matters ul {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.why-matters li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Token Example */
.token-example {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.token-example pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 1rem;
}

.token-example code {
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Policy Features */
.policy-features {
  margin-top: 2rem;
}

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

.feature {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.feature strong {
  color: #1e40af;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Quick Start Tabs */
.quickstart-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  font-weight: 500;
}

.tab-btn:hover {
  color: #3b82f6;
}

.tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.tab-content {
  padding: 1.5rem 0;
}

.tab-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.tab-content code {
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9rem;
}

.tab-content code.bash::before,
.tab-content code.javascript::before,
.tab-content code.json::before {
  content: attr(class);
  display: block;
  color: #888;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.note {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

.note strong {
  color: #e65100;
}

/* Limits */
.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.limit-card {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.limit-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.limit-label {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.4;
}

.limits-note {
  background: #e3f2fd;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.limits-note code {
  background: rgba(0,0,0,0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.limits-upgrade {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.limits-upgrade a {
  color: #1e40af;
  font-weight: 600;
  text-decoration: none;
}

.limits-upgrade a:hover {
  text-decoration: underline;
}

/* Endpoints */
.endpoints {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.endpoint-method {
  background: #3b82f6;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 60px;
  text-align: center;
}

.endpoint-path {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.endpoint p {
  margin: 0;
  flex: 1;
  color: #666;
  font-size: 0.9rem;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.resource-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  border: 2px solid #e0e0e0;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.2);
}

.resource-card h3 {
  color: #1e40af;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.resource-card p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #5dade2;
  text-decoration: underline;
}

.version-info {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #95a5a6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  text-align: center;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .comparison {
    grid-template-columns: 1fr;
  }

  .signatures {
    grid-template-columns: 1fr;
  }

  .arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 1rem;
  }

  .content-section {
    padding: 1.5rem;
  }
}

/* Syntax Highlighting (Basic) */
pre code {
  display: block;
  line-height: 1.5;
}

/* Links */
a {
  color: #3b82f6;
  transition: color 0.2s;
}

a:hover {
  color: #1e40af;
}

/* Code Inline */
code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, Monaco, monospace;
  font-size: 0.9em;
}

pre code {
  background: none;
  padding: 0;
}

/* Lists */
ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
  color: #555;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Demo Token Specific Styles */
.warning-box {
  background: #fff3e0;
  border: 2px solid #ff9800;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.warning-box strong {
  color: #e65100;
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.warning-box p {
  margin-bottom: 0.75rem;
  color: #555;
}

.warning-box code {
  background: rgba(0,0,0,0.05);
  color: #d84315;
}

.demo-feature {
  background: #e7f3ff;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #0066cc;
  margin: 1.5rem 0;
}

.demo-feature h4 {
  color: #0066cc;
  margin-top: 0;
  margin-bottom: 1rem;
}

.demo-feature ol {
  margin-left: 1.5rem;
}

.demo-feature li {
  margin-bottom: 0.75rem;
  color: #333;
}

.demo-feature li strong {
  color: #0066cc;
}

