/* ============================================
   ZIFFI — Base Styles
   CSS variables, reset, typography, cursor,
   scroll progress bar, navigation, hero
   ============================================ */


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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f9fafb;
  --border: rgba(17, 24, 39, 0.08);
  --border2: rgba(17, 24, 39, 0.12);
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --violet: #111827;
  --violet-light: #374151;
  --violet-lighter: #6B7280;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --cyan: #0EA5E9;
  --green: #10B981;
  --red: #EF4444;
  --orange: #F97316;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 32px rgba(17, 24, 39, 0.1);
  --shadow-xl: 0 20px 50px rgba(17, 24, 39, 0.12);
}

html {
  scroll-behavior: auto
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-weight: 400;
}

/* ---- Cursor glow ---- */
#cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background 0.2s ease;
}

/* ---- Scroll progress ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #111827, #6B7280);
  z-index: 9999;
  box-shadow: 0 0 12px rgba(17, 24, 39, 0.2);
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 4px 24px rgba(17, 24, 39, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 8px 32px rgba(17, 24, 39, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.nav-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.8px;
  text-decoration: none;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #111827, #6B7280);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover::after {
  transform: scaleX(1);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s
}

.nav-link:hover {
  color: var(--text)
}

.nav-cta {
  background: #111827;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.15);
}

.nav-cta:hover {
  background: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.2);
}

/* Nav Responsive */
@media (max-width: 768px) {
  nav {
    padding: 0 24px;
    height: 64px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-link:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    padding: 9px 18px;
    font-size: 13px;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 40px;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-top: -60px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 36px;
  position: relative;
  border: none;
}

.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  padding: 1.5px;
  background: conic-gradient(from var(--pill-angle, 0deg), #10B981, #3B82F6, #8B5CF6, #EC4899, #F59E0B, #10B981);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pillSpin 3s linear infinite;
}

@property --pill-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false
}

@keyframes pillSpin {
  to {
    --pill-angle: 360deg
  }
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 2s infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: clamp(42px, 6.5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 20px;
  color: #111827;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #6B7280;
  max-width: 560px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

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

/* ---- Primary button (solid dark) ---- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 100px;
  border: 1.5px solid #111827;
  background: #111827;
  padding: 14px 32px;
  min-width: 180px;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1)
}

.btn-primary:hover {
  background: #374151;
  border-color: #374151;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.25);
  transform: translateY(-2px);
}

.btn-primary:hover svg {
  transform: translateX(3px)
}

/* ---- Secondary button (outlined) ---- */
.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 100px;
  border: 1.5px solid rgba(17, 24, 39, 0.2);
  background: transparent;
  padding: 14px 32px;
  min-width: 180px;
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1)
}

.btn-secondary:hover {
  border-color: #111827;
  background: rgba(17, 24, 39, 0.04);
  transform: translateY(-2px);
}

.btn-secondary:hover svg {
  transform: translateX(3px)
}

.hero-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted)
}

.hero-note span {
  color: var(--green);
  font-weight: 600
}