/* Tradentical Landing Page - Match Reference Design */
/* Dark blue/indigo theme, seamless hero visual */

:root {
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1a;
  --bg-card: rgba(15, 23, 42, 0.6);
  --accent-teal: #22d3ee;
  --accent-cyan: #06b6d4;
  --accent-purple: #a78bfa;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-yellow: #facc15;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  --gradient-cta: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

/* Base */
body.landing-page {
  background: var(--bg-dark) !important;
  color: var(--text-primary);
  font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== Top Navigation Bar ========== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 2rem;
}

.landing-nav .nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.landing-nav .brand-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.landing-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Squared social icons - glass texture, YouTube, Telegram, X, Instagram */
.landing-nav .social-icons-squared {
  display: flex;
  gap: 0.5rem;
}

.landing-nav .social-icons-squared a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 1rem;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 20px rgba(255, 255, 255, 0.1);
}

.landing-nav .social-icons-squared a:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 0 30px rgba(255, 255, 255, 0.25);
}

.landing-nav .social-yt { background: rgba(255, 0, 0, 0.5); }
.landing-nav .social-tg { background: rgba(0, 136, 204, 0.5); }
.landing-nav .social-x { background: rgba(0, 0, 0, 0.5); }
.landing-nav .social-ig { background: linear-gradient(135deg, rgba(240, 148, 51, 0.5), rgba(220, 39, 67, 0.5)); }

/* Sign in with Google - blue & white gradient */
.landing-nav .btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 70%, #3b82f6 100%) !important;
  color: #1e40af !important;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.landing-nav .btn-google:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

.landing-nav .btn-google svg {
  width: 18px;
  height: 18px;
}

.landing-nav .mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
}


/* ========== Hero Section ========== */
.landing-hero {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 0;
  padding-right: 3px;
  position: relative;
  overflow: hidden;
}

/* Glowing data stream / network lines in background */
.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 100% 60% at 75% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 25% 70%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 90%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

/* Abstract glowing lines - data streams */
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(105deg, transparent 40%, rgba(59, 130, 246, 0.03) 50%, transparent 60%),
    linear-gradient(75deg, transparent 30%, rgba(34, 211, 238, 0.04) 45%, transparent 55%),
    linear-gradient(165deg, transparent 50%, rgba(139, 92, 246, 0.03) 60%, transparent 70%);
  background-size: 100% 100%;
  pointer-events: none;
}

.landing-hero .hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  min-height: 70vh;
}

/* Hero visual - right-aligned, 3px from right, 5px margin above */
.landing-hero .hero-visual {
  position: absolute;
  top: 5px;
  bottom: 0;
  right: 3px;
  height: calc(100% - 5px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  pointer-events: none;
}

.landing-hero .hero-visual-img {
  height: 100%;
  width: auto;
  max-width: 70vw;
  object-fit: contain;
  object-position: right center;
  transform: scale(1.2);
  transform-origin: right center;
}

/* Hero text overlays on the image */
.landing-hero .hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  min-height: 70vh;
}

.landing-hero .hero-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.landing-hero .hero-ai-powered {
  color: var(--text-primary);
}

.landing-hero .hero-algo-trading {
  color: var(--accent-teal);
}

.landing-hero .hero-algo-trading-sm {
  font-size: 0.85em;
}

.landing-hero .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  width: fit-content;
}

.landing-hero .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* ========== Features Section ========== */
.landing-features {
  padding: 0 2rem 5rem;
  margin-top: -10px;
  background: #0f192c;
}

.landing-features .features-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.landing-features .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.landing-features .feature-block {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.6s ease-out backwards;
}

.landing-features .feature-block:nth-child(1) { animation-delay: 0.1s; }
.landing-features .feature-block:nth-child(2) { animation-delay: 0.2s; }
.landing-features .feature-block:nth-child(3) { animation-delay: 0.3s; }
.landing-features .feature-block:nth-child(4) { animation-delay: 0.4s; }

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

.landing-features .feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.landing-features .feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(34, 211, 238, 0.15) 100%);
}

.landing-features .feature-icon-svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.landing-features .feature-block h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.landing-features .feature-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ========== Footer ========== */
.landing-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-dark);
}

.landing-footer .footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.landing-footer .footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .landing-hero .hero-text {
    text-align: center;
    align-items: center;
  }

  .landing-hero .hero-text h1 {
    text-align: center;
  }

  .landing-hero .hero-visual-img {
    max-width: 60vw;
  }

  .landing-hero .btn-cta {
    margin: 0 auto;
  }

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

/* ========== Mobile Responsive (per reference layout) ========== */
@media (max-width: 768px) {
  /* Nav: logo + Tradentical text, search + hamburger only */
  .landing-nav {
    padding: 0.75rem 1rem;
  }

  .landing-nav .brand-logo-img {
    height: 40px;
    width: auto;
  }

  .landing-nav .social-icons-squared {
    display: none;
  }

  .landing-nav .btn-google {
    display: none !important;
  }

  .landing-nav .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hero: vertical stack, tagline → title → description → CTA → graphic */
  .landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    height: auto;
    padding: 5.5rem 1.25rem 2rem;
    text-align: center;
    overflow: visible;
  }

  .landing-hero .hero-content {
    order: 0;
    width: 100%;
    min-height: auto;
  }

  .landing-hero .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    min-height: auto;
  }

  .landing-hero .hero-tagline {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 400;
  }

  .landing-hero .hero-text h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    text-align: center;
    margin-bottom: 1rem;
  }

  .landing-hero .hero-description {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 320px;
  }

  .landing-hero .btn-cta {
    margin: 0 auto 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  }

  .landing-hero .hero-visual {
    order: 1;
    position: static;
    width: 100vw;
    margin: 0.25rem 0 0;
    margin-left: calc(-50vw + 50%);
    padding: 0;
    height: auto;
    display: flex;
    justify-content: center;
    overflow: visible;
  }

  .landing-hero .hero-visual-img {
    width: 150vw;
    min-width: 150vw;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin-left: -25vw;
  }

  /* Features: single column, icon left + title/desc right */
  .landing-features {
    padding: 0 1.25rem 3rem;
    margin-top: 0;
  }

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

  .landing-features .feature-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem;
  }

  .landing-features .feature-icon {
    flex-shrink: 0;
    margin-bottom: 0;
    width: 44px;
    height: 44px;
  }

  .landing-features .feature-icon-svg {
    width: 28px;
    height: 28px;
  }

  .landing-features .feature-block h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .landing-features .feature-block p {
    font-size: 0.8rem;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .landing-hero .hero-text h1 {
    font-size: 1.6rem;
  }
}

/* Login popup dark mode */
.landing-page .login-overlay {
  background: rgba(0, 0, 0, 0.85);
}

.landing-page .login-popup {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-page .login-popup .logo-container h2,
.landing-page .login-popup .login-form h3 {
  color: var(--text-primary);
}

.landing-page .login-popup .login-form p,
.landing-page .login-popup .login-footer p {
  color: var(--text-muted);
}

.landing-page .login-popup .close-btn {
  color: var(--text-muted);
}

.landing-page .login-popup .close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.landing-page .login-popup input[type="email"],
.landing-page .login-popup input[type="password"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.landing-page .login-popup input::placeholder {
  color: var(--text-muted);
}

.landing-page .login-popup .signup-link a,
.landing-page .login-popup .forgot-password a {
  color: var(--accent-blue);
}

/* Mobile fallback Google button in login popup */
.landing-page .login-popup .btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  color: #1e40af;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.landing-page .login-popup .btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
