/* Modern CSS for Vibe Kushk Developer Portal */
:root {
  --bg-dark: #0b0f19;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --primary: #3b82f6;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent: #10b981;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6, p, span, div, td, th, label, button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--primary-gradient);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.badge-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.badge-link:hover {
  opacity: 0.9;
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
}

.logo-badge {
  background: var(--primary-gradient);
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.logo-dev {
  color: #8b5cf6;
  font-size: 13px;
  background: rgba(139, 92, 246, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu a.nav-highlight {
  color: #fff;
}

.nav-menu a.nav-highlight {
  color: #60a5fa;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-hero-primary {
  padding: 16px 32px;
  font-size: 16px;
  background: var(--primary-gradient);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  text-decoration: none;
}

.btn-hero-secondary {
  padding: 16px 32px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.btn-hero-primary:hover, .btn-hero-secondary:hover {
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

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

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

.single-line-desc {
  white-space: nowrap;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 140px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 24px;
}

.pulse-icon {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px 40px;
  border-radius: 20px;
  gap: 40px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* QuickStart Code Section */
.code-container {
  padding: 0;
  overflow: hidden;
}

.code-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.code-tabs {
  display: flex;
  gap: 8px;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.code-tab.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.code-body pre {
  padding: 24px;
  font-family: var(--font-code);
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.7;
  overflow-x: auto;
}

/* Interactive Sandbox Simulator */
.sandbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.sandbox-controls {
  display: flex;
  flex-direction: flex-start;
  flex-direction: column;
  gap: 20px;
}

.sandbox-controls h3 {
  font-family: var(--font-heading);
  font-size: 22px;
}

.control-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

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

.control-group label {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
}

.btn-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-toggle.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.toggle-status {
  background: #374151;
  color: #9ca3af;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.btn-toggle.active .toggle-status {
  background: #10b981;
  color: #fff;
}

.btn-action {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-action:hover {
  background: rgba(59, 130, 246, 0.3);
}

.btn-voice {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.btn-voice:hover {
  background: rgba(139, 92, 246, 0.3);
}

/* Emulator Frame */
.emulator-container {
  display: flex;
  justify-content: center;
}

.emulator-frame {
  width: 100%;
  max-width: 420px;
  background: #1e293b;
  border: 4px solid #334155;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  transition: all 0.3s ease;
}

/* Low Stance Mode Effect */
.emulator-frame.low-stance-active #kiosk-screen {
  padding-top: 120px;
  background: #0f172a;
}

/* High Contrast Mode Effect */
.emulator-frame.high-contrast-active {
  background: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.emulator-frame.high-contrast-active .kiosk-screen,
.emulator-frame.high-contrast-active .menu-item,
.emulator-frame.high-contrast-active .kiosk-banner {
  background: #000 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

.emulator-header {
  background: #0f172a;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
}

.emulator-brand {
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
}

.emulator-status {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 12px;
}

.subtitle-overlay {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid #8b5cf6;
  padding: 10px 14px;
  font-size: 13px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.subtitle-overlay.hidden {
  display: none;
}

.subtitle-badge {
  background: #8b5cf6;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.kiosk-screen {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.kiosk-banner {
  background: rgba(59, 130, 246, 0.1);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}

.kiosk-banner h4 { font-size: 15px; margin-bottom: 4px; }
.kiosk-banner p { font-size: 11px; color: var(--text-muted); }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-item {
  background: #334155;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.menu-item:hover {
  transform: scale(1.03);
  background: #475569;
}

.menu-img { font-size: 28px; margin-bottom: 4px; }
.menu-name { font-size: 13px; font-weight: 600; }
.menu-price { font-size: 12px; color: #60a5fa; font-weight: 700; }

.kiosk-action-area {
  margin-top: auto;
  background: #0f172a;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.kiosk-buttons {
  display: flex;
  gap: 8px;
}

.btn-kiosk-accent {
  flex: 1;
  background: #475569;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-kiosk-primary {
  flex: 2;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.emulator-footer {
  background: #0f172a;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #334155;
}

/* Compliance Matrix */
.compliance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compliance-table th, .compliance-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.compliance-table th:last-child, .compliance-table td:last-child {
  white-space: nowrap;
  text-align: center;
  width: 150px;
}

.pass-badge {
  display: inline-block;
  white-space: nowrap;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
}

/* API Key Section */
.api-key-box {
  max-width: 720px;
  margin: 0 auto;
}

.key-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.key-result {
  margin-top: 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.key-result.hidden { display: none; }

.key-result-label {
  font-weight: 700;
  color: #34d399;
  margin-bottom: 12px;
}

.key-display-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-code);
  font-size: 16px;
  color: #60a5fa;
}

.btn-copy-sm {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.key-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Partner Section */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.partner-info h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 16px;
}

.partner-benefits {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-benefits li {
  font-size: 16px;
  color: #d1d5db;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background: #070a12;
}

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

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 38px; }
  .sandbox-grid, .partner-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { display: none; }
  .nav-menu { display: none; }
}
