/* ===================================================
   EVOLUTIC-IMMO VITRINE — REFONTE DESIGN MODERNE
   Palette: Crème, Argile, Ocre, Sauge, Encre
   Typography: Fraunces (serif) + Geist (sans)
   ==================================================== */

:root {
  /* Palette Principale */
  --cream: #f4ede0;
  --cream-warm: #ede4d2;
  --paper: #faf6ec;
  --ink: #171411;
  --ink-soft: #3a322a;
  --ink-mute: #7a6f62;
  --line: #d8cdb8;
  --line-soft: #e6dcc8;
  --clay: #c44d2a;
  --clay-deep: #9c3a1f;
  --ochre: #d49a3f;
  --sage: #6e7a5f;
  --night: #15120e;
  --night-soft: #221d18;

  /* --color-* aliases (used by templates with --color- prefix) */
  --color-cream:      #f4ede0;
  --color-cream-warm: #ede4d2;
  --color-paper:      #faf6ec;
  --color-ink:        #171411;
  --color-ink-soft:   #3a322a;
  --color-ink-mute:   #7a6f62;
  --color-line:       #d8cdb8;
  --color-line-soft:  #e6dcc8;
  --color-clay:       #c44d2a;
  --color-clay-deep:  #9c3a1f;
  --color-ochre:      #d49a3f;
  --color-sage:       #6e7a5f;
  --color-night:      #15120e;
  --color-night-soft: #221d18;

  /* --font-* aliases */
  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans:  'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:  'Geist Mono', 'Courier New', monospace;

  /* Typography (legacy names) */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', 'Courier New', monospace;

  /* Spacing & Effects */
  --transition: all 0.3s ease;
  --radius: 18px;
  --shadow-sm:   0 2px 15px rgba(23,20,17,0.06);
  --shadow-md:   0 5px 30px rgba(23,20,17,0.08);
  --shadow-lg:   0 10px 50px rgba(23,20,17,0.12);
  --shadow-clay: 0 24px 60px -20px rgba(196,77,42,0.18);
}

/* ======== GLOBAL RESETS ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 9999;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ======== LAYOUT ======== */
.wrap, .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-light {
  background: var(--cream-warm);
}

/* ======== TYPOGRAPHY ======== */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  padding: 7px 14px;
  border: 1px solid var(--clay);
  border-radius: 999px;
  background: rgba(196, 77, 42, 0.06);
  margin-bottom: 20px;
}

.section-subtitle::before {
  content: '';
  display: none;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  margin-bottom: 20px;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 90;
  font-weight: 300;
}

.section-desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  justify-content: center;
}

.text-center .section-title,
.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  color: var(--ink);
}

/* ======== GRID SYSTEM ======== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ======== NAVIGATION ======== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 237, 224, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
  transition: var(--transition);
}

.navbar-inner, .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-brand, .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 14, "SOFT" 50;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--clay);
  border-radius: 50%;
}

/* —— Logo (fond transparent, taille alignée sur le menu) —— */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.site-logo-link:hover {
  opacity: 0.88;
}

.site-logo {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

/* Menu : même hauteur visuelle que les liens (text-sm + padding) */
.navbar .site-logo {
  height: 40px;
  max-width: min(240px, 46vw);
}

/* Pied de page — même gabarit que le menu (650×133), fond transparent */
footer .site-logo-link--footer {
  --logo-h: 40px;
  margin-bottom: 1.125rem;
  height: var(--logo-h);
  width: auto;
  aspect-ratio: 650 / 133;
  max-width: min(240px, 46vw);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  line-height: 1;
  justify-content: center;
  align-items: center;
}

footer .site-logo-link--footer .site-logo-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: calc(var(--logo-h) * 0.08);
  text-align: center;
}

footer .site-logo-link--footer .site-logo-mark-word {
  display: block;
  width: 100%;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: calc(var(--logo-h) * 0.52);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

footer .site-logo-link--footer .site-logo-evolutic {
  color: var(--clay);
}

footer .site-logo-link--footer .site-logo-immo {
  color: #ffffff;
}

footer .site-logo-link--footer .site-logo-mark-tagline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  column-gap: calc(var(--logo-h) * 0.1);
  width: 100%;
  text-align: center;
}

footer .site-logo-link--footer .site-logo-mark-rule {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  min-width: calc(var(--logo-h) * 0.14);
}

footer .site-logo-link--footer .site-logo-mark-sub {
  grid-column: 2;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: calc(var(--logo-h) * 0.155);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  text-align: center;
}

/* Pages auth */
.auth-visual .brand {
  margin-bottom: 1.75rem;
}

.auth-visual .site-logo {
  height: 44px;
  max-width: 240px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .navbar .site-logo {
    height: 36px;
    max-width: min(210px, 44vw);
  }

  footer .site-logo-link--footer {
    --logo-h: 36px;
    height: 36px;
    max-width: min(210px, 44vw);
  }
}

@media (max-width: 480px) {
  .navbar .site-logo {
    height: 32px;
    max-width: min(180px, 42vw);
  }

  footer .site-logo-link--footer {
    --logo-h: 32px;
    height: 32px;
    max-width: min(180px, 42vw);
  }

  .auth-visual .site-logo {
    height: 38px;
    max-width: 200px;
  }
}

.navbar-menu, .nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}

.navbar-menu a, .nav-links a {
  transition: color 0.2s;
}

.navbar-menu a:hover, .nav-links a:hover {
  color: var(--clay);
}

.navbar-actions, .nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  text-decoration: none;
}

.btn-ghost {
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-primary, .btn-primary-fill {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover, .btn-primary-fill:hover {
  background: var(--clay);
  transform: translateY(-1px);
}

.btn-clay {
  background: var(--clay);
  color: var(--cream);
}

.btn-clay:hover {
  background: var(--clay-deep);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn-secondary-pro {
  background: white;
  border: 2px solid var(--line-soft);
  color: var(--ink);
}

.btn-secondary-pro:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-primary-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(23, 20, 17, 0.35);
  cursor: pointer;
  font-family: var(--sans);
}

.btn-primary-pro:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(23, 20, 17, 0.5);
}

/* ======== HERO SECTION ======== */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-bg-blob-1, .hero-bg-blob-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg-blob-1 {
  top: -10%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.1) 0%, transparent 70%);
  filter: blur(50px);
  animation: float 15s ease-in-out infinite;
}

.hero-bg-blob-2 {
  bottom: -8%;
  left: -3%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.06) 0%, transparent 70%);
  filter: blur(50px);
  animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(25px); }
}

.hero-badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  padding: 7px 14px;
  border: 1px solid var(--clay);
  border-radius: 999px;
  background: rgba(196, 77, 42, 0.06);
  margin-bottom: 28px;
}

.hero-badge i, .eyebrow-dot {
  font-size: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-heading, .hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 28px 0 28px;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
}

.hero-heading .highlight {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 90;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 90;
}

.hero h1 .underline {
  position: relative;
  display: inline-block;
}

.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.12em;
  background: var(--ochre);
  opacity: 0.6;
  z-index: -1;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta-group, .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--ink-mute);
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: var(--ochre);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) {
  background: var(--clay);
}

.avatar:nth-child(3) {
  background: var(--sage);
}

.avatar:nth-child(4) {
  background: var(--ink);
  color: var(--cream);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  aspect-ratio: 0.78;
  max-width: 520px;
  margin-left: auto;
}

.dashboard-container {
  position: relative;
  width: 100%;
}

.dashboard-image {
  border-radius: 22px;
  box-shadow: 0 24px 60px -20px rgba(23, 20, 17, 0.18);
  display: block;
  animation: slideUp 0.8s ease-out;
}

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

/* ======== DASHBOARD CARDS ======== */
.dash-card {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 60px -20px rgba(23, 20, 17, 0.18);
}

.dash-main {
  inset: 0;
  background: linear-gradient(160deg, #1d1915 0%, #2b2418 100%);
  border: 1px solid var(--ink);
  border-radius: 22px;
  padding: 24px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
}

.dash-main::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.dash-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.5);
}

.dash-amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variation-settings: "opsz" 144;
}

.dash-amount span {
  font-size: 20px;
  color: rgba(244, 237, 224, 0.6);
  margin-left: 6px;
}

.dash-pill {
  background: rgba(110, 122, 95, 0.25);
  color: #a4b894;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--mono);
}

.dash-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.bar {
  flex: 1;
  background: linear-gradient(to top, var(--clay) 0%, rgba(196, 77, 42, 0.4) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
}

.bar.muted {
  background: rgba(244, 237, 224, 0.12);
}

.bar:nth-child(1) { height: 42%; }
.bar:nth-child(2) { height: 60%; }
.bar:nth-child(3) { height: 48%; }
.bar:nth-child(4) { height: 75%; }
.bar:nth-child(5) { height: 55%; }
.bar:nth-child(6) { height: 80%; }
.bar:nth-child(7) { height: 68%; }
.bar:nth-child(8) { height: 92%; }
.bar:nth-child(9) { height: 78%; }
.bar:nth-child(10) { height: 100%; }
.bar:nth-child(11) { height: 84%; }
.bar:nth-child(12) { height: 96%; }

/* ======== CARDS GENERAL ======== */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: 0 24px 60px -20px rgba(196, 77, 42, 0.18);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  color: var(--ink);
  font-size: 20px;
  transition: all 0.3s;
}

.card:hover .card-icon {
  background: var(--clay);
  color: white;
}

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 18px 0 0 0;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}

.card p {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 8px;
}

/* Feature Cards */
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: 0 24px 60px -20px rgba(196, 77, 42, 0.18);
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  color: var(--ink);
  font-size: 20px;
}

.feature-card:hover .feature-card-icon {
  background: var(--clay);
  color: white;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 18px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: 8px;
}

/* Stats Cards */
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--clay);
  box-shadow: 0 24px 60px -20px rgba(196, 77, 42, 0.18);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--clay);
  font-size: 24px;
  transition: all 0.3s;
}

.stat-card:hover .stat-icon {
  background: var(--clay);
  color: white;
}

.stat-number {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 12px 0;
  font-variation-settings: "opsz" 144;
}

.stat-label {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
  font-variation-settings: "opsz" 72, "SOFT" 30;
}

.stat-desc {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ======== STATS BAND ======== */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream-warm);
  padding: 36px 0;
  margin-top: 60px;
}

.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-block {
  padding: 0 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-block:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}

.stat-num em {
  font-style: italic;
  color: var(--clay);
  font-variation-settings: "opsz" 144, "SOFT" 90;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
}

.stat-sub {
  font-size: 12px;
  color: var(--ink-mute);
}

/* ======== ABOUT BENEFITS ======== */
.about-benefit {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s;
}

.about-benefit:hover {
  transform: translateX(4px);
  border-color: var(--clay);
  box-shadow: 0 24px 60px -20px rgba(196, 77, 42, 0.12);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--clay);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.about-benefit h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.about-benefit p {
  font-size: 13px;
  color: var(--ink-mute);
}

/* ======== FOOTER ======== */
footer {
  background: var(--night);
  color: var(--cream);
  padding: 80px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
}

.foot-brand .brand {
  color: var(--cream);
  margin-bottom: 18px;
}

.foot-brand-mark {
  background: var(--cream);
}

.foot-brand-mark::before {
  background: var(--clay);
}

.foot-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 237, 224, 0.55);
  max-width: 300px;
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
}

.foot-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-col a {
  font-size: 14px;
  color: rgba(244, 237, 224, 0.7);
  transition: color 0.2s;
}

.foot-col a:hover {
  color: var(--cream);
}

.newsletter {
  font-size: 14px;
  color: rgba(244, 237, 224, 0.55);
  margin-bottom: 18px;
  line-height: 1.55;
}

.news-form {
  display: flex;
  border: 1px solid rgba(244, 237, 224, 0.2);
  border-radius: 999px;
  overflow: hidden;
  padding: 4px;
}

.news-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--cream);
}

.news-form input::placeholder {
  color: rgba(244, 237, 224, 0.4);
}

.news-form button {
  background: var(--clay);
  color: var(--cream);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.news-form button:hover {
  background: var(--clay-deep);
}

.foot-bottom {
  border-top: 1px solid rgba(244, 237, 224, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(244, 237, 224, 0.5);
}

.foot-bottom-links {
  display: flex;
  gap: 24px;
}

.foot-bottom-links a {
  transition: color 0.2s;
}

.foot-bottom-links a:hover {
  color: var(--cream);
}

/* ======== FOOTER CTA ======== */
.footer-cta {
  background: var(--ink);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ======== FOOTER GRID ======== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* ======== FOOTER SOCIAL ======== */
.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 237, 224, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all 0.3s;
  font-size: 14px;
}

.footer-social:hover {
  background: var(--clay);
  transform: translateY(-2px);
}

/* ======== PAGE HEADER (sub-pages) ======== */
.page-header {
  background: linear-gradient(160deg, var(--night) 0%, var(--night-soft) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 154, 63, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* ======== SECTION STATS (dark band) ======== */
.section-stats {
  background: var(--night);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-stats::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 77, 42, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.section-stats .stat-item {
  text-align: center;
}

.section-stats .stat-number {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 300;
  color: var(--cream);
  display: block;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.section-stats .stat-suffix {
  font-size: 54px;
  font-weight: 300;
  color: var(--clay);
}

.section-stats .stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(244, 237, 224, 0.5);
  font-size: 14px;
  font-weight: 400;
  font-family: var(--sans);
}

/* ======== HERO STATS (inline stats row) ======== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stats .stat-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--clay);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}

.hero-stats .stat-label {
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 400;
  font-family: var(--sans);
}

/* ======== NAVBAR MOBILE TOGGLE ======== */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.navbar-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
  border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile auth links - hidden on desktop */
.navbar-menu-auth {
  display: none;
}

/* ======== NAVBAR SCROLL STATE ======== */
.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

/* ======== ANIMATIONS ======== */
.animate {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .hero-grid, .grid-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    margin: 0 auto;
    max-width: 420px;
  }

  .stats-band-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 24px 32px;
  }

  .stat-block:last-child {
    border-bottom: none;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    z-index: 999;
  }

  .navbar-menu.show,
  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu a {
    color: var(--ink-soft) !important;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .navbar-menu a:last-of-type {
    border-bottom: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-actions {
    display: none;
  }

  /* Show mobile auth links */
  .navbar-menu-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 6px;
  }

  .navbar-menu-auth .mobile-auth-link {
    display: block;
    padding: 0 !important;
    border-bottom: none !important;
    font-weight: 500;
    color: var(--ink) !important;
  }

  .navbar-menu-auth .btn {
    width: 100%;
    justify-content: center;
  }

  .page-header {
    padding: 130px 0 60px;
  }
}

@media (max-width: 768px) {
  .wrap, .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .hero-heading {
    font-size: 42px;
  }

  .section-title {
    font-size: clamp(28px, 4vw, 48px);
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary-pro, .btn-secondary-pro {
    width: 100%;
  }

  .stats-band {
    padding: 24px 0;
  }

  .stat-num {
    font-size: 42px;
  }

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

  .footer-grid > div:first-child {
    grid-column: span 1;
  }

  .section-stats .stat-number {
    font-size: 42px;
  }

  .section-stats .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .hero-stats .stat-value {
    font-size: 28px;
  }

  .page-header {
    padding: 120px 0 50px;
  }

  .page-header h1 {
    font-size: clamp(28px, 5vw, 40px);
  }

  .footer-cta {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 32px;
  }

  .stat-num {
    font-size: 32px;
  }

  .card, .feature-card, .stat-card {
    padding: 16px;
  }

  .grid-3, .grid-4 {
    gap: 12px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stats .stat-value {
    font-size: 24px;
  }

  .section-stats .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .section-stats .stat-number {
    font-size: 36px;
  }

  .page-header {
    padding: 100px 0 40px;
  }

  .footer-cta {
    padding: 50px 0;
  }
}

/* ======== EXTRA BUTTON VARIANTS ======== */
.btn-outline-light {
  border: 1px solid rgba(244, 237, 224, 0.35);
  color: var(--cream);
  background: transparent;
}
.btn-outline-light:hover {
  background: rgba(244, 237, 224, 0.1);
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* ======== FOOTER LINKS ======== */
.foot-link {
  font-size: 14px;
  color: rgba(244, 237, 224, 0.7);
  transition: color 0.2s;
}
.foot-link:hover { color: var(--cream); }

/* ======== UTILITIES ======== */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.check-list i {
  color: var(--clay);
  flex-shrink: 0;
}

/* ======== ABOUT STATS GRID ======== */
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ======== FEATURES GRID (index page) ======== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
