/* Alora marketing site — one-pager */
@import url('design-system/colors_and_type.css');

/* The css file imports CalSans-Regular.ttf via `fonts/CalSans-Regular.ttf`.
   Because we serve colors_and_type.css from design-system/, the font url
   resolves to design-system/fonts/CalSans-Regular.ttf — correct. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--color-canvas);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ----- top nav ----------------------------------------------- */
.top-nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline-soft);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: none;
}
.top-nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 19px;
  color: var(--color-ink); letter-spacing: -0.02em;
}
.top-nav .menu {
  display: flex; align-items: center; gap: 30px;
}
.top-nav .menu a {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--color-body); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.top-nav .menu a:hover { color: var(--color-ink); }
.top-nav .right { display: flex; align-items: center; gap: 14px; }

/* ----- buttons ----------------------------------------------- */
.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px;
  padding: 0 22px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn-primary       { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-active); }
.btn-primary:active{ background: var(--color-primary-active); }
.btn-secondary {
  background: var(--color-canvas); color: var(--color-ink);
  border: 1px solid var(--color-hairline);
}
.btn-secondary:hover { background: var(--color-surface-soft); }
.btn-link {
  background: none; border: none;
  color: var(--color-ink); font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; padding: 8px 4px;
}
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-on-dark { background: var(--color-canvas); color: var(--color-ink); }
.btn-on-dark:hover { background: #f2f2f2; }
.btn-ghost-on-dark {
  background: transparent; color: var(--color-on-dark);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost-on-dark:hover { background: rgba(255,255,255,0.08); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }

/* ----- section padding ---------------------------------------- */
.section { padding: var(--space-section) 0; }
.section-tight { padding: var(--space-xxl) 0; }

/* ----- badge -------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-card);
  color: var(--color-ink);
  white-space: nowrap;
}
.badge.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-success); flex: none;
}
.badge.outline {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
}

/* ----- avatars ------------------------------------------------ */
.avatar {
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; color: #fff;
  flex: none;
}

/* ----- type helpers ------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow.on-dark { color: var(--color-on-dark-soft); }

.lead {
  font-size: 18px;
  color: var(--color-body);
  line-height: 1.55;
  text-wrap: pretty;
}

/* mega display — bigger than --display-xl */
.mega {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 96px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--color-ink);
  text-wrap: balance;
}
.mega-md { font-size: 72px; }

/* mono numeric */
.mono { font-family: var(--font-mono); }

/* divider rule */
hr.rule {
  border: none;
  height: 1px;
  background: var(--color-hairline-soft);
  margin: 0;
}

/* ----- cards -------------------------------------------------- */
.card-feature {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-product {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-hairline);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card-testimonial {
  background: var(--color-surface-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ----- hero image slot ---------------------------------------- */
.hero-canvas {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-card);
}

/* ----- footer ------------------------------------------------- */
.footer {
  background: var(--color-surface-dark);
  color: var(--color-on-dark-soft);
  padding: 80px 0 32px;
}
.footer .brand { color: var(--color-on-dark); display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.footer h4 { color: var(--color-on-dark); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 16px; }
.footer a { color: var(--color-on-dark-soft); text-decoration: none; font-size: 14px; line-height: 2; }
.footer a:hover { color: var(--color-on-dark); }
.footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--color-surface-dark-elev); color: var(--color-on-dark-soft); font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* mark inversion for dark surfaces — flips black to white */
.invert-mark { filter: invert(1); }

/* ----- team card --------------------------------------------- */
.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-card);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--dur-base) var(--ease-out);

  /* initial state for scroll-in animation */
  opacity: 0;
  transform: translateY(24px);
}
.team-card:hover { transform: translateY(-2px); }

/* When the leaders section is visible, cascade the cards in. */
.leaders-in .team-card {
  animation: aloraCardIn 700ms var(--ease-out) forwards;
}
.leaders-in .team-card:nth-child(1) { animation-delay:   0ms; }
.leaders-in .team-card:nth-child(2) { animation-delay: 100ms; }
.leaders-in .team-card:nth-child(3) { animation-delay: 200ms; }
.leaders-in .team-card:nth-child(4) { animation-delay: 300ms; }
.leaders-in .team-card:nth-child(5) { animation-delay: 400ms; }
.leaders-in .team-card:nth-child(6) { animation-delay: 500ms; }

/* keep hover-lift independent of the entrance keyframes */
.leaders-in .team-card:hover { transform: translateY(-4px); }

@keyframes aloraCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* slide the overlay caption up after photo has settled */
.leaders-in .team-card .overlay {
  animation: aloraOverlayIn 600ms var(--ease-out) backwards;
  animation-delay: calc(var(--card-delay, 0ms) + 350ms);
}
@keyframes aloraOverlayIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------
   Reveal — generic scroll-triggered fade-up for headlines.
   Add className="reveal" to any element to opt in.
   Add data-reveal-delay="120" (ms) to stagger inside a group.
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (prefers-reduced-motion: reduce) {
  .team-card { opacity: 1; transform: none; }
  .leaders-in .team-card,
  .leaders-in .team-card .overlay { animation: none; }
}
.team-card .photo-wrap {
  position: absolute;
  inset: 0;
}
.team-card image-slot {
  width: 100%; height: 100%;
}
.team-card .overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(17,17,17,0) 0%, rgba(17,17,17,0.85) 70%, rgba(17,17,17,0.95) 100%);
  padding: 56px 20px 20px;
  color: var(--color-on-dark);
}
.team-card .overlay .name {
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px;
}
.team-card .overlay .role {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-on-dark-soft); margin-bottom: 10px;
}
.team-card .overlay .fact {
  font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.85);
}

/* dotted-grid background variant — used sparingly on stat band  */
.stat-band {
  background: var(--color-surface-soft);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
}

/* responsive ------------------------------------------------- */
@media (max-width: 960px) {
  .mega { font-size: 64px; }
  .mega-md { font-size: 48px; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .mega { font-size: 44px; letter-spacing: -0.025em; }
  .mega-md { font-size: 36px; }
  h1 { font-size: 44px !important; }
  h2 { font-size: 34px !important; }
  h3 { font-size: 26px !important; }
  .container, .container-wide { padding: 0 20px; }
  .top-nav .menu { display: none; }
}
