/* Cartivo — luxury dark theme */
:root {
  --bg: #0b0b10;
  --bg-elevated: #12121a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(201, 169, 98, 0.35);
  --text: #ece9e2;
  --text-muted: #9b98a3;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --gold-dark: #a8863d;
  --radius: 18px;
  --max-width: 920px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: rgba(201, 169, 98, 0.35); color: #fff; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% -10%, rgba(201, 169, 98, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 110%, rgba(90, 70, 160, 0.10), transparent 60%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.12), transparent 70%);
}

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--gold-light); }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 14px;
  padding: 5px 8px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  background: rgba(201, 169, 98, 0.05);
}

.lang-switch a {
  padding: 2px 9px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.lang-switch a::after { display: none; }
.lang-switch a.active { color: var(--gold); }
.lang-sep { color: var(--border-gold); font-size: 0.7rem; }

/* Hero */
.hero {
  position: relative;
  padding: 130px 28px 150px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(201, 169, 98, 0.14), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(680px, 80vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.hero-badge {
  display: inline-block;
  margin-bottom: 30px;
  padding: 9px 26px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  background: rgba(201, 169, 98, 0.06);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fdfcf9 20%, #cfc4a8 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.06rem;
  font-weight: 300;
  animation: fadeUp 0.9s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-light {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17130a;
}

.btn-light:hover {
  box-shadow: 0 8px 40px rgba(201, 169, 98, 0.35);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(201, 169, 98, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* Main content */
.page-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 28px 110px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: -40px;
}

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, background 0.4s ease;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--surface-strong);
}

.feature-card:hover::before { opacity: 1; }

.feature-card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: 20px;
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.10), transparent 70%);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Sections */
.section { margin-top: 96px; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
  color: var(--text);
}

.section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section p { color: var(--text-muted); font-size: 1.0rem; }
.section em { color: var(--gold-light); font-style: italic; }

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px 26px 92px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.steps li:hover { border-color: var(--border-gold); background: var(--surface-strong); }

.steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 26px;
  top: 28px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  font-style: italic;
}

/* Legal document */
.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 60px;
  backdrop-filter: blur(8px);
  margin-top: -40px;
  position: relative;
}

.legal-doc::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.legal-doc .doc-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.legal-doc .doc-meta strong { color: var(--gold-light); font-weight: 500; }

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 52px 0 16px;
  color: var(--gold-light);
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 30px 0 10px;
  color: var(--text);
}

.legal-doc p, .legal-doc li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.legal-doc strong { color: var(--text); font-weight: 500; }

.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc li::marker { color: var(--gold); }

.legal-doc a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--border-gold); transition: color 0.3s, border-color 0.3s; }
.legal-doc a:hover { color: var(--gold); border-color: var(--gold); }

.callout {
  background: rgba(201, 169, 98, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 28px 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Table of contents */
.toc {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 30px;
  margin-bottom: 44px;
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

.toc li { margin-bottom: 6px; font-size: 0.9rem; color: var(--text-muted); }
.toc li::marker { color: var(--gold); }
.toc a { color: var(--text-muted); text-decoration: none; border: none; transition: color 0.3s; }
.toc a:hover { color: var(--gold-light); }

/* Capability grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.capability-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.capability-group:hover { border-color: var(--border-gold); background: var(--surface-strong); }

.capability-group h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.capability-group ul {
  margin: 0;
  padding-left: 18px;
}

.capability-group li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 9px;
}

.capability-group li::marker { color: var(--gold); }

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.benefit {
  position: relative;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease;
}

.benefit:hover { transform: translateY(-4px); border-color: var(--border-gold); }

.benefit h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.benefit p { margin: 0; font-size: 0.9rem; }

/* Closing line */
.closing-line {
  margin-top: 34px !important;
  font-family: var(--font-display);
  font-size: 1.5rem !important;
  line-height: 1.5;
  text-align: center;
  color: var(--gold-light) !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 44px 28px;
  position: relative;
  z-index: 1;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 26px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.site-footer a:hover { color: var(--gold-light); }

@media (max-width: 640px) {
  .legal-doc { padding: 34px 24px; }
  .toc ol { columns: 1; }
  .hero { padding: 84px 22px 100px; }
  .steps li { padding: 22px 22px 22px 74px; }
  .steps li::before { left: 22px; }
  .site-footer-inner { flex-direction: column; text-align: center; }
  .site-footer a { margin: 0 12px; }
}
