/* ============================================
   Atlas Capital Systems — Marketing Website
   Custom Styles (supplements Tailwind CDN)
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --atlas-navy: #0A1628;
  --atlas-navy-light: #0F2137;
  --atlas-navy-mid: #152D4A;
  --atlas-slate: #1B3A5C;
  --atlas-blue: #2563EB;
  --atlas-blue-light: #3B82F6;
  --atlas-gold: #C9963B;
  --atlas-gold-light: #D4A843;
  --atlas-amber: #F59E0B;
  --atlas-emerald: #10B981;
  --atlas-text: #E2E8F0;
  --atlas-text-muted: #94A3B8;
  --atlas-border: rgba(255,255,255,0.08);
  --atlas-glass: rgba(255,255,255,0.03);
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #E2E8F0;
  background: var(--atlas-navy);
  overflow-x: hidden;
}

::selection {
  background: var(--atlas-gold);
  color: var(--atlas-navy);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--atlas-navy); }
::-webkit-scrollbar-thumb { background: var(--atlas-slate); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--atlas-gold); }

/* ---------- Navigation ---------- */
.nav-glass {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--atlas-border);
}

.nav-scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: var(--atlas-text-muted);
  transition: color 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--atlas-gold);
  transition: width 0.3s ease;
}

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

/* ---------- Hero ---------- */
.hero-gradient {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(201, 150, 59, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--atlas-navy) 0%, var(--atlas-navy-light) 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: var(--atlas-gold);
  color: var(--atlas-navy);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--atlas-gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(201, 150, 59, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s ease;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

/* ---------- Section Styling ---------- */
.section-dark {
  background: var(--atlas-navy);
}

.section-darker {
  background: var(--atlas-navy-light);
}

.section-gradient {
  background: linear-gradient(180deg, var(--atlas-navy-light) 0%, var(--atlas-navy) 100%);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--atlas-border), transparent);
}

/* ---------- Cards ---------- */
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--atlas-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--atlas-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(201, 150, 59, 0.2);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201, 150, 59, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--atlas-gold);
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--atlas-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ---------- Platform Showcase ---------- */
.platform-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--atlas-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.platform-tab:hover {
  color: #fff;
}

.platform-tab.active {
  background: rgba(201, 150, 59, 0.1);
  color: var(--atlas-gold);
  border-color: rgba(201, 150, 59, 0.2);
}

.platform-preview {
  background: var(--atlas-navy-light);
  border: 1px solid var(--atlas-border);
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- Feature List ---------- */
.feature-list-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.feature-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-check svg {
  width: 12px;
  height: 12px;
  color: var(--atlas-emerald);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--atlas-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #fff 0%, var(--atlas-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(201, 150, 59, 0.15);
  color: var(--atlas-gold-light);
  border: 1px solid rgba(201, 150, 59, 0.2);
}

.badge-blue {
  background: rgba(37, 99, 235, 0.15);
  color: var(--atlas-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ---------- Glow Effects ---------- */
.glow-gold {
  box-shadow: 0 0 40px rgba(201, 150, 59, 0.15);
}

.glow-blue {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

/* ---------- Architecture Diagram ---------- */
.arch-layer {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--atlas-border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
}

.arch-layer-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--atlas-navy-light);
  padding: 0 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--atlas-gold);
}

.arch-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--atlas-slate), transparent);
  margin: 0 auto;
}

/* ---------- Timeline ---------- */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--atlas-gold);
  border: 3px solid var(--atlas-navy);
  box-shadow: 0 0 0 2px var(--atlas-gold);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: -16px;
  width: 2px;
  background: rgba(201, 150, 59, 0.2);
}

.timeline-item:last-child::after {
  display: none;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  padding: 6rem 2rem 2rem;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  font-size: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--atlas-border);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
  opacity: 0;
  animation: slideInLeft 0.6s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"].visible {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="fade-right"].visible {
  transform: translateX(0);
}

/* ---------- Counter Animation ---------- */
.counter {
  display: inline-block;
}

/* ---------- CTA Section ---------- */
.cta-gradient {
  background: 
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(201, 150, 59, 0.12) 0%, transparent 60%),
    var(--atlas-navy-light);
}

/* ---------- Footer ---------- */
.footer-gradient {
  background: linear-gradient(180deg, var(--atlas-navy) 0%, #060E1A 100%);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-grid-overlay {
    background-size: 40px 40px;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav-glass, .mobile-menu, footer { display: none; }
  body { background: #fff; color: #000; }
  .section-dark, .section-darker { background: #fff; }
}
