/* =========================================================
   Revomart homepage — trust infrastructure visual system
   ========================================================= */

:root {
  --navy: #1b2a41;
  --navy-deep: #0e1a2b;
  --navy-soft: #243652;
  --blue: #1677ff;
  --blue-hover: #095fd1;
  --white: #ffffff;
  --fog: #f6f8fb;
  --mist: #e8edf3;
  --ink: #1b2a41;
  --muted: #667085;
  --gold: #b8944f;
  --gold-soft: #c4a36a;
  --line: #e8edf3;
  --max: 1280px;
  --pad: 24px;
  --header-h: 68px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: "IBM Plex Serif", "Songti SC", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.home-page {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.home-container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  padding-inline: 0;
}

.accent {
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */

.home-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-header-inner {
  height: 100%;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.home-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  object-fit: contain;
}

.home-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.home-brand-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.home-brand-text span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8944f;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
}

.home-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #526173;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-nav a:hover,
.home-nav a[aria-current="page"] {
  color: var(--blue);
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.home-icon-btn,
.home-lang {
  height: 40px;
  border: 1px solid var(--mist);
  background: #fff;
  color: var(--navy);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-icon-btn {
  width: 40px;
  background: #f3f7fc;
  border-color: transparent;
  color: #2563eb;
}

.home-icon-btn:hover,
.home-lang:hover {
  border-color: #c9d2dd;
  background: var(--fog);
}

.home-icon-btn svg {
  width: 18px;
  height: 18px;
}

.home-lang {
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.home-user-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.home-login,
.home-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-login {
  color: var(--blue);
  border: 1px solid var(--blue);
  background: #fff;
}

.home-login:hover {
  background: #f2f7ff;
}

.home-register {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  font-weight: 650;
  padding: 0 18px;
}

.home-register:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.home-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mist);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.home-nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--navy);
}

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  height: 520px;
  min-height: 500px;
  max-height: 560px;
  margin-top: var(--header-h);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(135deg, #0e1a2b 0%, #1b2a41 52%, #243652 100%);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 32, 0.88) 0%, rgba(8, 18, 32, 0.62) 46%, rgba(8, 18, 32, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.18) 0%, rgba(8, 18, 32, 0.42) 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 40px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.home-hero-copy h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--font-sans);
  font-size: clamp(40px, 3.6vw, 54px);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-hero-support {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.home-hero-en,
.philosophy-copy .en,
.final-copy .en,
.home-footer-bottom .en {
  font-family: var(--font-serif);
}

.home-hero-en {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 163, 106, 0.78);
}

.home-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: var(--blue);
  color: #fff;
}

.btn-ghost:hover {
  background: var(--navy-soft);
}

/* Hero trust journey — right zone */

.hero-journey {
  justify-self: end;
  width: min(100%, 320px);
  padding: 8px 8px 8px 24px;
  border-left: 1px solid rgba(184, 148, 79, 0.45);
  color: rgba(255, 255, 255, 0.88);
}

.hero-journey-kicker {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-family: var(--font-serif);
}

.hero-journey-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-journey-list li {
  position: relative;
  padding: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero-journey-list li:last-child {
  padding-bottom: 0;
}

.hero-journey-list li:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 10px;
  margin: 8px 0 0 6px;
  background: rgba(184, 148, 79, 0.55);
}

.hero-journey-list li span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(184, 148, 79, 0.18);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.trust-item {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.trust-num {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 650;
}

.trust-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
}

.trust-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  color: var(--navy);
}

.trust-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Shared sections ---------- */

.home-section {
  padding: 80px 0;
}

.home-section.fog {
  background: var(--fog);
}

.home-kicker {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.home-section-head h2,
.philosophy-copy h2,
.impact-copy h2,
.partners-copy h2,
.final-copy h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.home-section-head h2 {
  font-size: clamp(28px, 2.6vw, 34px);
}

.home-section-head p {
  margin: 16px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
}

#home-hero,
#philosophy,
#how-it-works,
#about-revomart {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.home-convert {
  margin-top: 36px;
  text-align: center;
}

/* ---------- How it works ---------- */

.process-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 18px;
  position: relative;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: #d5dee8;
  pointer-events: none;
}

.process-step {
  position: relative;
  text-align: center;
  padding-top: 4px;
}

.process-step .step-index {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--mist);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}

.process-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Audience panels ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.audience-panel {
  position: relative;
  height: 280px;
  min-height: 280px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: flex-end;
}

.audience-panel .panel-media,
.audience-panel .panel-media img,
.final-banner .banner-media,
.final-banner .banner-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-panel .panel-media::after,
.final-banner .banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.15) 0%, rgba(7, 21, 38, 0.78) 100%);
}

.audience-panel .panel-copy {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.audience-panel .panel-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.audience-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 650;
}

.audience-panel p {
  margin: 0;
  max-width: 18ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Philosophy ---------- */

.philosophy {
  background: var(--navy-deep);
  color: #fff;
}

.philosophy-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-copy h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 34px);
}

.philosophy-copy .lead {
  margin: 16px auto 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.philosophy-copy .body {
  margin: 16px auto 0;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
}

.philosophy-copy .en {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Impact / stats ---------- */

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impact-card {
  padding: 20px 16px 8px;
  border-top: 1px solid var(--mist);
  background: transparent;
}

.impact-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.impact-card span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.demo-note {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: #98a2b3;
}

/* ---------- Final banner ---------- */

.final-banner {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0e1a2b, #1b2a41);
  color: #fff;
}

.final-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 720px);
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}

.final-copy h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 34px);
}

.final-copy p {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
}

.final-copy .en {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.home-final-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.home-login-text {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.home-login-text:hover {
  color: #fff;
}

/* ---------- Partners ---------- */

.partners-copy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.partners-copy h2 {
  font-size: clamp(26px, 2.4vw, 32px);
}

.partners-placeholder {
  margin-top: 36px;
  padding: 28px;
  border: 1px dashed #c9d2dd;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  background: #fafbfc;
}

/* ---------- Footer ---------- */

.home-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 36px;
}

.home-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-footer .home-brand-mark {
  background: none;
}

.home-footer .home-brand-text strong {
  color: #fff;
}

.home-footer .home-brand-text span {
  color: rgba(255, 255, 255, 0.5);
}

.home-footer-links,
.home-footer-langs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-footer-links a,
.home-footer-langs span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.home-footer-links a:hover {
  color: #fff;
}

.home-footer-label {
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.home-footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.home-footer-bottom p {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.55;
  color: #fff;
}

.home-footer-bottom .en {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  align-self: end;
}

.home-copyright {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .home-nav {
    gap: 16px;
  }

  .home-nav a {
    font-size: 13px;
  }

  .home-hero {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 32px;
  }

  .hero-journey {
    justify-self: start;
    width: 100%;
    max-width: 420px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 20px;
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(184, 148, 79, 0.4);
  }

  .hero-journey-kicker {
    margin: 0;
    align-self: start;
    padding-top: 4px;
  }

  .hero-journey-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .hero-journey-list li {
    padding: 0;
  }

  .hero-journey-list li:not(:last-child)::after {
    display: none;
  }

  .process-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .process-track::before {
    display: none;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-nav-toggle {
    display: inline-block;
  }

  .home-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .home-header.is-open .home-nav {
    display: flex;
  }

  .home-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--fog);
  }

  .home-user-email {
    display: none;
  }

  .trust-strip-grid,
  .audience-grid,
  .home-footer-top {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .audience-panel,
  .audience-panel .panel-media {
    height: 260px;
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .home-container,
  .home-header-inner,
  .home-hero-inner,
  .final-copy {
    width: min(100% - 40px, var(--max));
  }

  .home-hero {
    height: auto;
    max-height: none;
    min-height: 0;
  }

  .home-hero-inner {
    padding: 36px 0 28px;
  }

  .home-hero-copy h1 {
    font-size: 34px;
    line-height: 1.22;
  }

  .hero-journey {
    display: none;
  }

  .home-section-head h2,
  .philosophy-copy h2,
  .partners-copy h2,
  .final-copy h2 {
    font-size: 28px;
  }

  .home-hero-support,
  .home-section-head p,
  .philosophy-copy .lead {
    font-size: 16px;
  }

  .home-hero-actions {
    flex-direction: column;
  }

  .home-hero-actions a {
    width: 100%;
  }

  .home-section {
    padding: 72px 0;
  }

  .process-track {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .process-step {
    flex: 0 0 72%;
    scroll-snap-align: start;
    text-align: left;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--mist);
  }

  .process-step .step-index {
    margin: 0 0 14px;
    box-shadow: none;
  }

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

  .home-footer-bottom {
    flex-direction: column;
  }

  .home-lang {
    display: none;
  }
}
