/* ==========================================================================
   FUTURE WAVE ANALYSIS — Home Page Stylesheet
   ========================================================================== */

/* ==========================================================================
   HERO SECTION (Home)
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: calc(100vh - 4.25rem);
    display: flex;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

.highlight-underline {
  position: relative;
  white-space: nowrap;
  color: var(--tide);
}

.highlight-underline svg {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.15rem;
  }
}

.hero-cta-group {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .hero-cta-group {
    flex-direction: row;
  }
}

.hero-trust-bullets {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 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;
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .chart-card {
    padding: 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;
}

.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;
}


/* ==========================================================================
   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;
}

.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;
  }
}

