/* ============================================================
   Dirent — Landing page
   Design tokens adapted from the Dirent App Figma landing design
   (file yoEmgLNrxTvXGMxBeDpmRh, node 107:2).
   ============================================================ */
:root {
  /* Brand / actions */
  --action-primary: #073e4b;   /* deep teal — primary CTA, dark sections */
  --action-primary-hover: #0a4e5e;
  --action-secondary: #f19920; /* amber — additive actions, highlights */
  --action-secondary-hover: #dd8912;

  /* Text */
  --text-primary: #031f25;
  --text-secondary: #516167;
  --text-tertiary: #8fa2a7;
  --text-brand: #073e4b;
  --text-on-inverse: #ffffff;
  --text-on-accent: #ffffff;
  --text-success: #4caf50;

  /* Surfaces */
  --bg-canvas: #ffffff;
  --bg-subtle: #f3f6f7;
  --bg-muted: #e2eaec;
  --bg-inverse: #073e4b;
  --bg-accent-subtle: #fff2e5;
  --warning-bg: #fdeed9;
  --success-tint: #e4f0e4;

  /* Borders */
  --border-subtle: #ebebeb;
  --border-strong: #073e4b;

  /* Radii */
  --radius-xs: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --content: 1200px;           /* Figma content area width */
  --gutter: 120px;             /* margin either side on a 1440 canvas */
  --container: calc(var(--content) + 2 * var(--gutter));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.99); }
.btn--lg { height: 56px; padding: 0 24px; font-size: 16px; }
.btn--md { height: 48px; padding: 0 20px; font-size: 14px; letter-spacing: 0.1px; }
.btn--primary { background: var(--action-primary); color: var(--text-on-inverse); }
.btn--primary:hover { background: var(--action-primary-hover); }
.btn--secondary { background: var(--action-secondary); color: var(--text-on-accent); }
.btn--secondary:hover { background: var(--action-secondary-hover); }
.btn--outline { background: var(--bg-canvas); color: var(--text-brand); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--bg-subtle); }

/* ---------- Wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 7px; }
.wordmark__mark { width: 26px; height: 22px; flex: none; }
.wordmark__text {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.2px;
  color: var(--text-brand);
}
.wordmark--dark .wordmark__text { color: var(--text-on-inverse); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  font-size: 15px;
  color: var(--text-secondary);
}
.nav__links a:hover { color: var(--text-brand); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__burger {
  display: none;
  background: none;
  border: 0;
  color: var(--text-brand);
  padding: 4px;
  margin-left: auto;
  cursor: pointer;
}
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-subtle); }
.hero__inner {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-top: 104px;
  padding-bottom: 104px;
}
.hero__copy { flex: 1 1 0; min-width: 0; }
.badge {
  display: inline-block;
  background: var(--warning-bg);
  color: var(--action-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero__title {
  margin-top: 24px;
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}
.hero__lead {
  margin-top: 24px;
  max-width: 600px;
  font-size: 18px;
  line-height: 30px;
  color: var(--text-secondary);
}
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__trust {
  margin-top: 24px;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-tertiary);
}
.hero__art {
  flex: none;
  width: 460px;
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art img { width: 348px; height: auto; }

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 48px;
}
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--action-secondary);
}
.section-title {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-primary);
}
.section-title--light { color: var(--text-on-inverse); }
.section-sub {
  max-width: 680px;
  font-size: 17px;
  line-height: 28px;
  color: var(--text-secondary);
}

/* ---------- Benefits ---------- */
.benefits { background: var(--bg-canvas); padding: 96px 0; }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.benefit-card__art {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card__art img { width: 150px; height: auto; }
.benefit-card__title {
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-primary);
}
.benefit-card__body {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-secondary);
}

/* ---------- How it works ---------- */
.how { background: var(--bg-inverse); padding: 96px 0; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step__num {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: var(--action-secondary);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}
.step__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-on-inverse);
}
.step__body {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-on-inverse);
  opacity: 0.76;
}

/* ---------- Proof ---------- */
.proof { background: var(--bg-canvas); padding: 88px 0; }
.proof__title { text-align: center; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.metric {
  background: var(--bg-subtle);
  border-radius: var(--radius-xs);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.metric--emphasis { background: var(--bg-inverse); }
.metric--positive { background: var(--success-tint); }
.metric__caption { font-size: 13px; line-height: 20px; color: var(--text-tertiary); }
.metric--emphasis .metric__caption { color: var(--text-on-inverse); }
.metric--positive .metric__caption { color: var(--text-success); }
.metric__value {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text-brand);
}
.metric--emphasis .metric__value { color: var(--text-on-inverse); }
.metric--positive .metric__value { color: var(--text-success); }
.proof__note {
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-tertiary);
}

/* ---------- Support ---------- */
.support { background: var(--bg-canvas); padding-bottom: 88px; }
.support__inner { display: flex; gap: 24px; }
.tile {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { border-color: var(--action-secondary); box-shadow: 0 6px 18px rgba(7, 62, 75, 0.06); }
.tile__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 20px;
  background: var(--bg-accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile__label { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-brand); }

/* ---------- CTA ---------- */
.cta { background: var(--bg-canvas); padding-bottom: 96px; }
.cta__band {
  background: var(--action-secondary);
  border-radius: var(--radius-xl);
  padding: 72px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.cta__title {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-on-accent);
}
.cta__sub {
  max-width: 640px;
  font-size: 17px;
  line-height: 28px;
  color: var(--text-on-accent);
  opacity: 0.9;
}
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-inverse); color: var(--text-on-inverse); padding: 72px 0 40px; }
.footer__top { display: flex; gap: 64px; }
.footer__brand { width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer__desc { font-size: 15px; line-height: 24px; opacity: 0.7; }
.footer__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.footer__head { font-size: 15px; font-weight: 600; line-height: 22px; }
.footer__col a {
  font-size: 14px;
  line-height: 22px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.footer__col a:hover { opacity: 1; }
.footer__line { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); margin: 48px 0; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  line-height: 22px;
}
.footer__bottom p { opacity: 0.6; }

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet / small desktop: tighten the gutter */
@media (max-width: 1100px) {
  :root { --gutter: 56px; }
  .hero__inner { gap: 48px; }
  .hero__title { font-size: 48px; line-height: 56px; }
  .hero__art { width: 400px; padding: 44px; }
  .footer__top { gap: 40px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root { --gutter: 40px; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: inline-flex; }

  .nav__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 40px 20px;
    border-top: 1px solid var(--border-subtle);
  }
  .nav__mobile[data-open="true"] { display: flex; }
  .nav__mobile a { padding: 12px 4px; font-size: 16px; color: var(--text-secondary); }
  .nav__mobile-actions { display: flex; gap: 12px; margin-top: 8px; }
  .nav__mobile-actions .btn { flex: 1; }

  .hero__inner { flex-direction: column; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
  .hero__art { width: 100%; max-width: 460px; align-self: center; }

  .benefits__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .how__grid { grid-template-columns: 1fr; gap: 36px; }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { flex-wrap: wrap; }
  .footer__brand { width: 100%; }
  .footer__col { flex: 1 1 40%; }
}

/* Phone */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .benefits, .how { padding: 64px 0; }
  .proof { padding: 56px 0; }
  .hero__title { font-size: 38px; line-height: 44px; letter-spacing: -0.8px; }
  .hero__lead { font-size: 16px; }
  .hero__art { padding: 32px; }
  .hero__cta .btn, .cta__actions .btn { width: 100%; }
  .hero__cta, .cta__actions { width: 100%; }
  .section-title, .cta__title { font-size: 30px; line-height: 38px; }
  .proof__grid { grid-template-columns: 1fr; }
  .support__inner { flex-direction: column; }
  .cta__band { padding: 48px 24px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__col { flex: none; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}
