:root {
  --primary-color: #3066be;
  --secondary-color: #119da4;
  --accent-color: #6d9dc5;
  --light-color: #f7f9fc;
  --dark-color: #2a2d34;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

pre, code {
  font-family: var(--font-mono);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

/* Header */
.site-header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--dark-color);
  font-size: 1.25rem;
  font-weight: 600;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--dark-color);
  font-weight: 500;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
}

.btn .icon {
  margin-right: 8px;
}

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

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

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--secondary-color);
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

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

/* Features Section */
.features {
  padding: 5rem 0;
}

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

.feature-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.feature-card h3 {
  margin-bottom: 1rem;
}

/* Code Sample Section */
.code-sample {
  background-color: var(--dark-color);
  padding: 5rem 0;
  color: white;
}

.code-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.tab.active, .tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.code-panels {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.panel {
  display: none;
  padding: 20px;
}

.panel.active {
  display: block;
}

.panel pre {
  margin: 0;
  overflow-x: auto;
}

.panel code {
  display: block;
  color: #f8f8f2;
  line-height: 1.5;
}

/* Data Preview Section */
.data-preview {
  padding: 5rem 0;
  background-color: white;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.search-box button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
}

.search-box button:hover {
  background-color: var(--accent-color);
}

.result-container {
  margin-bottom: 2rem;
  min-height: 200px;
}

.cta-container {
  text-align: center;
}

/* Documentation Styles */
.docs-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.docs-container h1 {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.docs-container h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.docs-container code {
  background-color: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.docs-container pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-container pre code {
  background-color: transparent;
  padding: 0;
}

.docs-container table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.docs-container th, .docs-container td {
  padding: 0.75rem;
  border: 1px solid #eee;
}

.docs-container th {
  background-color: #f8f9fa;
  text-align: left;
}

/* Demo Page Styles */
.demo-container {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
}

.demo-app {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-bottom: 3rem;
}

.demo-sidebar {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.demo-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.country-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.demo-flag {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.details-panel {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.demo-code {
  background-color: var(--dark-color);
  color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.demo-code h3 {
  margin-bottom: 1rem;
}

.demo-code pre {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

/* 404 Page */
.not-found {
  text-align: center;
  padding: 5rem 0;
}

.not-found h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #666;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-col h3 {
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 1.2rem;
}

.footer-col h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: 1rem;
}

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

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-col a:hover {
  color: white;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.made-with {
  margin-top: 2rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .demo-app {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
