/* Centifi marketing — static site, deploy anywhere (Netlify, Vercel, S3, GitHub Pages) */

:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --purple: #6c63ff;
  --purple-dim: rgba(108, 99, 255, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --nav-bg: rgba(10, 10, 12, 0.85);
  --mock-gradient-end: #0e0e12;
  --mock-shadow: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] {
  --bg: #f4f4f7;
  --surface: #ffffff;
  --text: #0f0f12;
  --muted: #52525b;
  --purple: #5b52e5;
  --purple-dim: rgba(91, 82, 229, 0.12);
  --border: rgba(15, 15, 18, 0.1);
  --nav-bg: rgba(244, 244, 247, 0.9);
  --mock-gradient-end: #f0f0f5;
  --mock-shadow: rgba(15, 15, 18, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-strip {
  position: relative;
  z-index: 2;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-menu-toggle:hover {
  border-color: var(--purple);
}

.nav-menu-toggle:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.nav-menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
  pointer-events: none;
}

.nav-menu-toggle-line {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav.nav-menu-is-open .nav-menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.nav-menu-is-open .nav-menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav.nav-menu-is-open .nav-menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border: none;
  padding: 0;
  z-index: 1;
}

html[data-theme="light"] .nav-overlay {
  background: rgba(15, 15, 18, 0.25);
}

.nav-overlay[hidden],
.nav-overlay:disabled {
  display: none;
}

@media (max-width: 767px) {
  .nav-inner {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-drawer {
    position: absolute;
    left: 50%;
    top: 100%;
    width: min(100vw - 48px, 1120px);
    transform: translateX(-50%) translateY(-8px);
    margin-top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--border);
    border-top: none;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    max-height: min(74vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-drawer.nav-drawer--open {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }

  html[data-theme="light"] .nav-drawer {
    box-shadow: 0 24px 50px rgba(15, 15, 18, 0.12);
  }

  .nav-drawer-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 8px 24px 16px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    font-size: 0.95rem;
  }

  .nav-links .btn-nav {
    margin-top: 4px;
    margin-bottom: 4px;
    justify-content: center;
    min-height: 48px;
  }

  .nav-controls {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  .lang-dropdown-trigger {
    min-width: 0;
    flex: 1;
    max-width: 100%;
  }

  /* Dropdown panel clears drawer width */
  .lang-dropdown-list {
    width: calc(100vw - 48px);
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .nav-inner {
    position: static;
  }

  .nav-drawer-shell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
  }

  .nav-overlay {
    display: none !important;
  }

  .nav-overlay[hidden],
  .nav-overlay:disabled {
    display: none !important;
  }

  .nav-drawer {
    position: static !important;
    left: auto !important;
    width: auto !important;
    max-height: none !important;
    margin: 0 !important;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .nav-drawer.nav-drawer--open {
    transform: none !important;
  }

  .nav-inner > .logo {
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  body.nav-drawer-lock {
    overflow: hidden;
  }
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language — custom dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 138px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-dropdown-trigger:hover {
  border-color: rgba(108, 99, 255, 0.35);
}

.lang-dropdown.is-open .lang-dropdown-trigger {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-dim);
}

.lang-dropdown-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-dropdown-chevron {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 140;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .lang-dropdown-list {
  box-shadow: 0 16px 48px rgba(15, 15, 18, 0.12);
}

.lang-dropdown-list[hidden] {
  display: none !important;
}

.lang-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.lang-dropdown-option:hover,
.lang-dropdown-option:focus-visible {
  outline: none;
  background: var(--purple-dim);
}

.lang-dropdown-option.is-active {
  background: rgba(108, 99, 255, 0.12);
  color: var(--purple);
}

html[data-theme="light"] .lang-dropdown-option.is-active {
  background: rgba(91, 82, 229, 0.12);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--purple);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}
.logo-img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
}
.logo-text {
  letter-spacing: inherit;
}
.logo:hover {
  text-decoration: none;
  color: var(--purple);
}
.logo:hover .logo-img {
  filter: brightness(1.05);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn-nav {
  background: var(--purple);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}
.btn-nav:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, var(--purple-dim) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 36px;
  line-height: 1.65;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge-link:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  text-decoration: none;
}

.store-badge-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}

.store-badge-img {
  display: block;
  width: auto;
}

.store-badge-img--app-light,
.store-badge-img--app-dark {
  height: 40px;
}

.store-badge-img--play {
  height: 54px;
}

.store-badge-img--app-dark {
  display: none;
}

html[data-theme="dark"] .store-badge-img--app-dark {
  display: block;
}

html[data-theme="dark"] .store-badge-img--app-light {
  display: none;
}

html[data-theme="light"] .store-badge-img--app-light {
  display: block;
}

html[data-theme="light"] .store-badge-img--app-dark {
  display: none;
}

.hero-mock {
  margin-top: 56px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--surface) 0%, var(--mock-gradient-end) 100%);
  padding: 32px 24px 40px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 24px 80px var(--mock-shadow);
}

.hero-mock-ui {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}
.pill span.amount {
  margin-left: auto;
  font-weight: 700;
  color: var(--purple);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-lead {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 48px;
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--purple-dim);
  color: var(--purple);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.feature {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

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

/* CTA */
.cta {
  text-align: center;
  padding: 96px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--purple-dim) 0%, transparent 60%);
  border: 1px solid var(--border);
  margin: 40px 0 80px;
}

.cta h2 {
  margin-bottom: 12px;
}

.cta p {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Footer */
footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Privacy / legal */
.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.legal-page p,
.legal-page ul {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 0.9rem;
}
