:root {
  --background: 245 247 250;
  --foreground: 20 23 30;
  --card: 255 255 255;
  --card-foreground: 20 23 30;
  --popover: 255 255 255;
  --popover-foreground: 20 23 30;
  --primary: 14 165 233;
  --primary-foreground: 255 255 255;
  --secondary: 234 236 240;
  --secondary-foreground: 20 23 30;
  --muted: 234 236 240;
  --muted-foreground: 100 116 139;
  --accent: 14 165 233;
  --accent-foreground: 255 255 255;
  --destructive: 220 38 38;
  --destructive-foreground: 255 255 255;
  --border: 222 226 230;
  --input: 222 226 230;
  --ring: 14 165 233;
  --radius: 0.75rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid rgb(var(--border));
  background-color: rgb(var(--card));
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, rgb(var(--primary)), #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgb(var(--secondary));
  color: rgb(var(--secondary-foreground));
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(var(--primary));
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
}

.hero-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgb(var(--foreground));
}

.hero-content p {
  font-size: 18px;
  color: rgb(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgb(var(--primary));
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(var(--secondary));
  border-radius: var(--radius);
  color: rgb(var(--primary));
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tool-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.tool-description {
  color: rgb(var(--muted-foreground));
  font-size: 14px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tool-url {
  font-size: 12px;
  font-family: "Monaco", "Courier New", monospace;
  color: rgb(var(--primary));
  background-color: rgb(var(--secondary));
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  word-break: break-all;
}

.tool-cta {
  color: rgb(var(--primary));
  font-weight: 600;
  font-size: 14px;
}

/* Endpoints Section */
.endpoints-section {
  margin-bottom: 60px;
  padding: 40px;
  background-color: rgb(var(--card));
  border-radius: var(--radius);
  border: 1px solid rgb(var(--border));
}

.endpoints-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.endpoints-section > p {
  color: rgb(var(--muted-foreground));
  margin-bottom: 24px;
}

.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.endpoint-card {
  padding: 20px;
  background-color: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
}

.endpoint-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgb(var(--muted-foreground));
}

.endpoint-code {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: rgb(var(--foreground));
  border-radius: 6px;
  overflow-x: auto;
}

.endpoint-code code {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 12px;
  color: rgb(var(--primary));
  flex: 1;
  word-break: break-all;
}

.copy-btn {
  padding: 6px 12px;
  background-color: rgb(var(--primary));
  color: rgb(var(--primary-foreground));
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: #0284c7;
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.copied {
  background-color: #10b981;
}

/* Features Section */
.features-section {
  margin-bottom: 60px;
}

.features-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature {
  padding: 32px;
  background-color: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature:hover {
  border-color: rgb(var(--primary));
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.feature-number {
  font-size: 32px;
  font-weight: 700;
  color: rgb(var(--primary));
  margin-bottom: 12px;
}

.feature h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature p {
  color: rgb(var(--muted-foreground));
  font-size: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid rgb(var(--border));
  background-color: rgb(var(--card));
  padding: 40px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: rgb(var(--muted-foreground));
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgb(var(--muted-foreground));
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(var(--primary));
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .endpoints-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .endpoints-section {
    padding: 24px;
  }

  .tool-card {
    padding: 24px;
  }

  .endpoint-code {
    flex-direction: column;
    align-items: flex-start;
  }

  .copy-btn {
    width: 100%;
  }
}
