/* ============================================
   Stocks Notifier - Landing Page Styles
   2026 Design: Dark, Glassmorphism, Gradients
   ============================================ */

:root {
  --purple: #8B5CF6;
  --pink: #EC4899;
  --orange: #F97316;
  --dark: #07070d;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary > * {
  position: relative;
  z-index: 1;
}

/* Language Toggle Pill */
.lang-toggle-pill {
  display: flex;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.lang-slider.right {
  transform: translateX(100%);
}
.lang-option {
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.lang-option.active {
  color: white;
}

/* Glass Navigation */
.glass-nav {
  background: rgba(7, 7, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-nav.scrolled {
  background: rgba(7, 7, 13, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Glass Chip */
.glass-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

/* Gradient Orbs (background decorations) */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  right: -100px;
  animation: float-orb 20s ease-in-out infinite;
}
.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  bottom: -100px;
  left: -100px;
  animation: float-orb 25s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--orange);
  top: 40%;
  left: 30%;
  animation: float-orb 18s ease-in-out infinite 5s;
}
.orb-4 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  top: 0;
  right: -200px;
  animation: float-orb 22s ease-in-out infinite;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a2e, #16162a);
  border-radius: 40px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 25px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 2;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0c0c18;
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 8px;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.phone-stock-list {
  flex: 1;
  overflow: hidden;
  padding: 8px 12px;
}
.phone-stock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.2s;
}
.phone-stock-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.phone-stock-symbol {
  font-weight: 700;
  font-size: 13px;
  width: 56px;
}
.phone-stock-name {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  width: 56px;
}
.phone-stock-chart-mini {
  flex: 1;
  height: 28px;
  margin: 0 10px;
}
.phone-stock-price {
  font-size: 13px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  text-align: right;
}
.phone-stock-change {
  font-size: 10px;
  text-align: right;
  font-weight: 500;
}
.text-gain { color: #34D399; }
.text-loss { color: #F87171; }

/* Hero Notification Bubble */
.notification-bubble {
  position: absolute;
  top: 60px;
  left: -40px;
  background: rgba(15, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 3;
  opacity: 0;
  transform: translateX(-20px);
  animation: slide-in-notification 0.6s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
  min-width: 240px;
}
@keyframes slide-in-notification {
  to { opacity: 1; transform: translateX(0); }
}

/* Ticker Strip */
.ticker-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.ticker-track {
  display: flex;
  gap: 3rem;
  animation: scroll-ticker 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-size: 14px;
}
.ticker-symbol {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.ticker-price {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: rgba(255, 255, 255, 0.5);
}
.ticker-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
.ticker-change.up {
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
}
.ticker-change.down {
  color: #F87171;
  background: rgba(248, 113, 113, 0.1);
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Bento Cards */
.bento-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(139, 92, 246, 0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}
.bento-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.bento-card:hover::before {
  opacity: 1;
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini Notification Stack (Feature card) */
.mini-notif {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateX(20px);
}
.bento-card:hover .mini-notif-1 { animation: slide-in-notif 0.4s ease forwards 0s; }
.bento-card:hover .mini-notif-2 { animation: slide-in-notif 0.4s ease forwards 0.15s; }
.bento-card:hover .mini-notif-3 { animation: slide-in-notif 0.4s ease forwards 0.3s; }
.mini-notif.animated { opacity: 1; transform: translateX(0); }
@keyframes slide-in-notif {
  to { opacity: 1; transform: translateX(0); }
}

/* Mini Chart Bars (Feature card) */
.mini-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.mini-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.7));
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}
.bento-card:hover .mini-bar {
  animation: bar-grow 0.6s ease forwards;
}
@keyframes bar-grow {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Stock Tags (Feature card) */
.stock-tag {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s;
}
.stock-tag:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}
.stock-tag.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  color: var(--purple);
}

/* Security Bar Animation */
.security-bar {
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.security-bar.animated {
  width: 99.9% !important;
}

/* Demo Section */
.demo-container {
  position: relative;
}
.demo-type-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s;
}
.demo-type-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(139, 92, 246, 0.4);
  color: white;
}
.demo-type-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
}

/* Demo Slider */
.demo-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  cursor: pointer;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transition: box-shadow 0.2s;
}
.demo-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}
.demo-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  cursor: pointer;
  border: none;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Demo Chart Canvas */
#demo-chart {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

/* Demo Notification */
#demo-notification {
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* How It Works */
.step-card {
  text-align: center;
  position: relative;
  padding: 32px 24px;
}
.step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--purple);
  position: relative;
  z-index: 1;
}
.step-connector {
  position: absolute;
  top: 60px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2), transparent);
  z-index: 0;
}

/* Counter/Stats */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Testimonial Marquee */
.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1rem;
  animation: marquee 45s linear infinite;
  width: max-content;
}
.marquee-reverse {
  animation-direction: reverse;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.2);
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.testimonial-stars {
  color: #FBBF24;
  font-size: 12px;
  letter-spacing: 2px;
}

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.faq-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.15);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  text-align: left;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s;
}
.faq-answer p {
  padding: 0 24px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 200px;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* CTA Section */
.cta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.08), transparent 60%);
  pointer-events: none;
}

/* Scroll Reveal Animations */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor Glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* Hero Entrance Animations */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-anim-1 { animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both; }
.hero-anim-2 { animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both; }
.hero-anim-3 { animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both; }
.hero-anim-4 { animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.55s both; }
.hero-anim-5 { animation: hero-fade-up 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both; }
.hero-anim-phone { animation: hero-fade-up 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both; }

/* Animated Gradient Text Shimmer */
.gradient-text-animated {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange), var(--purple));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Phone Mockup Hover */
.phone-mockup {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.phone-mockup:hover {
  transform: translateY(-8px) rotateY(-2deg);
}

/* Bento Card Tilt on Hover */
.bento-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Responsive */
@media (max-width: 1024px) {
  .phone-mockup {
    width: 240px;
    height: 480px;
    border-radius: 32px;
  }
  .phone-screen {
    border-radius: 26px;
  }
  .notification-bubble {
    left: -20px;
    top: 40px;
  }
}
@media (max-width: 768px) {
  .phone-mockup {
    width: 220px;
    height: 440px;
    border-radius: 28px;
  }
  .phone-screen {
    border-radius: 22px;
  }
  .notification-bubble {
    position: relative;
    top: auto;
    left: auto;
    margin: -20px auto 0;
    transform: none;
    animation: none;
    opacity: 1;
    width: 260px;
  }
  .gradient-orb {
    opacity: 0.08;
  }
  .testimonial-card {
    width: 300px;
  }
}
@media (max-width: 480px) {
  .phone-mockup {
    width: 200px;
    height: 400px;
  }
}
