:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --dark: #1a1a1a;
  --dark-gray: #2d2d2d;
  --medium-gray: #666;
  --light-gray: #e5e5e5;
  --text: #333;
  --text-light: #666;
  --bg: #ffffff;
  --bg-gray: #f8f8f8;
  --border: #ddd;
  --code-bg: #f5f5f5;
  --code-border: #ddd;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  line-height: 1.6;
}

code, pre {
  font-family: 'Monaco', 'Courier New', monospace;
}

/* Navigation */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

nav .logo img {
  height: 32px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

nav a:hover {
  color: var(--primary);
}

nav a svg,
nav a img {
  flex-shrink: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  background: white;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: white;
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--bg-gray);
}

/* Features Section */
.features {
  padding: 3rem 0;
  background: white;
}

.features h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Code Section */
.code-example {
  padding: 3rem 0;
  background: var(--bg-gray);
}

.code-example h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.code-example p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.code-block {
  background: white;
  border: 1px solid var(--code-border);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-block code {
  color: var(--text);
}

/* Syntax highlighting */
.keyword { color: #0033b3; }
.string { color: #067d17; }
.comment { color: #8c8c8c; font-style: italic; }
.function { color: #00627a; }
.macro { color: #9c27b0; }
.number { color: #1750eb; }

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.content-section h3 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.content-section h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--medium-gray);
}

.content-section p {
  margin-bottom: 1rem;
  color: var(--text);
}

.content-section ul, .content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

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

.content-section a {
  color: var(--secondary);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

/* Documentation Layout */
.doc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

.doc-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.doc-sidebar h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.doc-sidebar ul {
  list-style: none;
}

.doc-sidebar li {
  margin-bottom: 0.5rem;
}

.doc-sidebar a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.doc-sidebar a:hover {
  color: var(--primary);
}

.doc-content {
  max-width: 800px;
}

/* Method Card */
.method-card {
  background: var(--bg-gray);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.method-card h4 {
  color: var(--dark);
  margin-top: 0;
}

.method-signature {
  background: var(--code-bg);
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* Info Box */
.info-box {
  background: #e7f3ff;
  border-left: 4px solid var(--secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.success-box {
  background: #d4edda;
  border-left: 4px solid var(--success);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Footer */
footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-section h4 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

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

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-section p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

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

  .hero .tagline {
    font-size: 1rem;
  }

  nav ul li:first-child,
  nav ul li:last-child {
    display: none;
  }

  nav ul li a {
    font-size: 0;
  }

  nav ul li a svg {
    width: 24px;
    height: 24px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Remove flashy animations */

/* Copy button for code blocks */
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--code-border);
}

.code-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.copy-btn {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: var(--bg-gray);
}

.copy-btn.copied {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
