@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #d4d4d4;
  line-height: 1.6;
}

::selection {
  background: #10b981;
  color: #0a0a0a;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #252525; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid #252525;
  backdrop-filter: none;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #10b981;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #737373;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #d4d4d4; }

.github-link {
  color: #737373;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.github-link:hover { color: #d4d4d4; }

/* Hero */
.hero {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #e5e5e5;
}

.line1 { display: block; }

.highlight {
  color: #10b981;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #737373;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: #10b981;
  color: #0a0a0a;
}

.btn-secondary {
  background: transparent;
  color: #d4d4d4;
  border: 1px solid #252525;
}

.btn-secondary:hover {
  border-color: #10b981;
  color: #10b981;
}

/* Hero Visual */
.hero-visual { position: relative; }

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.flow-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.flow-icon.read {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.flow-icon.write {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.flow-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.method {
  font-weight: 700;
  font-size: 0.75rem;
  font-family: 'Inter', monospace;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.method.get {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.method.post {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.endpoint {
  color: #d4d4d4;
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
}

.result {
  font-size: 0.75rem;
  font-weight: 500;
}

.result.success { color: #10b981; }
.result.queued { color: #f59e0b; }

/* Quick Install */
.quick-install {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.install-box {
  background: #111111;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 2rem;
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
  color: #10b981;
  overflow-x: auto;
}

/* Architecture */
.architecture {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.architecture h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #e5e5e5;
}

.architecture .subtitle {
  text-align: center;
  color: #737373;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.arch-box {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 1.5rem 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #d4d4d4;
}

.arch-box .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.arch-box h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.arch-box p {
  font-size: 0.85rem;
  color: #737373;
}

.arch-arrow {
  font-size: 1.5rem;
  color: #737373;
}

.arch-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #737373;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.read { background: #10b981; }
.legend-dot.write { background: #f59e0b; }

/* Features */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #e5e5e5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 2rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e5e5e5;
}

.feature p {
  font-size: 0.9rem;
  color: #737373;
  line-height: 1.6;
}

/* Services */
.services {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e5e5e5;
}

.services .subtitle {
  color: #737373;
  margin-bottom: 2rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.service-tag {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: #d4d4d4;
  font-weight: 500;
}

/* Code Block */
.code-block {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 1.5rem;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.85rem;
  color: #d4d4d4;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.code-block code {
  background: none;
  padding: 0;
  border: none;
  color: #d4d4d4;
}

/* CTA */
.cta {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-box {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e5e5e5;
}

.cta-box p {
  color: #737373;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Gatekeeper */
.gatekeeper {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.gatekeeper-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #252525;
}

.gatekeeper-image img {
  width: 100%;
  height: auto;
  display: block;
}

.gatekeeper-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #e5e5e5;
}

.gatekeeper-content p {
  color: #737373;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.gatekeeper-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.gatekeeper-content li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #737373;
}

.gatekeeper-content li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
}

/* Footer */
.footer {
  border-top: 1px solid #252525;
  padding: 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #737373;
}

.footer a {
  color: #10b981;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* ===================== */
/* Documentation Page    */
/* ===================== */

.docs {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
}

.docs-container {}

.docs h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #e5e5e5;
}

.doc-section {
  margin-bottom: 2.5rem;
  background: #141414;
  border: 1px solid #252525;
  border-radius: 12px;
  padding: 2rem;
}

.doc-section h2 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1e1e1e;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e5e5e5;
}

.doc-section h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #10b981;
}

.doc-section p {
  color: #a3a3a3;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.doc-section ul {
  color: #a3a3a3;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

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

.doc-section code {
  background: rgba(16, 185, 129, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9em;
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.doc-section .code-block {
  margin-bottom: 1rem;
}

.doc-section .code-block code {
  background: none;
  padding: 0;
  border: none;
  color: #d4d4d4;
}

.doc-section strong {
  color: #e5e5e5;
}

.doc-section a {
  color: #10b981;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-section a:hover {
  color: #34d399;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero h1 { font-size: 2.5rem; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .gatekeeper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .arch-diagram { flex-direction: column; }

  .docs { padding-top: 5rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }

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

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

  .nav-links { display: none; }

  .footer-container { flex-direction: column; gap: 1rem; text-align: center; }

  .docs { padding: 5rem 1rem 2rem; }

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