/* ─────────────────────────────────────
   Value Investor Toolkit — Landing Page
   Design System: Dark mode (#0a0a12)
   Primary: #4B5EFC  |  Accent: #FF7422
   ───────────────────────────────────── */

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

:root {
  --bg: #0a0a12;
  --surface: #0e0e1c;
  --surface-light: #13131e;
  --surface-active: #1e1e30;
  --primary: #4B5EFC;
  --primary-light: #C8C7FA;
  --primary-dark: #3938b3;
  --primary-tint: rgba(75,94,252,0.12);
  --primary-glow: rgba(75,94,252,0.30);
  --secondary: #FF7422;
  --secondary-light: #FFD4BA;
  --positive: #00C805;
  --negative: #EF4444;
  --warning: #FFC800;
  --text: #FFFFFF;
  --text-primary: #DFE5EC;
  --text-secondary: #B0BAC9;
  --text-muted: #475467;
  --border: #1e1e30;
  --divider: #13131e;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-active); border-radius: 3px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-name-accent {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--primary);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}

.nav-mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 8px;
}

.nav-mobile-menu .nav-cta {
  text-align: center;
  display: block;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-menu.open { display: flex; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(75,94,252,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 32px rgba(75,94,252,0.4);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-active);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
}

/* ── SECTION COMMON ── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

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

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(75,94,252,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  background: var(--primary-tint);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(75,94,252,0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(75,94,252,0); }
}

.hero-title {
  font-size: 60px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── PHONE FRAME ── */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  width: 290px;
  background: #000;
  border-radius: 40px;
  padding: 12px;
  border: 2px solid #222;
  box-shadow:
    0 0 0 1px rgba(75,94,252,0.1),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(75,94,252,0.08);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screenshot {
  width: 100%;
  border-radius: 28px;
  display: block;
}

.phone-frame-sm {
  width: 240px;
}

/* ── FEATURES ── */
.features { background: var(--bg); }

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-active);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── SCREENSHOTS CAROUSEL ── */
.screenshots {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.carousel-wrapper {
  position: relative;
  max-width: 100%;
}

.carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px 0;
}

.carousel-slide {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 5;
}

.carousel-btn:hover {
  background: var(--surface-active);
  border-color: var(--primary);
}

.carousel-btn-prev { left: -20px; }
.carousel-btn-next { right: -20px; }

/* ── TOOLS ── */
.tools { background: var(--bg); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
  transform: translateX(4px);
  border-color: var(--surface-active);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.tool-icon-blue { background: rgba(75,94,252,0.15); color: var(--primary-light); }
.tool-icon-indigo { background: rgba(57,56,179,0.2); color: #a5a4fc; }

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tool-info p {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-light);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-badge-premium {
  color: var(--secondary);
  background: rgba(255,116,34,0.1);
}

.tool-badge-new {
  color: var(--positive);
  background: rgba(0,200,5,0.1);
}

/* ── PRICING ── */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 20px 60px rgba(75,94,252,0.15);
  transform: scale(1.04);
}

.pricing-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-header {
  margin-bottom: 28px;
}

.pricing-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-amount {
  font-size: 42px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.pricing-period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-billed {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--divider);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  flex-shrink: 0;
}

/* ── DOWNLOAD CTA ── */
.download {
  padding: 60px 0 100px;
}

.download-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(75,94,252,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(75,94,252,0.2);
}

.download-card h2 {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.download-card > .download-content > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 8px;
  overflow: hidden;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: block;
}

.footer-by {
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .hero-content { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tools-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 34px; }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: -1px;
  }

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

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

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

  .phone-frame { width: 240px; }
  .phone-frame-sm { width: 200px; }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card-featured:hover {
    transform: translateY(-4px);
  }

  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 15px; }

  .download-card { padding: 48px 24px; }
  .download-card h2 { font-size: 24px; }

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

  .carousel-btn-prev { left: 4px; }
  .carousel-btn-next { right: 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .btn-lg { padding: 12px 24px; font-size: 15px; }
  .section-header { margin-bottom: 40px; }
}
