/* ==========================================================================
   Imortis home page (v2)
   Self-contained styles for templates/home/new_index.html.
   Prefix: hp- (home page). Matches the site system: Playfair Display +
   Raleway, antique brass accent, navy primary, museum off-white surfaces.
   ========================================================================== */

:root {
  --hp-font-body: 'Raleway', 'Segoe UI', Helvetica, Arial, sans-serif;
  --hp-font-display: 'Playfair Display', Georgia, serif;

  --hp-primary: #1a1f2c;
  --hp-primary-dark: #0f1219;
  --hp-primary-light: #334155;

  --hp-accent: #A8895A;
  --hp-accent-dark: #8C7048;
  --hp-accent-light: #C4A87A;

  --hp-bg: #fcfcfa;
  --hp-bg-muted: #f2f2f0;
  --hp-surface: #ffffff;
  --hp-text: #1a1f2c;
  --hp-text-2: #5a6474;
  --hp-border: rgba(0, 0, 0, 0.08);
  --hp-border-soft: rgba(0, 0, 0, 0.06);

  --hp-icon-fill: linear-gradient(135deg, #334155 0%, #1a1f2c 100%);
  --hp-icon-fg: #fcfcfa;
  --hp-icon-shadow: 0 8px 20px rgba(30, 35, 43, 0.2);

  --hp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
  --hp-shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
  --hp-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
  --hp-shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.15);

  --hp-overlay: rgba(0, 0, 0, 0.45);
  --hp-dark-band: #1a1f2c;
  --hp-dark-text: #e0dad2;

  --hp-radius: 24px;
  --hp-radius-sm: 16px;
  --hp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hp-touch: 48px;
}

[data-theme="dark"] {
  --hp-bg: #0b0d11;
  --hp-bg-muted: #12141a;
  --hp-surface: #151820;
  --hp-text: #eaeaea;
  --hp-text-2: #9ca3af;
  --hp-border: rgba(255, 255, 255, 0.08);
  --hp-border-soft: rgba(255, 255, 255, 0.06);

  --hp-icon-fill: linear-gradient(135deg, #C4A87A 0%, #8C7048 100%);
  --hp-icon-fg: #ffffff;
  --hp-icon-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);

  --hp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --hp-shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
  --hp-shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --hp-shadow-xl: 0 40px 80px -20px rgba(0, 0, 0, 0.7);

  --hp-overlay: rgba(0, 0, 0, 0.65);
  --hp-dark-band: #0f1219;
}

/* --------------------------------------------------------------------------
   Page scope
   -------------------------------------------------------------------------- */
.hp {
  font-family: var(--hp-font-body);
  color: var(--hp-text);
  background: var(--hp-bg);
  -webkit-font-smoothing: antialiased;
  /* Pull the page under the fixed header (main-content adds 6.5rem top padding).
     overflow-x: clip (not hidden) so this does not become a scroll container
     that would clip the pulled-up hero. */
  margin-top: -6.5rem;
  overflow-x: clip;
}

.hp h1,
.hp h2,
.hp h3,
.hp p,
.hp ul {
  margin: 0;
}

.hp ul {
  padding: 0;
  list-style: none;
}

.hp a {
  text-decoration: none;
}

.hp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.hp-container--wide {
  max-width: 1280px;
}

.hp-container--narrow {
  max-width: 900px;
}

.hp-section {
  padding: 5rem 0;
  background: var(--hp-bg);
}

.hp-section--muted {
  background: var(--hp-bg-muted);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}

.hp-section--gradient {
  background: linear-gradient(135deg, var(--hp-bg) 0%, var(--hp-bg-muted) 100%);
  border-top: 1px solid var(--hp-border);
  border-bottom: 1px solid var(--hp-border);
}

.hp-section--tight {
  padding: 6rem 0;
}

/* Section heading block */
.hp-section-title {
  max-width: 800px;
  margin: 0 auto 4rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hp-section-title h2 {
  font-family: var(--hp-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hp-text);
  text-wrap: balance;
}

.hp-section-title p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--hp-text-2);
  max-width: 700px;
}

.hp-section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  border-radius: 3px;
  background: var(--hp-text);
  margin-top: 0.5rem;
}

.hp-eyebrow {
  color: var(--hp-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s var(--hp-ease);
  box-sizing: border-box;
  cursor: pointer;
}

.hp-btn--primary {
  background: var(--hp-accent);
  color: #ffffff;
  padding: 1.2rem 3rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--primary:hover,
.hp-btn--primary:focus-visible {
  background: var(--hp-accent-dark);
  color: #ffffff;
  transform: translateY(-4px);
}

.hp-btn--primary.hp-btn--lg {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.hp-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hp-btn--ghost:hover,
.hp-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
}

.hp-btn--dark {
  background: var(--hp-primary);
  color: #ffffff;
  padding: 1.2rem 2.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid transparent;
  box-shadow: var(--hp-shadow-lg);
  width: 100%;
  max-width: 280px;
}

.hp-btn--dark:hover,
.hp-btn--dark:focus-visible {
  background: var(--hp-accent);
  border-color: var(--hp-accent);
  color: #ffffff;
  transform: translateY(-4px);
}

[data-theme="dark"] .hp-btn--dark {
  background: var(--hp-accent);
}

[data-theme="dark"] .hp-btn--dark:hover {
  background: var(--hp-accent-dark);
  border-color: var(--hp-accent-dark);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f172a;
  /* Keep hero copy clear of the fixed header */
  padding-top: 6.5rem;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__video,
.hp-hero__fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) contrast(1.05) saturate(1.2);
  transform: scale(1.05);
}

.hp-hero__fallback {
  position: absolute;
  inset: 0;
  display: none;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(15, 23, 42, 0.5) 0%,
      rgba(15, 23, 42, 0.3) 50%,
      rgba(15, 23, 42, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hp-hero__content .hp-eyebrow {
  color: var(--hp-accent-light);
}

.hp-hero__title {
  font-family: var(--hp-font-display);
  font-size: clamp(2.5rem, 5.3vw, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}

.hp-hero__subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 760px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-wrap: pretty;
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.hp-hero__note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.75);
}

/* Video pause/play toggle (driven by home.js) */
.video-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: var(--hp-touch);
  height: var(--hp-touch);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: all 0.3s var(--hp-ease);
}

.video-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.video-toggle:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Free platform (split)
   -------------------------------------------------------------------------- */
.hp-free {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem;
  align-items: center;
}

.hp-free__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-free__title {
  font-family: var(--hp-font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-text);
  text-wrap: balance;
}

.hp-free__text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--hp-text-2);
}

.hp-free__cta {
  margin-top: 0.75rem;
}

.hp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  box-shadow: var(--hp-shadow-sm);
  transition: all 0.3s var(--hp-ease);
}

.hp-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--hp-shadow-lg);
  border-color: var(--hp-accent);
}

.hp-feature__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--hp-icon-fill);
  color: var(--hp-icon-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 35, 43, 0.15);
}

.hp-feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.hp-feature__body strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-feature__body span {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hp-text-2);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.hp-step {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border-soft);
  border-radius: var(--hp-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--hp-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.4s var(--hp-ease);
}

.hp-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--hp-shadow-xl);
  border-color: var(--hp-accent);
}

.hp-step--optional {
  border-color: var(--hp-accent-light);
}

.hp-step__num {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hp-accent) 0%, var(--hp-accent-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  outline: 1px solid rgba(168, 137, 90, 0.3);
  outline-offset: 5px;
}

.hp-step__title {
  font-family: var(--hp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hp-text);
}

.hp-step__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-step__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hp-text-2);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Emotional showcase (full-bleed photo)
   -------------------------------------------------------------------------- */
.hp-showcase {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
  background: #1a1f2c url('/static/assets/img/img2.webp') center/cover no-repeat;
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .hp-showcase {
    background-attachment: fixed;
  }
}

.hp-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hp-overlay);
  z-index: 1;
}

.hp-showcase__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hp-showcase__title {
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-wrap: balance;
}

.hp-showcase__text {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 700px;
}

.hp-showcase__quote {
  color: #ffffff;
  font-family: var(--hp-font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.95;
}

.hp-showcase__content .hp-btn {
  margin-top: 0.5rem;
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   Icon cards (privacy, mission)
   -------------------------------------------------------------------------- */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.hp-cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hp-card {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--hp-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s var(--hp-ease);
}

.hp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--hp-shadow-xl);
  border-color: var(--hp-accent);
}

.hp-card__icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--hp-icon-fill);
  color: var(--hp-icon-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hp-icon-shadow);
  margin-bottom: 0.5rem;
  transition: all 0.3s var(--hp-ease);
}

.hp-card:hover .hp-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.hp-card__title {
  font-family: var(--hp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-text);
}

.hp-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hp-text-2);
  text-align: left;
}

/* --------------------------------------------------------------------------
   Product (split card)
   -------------------------------------------------------------------------- */
.hp-product {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.hp-product__media {
  background: var(--hp-bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem;
}

.hp-product__img {
  width: 360px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s var(--hp-ease);
}

.hp-product:hover .hp-product__img {
  transform: scale(1.03);
}

.hp-product__body {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.hp-product__name {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--hp-text);
}

.hp-product__price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hp-product__price strong {
  font-family: var(--hp-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-product__price span {
  font-size: 0.875rem;
  color: var(--hp-text-2);
}

.hp-product__desc,
.hp-product__desc p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hp-text-2);
}

.hp-product__specs {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: var(--hp-text);
}

.hp-product__specs li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-product__specs svg {
  flex-shrink: 0;
  color: var(--hp-accent);
}

.hp-product__cta {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Use cases
   -------------------------------------------------------------------------- */
.hp-usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.hp-usecase {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border-soft);
  border-radius: var(--hp-radius);
  padding: 2.5rem;
  box-shadow: var(--hp-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: all 0.3s var(--hp-ease);
}

.hp-usecase:hover {
  transform: translateY(-5px);
  box-shadow: var(--hp-shadow-lg);
  border-color: var(--hp-primary-light);
}

.hp-usecase__icon {
  color: var(--hp-primary-light);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .hp-usecase__icon {
  color: var(--hp-accent-light);
}

.hp-usecase h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--hp-text);
}

.hp-usecase p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hp-text-2);
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */
.hp-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

.hp-mission__head {
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hp-mission__head h2 {
  font-family: var(--hp-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hp-text);
  text-wrap: balance;
}

.hp-mission__quote {
  font-family: var(--hp-font-display);
  font-size: 1.625rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--hp-text);
  padding: 0 3rem;
}

.hp-mission .hp-cards {
  width: 100%;
}

/* --------------------------------------------------------------------------
   FAQ (native details/summary; home.js rotates the icon on toggle)
   -------------------------------------------------------------------------- */
.hp-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-faq .faq-item {
  background: var(--hp-surface);
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  box-shadow: var(--hp-shadow-sm);
  transition: all 0.3s var(--hp-ease);
}

.hp-faq .faq-item:hover {
  box-shadow: var(--hp-shadow-md);
  border-color: var(--hp-accent);
}

.hp-faq .faq-question {
  min-height: var(--hp-touch);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--hp-text);
  list-style: none;
}

.hp-faq .faq-question::-webkit-details-marker,
.hp-faq .faq-question::marker {
  display: none;
  content: '';
}

.hp-faq .faq-question:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: -2px;
}

.hp-faq .faq-question svg {
  flex-shrink: 0;
  color: var(--hp-text-2);
  transition: transform 0.3s ease;
}

.hp-faq .faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.hp-faq .faq-answer {
  padding: 0.25rem 1.5rem 1.25rem 1.5rem;
  background: var(--hp-bg-muted);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hp-text-2);
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.hp-cta {
  background: var(--hp-dark-band);
  padding: 6rem 0;
  border-top: 1px solid rgba(224, 218, 210, 0.1);
}

.hp-cta__content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hp-cta__content h2 {
  font-family: var(--hp-font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hp-dark-text);
  text-wrap: balance;
}

.hp-cta__content p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(224, 218, 210, 0.75);
  max-width: 620px;
}

.hp-cta__content .hp-btn {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Scroll to top (driven by home.js)
   -------------------------------------------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: var(--hp-touch);
  height: var(--hp-touch);
  background: var(--hp-primary);
  color: #fcfcfa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(30, 35, 43, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top:hover {
  background: var(--hp-accent);
  transform: translateY(-5px);
}

.scroll-to-top:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Scroll reveal (driven by home.js)
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hp-btn,
  .hp-card,
  .hp-step,
  .hp-feature,
  .hp-usecase {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .hp-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .hp-cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .hp-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hp-free {
    gap: 3rem;
  }

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

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

@media (max-width: 768px) {
  .hp-container {
    padding: 0 1.25rem;
  }

  .hp-section,
  .hp-section--tight {
    padding: 3.5rem 0;
  }

  .hp-section-title {
    margin-bottom: 2.5rem;
  }

  .hp-section-title h2,
  .hp-mission__head h2,
  .hp-cta__content h2 {
    font-size: 1.875rem;
  }

  .hp-section-title p {
    font-size: 1rem;
  }

  /* Hero: fallback image instead of video on small screens */
  .hp-hero {
    min-height: 85vh;
  }

  .hp-hero__video {
    display: none;
  }

  .hp-hero__fallback {
    display: block;
  }

  .hp-hero__content {
    padding: 2rem 1.25rem;
    gap: 1.125rem;
  }

  .hp-hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hp-hero__actions .hp-btn {
    width: 100%;
  }

  .hp-btn--primary,
  .hp-btn--primary.hp-btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .hp-btn--ghost,
  .hp-btn--dark {
    padding: 0.875rem 1.75rem;
  }

  .video-toggle {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .hp-free {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hp-free__text {
    text-align: center;
    align-items: center;
  }

  .hp-free__text p {
    font-size: 1rem;
  }

  .hp-feature {
    padding: 1.375rem 1.25rem;
    gap: 1rem;
  }

  .hp-feature__icon {
    width: 48px;
    height: 48px;
  }

  .hp-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hp-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.125rem;
    border-radius: 20px;
  }

  .hp-step__num {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 0;
    outline: none;
    flex-shrink: 0;
  }

  .hp-step__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  .hp-showcase {
    padding: 4.5rem 0;
  }

  .hp-showcase__text {
    font-size: 1.05rem;
  }

  .hp-showcase__quote {
    font-size: 1.3125rem;
  }

  .hp-cards,
  .hp-cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hp-card {
    padding: 1.5rem 1rem;
    gap: 0.625rem;
    border-radius: 20px;
  }

  .hp-card__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.25rem;
  }

  .hp-card__title {
    font-size: 1rem;
  }

  .hp-card__desc {
    font-size: 0.85rem;
    text-align: center;
  }

  .hp-mission .hp-cards--three {
    grid-template-columns: 1fr;
  }

  .hp-mission .hp-card {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1.375rem 1.25rem;
    gap: 1rem;
  }

  .hp-mission .hp-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .hp-mission .hp-card__desc {
    text-align: left;
  }

  .hp-mission__quote {
    font-size: 1.1875rem;
    padding: 0;
  }

  .hp-product {
    grid-template-columns: 1fr;
  }

  .hp-product__media {
    padding: 2rem;
  }

  .hp-product__img {
    width: 200px;
  }

  .hp-product__body {
    padding: 1.75rem 1.5rem;
    gap: 0.875rem;
  }

  .hp-product__name {
    font-size: 1.375rem;
  }

  .hp-product__price strong {
    font-size: 1.875rem;
  }

  .hp-btn--dark {
    max-width: none;
  }

  .hp-usecases {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hp-usecase {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1.375rem 1.25rem;
    gap: 1rem;
    border-radius: 20px;
  }

  .hp-usecase__icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .hp-usecase__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .hp-usecase h3 {
    font-size: 1rem;
  }

  .hp-faq .faq-question {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .hp-faq .faq-answer {
    padding: 0.125rem 1.25rem 1.125rem 1.25rem;
    font-size: 0.95rem;
  }

  .hp-cta {
    padding: 4rem 0;
  }

  .hp-cta__content p {
    font-size: 1rem;
  }

  .hp-cta__content .hp-btn {
    width: 100%;
    max-width: 300px;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hp-section-title h2,
  .hp-mission__head h2,
  .hp-cta__content h2 {
    font-size: 1.625rem;
  }

  .hp-hero__title {
    font-size: 2.5rem;
    line-height: 1.12;
  }

  .hp-hero__subtitle {
    font-size: 1.0625rem;
  }
}
