/* ============================================================
   CARTIVO — Main Stylesheet
   Fonts · Base · Grid BG · Components · Animations
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter/web/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Rethink Sans';
  src: url('../fonts/rethink-sans/RethinkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Righteous';
  src: url('../fonts/righteous/Righteous-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #000512;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Typography helpers ─────────────────────────────────────── */
.font-heading { font-family: 'Rethink Sans', sans-serif; }
.font-logo    { font-family: 'Righteous', sans-serif; }
.font-body    { font-family: 'Inter', sans-serif; }

/* ── Grid Background ────────────────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(72, 0, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 0, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Grid with radial fade so edges dissolve cleanly */
.bg-grid-fade {
  position: relative;
}
.bg-grid-fade::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 0, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 0, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Primary Glow ───────────────────────────────────────────── */
.glow-primary {
  box-shadow: 0 0 80px rgba(72, 0, 255, 0.25), 0 0 160px rgba(72, 0, 255, 0.08);
}
.glow-sm {
  box-shadow: 0 0 32px rgba(72, 0, 255, 0.20);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.25,.46,.45,.94),
              transform 0.65s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* ── Navbar ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.navbar-pill {
  background: rgba(0, 5, 18, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
}
.navbar-scrolled .navbar-pill {
  background: rgba(0, 5, 18, 0.85);
  border-color: rgba(72, 0, 255, 0.20);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: #4800FF;
  color: #ffffff;
  border-color: #4800FF;
}
.btn-primary:hover {
  background: #3a00cc;
  border-color: #3a00cc;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(72, 0, 255, 0.40);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-outline:hover {
  border-color: #4800FF;
  background: rgba(72, 0, 255, 0.08);
  transform: translateY(-1px);
}

.btn-sm  { padding: 8px 18px;  font-size: 14px; }
.btn-md  { padding: 12px 24px; font-size: 15px; }
.btn-lg  { padding: 15px 32px; font-size: 16px; }
.btn-xl  { padding: 18px 40px; font-size: 17px; }

/* ── Badge ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(72, 0, 255, 0.10);
  border: 1px solid rgba(72, 0, 255, 0.25);
  color: #a48bff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(72, 0, 255, 0.35);
  background: rgba(72, 0, 255, 0.04);
  transform: translateY(-2px);
}

.card-featured {
  background: rgba(72, 0, 255, 0.07);
  border: 1px solid #4800FF;
  border-radius: 16px;
}

.placeholder-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

/* ── Step number ────────────────────────────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(72, 0, 255, 0.12);
  border: 1px solid rgba(72, 0, 255, 0.30);
  color: #7c4dff;
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Icon wrapper ───────────────────────────────────────────── */
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(72, 0, 255, 0.10);
  border: 1px solid rgba(72, 0, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #7c4dff;
}

/* ── Check list ─────────────────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}
.check-list li .check-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  color: #4800FF;
}

/* ── Integration logos ──────────────────────────────────────── */
.integration-logo {
  filter: opacity(0.55);
  transition: filter 0.3s;
  height: 28px;
  width: auto;
}
.integration-logo:hover {
  filter: opacity(1);
}

/* Partner icon in cards (smaller, inline use) */
.partner-icon {
  filter: opacity(0.60);
  transition: filter 0.3s;
  height: 22px;
  width: auto;
}
.partner-icon:hover { filter: opacity(1); }

/* ── Pricing ────────────────────────────────────────────────── */
.price-tag {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: #ffffff;
}
.price-tag sup {
  font-size: 22px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ── Mobile Menu ────────────────────────────────────────────── */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
}
#mobile-menu.open { display: flex; }

/* ── Hamburger ──────────────────────────────────────────────── */
#menu-toggle { cursor: pointer; background: none; border: none; color: #fff; padding: 4px; }
#menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
#menu-toggle.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-toggle.open .bar:nth-child(2) { opacity: 0; }
#menu-toggle.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.bar + .bar { margin-top: 4px; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer-top-border {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Input ──────────────────────────────────────────────────── */
.input-field {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.input-field::placeholder { color: rgba(255, 255, 255, 0.35); }
.input-field:focus { border-color: #4800FF; }

/* ── Section spacing ────────────────────────────────────────── */
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* ── Highlight text ─────────────────────────────────────────── */
.text-primary { color: #4800FF; }
.text-accent   { color: #7c4dff; }
.text-muted    { color: rgba(255, 255, 255, 0.50); }
.text-soft     { color: rgba(255, 255, 255, 0.70); }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  background: rgba(72, 0, 255, 0.08);
  border: 1px solid rgba(72, 0, 255, 0.20);
  border-radius: 24px;
}

/* ── Responsive logo sizes ──────────────────────────────────── */
.logo-full { height: 26px; width: auto; }
.logo-icon { height: 30px; width: auto; }

/* ── Nav link ───────────────────────────────────────────────── */
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}
.nav-link:hover { color: #ffffff; }
.nav-link.active { color: #ffffff; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000512; }
::-webkit-scrollbar-thumb { background: rgba(72, 0, 255, 0.40); border-radius: 3px; }
