/* ==========================================================================
   page-premium.css — Shared premium styles for startup-tools + validate pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --grad-accent: linear-gradient(135deg, #3d61df 0%, #21dd90 100%);
  --grad-accent-rev: linear-gradient(135deg, #21dd90 0%, #3d61df 100%);
  --grad-hero-bg: linear-gradient(160deg, #eef2ff 0%, #ffffff 55%, #ecfdf5 100%);
  --grad-cta: linear-gradient(135deg, #2952d9 0%, #1a44c8 40%, #21dd90 100%);
  --shadow-float: 0 32px 80px rgba(61, 97, 223, 0.18);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 20px 48px rgba(61, 97, 223, 0.16);
  --shadow-widget: 0 8px 32px rgba(0, 0, 0, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-card: 16px;
  --radius-lg: 24px;
}

/* --------------------------------------------------------------------------
   Gradient text utility
   -------------------------------------------------------------------------- */
.text-gradient,
h1 .text-gradient,
h2 .text-gradient,
.h1 .text-gradient,
.h2 .text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline;
  /* Override base.css `span { font-size: 16px }` */
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* --------------------------------------------------------------------------
   Scroll reveal system
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal-child.visible {
  opacity: 1;
  transform: none;
}

/* Hero elements animate in on load, not on scroll */
.hero-premium .reveal {
  animation: hero-fade-in 0.8s var(--ease-out) forwards;
}
.hero-premium .col-right.reveal {
  animation-delay: 0.15s;
  opacity: 0;
}
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* CTA section — always visible (observer unreliable at page bottom) */
.cta-gradient .reveal {
  opacity: 1;
  transform: none;
  animation: hero-fade-in 0.7s var(--ease-out) forwards;
  animation-delay: 0.1s;
}

/* --------------------------------------------------------------------------
   Hero section shared styles
   -------------------------------------------------------------------------- */
.hero-premium {
  background: var(--grad-hero-bg);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-premium .block-with-cols {
  gap: 56px;
  flex-wrap: nowrap;
  align-items: stretch; /* cols same height, video fills left column height */
}
.hero-premium .col-left {
  width: 50%;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-premium .col-right {
  width: 50%;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
/* Video frame fills available height of hero */
.hero-premium .app-frame {
  width: 100%;
  max-width: 520px;
}
/* Constrain hero description to 2 lines */
.hero-premium .p-l {
  font-size: 17px;
  line-height: 1.6;
  max-width: 440px;
}

/* Hero decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-blue {
  background: radial-gradient(circle, rgba(61, 97, 223, 0.22) 0%, transparent 70%);
}
.hero-orb-green {
  background: radial-gradient(circle, rgba(33, 221, 144, 0.18) 0%, transparent 70%);
}

.hero-premium .container {
  position: relative;
  z-index: 1;
}

/* Hero badge pill */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(61,97,223,0.08), rgba(33,221,144,0.08));
  border: 1px solid rgba(61, 97, 223, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #3d61df;
  width: fit-content;
  letter-spacing: 0.01em;
}

/* Hero CTA group */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--black);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover {
  color: #3d61df;
  border-bottom-color: #3d61df;
}

/* Trust badges row */
.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.trust-badges span {
  font-size: 13px; /* override base.css span { font-size: 16px } */
  font-weight: 600;
  color: #6b7280;
}
.trust-badges span::before {
  content: '✓ ';
  color: #21dd90;
}

/* Avatar stack + social proof */
.social-proof-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.avatar-stack {
  display: flex;
  align-items: center;
}
.avatar-stack img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.avatar-stack img:first-child {
  margin-left: 0;
}
.social-proof-text {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   App window frame (wraps demo videos)
   -------------------------------------------------------------------------- */
.app-frame {
  position: relative;
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
}
.app-frame-bar {
  background: #f1f3f5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-frame-bar::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.app-frame video,
.app-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tilted frame variant */
.app-frame-tilt {
  transform: rotate(-2deg) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}
.app-frame-tilt:hover {
  transform: rotate(0deg) scale(1);
}

/* --------------------------------------------------------------------------
   Section heading with gradient underline
   -------------------------------------------------------------------------- */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3d61df;
  margin-bottom: 12px;
}
.section-heading-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.heading-underline {
  display: inline-block;
  position: relative;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--grad-accent);
}

/* --------------------------------------------------------------------------
   Premium tool cards
   -------------------------------------------------------------------------- */
.tool-card-premium {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--grad-accent));
  border-radius: 16px 16px 0 0;
}
.tool-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-spring);
}
.tool-card-premium:hover .card-icon-wrap {
  transform: scale(1.1) rotate(3deg);
}
.time-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f0f4ff;
  color: #3d61df;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Stat callout pills
   -------------------------------------------------------------------------- */
.stat-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(61, 97, 223, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 2px 12px rgba(61,97,223,0.06);
}
.stat-pill .stat-num {
  font-size: 20px;
  font-weight: 900;
  color: #3d61df;
  line-height: 1;
}
.stat-pill .stat-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Glassmorphism testimonial cards
   -------------------------------------------------------------------------- */
.glass-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.star-rating {
  color: #fbbf24;
  font-size: 14px;
  letter-spacing: 2px;
}

/* --------------------------------------------------------------------------
   Pricing cards premium
   -------------------------------------------------------------------------- */
.pricing-card-premium {
  flex: 1;
  min-width: 200px;
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: visible; /* allow ::before gradient bar to clip via border-radius */
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
/* Gradient top bar */
.pricing-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-accent);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
/* Buttons inside pricing cards must not overflow padding */
.pricing-card-premium .btn {
  min-width: 0;
  width: 100%;
  border-radius: 8px;
  box-sizing: border-box;
}
.pricing-card-premium:hover {
  transform: translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: #21dd90;
  color: #0a2540;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(33,221,144,0.3);
}

/* --------------------------------------------------------------------------
   Bottom CTA section (gradient)
   -------------------------------------------------------------------------- */
.cta-gradient {
  background: var(--grad-cta);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cta-gradient .container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.btn-white-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #3d61df;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.btn-white-solid:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* --------------------------------------------------------------------------
   Dot pattern background
   -------------------------------------------------------------------------- */
.dot-bg {
  background-image: radial-gradient(rgba(61,97,223,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --------------------------------------------------------------------------
   Phase process section (validate page)
   -------------------------------------------------------------------------- */
.phase-block {
  border-left: 3px solid var(--phase-color, #3d61df);
  padding-left: 32px;
  position: relative;
}
.phase-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--phase-color, #3d61df);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.phase-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--phase-color, #3d61df);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* --------------------------------------------------------------------------
   Comparison table (validate page)
   -------------------------------------------------------------------------- */
.compare-col-diy {
  filter: grayscale(0.15);
  opacity: 0.85;
}
.compare-col-winner {
  border: 2px solid #3d61df;
  box-shadow: var(--shadow-card-hover);
  position: relative;
}
.compare-col-winner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-accent);
  border-radius: 16px 16px 0 0;
}
.compare-col-winner:hover {
  box-shadow: 0 0 0 3px rgba(61,97,223,0.12), var(--shadow-card-hover);
}
.winner-badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--grad-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(61,97,223,0.3);
}

/* --------------------------------------------------------------------------
   Validation score widget (validate page hero)
   -------------------------------------------------------------------------- */
.validation-widget {
  position: absolute;
  bottom: 20px;
  left: -24px;
  background: #fff;
  border: 1px solid rgba(61, 97, 223, 0.2);
  border-radius: 14px;
  padding: 16px 20px;
  width: 220px;
  box-shadow: var(--shadow-widget);
  animation: widget-float 3s ease-in-out infinite alternate;
  z-index: 10;
}
@keyframes widget-float {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}
.widget-score-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.widget-score-num {
  font-size: 28px;
  font-weight: 900;
  color: #3d61df;
  line-height: 1;
  margin-bottom: 8px;
}
.widget-score-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.widget-score-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-accent);
  animation: score-fill 1.5s var(--ease-out) forwards;
  width: 0;
}
@keyframes score-fill {
  to { width: 87%; }
}
.widget-checks {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.widget-check {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget-check::before {
  content: '✓';
  color: #21dd90;
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   Testimonial ticker (validate page)
   -------------------------------------------------------------------------- */
.ticker-outer {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.ticker-outer::before,
.ticker-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--blue), transparent);
}
.ticker-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--blue), transparent);
}
.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}
.ticker-track:hover {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  flex-shrink: 0;
  max-width: 260px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Button size variant
   -------------------------------------------------------------------------- */
.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .hero-premium {
    padding: 48px 0 56px;
  }
  .hero-premium .block-with-cols {
    gap: 32px;
    flex-wrap: nowrap; /* override base.css which wraps at 1279px */
  }
  /* Override base.css col-left/col-right width:100% at 1279px */
  .hero-premium .col-left {
    width: 52%;
  }
  .hero-premium .col-right {
    width: 48%;
  }
}
@media (max-width: 806px) {
  .hero-premium {
    padding: 32px 0 40px;
  }
  .hero-premium .block-with-cols {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .hero-premium .col-left,
  .hero-premium .col-right {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .hero-premium .col-left {
    align-items: center;
    order: 2;
    gap: 14px;
  }
  /* Slim down mobile hero — hide secondary elements */
  .hero-premium .social-proof-row {
    display: none;
  }
  .hero-premium .p-l {
    font-size: 15px;
    max-width: 340px;
  }
  .hero-premium .col-right {
    order: 1;
    max-height: 280px;
    overflow: hidden;
  }
  .hero-premium .col-right .app-frame {
    max-width: 420px;
    max-height: 260px;
    overflow: hidden;
  }
  .hero-premium .col-right .app-frame video {
    max-height: 220px;
    object-fit: cover;
    object-position: top;
  }
  .trust-badges {
    justify-content: center;
  }
  .social-proof-row {
    justify-content: center;
  }
  .stat-pills {
    justify-content: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .validation-widget {
    position: static;
    width: 100%;
    animation: none;
    margin-top: 16px;
  }
  .ticker-track {
    animation-duration: 20s;
  }
  .cta-gradient {
    padding: 64px 0;
  }
}
