@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Brand CSS Variables --- */
:root {
  --bg-color: #08090c;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151821 0%, #08090c 70%);
  --panel-bg: rgba(17, 19, 26, 0.65);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-border-glow: rgba(212, 175, 55, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa841c;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f9e8a2 100%);
  
  --silver-primary: #a1b0be;
  --silver-gradient: linear-gradient(135deg, #8a9da8 0%, #d2dbe3 100%);
  
  --cyan-accent: #3bf2f2;
  --purple-accent: #8a2be2;
  
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.3);
  --shadow-panel: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* --- Base Styles & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-silver {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 9, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(8, 9, 12, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-text span {
  font-weight: 400;
  color: var(--text-secondary);
}

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

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

.btn-primary {
  background: var(--gold-gradient);
  color: #000000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px -8px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  z-index: 1;
  position: relative;
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px;
  z-index: 1;
  position: relative;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  z-index: 1;
  position: relative;
}

/* --- Partner Brands Bar --- */
.partners {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 24px 0;
  background: rgba(8, 9, 12, 0.4);
}

.partners-wrap {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.partner-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.partner-logo:hover {
  color: var(--text-secondary);
}

.partner-logo i {
  font-size: 22px;
}

/* --- Features Section --- */
.section-padding {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

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

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

.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 40px 32px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-panel);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.05);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.glass-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* --- Token Calculator & Pricing --- */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

/* Calculator Card */
.calculator-card {
  padding: 48px;
}

.calc-title {
  font-size: 28px;
  margin-bottom: 32px;
}

.input-group {
  margin-bottom: 32px;
}

.input-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
}

.input-label span:last-child {
  color: var(--gold-primary);
}

/* Model Select Buttons */
.model-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.model-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-smooth);
}

.model-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.model-btn.active {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.model-btn-name {
  font-weight: 600;
  font-size: 15px;
}

.model-btn-rate {
  font-size: 12px;
  color: var(--text-muted);
}

.model-btn.active .model-btn-rate {
  color: var(--gold-light);
}

/* Slider Controls */
.slider-container {
  position: relative;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 16px 0;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  transition: var(--transition-smooth);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--gold-light);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Summary Card */
.summary-card {
  padding: 48px 36px;
  border-color: rgba(212, 175, 55, 0.2);
  position: relative;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.summary-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.summary-header h4 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.summary-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.savings-badge {
  background: rgba(59, 242, 242, 0.08);
  border: 1px solid rgba(59, 242, 242, 0.2);
  color: var(--cyan-accent);
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-secondary);
}

.detail-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.buy-btn {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  border-radius: 10px;
}

/* --- Developer API Tabs --- */
.playground-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.playground-info h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.playground-info p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.api-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.api-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.api-features-list li i {
  color: var(--gold-primary);
}

/* Editor Window */
.editor-window {
  background: #090a0f;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}

.editor-header {
  background: #11131a;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
}

.editor-dots {
  display: flex;
  gap: 6px;
}

.editor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

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

.editor-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.editor-tab.active {
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
}

.editor-body {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
}

.editor-body pre {
  margin: 0;
}

.editor-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #a9b2c3;
  line-height: 1.6;
}

.code-keyword { color: #f47067; }
.code-string { color: #8ddb8c; }
.code-comment { color: #57606a; }
.code-property { color: #dcbdfb; }
.code-class { color: #f69d50; }

/* --- Deployment Section --- */
.deployment-section {
  background: linear-gradient(180deg, rgba(8,9,12,0) 0%, rgba(212,175,55,0.02) 50%, rgba(8,9,12,0) 100%);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.step-card {
  position: relative;
}

.step-num {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: absolute;
  top: -10px;
  left: 20px;
  user-select: none;
  font-family: var(--font-sans);
}

.step-card-content {
  position: relative;
  z-index: 1;
  padding-top: 36px;
}

.step-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- Contact / CTA Section --- */
.cta-box {
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.95) 0%, rgba(13, 14, 18, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 36px;
}

.contact-channels {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.contact-btn:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.contact-btn.highlight {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.contact-btn.highlight:hover {
  background: var(--gold-gradient);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 48px 0;
  background: #050608;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

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

/* --- Mobile Menu Drawer --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #0c0d12;
  z-index: 101;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: var(--transition-smooth);
}

.mobile-drawer.active {
  right: 0;
}

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

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
}

.mobile-nav-links a:hover {
  color: var(--gold-primary);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 48px;
  }
  .pricing-wrap {
    grid-template-columns: 1fr;
  }
  .playground-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  nav ul, .header-cta {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero p {
    font-size: 16px;
  }
  .calculator-card {
    padding: 24px;
  }
  .model-selector {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 48px 24px;
  }
  .cta-box h2 {
    font-size: 32px;
  }
}
