/* ============================================================
   screen.css -- Alpha Insights Homepage
   Dark terminal aesthetic | Semantic colour system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;800&family=Bodoni+Moda:wght@400;500;600&family=Raleway:wght@200;300&display=swap');

/* --- Reset & Base --- */
body.home-template {
  background: var(--bg, #000);
  color: var(--fg, #e0e0e0);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  line-height: 1.6;
  padding-top: 50px;
  overflow-x: hidden;
  margin: 0;
}

.home-template .outer { border-top: none; }

/* --- Utility --- */
.home-section {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.home-section--wide {
  max-width: 1100px;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold, #C9A961);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted, #999);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Scroll animations (IntersectionObserver) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Sticky Nav blur enhancement on scroll --- */
.site-header.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   SECTION 1 -- HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,169,97,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Hero headline */
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.hero-sub {
  text-align: center;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
}

/* Hero CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.cta-link-secondary {
  font-size: 0.875rem;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.cta-link-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Hero background feed */
.hero-bg-feed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
}

.hero-bg-feed-inner {
  width: 100%;
  animation: scroll-hero-feed 120s linear infinite;
}

@keyframes scroll-hero-feed {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.hero-bg-feed {
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-bg-item {
  padding: 0.5rem 2rem;
  font-size: 0.875rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Proof bar */
.proof-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0 0;
  width: 100%;
  max-width: 660px;
}

.proof-stat {
  text-align: center;
}

.proof-stat__number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
}

.proof-stat__number .green {
  color: var(--accent-green);
}

.proof-stat__number .gold {
  color: var(--accent-gold);
}

.proof-stat__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Capacity badge */
.capacity-badge {
  position: fixed;
  top: 60px;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  color: var(--muted);
  z-index: 100;
}

.capacity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.capacity-text { color: rgba(255, 255, 255, 0.6); }
.capacity-status { color: var(--accent-green); font-weight: 500; }

/* ============================================================
   SECTION 2 -- WHY WE'RE DIFFERENT
   ============================================================ */
.diff-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.diff-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.diff-card__icon {
  width: 36px;
  height: 36px;
  color: var(--accent-gold);
  margin: 0 auto 1rem;
  display: block;
}

.diff-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.diff-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ============================================================
   SECTION 3 -- WHAT YOU GET (Features)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--card, #0a0a0a);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.75rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(201, 169, 97, 0.3);
}

.feature-card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   SECTION 4 -- TRACK RECORD (Proof)
   ============================================================ */
.track-record {
  background: linear-gradient(180deg, rgba(201,169,97,0.02) 0%, transparent 100%);
}

/* Performance chart */
.chart-container {
  margin: 2.5rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.chart-header {
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
}

.chart-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.chart-container canvas {
  width: 100% !important;
  max-height: 300px;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.chart-legend__swatch {
  width: 12px;
  height: 3px;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Stock call tables */
.calls-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.calls-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.calls-table-header {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.calls-table-header.long { color: var(--accent-green); }
.calls-table-header.short { color: var(--accent-red); }

.calls-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.calls-table th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.calls-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--fg);
}

.calls-table tr:last-child td { border-bottom: none; }

.calls-table .ticker {
  font-weight: 600;
  color: var(--accent-gold);
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
}

.calls-table .return-positive { color: var(--accent-green); font-weight: 600; }
.calls-table .return-negative { color: var(--accent-red); font-weight: 600; }

.calls-table .view {
  font-size: 0.75rem;
  color: var(--muted);
}

.track-disclaimer {
  margin-top: 2rem;
  font-size: 0.6875rem;
  color: var(--muted);
  opacity: 0.6;
  line-height: 1.6;
  max-width: 700px;
}

/* ============================================================
   SECTION 5 -- SEARCH (mid-page conversion hook)
   ============================================================ */
.search-section {
  border-top: 1px solid var(--border);
}

.search-section .section-heading {
  text-align: center;
}

.search-section .search-wrap {
  max-width: 660px;
  margin: 2rem auto 0;
  position: relative;
}

.search-container {
  position: relative;
  text-align: left;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.7875rem 1.5rem;
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.search-input::placeholder {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-input:focus {
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.08), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #101114;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(201, 169, 97, 0.08); }

.search-result-ticker {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent-gold);
  min-width: 50px;
}

.search-result-name {
  font-size: 0.9375rem;
  color: var(--fg);
}

.search-no-results {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

.search-loading {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #101114;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  z-index: 50;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* Search preview card (homepage gated results) */
.search-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.search-preview-card:last-child { border-bottom: none; }

.search-preview-card__info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-preview-card__ticker {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent-gold);
  min-width: 50px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
}

.search-preview-card__name {
  font-size: 0.9375rem;
  color: var(--fg);
}

.search-preview-card__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.search-preview-card__cta:hover {
  background: rgba(201, 169, 97, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ============================================================
   SECTION 6 -- TESTIMONIALS + SOCIAL PROOF
   ============================================================ */
.testimonials-section {
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.testimonial-card__text {
  font-size: 0.875rem;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.testimonial-card__author {
  font-size: 0.75rem;
  color: var(--muted);
}

.social-proof-badge {
  text-align: center;
  margin-top: 2rem;
}

.cta-ausbiz {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s ease;
}

.cta-ausbiz:hover {
  color: var(--accent-gold);
  border-color: rgba(201, 169, 97, 0.3);
}

/* ============================================================
   SECTION 7 -- FINAL CTA
   ============================================================ */
.final-cta {
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta .section-heading {
  max-width: 600px;
  margin: 0 auto 1rem;
}

.final-cta .section-sub {
  margin: 0 auto 2rem;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: #C9A961;
  color: #0F1014;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
  letter-spacing: 0.02em;
}

.cta-btn:hover {
  background: #dfbc6d;
  color: #0F1014;
}

.cta-btn--outline {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  margin-left: 1rem;
}

.cta-btn--outline:hover {
  background: rgba(201, 169, 97, 0.1);
  color: var(--accent-gold);
}

.cta-proof {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
}

.cta-trial {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .proof-bar {
    gap: 1.5rem;
  }

  .proof-stat__number {
    font-size: 1.375rem;
  }

  .capacity-badge { display: none; }

  .home-section {
    padding: 3rem 1.25rem;
  }

  .diff-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .diff-section {
    padding: 3rem 1.25rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .calls-wrapper {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .cta-btn--outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-feed {
    display: none;
  }

  .hero-bg-feed-inner {
    animation: none;
  }
}
