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

:root {
  --bg: #0a0c14;
  --bg-elevated: #12141e;
  --bg-card: #161a2a;
  --border: #1e263a;
  --border-light: #2a3450;
  --text: #e4e7ee;
  --text-muted: #7a839e;
  --text-dim: #4a5472;
  --accent: #00c853;
  --accent-dim: rgba(0,200,83,0.12);
  --accent-glow: rgba(0,200,83,0.25);
  --accent2: #4fc3f7;
  --danger: #ff5252;
  --warn: #ffb74d;
  --purple: #b39ddb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.45);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --container: 1200px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #00e65c; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; }
.section-alt { background: var(--bg-elevated); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover:not(:disabled) { background: #00e65c; transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 72px;
  background: rgba(10,12,20,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; height: 100%;
  display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; color: #fff; }
.logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #008f3e); display: flex; align-items: center; justify-content: center; color: #000; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-link { padding: 0.5rem 1rem; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-link:hover { color: var(--text); background: var(--bg-card); }
.nav-cta { background: var(--accent); color: #000; padding: 0.55rem 1.25rem; }
.nav-cta:hover { background: #00e65c; color: #000; }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-elevated); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.25rem; transform: translateY(-100%); opacity: 0; visibility: hidden; transition: all var(--transition); }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links .nav-link { width: 100%; text-align: center; padding: 0.85rem; }
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 72px 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, rgba(0,200,83,0.08) 0%, transparent 55%), radial-gradient(ellipse at 85% 60%, rgba(79,195,247,0.05) 0%, transparent 50%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-content { animation: fadeUp 0.8s ease; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 50px; background: var(--accent-dim); color: var(--accent); font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(0,200,83,0.2); margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { text-align: left; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.hero-visual { position: relative; }
.chart-container { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .chart-container { max-width: 360px; }
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: all var(--transition); }
.feature-card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-block; }
.feature-card h3 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Apps */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.app-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; transition: all var(--transition); position: relative; }
.app-card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.app-card.featured { border-color: rgba(0,200,83,0.3); box-shadow: 0 0 0 1px rgba(0,200,83,0.15), var(--shadow); }
.app-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; background: var(--accent); color: #000; }
.app-card.coming-soon .app-badge { background: var(--warn); color: #000; }
.app-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-logo { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #008f3e); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-logo.placeholder { background: linear-gradient(135deg, var(--text-dim), var(--border-light)); font-size: 1.5rem; }
.app-header h3 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.app-category { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.app-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.app-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.feature-tag { font-size: 0.7rem; padding: 0.3rem 0.65rem; border-radius: 50px; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; background: var(--bg-elevated); border-radius: var(--radius-sm); margin-bottom: 1.25rem; border: 1px solid var(--border); }
.app-stat { text-align: center; }
.app-stat-value { display: block; font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.app-stat-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.3px; }
.app-note { font-size: 0.75rem; color: var(--text-dim); text-align: center; margin-top: 0.5rem; }

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

/* Charts Section */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.5rem; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.chart-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.25rem; }
.chart-card canvas { max-height: 280px; }

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

/* CTA Section */
.cta-section { padding: 5rem 0; background: linear-gradient(180deg, transparent, var(--bg-elevated)); }
.cta-card { background: linear-gradient(135deg, rgba(0,200,83,0.1), rgba(79,195,247,0.05)); border: 1px solid rgba(0,200,83,0.2); border-radius: 20px; padding: 3.5rem; text-align: center; }
.cta-card h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.cta-card p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 1rem; }

/* Footer */
.footer { background: #080910; border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 300px; }
.footer-nav h4 { font-size: 0.8rem; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }
.footer-nav a { display: block; font-size: 0.88rem; color: var(--text-muted); padding: 0.35rem 0; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); }
.disclaimer { font-size: 0.75rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}