/* ==========================================================================
   ApexTrade Web Landing Page Stylesheet (Cryptohopper-Inspired Design)
   Pure CSS3 with Modern Light Theme, Cyan/Royal Blue Accents, and Responsive Grid
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Surfaces & Canvas */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-hero: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  --bg-dark-section: #090e1a;

  /* Typography */
  --text-main: #0b132b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverted: #ffffff;

  /* Cryptohopper Palette Accents */
  --color-primary: #0284c7;        /* Vibrant Tech Cyan / Blue */
  --color-primary-hover: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-accent: #00baa7;         /* Hopper Turquoise */
  --color-accent-light: #ccfbf1;
  --color-success: #10b981;
  --color-success-light: #ecfdf5;
  --color-danger: #ef4444;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0284c7;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -5px rgba(11, 19, 43, 0.08), 0 8px 10px -6px rgba(11, 19, 43, 0.04);
  --shadow-glow: 0 0 35px rgba(2, 132, 199, 0.15);
  --shadow-modal: 0 25px 50px -12px rgba(11, 19, 43, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ==========================================================================
   Top Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #0284c7, #00baa7);
  color: #ffffff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.announcement-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ==========================================================================
   Header & Navbar (Sticky Glassmorphic)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-main);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #00baa7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

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

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

.btn-outline {
  background: #ffffff;
  border-color: var(--border-medium);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-secondary);
}

.btn-large {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: var(--bg-hero);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-pill-badge .stars {
  color: #f59e0b;
}

.hero-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #0284c7, #00baa7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 36px;
}

/* Dual Download Call To Action Box */
.cta-download-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.download-cta-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

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

.download-cta-btn.highlighted {
  background: #0b132b;
  color: #ffffff;
  border-color: #0b132b;
  box-shadow: 0 8px 24px rgba(11, 19, 43, 0.25);
}

.download-cta-btn.highlighted .btn-meta {
  color: #94a3b8;
}

.download-cta-btn .os-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.download-cta-btn .btn-text-block {
  display: flex;
  flex-direction: column;
}

.download-cta-btn .btn-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.download-cta-btn .btn-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.cta-trust-guarantee {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-trust-guarantee span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero Showcase Frame */
.hero-showcase-container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}

.hero-showcase-window {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 30px 60px -15px rgba(11, 19, 43, 0.15), 0 0 0 1px rgba(11, 19, 43, 0.05);
  overflow: hidden;
}

.hero-showcase-window img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   Partners & Exchanges Marquee
   ========================================================================== */
.exchanges-bar-section {
  padding: 36px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}

.exchanges-bar-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.exchanges-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.exchange-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.exchange-logo-item:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.exchange-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

/* ==========================================================================
   Platform Showcase (Windows vs Mac OS Switcher)
   ========================================================================== */
.platform-showcase-section {
  padding: 96px 0;
  background: var(--bg-subtle);
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-heading {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
}

/* OS Tab Switcher */
.platform-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.platform-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.platform-tab-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.platform-showcase-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
}

@media (max-width: 1024px) {
  .platform-showcase-card {
    grid-template-columns: 1fr;
  }
}

.platform-image-pane {
  background: #0b132b;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-image-pane img {
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
}

.platform-info-pane {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.platform-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.platform-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Core Features Grid (Cryptohopper-Style)
   ========================================================================== */
.features-section {
  padding: 96px 0;
  background: #ffffff;
}

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

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-box-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.feature-box-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.feature-box-tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Stats & Metrics Banner
   ========================================================================== */
.stats-banner-section {
  background: var(--bg-dark-section);
  color: #ffffff;
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item-number {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 800;
  color: #00d2ef;
  margin-bottom: 6px;
}

.stat-item-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   How It Works (3 Easy Steps)
   ========================================================================== */
.how-it-works-section {
  padding: 96px 0;
  background: var(--bg-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  padding: 96px 0;
  background: #ffffff;
}

.faq-container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================================
   Final Conversion Banner
   ========================================================================== */
.conversion-banner-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #0b132b, #03203f);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.conversion-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.conversion-desc {
  font-size: 18px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 20px;
}

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

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

.footer-system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-success);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Download Modal Simulator
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.download-modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  padding: 36px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .download-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-header-block {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.progress-bar-container {
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 20px 0 10px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #00baa7);
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.install-guide-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
  font-size: 13px;
}

.install-guide-steps {
  list-style: decimal;
  padding-left: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .nav-menu { display: none; }
  .section-heading { font-size: 28px; }
}
