/* ============================================================================
   STOCKSPOT - PRODUCTION WEBSITE STYLES
   Modern, responsive, clean design. Mobile-first approach.
   ============================================================================ */

/* CSS Custom Properties (Variables) */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--gray-50);
  overflow-x: hidden;
}

/* Gradient text effect for brand */
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ============================================================================
   LAYOUT & UTILITIES
   ============================================================================ */

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

.container-sm {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding: 1rem 0; }
.py-4 { padding: 2rem 0; }
.py-6 { padding: 3rem 0; }
.px-2 { padding: 0 1rem; }

.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.font-bold { font-weight: 700; }

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Logo image + text helpers */
.logo-img {
  height: 40px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.logo-text {
  display: inline-block;
  font-weight: 700;
  color: var(--primary-color);
}

.site-logo {
  height: 54px;
  width: auto;
  vertical-align: middle;
  display: block;
}

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

.brand-name {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
}

nav ul {
  display: none;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  background: none;
  padding: 0.5rem;
}

.hamburger span {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-mobile a:hover {
  background: var(--gray-100);
  border-radius: var(--border-radius);
}

/* Desktop nav */
@media (min-width: 768px) {
  nav ul {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 1rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.875rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--gray-50);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--primary-color);
  border: none;
}

.btn-ghost:hover {
  background: var(--gray-100);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
  padding: 4rem 1rem;
}

section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.how-it-works {
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================================
   EXAMPLE DEALS
   ============================================================================ */

.example-deals {
  background: white;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.deal-card {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: transparent;
}

.deal-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.deal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.deal-original {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.deal-retailer {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.deal-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ============================================================================
   EMAIL SIGNUP FORM
   ============================================================================ */

.signup-section {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
}

.signup-form {
  max-width: 500px;
  margin: 2rem auto 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.form-submit:hover {
  background: var(--accent-dark);
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================================================================
   APP SECTION
   ============================================================================ */

.app-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 3rem 1rem;
}

.app-content {
  text-align: center;
  color: white;
}

.app-section h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.app-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.app-download-btn {
  background: white;
  color: var(--primary-color);
  padding: 0.875rem 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.app-download-btn:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.app-secondary-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ============================================================================
   PRICING SECTION
   ============================================================================ */

.pricing-section {
  background: white;
  padding: 3rem 1rem;
}

.pricing-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pricing-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pricing-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-6px);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  transform: scale(1.05);
}

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

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: inherit;
}

.pricing-card.featured .plan-name {
  color: white;
}

.plan-pricing {
  margin-bottom: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-card.featured .price {
  color: white;
}

.period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
}

.pricing-card.featured .period {
  color: rgba(255, 255, 255, 0.9);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.pricing-card.featured .plan-features li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

.pricing-card.featured .plan-features li:before {
  color: var(--accent-color);
}

.plan-btn {
  width: 100%;
  padding: 0.875rem;
  margin-top: 1.5rem;
  font-weight: 600;
}

.pricing-card .plan-btn {
  background: var(--primary-color);
  color: white;
}

.pricing-card .plan-btn:hover {
  background: var(--primary-dark);
}

.pricing-card.featured .plan-btn {
  background: white;
  color: var(--primary-color);
}

.pricing-card.featured .plan-btn:hover {
  background: var(--gray-100);
}

/* ============================================================================
   TRUST SECTION
   ============================================================================ */

.trust-section {
  background: white;
}

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.trust-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================================
   AFFILIATE SECTION
   ============================================================================ */

.affiliate-notice {
  background: var(--gray-50);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.affiliate-notice h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.affiliate-notice p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  background: var(--gray-900);
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--gray-300);
}

.footer-bottom a:hover {
  color: white;
}

/* ============================================================================
   LEGAL PAGES
   ============================================================================ */

.legal-content {
  background: white;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }

  section h2 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

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

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 1.5rem;
    margin: 1rem auto;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ============================================================================
   PRIVACY SECTION
   ============================================================================ */

.privacy-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  margin: 2rem 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.privacy-item {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.privacy-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.privacy-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.privacy-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-cta a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

.privacy-cta a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.privacy-cta a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================================
   UTILITY: ACCESSIBILITY
   ============================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
