/* ==========================================================================
   FUTURE WAVE ANALYSIS — Home Page Stylesheet
   ========================================================================== */

/* ==========================================================================
   HERO SECTION (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: auto;
    display: block;
    padding-top: 3.25rem;
    padding-bottom: 3.5rem;
    box-sizing: border-box;
  }
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-top: 0.95rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.95rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.45rem;
  }
}

.highlight-underline {
  position: relative;
  white-space: nowrap;
  color: var(--tide);
}

@media (max-width: 639.98px) {
  .highlight-underline {
    white-space: normal;
    display: inline;
  }
}

.highlight-underline svg {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero-subtitle {
  margin-top: 0.95rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mist);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

.hero-cta-group {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.hero-trust-bullets {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--mist);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Chart Visual Card */
.hero-visual {
  position: relative;
  z-index: 1;
}

.chart-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .chart-card {
    padding: 1.65rem 2rem;
  }
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1rem;
}

.chart-caption-top {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mist);
}

/* Floating Chart Badges */
.floating-badge {
  position: absolute;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--bg-panel-2);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.floating-badge:hover {
  transform: translateY(-2px);
}

.floating-badge.badge-top-left {
  top: -1.25rem;
  left: -0.75rem;
}

.floating-badge.badge-bottom-right {
  bottom: -1.25rem;
  right: -0.75rem;
}

@media (max-width: 639.98px) {
  .chart-card {
    padding: 1.25rem 1rem;
    overflow: hidden;
  }

  .chart-card-header {
    margin-top: 3.25rem;
  }

  .chart-desc-bottom {
    margin-bottom: 3.25rem;
  }

  .floating-badge {
    padding: 0.45rem 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .floating-badge.badge-top-left {
    top: 0.75rem;
    left: 0.75rem;
    right: auto;
  }

  .floating-badge.badge-bottom-right {
    bottom: 0.75rem;
    right: 0.75rem;
    left: auto;
  }

  [dir="rtl"] .floating-badge.badge-top-left {
    left: auto;
    right: 0.75rem;
  }

  [dir="rtl"] .floating-badge.badge-bottom-right {
    right: auto;
    left: 0.75rem;
  }
}

.fb-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.fb-main {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.chart-desc-bottom {
  margin-top: 1rem;
  font-size: 0.78125rem;
  line-height: 1.55;
  color: var(--mist);
}

/* Interactive SVG Diagram */
.interactive-wave-svg {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  overflow: visible;
}

.wave-node-point {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wave-node-point:hover circle.point-hit {
  stroke-width: 4px;
  stroke: var(--tide);
  fill: #fff;
}

/* Tooltip on chart node */
.wave-tooltip {
  position: absolute;
  background: var(--bg-panel-2);
  border: 1px solid var(--tide-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--foreground);
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition-fast);
  z-index: 10;
  max-width: 200px;
}

.wave-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   Features Section ("Why Structure First")
   ========================================================================== */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 6.5rem;
    padding-bottom: 6.5rem;
  }
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--tide);
}

.section-heading {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.5rem;
  }
}

.feature-cards-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--tide-border);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon-box {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--tide-border);
  background: var(--tide-bg);
  color: var(--tide);
}

.feature-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--mist);
}


/* ==========================================================================
   Covered Stocks Grid (Home & Directory)
   ========================================================================== */
.stocks-preview-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 26, 46, 0.4);
}

.stocks-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stocks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stocks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .stocks-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stock-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 1.5rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.stock-card:hover {
  transform: translateY(-4px);
  border-color: var(--tide-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.stock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stock-ticker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.stock-company {
  margin-top: 0.15rem;
  font-size: 0.875rem;
  color: var(--mist);
}

.stock-sparkline {
  height: 2rem;
  width: 4.5rem;
}

.stock-category {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mist-dim);
}

.stock-badge {
  margin-top: 1rem;
  width: fit-content;
}

/* ==========================================================================
   Latest Research — Elliott Wave Opportunities Grid
   ========================================================================== */
.opportunities-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 760px;
}

.opportunities-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mist);
}

.opportunities-grid {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .opportunities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .opportunities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stock-card.opp-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  gap: 1.15rem;
}

.stock-card.opp-card:hover {
  transform: translateY(-4px);
  border-color: var(--tide-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.opp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.opp-ticker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1;
}

.opp-timeframe {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.opp-status-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground-muted);
}

.opp-status-text {
  color: var(--foreground-muted);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
}

.opp-card-action {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.opp-btn {
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 600;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.stock-card.opp-card:hover .opp-btn {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.25);
}

.opportunities-footer {
  margin-top: 2.75rem;
  display: flex;
  justify-content: center;
}

.opportunities-footer .btn {
  padding: 0.7rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
}


/* ==========================================================================
   The Weekly Rhythm (Timeline + Live Card)
   ========================================================================== */
.rhythm-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .rhythm-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.timeline-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
}

.timeline-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon-wrap {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--tide);
}

.timeline-line {
  margin-top: 0.5rem;
  width: 1px;
  flex: 1;
  background: var(--line-strong);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.timeline-desc {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
}

/* Live Excerpt Card */
.live-excerpt-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .live-excerpt-card {
    padding: 2rem;
  }
}

.excerpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.excerpt-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.excerpt-title span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mist);
}

.excerpt-stats-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 539.98px) {
  .excerpt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-box {
    padding: 0.65rem 0.5rem;
    min-width: 0;
  }

  .stat-label {
    font-size: 0.625rem;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .stat-val {
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .excerpt-stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-box {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(16, 36, 59, 0.6);
  padding: 0.85rem;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.stat-val {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
}

.scenario-callout {
  margin-top: 1.25rem;
  border-left: 2px solid var(--tide);
  padding-left: 1rem;
}

.scenario-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tide);
}

.scenario-text {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground-muted);
}

.excerpt-footnote {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--mist-dim);
}


/* ==========================================================================
   Hero CTA Box (Bottom of Home)
   ========================================================================== */
.cta-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  padding: 3.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .cta-banner-card {
    padding: 5rem 3rem;
  }
}

.cta-banner-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .cta-banner-card h2 {
    font-size: 2.5rem;
  }
}

.cta-banner-card p {
  margin-top: 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--mist);
  font-size: 1rem;
}

.cta-buttons-center {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .cta-buttons-center {
    flex-direction: row;
  }
}

