/* ============================================================
   FilexFlow — Landing page
   Depends on: /assets/css/layout.css
   ============================================================ */

.landing-body {
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.22), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(126, 34, 206, 0.17), transparent 30%),
    #020617;
}

.landing-page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.logo-block a {
  display: flex;
  align-items: center;
}

.logo-image {
  display: block;
  width: auto;
  height: 40px;
  max-width: 240px;
}

.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

.theme-toggle-track,
.theme-toggle-thumb {
  display: none;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 22px;
}

.landing-hero-left,
.landing-media {
  min-width: 0;
}

.landing-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow-card);
}

.landing-hero-pill,
.landing-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-label-dot,
.pill-blue-dot,
.side-bullet {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

.landing-main-title {
  margin-top: 22px;
  max-width: 760px;
  color: #f8fafc;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.landing-main-subtitle {
  max-width: 720px;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.75;
}

.landing-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 28px;
  padding: 14px 23px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.42);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.landing-cta-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.55);
}

.landing-cta-note {
  margin-top: 14px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.landing-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.landing-badge {
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #dbeafe;
  font-size: 0.8rem;
}

.landing-footer-inline {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.landing-footer-main {
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
}

.landing-footer-sub {
  margin-top: 8px;
  max-width: 680px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.landing-footer-cta {
  display: inline-flex;
  margin-top: 14px;
  color: #7dd3fc;
  font-weight: 600;
}

.landing-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-media-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #020617;
  box-shadow: var(--shadow-card);
}

.landing-media-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  backdrop-filter: blur(14px);
}

.landing-side-card {
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #e5e7eb;
  box-shadow: var(--shadow-card);
}

.pill-blue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 600;
}

.side-title {
  margin-top: 21px;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  letter-spacing: -0.035em;
}

.side-sub {
  margin-top: 12px;
  color: #aebacd;
  line-height: 1.65;
}

.side-section-title {
  margin-top: 24px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 700;
}

.side-list {
  display: grid;
  gap: 12px;
  margin-top: 13px;
  list-style: none;
}

.side-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.89rem;
  line-height: 1.55;
}

.side-bullet {
  width: 6px;
  height: 6px;
  margin-top: 7px;
}

.side-divider {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.side-footer-main {
  color: #f8fafc;
  font-weight: 700;
}

.side-footer-sub {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.55;
}

.landing-slogan {
  margin: clamp(54px, 8vw, 96px) auto 24px;
  max-width: 930px;
  color: #f8fafc;
  text-align: center;
  font-size: clamp(2.15rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.landing-bottom-video {
  max-width: 980px;
  margin: 0 auto;
}

.landing-bottom-video-wrapper {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow-card);
}

.landing-bottom-video-el {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Light mode */
body[data-theme="light"].landing-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.14), transparent 32%),
    #f8fafc;
}

body[data-theme="light"] .landing-hero-left,
body[data-theme="light"] .landing-side-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.28);
}

body[data-theme="light"] .landing-main-title,
body[data-theme="light"] .side-title,
body[data-theme="light"] .side-section-title,
body[data-theme="light"] .landing-footer-main,
body[data-theme="light"] .side-footer-main,
body[data-theme="light"] .landing-slogan {
  color: #0f172a;
}

body[data-theme="light"] .landing-main-subtitle,
body[data-theme="light"] .side-sub,
body[data-theme="light"] .side-list li,
body[data-theme="light"] .landing-footer-sub,
body[data-theme="light"] .side-footer-sub {
  color: #475569;
}

body[data-theme="light"] .landing-badge {
  background: #fff;
  color: #1e3a8a;
}

/* Responsive */
@media (max-width: 960px) {
  .landing-page {
    width: min(100% - 24px, 760px);
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-media {
    order: 2;
  }

  .header,
  .subnav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-right {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .landing-page {
    width: min(100% - 18px, 560px);
    padding-top: 10px;
  }

  .header,
  .subnav {
    border-radius: 20px;
  }

  .logo-image {
    height: 31px;
    max-width: 190px;
  }

  .landing-hero-left,
  .landing-side-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .landing-main-title {
    font-size: clamp(2.25rem, 13vw, 3.3rem);
  }

  .landing-media-video,
  .landing-bottom-video-wrapper {
    border-radius: 24px;
  }

  .landing-media-badge {
    position: static;
  }

  .landing-badges-row {
    align-items: flex-start;
  }

  .landing-slogan {
    margin-top: 56px;
  }
}


/* ============================================================
   Landing refinement v2 — aligned with converter UI
   ============================================================ */

/* Header/subnav rhythm */
.landing-page > .header {
  margin-bottom: 14px;
}

.landing-page > .subnav {
  margin-bottom: 26px;
}

/* Logo: white-letter version, same elegant scale */
.logo-image {
  height: 36px;
  max-width: 220px;
}

/* Match converter's compact controls */
.header-right {
  gap: 14px;
}

.landing-page .theme-toggle {
  flex: 0 0 auto;
}

.landing-page .lang-select {
  min-width: 58px;
  text-align: center;
  text-align-last: center;
}

/* More controlled typography */
.landing-main-title {
  max-width: 650px;
  font-size: clamp(2.1rem, 4.15vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.landing-main-subtitle {
  max-width: 650px;
  font-size: clamp(0.94rem, 1.15vw, 1.04rem);
  line-height: 1.68;
}

.landing-side-card .side-title {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.landing-side-card .side-sub {
  font-size: 0.86rem;
}

.landing-side-card .side-list li {
  font-size: 0.81rem;
}

/* One-line closing statement on normal desktop widths */
.landing-slogan {
  max-width: none;
  margin-top: clamp(48px, 6vw, 76px);
  font-size: clamp(1.75rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  white-space: nowrap;
}

/* The lower duplicate video was removed from HTML */
.landing-bottom-video {
  display: none;
}

@media (max-width: 960px) {
  .landing-main-title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .landing-slogan {
    font-size: clamp(1.75rem, 5.4vw, 2.8rem);
  }
}

@media (max-width: 720px) {
  .landing-page > .header {
    margin-bottom: 10px;
  }

  .landing-page > .subnav {
    margin-bottom: 20px;
  }

  .landing-slogan {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .logo-image {
    height: 30px;
    max-width: 184px;
  }

  .header-right {
    gap: 9px;
  }

  .landing-main-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}


/* ============================================================
   Landing refinement v3
   ============================================================ */

.logo-block { display: flex; align-items: center; }
.logo-block a { position: relative; display: inline-flex; align-items: center; }
.logo-block .logo-light { display: none; }
body[data-theme="light"] .logo-block .logo-dark { display: none; }
body[data-theme="light"] .logo-block .logo-light { display: block; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-slogan {
  margin-top: clamp(24px, 3.5vw, 44px);
  margin-bottom: clamp(34px, 5vw, 58px);
}

body[data-theme="light"] .landing-hero-pill,
body[data-theme="light"] .landing-media-badge,
body[data-theme="light"] .pill-blue {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.12);
  color: #1e40af;
}

body[data-theme="light"] .landing-hero-pill [data-i18n],
body[data-theme="light"] .landing-media-badge [data-i18n],
body[data-theme="light"] .pill-blue [data-i18n] {
  color: #1e40af;
}

.landing-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 16px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.landing-contact-button:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.38);
}

.landing-site-footer {
  margin-top: 0;
  padding-top: 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-theme="light"] .landing-site-footer {
  border-top-color: rgba(15, 23, 42, 0.10);
}

@media (max-width: 720px) {
  .header-right { gap: 9px; }
  .landing-slogan { margin-top: 24px; }
}


/* ============================================================
   Mobile landing layout hardening — match converter stacking
   ============================================================ */
@media (max-width: 960px) {
  .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero-left {
    order: 1;
    min-width: 0;
  }

  .landing-media {
    order: 2;
    min-width: 0;
    width: 100%;
    margin-top: 20px;
  }

  .landing-media-video,
  .landing-side-card {
    width: 100%;
    max-width: 100%;
  }
}


/* SEO Indexation Cohort A — compact, user-visible internal navigation */
.fx-seo-tool-links {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto;
}
.fx-seo-tool-links-inner {
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  padding: 18px 20px;
  background: rgba(15, 23, 42, .42);
}
.fx-seo-tool-links h2 { margin: 0 0 4px; font-size: 1rem; }
.fx-seo-tool-links p { margin: 0 0 12px; opacity: .72; font-size: .9rem; }
.fx-seo-tool-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-seo-tool-grid a {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 7px 11px; border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px; text-decoration: none; font-size: .88rem;
}
.fx-seo-tool-grid a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .fx-seo-tool-links { width: min(100% - 20px, 1180px); margin: 16px auto; }
  .fx-seo-tool-links-inner { padding: 15px; }
}
