/* ShareX Page Styles */

/* ── Desktop-only utility (1280px+) ── */
.sharex-desktop-only { display: none; }
@media (min-width: 1280px) {
  .sharex-desktop-only { display: flex; }
}

.sharex-mobile-only { display: block; }
@media (min-width: 1280px) {
  .sharex-mobile-only { display: none; }
}

.sharex-how-section {
  padding: 70px 0 40px;
}

/* ── Hero Section ── */

.sharex-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (min-width: 768px) {
  .sharex-hero-section {
    flex-direction: row;
    gap: 40px;
  }
}

@media (min-width: 1280px) {
  .sharex-hero-section {
    gap: 64px;
  }
}

.sharex-hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .sharex-hero-left {
    align-items: flex-start;
    width: 50%;
    text-align: left;
  }
}

.sharex-hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .sharex-hero-logo-wrap {
    justify-content: flex-start;
    width: auto;
  }
}

.sharex-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: 20px;
}

@media (min-width: 768px) {
  .sharex-hero-content {
    align-items: flex-start;
  }
}

.sharex-hero-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .sharex-hero-right {
    width: 50%;
  }
}

.sharex-header-spacer {
  height: 48px;
  margin: 16px 0;
}

@media (min-width: 1280px) {
  .sharex-header-spacer {
    margin: 30px 0;
  }
}

.sharex-hero-logo {
  height: 56px;
  width: auto;
}

@media (min-width: 1280px) {
  .sharex-hero-logo {
    height: 80px;
  }
}

.sharex-hero-content {
  margin-bottom: 20px;
}

@media (min-width: 1280px) {
  .sharex-hero-content {
    margin-bottom: 0;
  }
}

.sharex-hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.24px;
  color: #ffffff;
  line-height: normal;
}

@media (min-width: 768px) {
  .sharex-hero-subtitle {
    font-size: 32px;
    font-weight: 700;
  }
}

@media (min-width: 1280px) {
  .sharex-hero-subtitle {
    font-size: 48px;
    letter-spacing: normal;
  }
}

.sharex-hero-desc {
  font-size: 12px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .sharex-hero-desc {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .sharex-hero-desc {
    font-size: 24px;
    font-weight: 400;
  }
}

/* ── Hero Cover Image ── */

.sharex-cover-img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

@media (min-width: 1280px) {
  .sharex-cover-img {
    max-width: 560px;
  }
}

/* (Old mockup styles removed — hero now uses sharex-cover.svg image) */

/* ── CTA Button ── */

.sharex-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1f3965;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.375;
  letter-spacing: -0.36px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

/* Highlighted button for the user's detected platform */
.sharex-cta-btn--active {
  background: #1da1f2;
  color: #ffffff;
}

.sharex-cta-btn:hover,
.sharex-cta-btn--active:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* ── Stats Section ── */

.sharex-stats-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  padding: 16px 0;
}

@media (min-width: 768px) {
  .sharex-stats-section {
    flex-direction: row;
    gap: 20px;
    padding: 24px 0;
  }
}

@media (min-width: 1280px) {
  .sharex-stats-section {
    justify-content: center;
    align-items: center;
    gap: 83px;
  }
}

.sharex-stat-card {
  background: #111325;
  border: 1px solid #1da1f2;
  border-radius: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .sharex-stat-card {
    border-radius: 20px;
    padding: 24px 28px;
  }
}

@media (min-width: 1280px) {
  .sharex-stat-card {
    border-radius: 24px;
    min-height: 138px;
    padding: 29px 32px 34px;
    flex: 1;
    max-width: 365px;
  }
}

.sharex-stat-value {
  font-size: 30.86px;
  font-weight: 700;
  color: #ffffff;
  line-height: normal;
}

@media (min-width: 768px) {
  .sharex-stat-value {
    font-size: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .sharex-stat-value {
    font-size: 32px;
  }
}

.sharex-stat-label {
  font-size: 23.145px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .sharex-stat-label {
    font-size: 0.875rem;
  }
}

@media (min-width: 1280px) {
  .sharex-stat-label {
    font-size: 24px;
  }
}

/* ── Alternate Section Backgrounds ── */

.sharex-features-bg {
  background: #050e1e;
}

.sharex-download-bg {
  background: #050e1e;
}

/* ── Section Typography ── */

.sharex-section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .sharex-section-heading {
    font-size: 2rem;
  }
}

@media (min-width: 1280px) {
  .sharex-section-heading {
    font-size: 3.375rem;
  }
}

.sharex-section-desc {
  font-size: 0.875rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 768px) {
  .sharex-section-desc {
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .sharex-section-desc {
    font-size: 1.5rem;
  }
}

.sharex-section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ── Features Section Layout ── */

.sharex-features-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 32px 0;
  gap: 8px;
}

@media (min-width: 1280px) {
  .sharex-features-section {
    min-height: 832px;
    padding: 60px 0;
  }
}

.sharex-features-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

@media (min-width: 1280px) {
  .sharex-features-inner {
    gap: 71px;
    max-width: 1182px;
    width: 100%;
  }
}

.sharex-features-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.sharex-features-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 12px;
}

@media (min-width: 768px) {
  .sharex-features-row {
    flex-direction: row;
    gap: 16px;
  }

  .sharex-feature-card {
    flex: 1;
  }
}

@media (min-width: 1280px) {
  .sharex-features-row {
    gap: 60px;
  }
}

/* ── Feature Cards ── */

@keyframes gradient-animation {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sharex-feature-card {
  border-radius: 12px;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(33, 33, 33, 1), rgba(33, 33, 33, 1)) padding-box,
    linear-gradient(90deg, #2E54E6 0%, #00A2FF 50%, #1F3965 100%) border-box;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  background-size: 200% 200%;
  animation: gradient-animation 4s linear infinite;
  padding: 20px 24px;
  overflow: hidden;
}

@media (min-width: 1280px) {
  .sharex-feature-card {
    min-height: 237px;
    padding: 30px 37px;
    flex: 1;
    max-width: 560px;
  }
}

.sharex-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 2px solid transparent;
  background:
    linear-gradient(#1da1f2, #1da1f2) padding-box,
    linear-gradient(90deg, #2E54E6 0%, #00A2FF 50%, #1F3965 100%) border-box;
  animation: gradient-animation 4s linear infinite;
  background-clip: padding-box, border-box;
  background-origin: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.sharex-feature-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .sharex-feature-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .sharex-feature-title {
    font-size: 2rem;
  }
}

.sharex-feature-desc {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
}

@media (min-width: 1280px) {
  .sharex-feature-desc {
    font-size: 1.25rem;
  }
}

/* ── How It Works ── */

.sharex-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px; /* mobile gap between icon and text */
  margin-bottom: 8px;
}

@media (min-width: 1280px) {
  .sharex-step {
    flex: 1;
    gap: 41px; /* Figma spec */
    position: relative;
  }

  /* Horizontal dashed connector — spans from right edge of icon to left edge of next icon */
  /* Width formula: step_width + gap(86) - 2×icon_radius(60) = 100% + 86 - 120 = 100% - 34px */
  .sharex-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 60px; /* half of 120px icon — vertically centres the line */
    left: calc(50% + 60px);
    width: calc(100% - 34px);
    height: 0;
    border-top: 1px dashed #fff;
  }
}

/* Mobile vertical connector between steps */
.sharex-step-connector {
  width: 1px;
  height: 40px;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
  margin: 0 auto;
}

.sharex-step-icon {
  width: 74px;
  height: 74px;
  background: #1da1f2;
  border: 1px solid #2e54e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sharex-step-icon {
    width: 90px;
    height: 90px;
    border-radius: 45px;
  }
}

@media (min-width: 1280px) {
  .sharex-step-icon {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    padding: 29px 27px 29px 31px;
    box-sizing: border-box;
  }
}

.sharex-step-icon img {
  width: 42px;
  height: 42px;
}

@media (min-width: 768px) {
  .sharex-step-icon img {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 1280px) {
  .sharex-step-icon img {
    width: 64px;
    height: 64px;
  }
}

.sharex-step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .sharex-step-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .sharex-step-title {
    font-size: 2rem;
  }
}

.sharex-step-desc {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .sharex-step-desc {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .sharex-step-desc {
    font-size: 1.5rem;
  }
}

/* ── Download Section ── */

.sharex-platform-icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border: 1px solid #2e54e6;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sharex-platform-icon img {
  width: 30px;
  height: 30px;
}

@media (min-width: 1280px) {
  .sharex-platform-icon {
    width: 84px;
    height: 84px;
    border-radius: 42px;
  }
  .sharex-platform-icon img {
    width: 42px;
    height: 42px;
  }
}

.sharex-platform-name {
  font-size: 0.9375rem; /* 15px — Figma mobile */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

@media (min-width: 1280px) {
  .sharex-platform-name {
    font-size: 2rem;
  }
}

.sharex-platform-version {
  font-size: 0.7rem; /* ~11px — Figma mobile */
  font-weight: 400;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 1280px) {
  .sharex-platform-version {
    font-size: 1.25rem;
  }
}

/* ── Download platform button (mobile) ── */

.sharex-platform-btn {
  width: 91px;
  font-size: 0.75rem;
  padding: 10px 12px;
}

@media (min-width: 1280px) {
  .sharex-platform-btn {
    width: 190px;
    font-size: 1rem;
    padding: 14px 32px;
  }
}

/* ══════════════════════════════════════════
   ── Interactions & Animations ──
   ══════════════════════════════════════════ */

/* Header scroll shadow */
.sharex-header-scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Scroll progress bar */
#sharex-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2E54E6, #1da1f2);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Scroll reveal base */
.sharex-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sharex-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero logo float ── */
.sharex-hero-logo {
  animation: sharex-float 4s ease-in-out infinite;
}
@keyframes sharex-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── Cover image hover ── */
.sharex-cover-img {
  transition: transform 0.4s ease;
}
.sharex-cover-img:hover {
  transform: scale(1.03);
}

/* ── Stat cards ── */
.sharex-stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.sharex-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(29, 161, 242, 0.2);
}

/* ── Feature cards lift ── */
.sharex-feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sharex-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(46, 84, 230, 0.18);
}

/* ── Step icons spin on hover ── */
.sharex-step-icon {
  transition: transform 0.35s ease;
}
.sharex-step-icon:hover {
  transform: rotate(10deg) scale(1.1);
}

/* ── Platform cards lift ── */
.sharex-platform-card {
  transition: transform 0.25s ease;
}
.sharex-platform-card:hover {
  transform: translateY(-6px);
}

/* ── CTA button ── */
.sharex-cta-btn {
  transition: transform 0.2s ease, opacity 0.2s ease;
  overflow: hidden;
  position: relative;
}
.sharex-cta-btn:hover {
  transform: scale(1.04);
}

/* Ripple effect */
.sharex-ripple {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(29, 161, 242, 0.35);
  transform: translate(-50%, -50%) scale(0);
  animation: sharex-ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes sharex-ripple-anim {
  to { transform: translate(-50%, -50%) scale(20); opacity: 0; }
}

/* ── Mobile padding override ── */

@media screen and (max-width: 1279px) {
  .sharex-page .mob-tm-tfi-max-width {
    width: 100%;
    padding: 22px;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
  .sharex-page .mob-tm-tfi-max-width {
    padding: 0 48px;
  }
}

/* ── How It Works Section Layout ── */

.sharex-how-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 1280px) {
  .sharex-how-inner {
    max-width: 1302px;
    width: 100%;
    gap: 71px;
  }
}

.sharex-steps-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

@media (min-width: 768px) {
  .sharex-steps-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
  }

  .sharex-step-connector {
    display: none;
  }

  .sharex-step {
    flex: 1;
  }
}

@media (min-width: 1280px) {
  .sharex-steps-row {
    gap: 86px;
  }
}

/* ── Download Section Layout ── */

.sharex-download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px;
  scroll-margin-top: 100px; /* offset for fixed header */
  padding: 40px 0;
}

.sharex-download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

@media (min-width: 1280px) {
  .sharex-download-inner {
    max-width: 1233px;
    width: 100%;
    gap: 71px;
  }
}

/* Mobile download row — hidden on desktop */
.sharex-download-mobile {
  display: flex;
  width: 269.936px;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 1280px) {
  .sharex-download-mobile {
    display: none;
  }
}

.sharex-platform-card {
  display: flex;
  width: 90.936px;
  flex-direction: column;
  align-items: center;
  gap: 10.051px;
  flex-shrink: 0;
}

@media (min-width: 1280px) {
  .sharex-platform-card {
    width: 190px;
    gap: 21px;
  }
}

/* Desktop download row — hidden on mobile */
.sharex-download-platforms {
  display: none;
}

@media (min-width: 768px) {
  .sharex-download-mobile {
    display: none;
  }
  .sharex-download-platforms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 40px 180px;
  }
}

@media (min-width: 1280px) {
  .sharex-download-platforms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
  }
}

