/* ================================================================
   🦅 HORUS FLOW INTELLIGENCE — Brand Design System
   Dark + Gold | Glassmorphism | Institutional-Grade
   ================================================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(17, 17, 24, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --gold-primary: #ffb300;
  --gold-light: #ffd54f;
  --gold-dim: #b27a00;
  --gold-glow: rgba(255, 179, 0, 0.15);
  --gold-gradient: linear-gradient(135deg, #ffb300, #ff8f00);

  --text-primary: #f0f0f5;
  --text-secondary: #9090a0;
  --text-muted: #606070;

  --accent-green: #00e676;
  --accent-red: #ff5252;
  --accent-blue: #448aff;
  --accent-purple: #b388ff;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(255, 179, 0, 0.25);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 30px rgba(255, 179, 0, 0.12);
  --shadow-glow: 0 0 60px rgba(255, 179, 0, 0.08);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--gold-light);
}

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

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.font-mono { font-family: var(--font-mono); }
.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

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

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

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 1px;
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(255, 179, 0, 0.25);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  border-color: var(--gold-primary);
  background: var(--gold-glow);
  color: var(--gold-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--gold-primary);
  padding: 8px 16px;
}
.btn-ghost:hover {
  background: var(--gold-glow);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-gold);
  background: var(--bg-glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Glass Card ---------- */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 800px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

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

.hero-stat .stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-primary);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Live Ticker ---------- */
.live-ticker {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: var(--space-xl);
}

.live-ticker .ticker-signal {
  color: var(--accent-green);
  font-weight: 700;
}

/* ---------- Pricing Cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}

.pricing-card.featured {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold), var(--shadow-glow);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold-gradient);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px;
}

.pricing-plan {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.pricing-card.featured .pricing-plan {
  margin-top: var(--space-lg);
  color: var(--gold-primary);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--space-xs);
}

.pricing-price .currency {
  font-size: 1.2rem;
  vertical-align: super;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-features li.disabled::before {
  content: '✕';
  color: var(--accent-red);
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-xl);
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: var(--bg-secondary);
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text-secondary);
}

.comparison-table .check {
  color: var(--accent-green);
}

.comparison-table .cross {
  color: var(--text-muted);
  opacity: 0.3;
}

/* ---------- Code Block ---------- */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  position: relative;
}

.code-block .code-lang {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.code-block .code-keyword { color: var(--accent-purple); }
.code-block .code-string { color: var(--accent-green); }
.code-block .code-comment { color: var(--text-muted); font-style: italic; }
.code-block .code-func { color: var(--accent-blue); }
.code-block .code-gold { color: var(--gold-primary); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* ---------- Mobile Hamburger Menu ---------- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  z-index: 1001;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}
.mobile-nav-overlay.active {
  display: flex;
}
.mobile-nav-overlay a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
  color: var(--gold-primary);
  background: var(--gold-glow);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-nav-close:hover { color: var(--text-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 var(--space-md); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta .btn-secondary { display: none; }
  .hero { padding-top: calc(var(--nav-height) + var(--space-xl)); }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
  .hero-actions { flex-direction: column; align-items: center; }
  .comparison-table { font-size: 0.72rem; }
  .comparison-table th, .comparison-table td { padding: 8px 6px; }
  .code-block { font-size: 0.75rem; padding: var(--space-md); }
}

@media (max-width: 480px) {
  .btn-lg { width: 100%; }
  .live-ticker { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .pricing-price { font-size: 2.4rem; }
}
