/* =========================================================
   CASHEVIDE — LANDING PAGE STYLES
   Monochrome, dark, Geist font. Minimal but modern & warm.
   ========================================================= */

/* ---------- Font: Geist (self-hosted via CDN fallback to system) ---------- */
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/style.css');

/* ---------- Design Tokens ---------- */
:root {
  /* Grayscale palette — near-black, not pure black */
  --bg: #0d0d0d;
  --bg-raised: #141414;
  --bg-raised-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f2f2f0;
  --text-secondary: #a3a3a0;
  --text-tertiary: #6e6e6b;

  --white: #ffffff;
  --black: #0d0d0d;

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container-w: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section__title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), opacity 0.2s var(--ease);
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: var(--bg-raised-2);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost svg {
  width: 16px;
  height: 16px;
}

.btn--lg {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--bg-raised-2);
  color: var(--text-primary);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
}

.nav__toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  translate: -50% 0;
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__headline {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
  max-width: 640px;
}

.hero__subhead {
  margin-top: 18px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__trust {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ---------- Features ---------- */
.features {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.features .section__title {
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  background: var(--bg-raised-2);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.feature-card__icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Why Cashevide ---------- */
.why {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why__text p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 460px;
}

.why__compare {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  background: var(--bg-raised);
}

.compare-card--highlight {
  border-color: var(--border-strong);
  background: var(--bg-raised-2);
}

.compare-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.compare-card--highlight .compare-card__label {
  color: var(--text-primary);
}

.compare-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compare-card li {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.compare-card li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

.compare-card--highlight li {
  color: var(--text-primary);
}

.compare-card--highlight li::before {
  content: '✓';
  color: var(--white);
}

/* ---------- Download ---------- */
.download {
  padding: 90px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.download__cta {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.download__override {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.download__override a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: color 0.2s var(--ease);
}

.download__override a:hover {
  color: var(--text-primary);
}

/* ---------- Developer ---------- */
.developer {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.developer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
}

.developer__photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  margin-top: 28px;
}

.developer__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer__name {
  margin-top: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.developer__bio {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.developer__inner > .btn {
  margin-top: 26px;
}

.developer__socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.developer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.developer__socials a:hover {
  background: var(--bg-raised-2);
  color: var(--text-primary);
}

/* ---------- Open Source Strip ---------- */
.oss-strip {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}

.oss-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.oss-strip h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.oss-strip p {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

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

  .why__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why__text p {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav__actions .btn--primary {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .hero {
    padding: 90px 0 64px;
  }

  .features,
  .why,
  .download,
  .developer {
    padding: 64px 0;
  }

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

  .oss-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
  }
}