/* ============================================================
   YOURSALESMACHINE — BASE CSS
   Tokens · Reset · Typography · Nav · Footer · Utilities
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #090710;
  --bg2:       #0e0b18;
  --bg3:       #120e20;
  --surface:   #130f20;
  --surface2:  #1a1428;
  --surface3:  #201830;

  /* Borders */
  --border:    rgba(220,180,255,0.07);
  --border2:   rgba(220,180,255,0.13);
  --border3:   rgba(220,180,255,0.22);

  /* Text */
  --text:      #f0eaf8;
  --text2:     rgb(235 219 255);
  --text3:     rgb(235 219 255);

  /* Accent — violet */
  --accent:    #7c3aed;
  --accent2:   #c4b5fd;
  --accent-bg: rgba(124,58,237,0.10);
  --accent-border: rgba(124,58,237,0.24);
  --accent-glow:   rgba(124,58,237,0.32);

  /* Green — success / highlight */
  --green:     #34d399;
  --green-bg:  rgba(52,211,153,0.08);
  --green-border: rgba(52,211,153,0.22);

  /* Red — alert */
  --red:       #ff5b7a;

  /* Spacing scale */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  /* Layout */
  --max-w:     1200px;
  --nav-h:     64px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Transitions */
  --t-fast:  .15s ease;
  --t-base:  .22s ease;
  --t-slow:  .4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; letter-spacing: -0.01em; }

p {
  color: var(--text2);
  line-height: 1.75;
}

strong { color: var(--text); font-weight: 600; }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--space-10) 0;
}
.section-sm {
  padding: var(--space-9) 0;
}

.label {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: var(--space-4);
}

.label-green {
  color: var(--green);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent2);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s ease infinite;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--t-base), box-shadow var(--t-base), background var(--t-base);
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  padding: 14px 32px;
  border-radius: var(--r-md);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
  opacity: 0.88;
  box-shadow: 0 0 40px rgba(124,58,237,0.5);
}

.btn-secondary {
  color: var(--text2);
  background: transparent;
  border: 1px solid var(--border2);
  padding: 14px 28px;
  border-radius: var(--r-md);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border3);
}

.btn-ghost {
  color: var(--accent2);
  background: transparent;
  padding: 0;
  font-weight: 500;
  font-size: 16px;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost::after { content: ' →'; }

.btn-sm {
  font-size: 16px;
  padding: 10px 22px;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(8,8,16,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base);
}

.nav.scrolled {
  background: rgba(8,8,16,0.96);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}
.nav-logo-mark svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

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

.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text2);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 899;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text2);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-of-type { border-bottom: none; }
.nav-drawer .btn-primary {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-top {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-brand-logo .nav-logo-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text3);
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text3);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-social a:hover {
  color: var(--text);
  border-color: var(--border3);
  background: rgba(255,255,255,0.04);
}

.footer-col h5 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 16px;
  color: var(--text2);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 16px;
  color: var(--text3);
}
.footer-bottom-links {
  display: flex; gap: 24px;
}
.footer-bottom-links a {
  font-size: 16px;
  color: var(--text3);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: var(--text2); }

/* ── PAGE HERO SHARED ────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 400px at 50% 20%, rgba(124,58,237,0.10) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 100%);
}

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-7);
  transition: border-color var(--t-base), background var(--t-base);
}
.card:hover {
  border-color: var(--border2);
  background: var(--surface2);
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--green); }
  50%       { opacity: 0.4; box-shadow: none; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-up   { animation: fadeUp .6s ease both; }
.anim-up-1 { animation: fadeUp .6s ease .08s both; }
.anim-up-2 { animation: fadeUp .6s ease .16s both; }
.anim-up-3 { animation: fadeUp .6s ease .24s both; }
.anim-up-4 { animation: fadeUp .6s ease .32s both; }
.anim-up-5 { animation: fadeUp .6s ease .40s both; }

/* Scroll-triggered (JS adds .visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* Accessibility: ensure content is always visible when motion is reduced */
@media (prefers-reduced-motion: reduce) {
  .anim-up, .anim-up-1, .anim-up-2, .anim-up-3, .anim-up-4, .anim-up-5 {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .nav-links, .nav-right .btn-primary { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 72px 0; }
  .section-sm { padding: 56px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  width: min(560px, calc(100vw - 32px));
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.12);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner-text {
  flex: 1;
  min-width: 0;
}
.cookie-banner-text p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--text); }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #fff;
  transition: background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.cookie-btn-accept:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}
.cookie-btn-decline {
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  transition: border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.cookie-btn-decline:hover {
  border-color: var(--border3);
  color: var(--text);
}
@media (max-width: 540px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
  }
  .cookie-banner-actions { justify-content: flex-end; }
}
