/* ==========================================================================
   API STAR - Premium Fintech & Developer API Suite
   Design System & Main Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-dark: #070b19;
  --primary-blue: #0b1536;
  --accent-cyan: #00d2ff;
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-gold: #ffb800;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-card: rgba(15, 23, 42, 0.85);

  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px rgba(0, 210, 255, 0.25);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;

  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utility Classes */
.text-cyan { color: var(--accent-cyan); }
.text-gold { color: var(--accent-gold); }
.text-green { color: var(--accent-green); }
.gradient-text {
  background: linear-gradient(135deg, #00d2ff 0%, #2563eb 50%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #ffb800 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.5);
  background: linear-gradient(135deg, #1ad6ff 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.badge-gold {
  background: rgba(255, 184, 0, 0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

/* ==========================================================================
   Header & Navigation (White Theme Navbar)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.95rem 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: -0.5px;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

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

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  stroke: #1e293b;
}

.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
  stroke: var(--accent-blue);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #1e293b;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  transform: translateX(4px);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-actions .btn-secondary {
  background: #f1f5f9;
  color: #0b1536;
  border: 1px solid #cbd5e1;
}

.nav-actions .btn-secondary:hover {
  background: #e2e8f0;
  color: var(--accent-blue);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #0b1536;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #132454 0%, #070b19 70%);
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-white);
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, rgba(37, 99, 235, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-left {
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-slides {
  position: relative;
  min-height: 480px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.slide-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -1px;
  color: var(--text-white);
  margin: 1rem 0 1.25rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-card-preview {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-title {
  color: var(--accent-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator-dot.active {
  width: 34px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

/* Hero Live Counter Bar */
.stats-banner {
  background: rgba(11, 21, 54, 0.9);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  margin-top: 3.5rem;
  padding: 1.75rem 2.5rem;
  backdrop-filter: blur(15px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin: 0.75rem 0 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-features {
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.service-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-green);
  flex-shrink: 0;
}

/* ==========================================================================
   Developer API Showcase Section
   ========================================================================== */
.dev-section {
  background: var(--primary-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
}

.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.code-window {
  background: #0d1326;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.code-header {
  background: #070b19;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}

.code-dots {
  display: flex;
  gap: 0.4rem;
}

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

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

.code-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-snippet {
  display: none;
}

.code-snippet.active {
  display: block;
}

.code-keyword { color: #ff79c6; }
.code-function { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; }
.code-num { color: #bd93f9; }

/* ==========================================================================
   Commission & Earnings Calculator Section
   ========================================================================== */
.calculator-card {
  background: linear-gradient(135deg, #0b1536 0%, #111d4a 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.calc-slider-group {
  margin-bottom: 2rem;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.calc-label {
  font-weight: 600;
  font-size: 1rem;
}

.calc-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.custom-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.earnings-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
}

.earnings-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin: 0.5rem 0;
}

/* ==========================================================================
   Security & Bank Integration Slider
   ========================================================================== */
.bank-ticker {
  background: var(--bg-light);
  border-y: 1px solid var(--border-light);
  padding: 2.5rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scrollTicker 25s linear infinite;
  white-space: nowrap;
}

.bank-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.8;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, #0b1536 0%, #070b19 100%);
  color: var(--text-white);
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  margin: 3rem auto;
  position: relative;
  overflow: hidden;
}

.cta-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--text-white);
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #040711;
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1.25rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-heading {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Drawer Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #070b19;
  z-index: 2000;
  padding: 2.5rem 1.5rem;
  transition: right 0.4s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-nav.open {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .dev-grid, .calc-grid {
    grid-template-columns: 1fr;
  }

  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .nav-menu, .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .stats-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .calculator-card {
    padding: 1.75rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
