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

:root {
  /* App colors from StockYan */
  --primary: #009E72;
  --primary-light: #00C48C;
  --primary-dark: #007A58;
  --secondary: #7C3AED;
  --accent: #0891B2;
  --green: #00FF88;
  --green-solid: #22C55E;
  --red: #FF5A5A;
  --orange: #FF9500;
  --warning: #c98f0a;
  --info: #3B82F6;

  /* Dark theme from app */
  --bg: #000000;
  --bg-surface: #0A1220;
  --bg-card: #111a12;
  --bg-card-hover: #162218;
  --text-primary: #E6F0FF;
  --text-secondary: #9FB2C7;
  --text-muted: #6E8094;
  --border: #1B2A3C;
  --divider: #1B2A3C;
  --muted: #0D1626;

  /* Gradients */
  --gradient: linear-gradient(135deg, #009E72, #00C48C);
  --gradient-2: linear-gradient(135deg, #009E72, #00C48C, #0891B2);
  --gradient-accent: linear-gradient(135deg, #009E72, #7C3AED);

  /* Shadows */
  --shadow: 0 4px 24px rgba(0, 158, 114, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 158, 114, 0.15);
  --shadow-glow: 0 0 60px rgba(0, 158, 114, 0.2);

  /* Radius */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

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

.gradient-text-light {
  background: linear-gradient(135deg, #00C48C, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Section Header ========== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header.light {
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1.1rem;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 158, 114, 0.1);
  border: 1px solid rgba(0, 158, 114, 0.25);
  border-radius: 100px;
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* ========== Navigation ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

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

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

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

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient) !important;
  border-radius: 100px;
  color: white !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-primary);
}

/* ========== Hero ========== */
.hero {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 158, 114, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 196, 140, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 158, 114, 0.1);
  border: 1px solid rgba(0, 158, 114, 0.25);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge i {
  font-size: 0.8rem;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 520px;
  margin-top: 20px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 158, 114, 0.2);
}

.store-btn i {
  font-size: 1.8rem;
}

.store-btn .store-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}

.store-btn .store-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-btn.apple {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.store-btn.google {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.store-btn.large {
  padding: 18px 32px;
}

.store-btn.large i {
  font-size: 2.2rem;
}

.store-btn.large .store-name {
  font-size: 1.2rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 290px;
  height: 620px;
  background: #1a1a1a;
  border-radius: 40px;
  border: 3px solid #2a2a2a;
  padding: 8px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Dynamic Island */
.phone-mockup::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(180deg, #0A1220 0%, #000 100%);
}

.phone-placeholder img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.phone-placeholder p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(10, 18, 32, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.1rem;
}

.card-1 {
  top: 12%;
  left: -15%;
  animation-delay: 0s;
}

.card-1 i { color: var(--green); }

.card-2 {
  top: 42%;
  right: -12%;
  animation-delay: 1.3s;
}

.card-2 i { color: var(--orange); }

.card-3 {
  bottom: 18%;
  left: -12%;
  animation-delay: 2.6s;
}

.card-3 i { color: var(--primary-light); }

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

/* ========== Features ========== */
.features {
  padding: 120px 0;
}

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

.feature-card {
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 158, 114, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 158, 114, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.feature-icon.green  { background: rgba(0, 158, 114, 0.12); color: #00C48C; }
.feature-icon.blue   { background: rgba(59, 130, 246, 0.12); color: #60A5FA; }
.feature-icon.purple { background: rgba(124, 58, 237, 0.12); color: #C084FC; }
.feature-icon.orange { background: rgba(255, 149, 0, 0.12); color: #FF9500; }
.feature-icon.red    { background: rgba(255, 90, 90, 0.12); color: #FF5A5A; }
.feature-icon.teal   { background: rgba(8, 145, 178, 0.12); color: #22D3EE; }
.feature-icon.indigo { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.feature-icon.pink   { background: rgba(236, 72, 153, 0.12); color: #ec4899; }

.feature-card h3 {
  margin-bottom: 8px;
}

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

/* ========== Screenshots ========== */
.screenshots {
  padding: 120px 0;
  overflow: visible;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 16px 24px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex: 0 0 240px;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-surface);
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 158, 114, 0.4);
  box-shadow: 0 12px 40px rgba(0, 158, 114, 0.15);
}

.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-surface) 100%);
}

.screenshot-placeholder i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

.screenshot-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== Services ========== */
.services {
  padding: 120px 0;
}

.service-group {
  margin-bottom: 48px;
}

.service-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.service-group-title i {
  font-size: 1.1rem;
  color: var(--primary-light);
}

.service-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.service-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 158, 114, 0.3);
  color: var(--text-primary);
}

.service-item i {
  font-size: 0.9rem;
  color: var(--primary-light);
}

/* ========== Premium ========== */
.premium {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #050d0a 50%, var(--bg) 100%);
  position: relative;
}

.premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 158, 114, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.premium-card {
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.premium-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 158, 114, 0.3);
  transform: translateY(-4px);
}

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

.premium-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(124, 58, 237, 0.12);
  color: #C084FC;
  margin-bottom: 20px;
}

.premium-card h3 {
  margin-bottom: 8px;
}

.premium-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== Stock Detail Tabs ========== */
.stock-detail {
  padding: 120px 0;
}

.tabs-showcase {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.tab-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.tab-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 158, 114, 0.3);
  transform: translateY(-4px);
}

.tab-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(0, 158, 114, 0.12);
  color: var(--primary-light);
}

.tab-item h4 {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.tab-item p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ========== Paper Trading ========== */
.paper-trading {
  padding: 120px 0;
}

.paper-trading-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.paper-content .section-tag {
  margin-bottom: 16px;
}

.paper-content h2 {
  margin-bottom: 16px;
}

.paper-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.paper-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.paper-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.paper-feature i {
  color: var(--primary-light);
  font-size: 1.1rem;
}

.paper-visual {
  display: flex;
  justify-content: center;
}

.paper-card {
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.paper-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  background: rgba(0, 158, 114, 0.06);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 1rem;
}

.paper-card-header i {
  color: var(--primary-light);
}

.paper-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.paper-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.paper-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
}

.paper-stat-value.green {
  color: var(--green);
}

/* ========== Download CTA ========== */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 158, 114, 0.08) 0%, rgba(0, 196, 140, 0.04) 100%);
  pointer-events: none;
}

.download-container {
  position: relative;
  z-index: 1;
}

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

.download-content h2 {
  margin-bottom: 16px;
}

.download-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* ========== Footer ========== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs-showcase {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-subtitle {
    margin: 20px auto 0;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 220px;
    height: 476px;
  }

  .floating-card {
    display: none;
  }

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

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

  .tabs-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-trading-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .paper-features {
    align-items: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

  .screenshot-card {
    flex: 0 0 200px;
    height: 400px;
  }

  .store-btn.large {
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .tabs-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .tab-item {
    padding: 20px 12px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* ========== Scroll Animations ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
