:root {
  --primary: #0066FF;
  --primary-dark: #0052CC;
  --text-main: #111827;
  --text-muted: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; color: var(--text-muted); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}
.links a:hover {
  color: var(--primary);
}
.btn-nav {
  background: var(--text-main);
  color: white !important;
  padding: 8px 16px;
  border-radius: 99px;
  transition: background 0.2s;
}
.btn-nav:hover {
  background: #000;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--text-main);
}

/* Hero Section Generic */
.hero-section {
  padding: 80px 0;
  text-align: center;
}
.hero-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #111, #555);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Footer */
.footer {
  background: var(--bg-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-col h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-col a:hover {
  color: var(--primary);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

/* Docs Specific */
.docs-hero {
  background-image: url('assets/docs_hero.png');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  color: white;
  text-align: center;
  position: relative;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.docs-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.search-bar {
  width: 100%;
  max-width: 500px;
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}
.search-bar::placeholder { color: rgba(255,255,255,0.7); }
.search-bar:focus {
  background: white;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

.doc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
}
.doc-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.doc-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { height: auto; padding: 16px 0; flex-direction: column; gap: 16px; }
  .links { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero-title { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.container{max-width:1120px;margin:0 auto;padding:0 24px}
.header{position:sticky;top:0;background:#ffffffcc;border-bottom:1px solid #eee;backdrop-filter:saturate(150%) blur(6px)}
.nav{height:64px;display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:600;color:#111;text-decoration:none}
.links a{margin-left:16px;font-size:14px;color:#333;text-decoration:none}
.links a:hover{text-decoration:underline}
.hero{display:grid;grid-template-columns:1fr;gap:24px;padding:48px 0}
@media(min-width:768px){.hero{grid-template-columns:1fr 1fr}}
.hero-text .kicker{color:#0d6efd;font-weight:600;margin-bottom:8px}
.hero h1{font-size:40px;line-height:1.1;margin:8px 0 16px}
@media(min-width:768px){.hero h1{font-size:52px}}
.hero p{color:#555;margin:0 0 16px}
.hero-media{height:280px;background:#f2f2f2;border:1px solid #eee;border-radius:12px}
@media(min-width:768px){.hero-media{height:380px}}
.hero-media img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.actions{display:flex;gap:12px}
.btn{display:inline-block;background:#111;color:#fff;text-decoration:none;padding:10px 16px;border-radius:8px}
.features{display:grid;grid-template-columns:1fr;gap:20px;padding-bottom:40px}
@media(min-width:768px){.features{grid-template-columns:repeat(3,1fr)}}
.feature-title{font-weight:600;margin-bottom:6px}
.feature-desc{font-size:14px;color:#555}
.section{padding:40px 0}
.grid{display:grid;gap:20px}
@media(min-width:768px){.grid-3{grid-template-columns:repeat(3,1fr)}}
.card{border:1px solid #eee;border-radius:12px;padding:16px;background:#fff}
.card-title{font-weight:600;margin-bottom:8px}
.card-desc{font-size:14px;color:#555}
.icon{width:40px;height:40px;margin-bottom:8px}
.badges{display:flex;flex-wrap:wrap;gap:12px}
.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid #eee;border-radius:999px;padding:8px 12px;color:#333;background:#fafafa}
.cta{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#0d6efd;color:#fff;border-radius:12px;padding:16px}
.cta h2{margin:0;font-size:20px}
.cta .btn{background:#fff;color:#0d6efd}
.footer{border-top:1px solid #eee;margin-top:32px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:24px;padding:24px 0}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(4,1fr)}}
.footer-title{font-weight:600;margin-bottom:12px}
.footer-list{list-style:none;margin:0;padding:0}
.footer-list li{margin:6px 0}
.footer-list a{font-size:14px;color:#333;text-decoration:none}
.footer-list a:hover{text-decoration:underline}
.subscribe{display:flex;gap:8px}
.subscribe input{flex:1;border:1px solid #ddd;border-radius:8px;padding:10px 12px}
.footer-bottom{padding-bottom:16px;font-size:12px;color:#777}

/* Docs Page Styles */
.docs-hero {
  background-image: url('assets/docs_hero.png');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
}
.docs-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); /* Dark overlay for readability */
}
.hero-content {
  position: relative;
  z-index: 1;
}
.docs-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.docs-hero p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}
.search-wrapper {
  max-width: 600px;
  margin: 0 auto;
}
.search-bar {
  width: 100%;
  padding: 16px 24px;
  border-radius: 99px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.doc-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: -40px; /* Overlap hero */
  position: relative;
  z-index: 2;
}
.doc-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eee;
}
.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.doc-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.doc-card h3 {
  margin: 0 0 8px;
  color: #111;
}
.doc-card p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* Language Switcher */
.lang-select {
  margin-left: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}