/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color Palette */
  --primary: #667eea;
  --primary-dark: #5568d3;
  --primary-light: #7c8ef0;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

  /* Shadows */
  --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);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo {
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-900);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all var(--transition-base);
}

.btn-github:hover {
  background: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: pulse 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: #f093fb;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: #4facfe;
  bottom: -100px;
  right: -100px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #43e97b;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-icon {
  font-size: 18px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: slideUp 0.8s ease-out 0.2s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  display: block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.95;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  color: var(--gray-700);
  padding: 8px 0;
  font-size: 14px;
}

/* ============================================
   QUICK START SECTION
   ============================================ */
.quickstart {
  background: var(--gray-50);
}

.steps-container {
  max-width: 900px;
  margin: 0 auto 60px;
}

.step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.code-block {
  position: relative;
  background: var(--gray-900);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  color: #e5e7eb;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.access-points {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.access-points h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.endpoint {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.endpoint-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.endpoint code {
  background: var(--gray-100);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.default-credentials {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.default-credentials h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.credential-item .label {
  font-weight: 600;
  color: var(--gray-700);
  min-width: 100px;
}

.credential-item code {
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--gray-900);
}

/* ============================================
   INTEGRATION SECTION
   ============================================ */
.integration {
  background: white;
}

.framework-selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.framework-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-base);
}

.framework-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.framework-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.framework-icon {
  font-size: 24px;
}

.integration-content {
  max-width: 900px;
  margin: 0 auto;
}

.framework-content {
  display: none;
}

.framework-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.integration-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.integration-step {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.integration-step:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.step-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
}

.integration-step p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.test-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.checkbox-item:hover {
  background: var(--gray-100);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-item span {
  color: var(--gray-700);
  font-size: 15px;
}

.info-box {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.info-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.info-box p {
  color: var(--gray-700);
  line-height: 1.7;
}

.info-box a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.info-box a:hover {
  text-decoration: underline;
}

/* ============================================
   SSO PORTAL SECTION
   ============================================ */
.sso-portal-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 2px solid var(--gray-200);
}

.sso-flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.sso-flow-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.sso-flow-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.sso-flow-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.sso-flow-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 24px;
  margin-bottom: 12px;
}

.sso-flow-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.flow-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.flow-item:hover {
  background: var(--gray-100);
}

.flow-item.highlight {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border: 2px solid var(--primary-light);
}

.flow-item.success {
  background: linear-gradient(135deg, #10b98115 0%, #38ef7d15 100%);
  border: 2px solid var(--success);
}

.flow-icon {
  font-size: 24px;
  min-width: 40px;
  text-align: center;
}

.flow-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flow-text strong {
  color: var(--gray-900);
  font-size: 15px;
}

.flow-text span {
  color: var(--gray-500);
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', monospace;
}

.flow-arrow-down {
  text-align: center;
  color: var(--gray-400);
  font-size: 20px;
  padding: 4px 0;
}

.sso-benefits {
  background: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.sso-benefits h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 32px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.benefit-item {
  text-align: center;
  padding: 24px;
  border-radius: 12px;
  background: var(--gray-50);
  transition: all var(--transition-base);
}

.benefit-item:hover {
  background: var(--gray-100);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.benefit-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.benefit-item p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   API SECTION
   ============================================ */
.api-section {
  background: var(--gray-50);
}

.api-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.api-category {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.api-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.api-category h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.api-endpoints {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.api-endpoint:hover {
  background: var(--gray-100);
}

.method {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method.get {
  background: #10b98120;
  color: #059669;
}

.method.post {
  background: #3b82f620;
  color: #2563eb;
}

.method.put {
  background: #f59e0b20;
  color: #d97706;
}

.method.delete {
  background: #ef444420;
  color: #dc2626;
}

.api-endpoint code {
  font-size: 14px;
  color: var(--gray-700);
  font-family: "Courier New", monospace;
}

.swagger-cta {
  text-align: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: 16px;
  padding: 60px 40px;
}

.swagger-cta h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.swagger-cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
}

/* ============================================
   DOCS SECTION
   ============================================ */
.docs-section {
  background: white;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.doc-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.doc-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.doc-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.doc-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.doc-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* ============================================
   CHANGELOG PAGE STYLES
   ============================================ */
.changelog-hero {
  background: var(--gradient-primary);
  padding: 120px 0 60px;
  color: white;
  text-align: center;
}

.changelog-hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
}

.changelog-hero-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.current-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
}

.current-version-badge strong {
  font-size: 18px;
}

.current-version-badge .separator {
  opacity: 0.5;
}

.changelog-content-section {
  background: var(--gray-50);
  padding: 60px 0 100px;
}

.back-to-docs {
  text-align: center;
  margin-top: 48px;
}

.back-to-docs .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.changelog-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gray-200);
  border-radius: 3px;
}

.changelog-entry {
  position: relative;
  padding-left: 160px;
  padding-bottom: 48px;
}

.changelog-entry:last-child {
  padding-bottom: 0;
}

.changelog-entry.latest .changelog-content {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.changelog-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-right: 24px;
}

.version-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.changelog-entry.latest .version-badge {
  background: var(--gradient-success);
}

.changelog-date {
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
}

.changelog-content {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.changelog-content:hover {
  box-shadow: var(--shadow-lg);
}

.changelog-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.changelog-category {
  margin-bottom: 20px;
}

.changelog-category:last-child {
  margin-bottom: 0;
}

.changelog-category h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.changelog-category.added h4 {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.changelog-category.improved h4 {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
}

.changelog-category.fixed h4 {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.changelog-category.removed h4 {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.changelog-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-category li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
}

.changelog-category li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gray-400);
}

.changelog-category.added li::before {
  color: var(--success);
}

.changelog-category.improved li::before {
  color: var(--primary);
}

/* Footer updated link styles */
.footer-updated {
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-updated a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 32px;
}

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

.footer-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-section p {
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: white;
}

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

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section-title {
    font-size: 36px;
  }

  .features-grid,
  .docs-grid,
  .api-categories {
    grid-template-columns: 1fr;
  }

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

  .step {
    flex-direction: column;
  }

  .framework-selector {
    flex-direction: column;
  }

  .framework-btn {
    width: 100%;
  }

  .sso-flow-diagram {
    grid-template-columns: 1fr;
  }

  .sso-flow-card {
    padding: 24px;
  }

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

  .sso-benefits {
    padding: 32px 24px;
  }

  .flow-item {
    padding: 12px;
  }

  .flow-text strong {
    font-size: 14px;
  }

  .flow-text span {
    font-size: 12px;
  }

  /* Changelog responsive */
  .version-info-banner {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .version-number {
    font-size: 28px;
  }

  .changelog-timeline::before {
    left: 20px;
  }

  .changelog-entry {
    padding-left: 50px;
  }

  .changelog-marker {
    width: auto;
    flex-direction: row;
    align-items: center;
    position: relative;
    left: auto;
    padding-right: 0;
    margin-bottom: 16px;
    gap: 12px;
  }

  .changelog-content {
    padding: 24px;
  }

  .changelog-hero-content h1 {
    font-size: 36px;
  }

  .current-version-badge {
    flex-direction: column;
    gap: 8px;
    padding: 16px 24px;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background: var(--gray-50);
}

.architecture-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.diagram-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.diagram-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 32px;
  text-align: center;
}

.diagram-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.arch-layer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.arch-layer.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.arch-box {
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all var(--transition-base);
}

.arch-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.arch-box.central {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.arch-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.arch-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.arch-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.arch-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arch-features span {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.arch-box.app {
  background: white;
  padding: 20px;
}

.app-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.app-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.app-port {
  font-size: 12px;
  color: var(--gray-500);
  font-family: 'Courier New', monospace;
}

.arch-connector {
  text-align: center;
  padding: 16px 0;
}

.connector-line {
  width: 2px;
  height: 40px;
  background: var(--gradient-primary);
  margin: 0 auto 8px;
}

.connector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all var(--transition-base);
}

.flow-step:hover {
  background: var(--gray-100);
  transform: translateX(8px);
}

.flow-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
}

.flow-content {
  flex: 1;
}

.flow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.flow-desc {
  font-size: 14px;
  color: var(--gray-600);
}

.flow-arrow {
  text-align: center;
  font-size: 24px;
  color: var(--primary);
  margin: -4px 0;
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems-section {
  background: white;
}

.problems-grid {
  max-width: 1100px;
  margin: 0 auto;
}

.problem-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  background: var(--gray-50);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.problem-before,
.problem-after {
  text-align: left;
}

.problem-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.problem-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gray-900);
}

.problem-card ul {
  list-style: none;
  padding: 0;
}

.problem-card li {
  padding: 8px 0;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.6;
}

.problem-arrow {
  font-size: 48px;
  color: var(--primary);
  font-weight: 700;
}

.problem-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.scenario-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  transition: all var(--transition-base);
}

.scenario-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scenario-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.scenario-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.scenario-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.scenario-card strong {
  color: var(--primary);
}

/* ============================================
   SPECIAL FEATURES SECTION
   ============================================ */
.special-features {
  background: var(--gray-50);
}

.special-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.special-feature-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition-base);
}

.special-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.special-feature-card.highlight {
  grid-column: span 2;
  border-color: var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.feature-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.feature-header {
  text-align: center;
  margin-bottom: 32px;
}

.feature-icon-large {
  font-size: 64px;
  margin-bottom: 16px;
}

.feature-header h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-tagline {
  font-size: 16px;
  color: var(--gray-600);
  font-style: italic;
}

.feature-explanation {
  text-align: left;
}

.feature-explanation h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 12px;
}

.feature-explanation p {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.mini-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
}

.mini-step span:last-child {
  color: var(--gray-700);
  font-size: 14px;
}

.feature-example {
  margin: 24px 0;
}

.code-block-mini {
  background: var(--gray-900);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
}

.code-block-mini pre {
  margin: 0;
}

.code-block-mini code {
  color: #e5e7eb;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
}

.feature-benefits ul {
  list-style: none;
  padding: 0;
}

.feature-benefits li {
  padding: 8px 0;
  color: var(--gray-700);
  font-size: 15px;
}

.tenant-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.tenant-feature {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
}

.tenant-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.tenant-content h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.tenant-content p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.tenant-diagram {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 32px;
  margin: 20px 0;
}

.tenant-box {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.tenant-box.root {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  margin-bottom: 24px;
}

.tenant-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tenant-children {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.tenant-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 8px;
}

.tenant-details div {
  background: var(--gray-50);
  padding: 4px 8px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE DESIGN UPDATES
   ============================================ */
@media (max-width: 768px) {
  .architecture-diagram {
    grid-template-columns: 1fr;
  }

  .problem-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .problem-arrow {
    transform: rotate(90deg);
  }

  .special-feature-card.highlight {
    grid-column: span 1;
  }

  .tenant-features {
    grid-template-columns: 1fr;
  }

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

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

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.lang-switcher:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.lang-divider {
  color: var(--gray-300);
  font-size: 12px;
  font-weight: 300;
}

/* Bangla Typography */
[lang="bn"] {
  font-family: 'Hind Siliguri', 'SolaimanLipi', sans-serif;
}

[lang="bn"] .hero-title {
  font-size: 56px;
  line-height: normal;
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-300) 50%,
    var(--gray-200) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.brand-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.brand-link:hover {
  border-bottom-color: var(--primary);
  opacity: 0.8;
}
