/* ============================================================
   platform.css — Page-specific styles for the Platform page
   Shared styles (tokens, base, components, nav, footer) are
   loaded from their respective shared files.
   ============================================================ */

/* ==================== HERO (DARK) ==================== */
.hero {
  background: var(--navy-dark, #141c40);
  padding: 160px 0 80px;
  min-height: 90vh;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.hero-content {
  max-width: 1101px;
}

.hero .section-label {
  color: #ddd;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -1.44px;
  color: #fff;
  margin-top: 4px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.5;
  color: #e8e8e8;
  max-width: 431px;
  margin-top: 40px;
  margin-left: auto;
}

/* ==================== STEPS TIMELINE ==================== */
.steps-section {
  padding: 100px 0 80px;
}

.steps-header {
  text-align: center;
  max-width: 1188px;
  margin: 0 auto 70px;
}

.steps-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 100px);
  letter-spacing: -1.44px;
  line-height: 1.05;
  margin-top: 4px;
}

.steps-header p {
  max-width: 498px;
  margin: 20px auto 0;
  font-size: 16px;
}

.timeline {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* Vertical center line */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--navy-light);
  transform: translateX(-50%);
}

/* Animated progress line overlaying the static one */
.timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--orange);
  transform: translateX(-50%);
  transition: height 0.1s linear;
  z-index: 1;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 100px;
  align-items: start;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 12px;
  height: 12px;
  background: var(--bg-page);
  border: 2px solid var(--navy-light);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.timeline-step.active .timeline-dot {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 6px rgba(239, 62, 35, 0.15);
}

.timeline-number {
  font-family: var(--font-display);
  font-size: 132px;
  font-weight: 400;
  color: var(--navy-light);
  line-height: 1;
  user-select: none;
  opacity: 0.5;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
  margin-top: 80px;
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 20px;
}

/* Zigzag: odd steps have number left, content right. Even steps reverse. */
.timeline-step:nth-child(odd) .timeline-number-col {
  text-align: right;
  padding-right: 40px;
}

.timeline-step:nth-child(odd) .timeline-content {
  padding-left: 40px;
}

.timeline-step:nth-child(even) {
  direction: rtl;
}

.timeline-step:nth-child(even) > * {
  direction: ltr;
}

.timeline-step:nth-child(even) .timeline-number-col {
  text-align: right;
  padding-right: 40px;
}

.timeline-step:nth-child(even) .timeline-content {
  padding-left: 40px;
}

/* ==================== FEATURES ==================== */
.features-section {
  padding: 100px 0;
}

.features-header {
  text-align: center;
  max-width: 1188px;
  margin: 0 auto 50px;
}

.features-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -1.44px;
  line-height: 1.05;
  margin-top: 4px;
}

.features-header p {
  max-width: 498px;
  margin: 20px auto 0;
  font-size: 16px;
}

/* Hero feature card */
.feature-hero {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}

.feature-hero-text h3 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
  margin-bottom: 20px;
}

.feature-hero-text p {
  font-size: 16px;
  line-height: 1.5;
}

.feature-hero-screenshot {
  background: var(--bg-dark);
  border: 1px solid #1f1f1f;
  border-radius: 16px;
  height: 304px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.feature-hero-screenshot-placeholder {
  border: 2px dashed #2a2a2a;
  border-radius: 10px;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  width: 100%;
}

/* Feature grid 2x3 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-bg);
  border-radius: 6px;
  border-bottom: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -1.44px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ==================== DRIFTWATCH ==================== */
.driftwatch-section {
  background: var(--bg-alt);
  padding: 100px 0;
}

.driftwatch-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.driftwatch-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.driftwatch-heading h2 {
  font-family: var(--font-display);
  font-size: 50px;
  letter-spacing: -1.44px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.driftwatch-heading p {
  font-size: 16px;
  line-height: 1.5;
}

.driftwatch-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.driftwatch-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.driftwatch-feature-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.driftwatch-feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.driftwatch-feature-text h4 {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.driftwatch-feature-text p {
  font-size: 16px;
  color: var(--text-primary);
}

/* DriftWatch terminal mockup */
.dw-terminal {
  background: var(--bg-dark);
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 90px rgba(184, 255, 87, 0.04),
    0 23px 69px rgba(0, 0, 0, 0.4);
}

.dw-titlebar {
  background: #1a1a1a;
  border-bottom: 1px solid #1f1f1f;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.dw-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dw-dot-red {
  background: #ff5f57;
}
.dw-dot-yellow {
  background: #febc2e;
}
.dw-dot-green {
  background: #28c840;
}

.dw-url {
  background: #0a0a0a;
  border-radius: 6px;
  padding: 4px 12px;
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.dw-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dw-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dw-status-pill {
  background: rgba(184, 255, 87, 0.1);
  border: 1px solid rgba(184, 255, 87, 0.2);
  border-radius: 999px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dw-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.67;
}

.dw-status-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--green);
}

.dw-updated {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.dw-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dw-metric {
  background: #1a1a1a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 14px;
}

.dw-metric-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.dw-metric-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  margin-top: 8px;
}

.dw-metric-change {
  font-family: var(--font-body);
  font-size: 11px;
  margin-top: 6px;
}

.dw-chart-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.dw-bars {
  display: flex;
  gap: 3px;
  height: 50px;
  align-items: flex-end;
  margin-top: 10px;
}

.dw-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
}

.dw-alert {
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dw-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.67;
  margin-top: 6px;
  flex-shrink: 0;
}

.dw-alert-text {
  font-size: 12px;
  line-height: 1.5;
}

.dw-alert-text strong {
  color: var(--yellow);
  font-weight: 600;
}

.dw-alert-text span {
  color: var(--text-secondary);
}

/* ==================== INTEGRATIONS ==================== */
.integrations-section {
  padding: 100px 0 60px;
}

.integrations-header {
  text-align: center;
  max-width: 1188px;
  margin: 0 auto 40px;
}

.integrations-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -1.44px;
  line-height: 1.05;
  margin-top: 4px;
}

.integrations-header p {
  max-width: 498px;
  margin: 20px auto 0;
  font-size: 16px;
}

.channel-pills {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.channel-pill {
  background: var(--accent-bg);
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.channel-pill:hover {
  transform: translateY(-2px);
}

.channel-pill svg {
  width: 24px;
  height: 24px;
}

/* ==================== ROI CALCULATOR ==================== */
.roi-section {
  padding: 60px 0 100px;
}

.roi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.roi-header {
  text-align: center;
  max-width: 842px;
  margin: 0 auto 50px;
  grid-column: span 2;
}

.roi-header .section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -1.44px;
  line-height: 1.05;
  margin-top: 4px;
}

.roi-header p {
  max-width: 498px;
  margin: 10px auto 0;
  font-size: 16px;
}

.roi-input-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.roi-input-section h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.roi-input-section .roi-desc {
  font-size: 15px;
  margin-top: 10px;
}

.roi-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.roi-input {
  flex: 1;
  height: 56px;
  border: 1px solid var(--text-primary);
  border-radius: 10px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: #fff;
}

.roi-input::placeholder {
  color: var(--text-secondary);
}

.roi-result {
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 32px 35px;
}

.roi-result h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.2px;
  margin-bottom: 24px;
}

.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e8e8e8;
}

.roi-row:last-child {
  border-bottom: none;
  padding-top: 20px;
}

.roi-row-label {
  font-size: 14px;
}

.roi-row-value {
  font-weight: 700;
  font-size: 18px;
}

.roi-row-value.accent {
  color: var(--accent);
}

.roi-row-value.large {
  font-size: 20px;
}

.roi-note {
  text-align: center;
  font-size: 12px;
  margin-top: 16px;
}

/* ==================== CTA ==================== */
.cta-section {
  background: var(--bg-footer);
  padding: 100px 0;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.cta-top-line {
  font-size: 16px;
  margin-bottom: 8px;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(60px, 12vw, 180px);
  font-weight: 400;
  letter-spacing: -1.44px;
  line-height: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

/* ==================== FOOTER CTA BAND ==================== */
.footer-cta {
  background: #303030;
  padding: 50px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-cta-text h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.64px;
  color: #ededed;
}

.footer-cta-text p {
  font-size: 15px;
  color: #e8e8e8;
  margin-top: 9px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 60px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline::before,
  .timeline-progress {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

  .timeline-step:nth-child(even) {
    direction: ltr;
  }

  .timeline-number-col {
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-content {
    padding-left: 50px !important;
  }

  .timeline-number {
    font-size: 80px;
  }

  .feature-hero,
  .driftwatch-inner,
  .roi-inner {
    grid-template-columns: 1fr;
  }

  .roi-header {
    grid-column: span 1;
  }

  .footer-cta-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
  }

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

  .channel-pills {
    flex-direction: column;
    align-items: center;
  }

  .cta-heading {
    font-size: 60px;
  }
}
