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

:root {
  --bg:       #ffffff;
  --surface:  #fafafa;
  --border:   #e4e4e7;
  --border-2: #d4d4d8;
  --text-1:   #09090b;
  --text-2:   #52525b;
  --text-3:   #a1a1aa;
  --accent:   #7c3aed;
  --accent-lt:#ede9fe;
  --radius:   10px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  cursor: none;
}

/* ===========================
   Cursor bubble
=========================== */
.cursor-bubble {
  position: fixed;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(167,139,250,0.18) 0%,
    rgba(124,58,237,0.08) 40%,
    transparent 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  will-change: left, top;
}

body:has(a:hover) .cursor-dot,
body:has(button:hover) .cursor-dot {
  width: 16px; height: 16px;
  opacity: 0.6;
}

/* ===========================
   Nav
=========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-1);
}

.brand-mark {
  width: 22px; height: 22px;
  background: var(--text-1);
  border-radius: 6px; display: block;
}
.brand-mark.sm { width: 18px; height: 18px; border-radius: 5px; }
.brand-accent { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}

.nav-links a {
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface); color: var(--text-1); }

.nav-cta {
  color: var(--text-1) !important;
  background: var(--text-1) !important;
  color: #fff !important;
  border-radius: 6px !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ===========================
   Hero
=========================== */
.hero {
  min-height: 100vh;
  padding-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 2rem; padding-right: 2rem;
  gap: 4rem;
  position: relative; z-index: 1;
}

.hero-inner { padding: 5rem 0; }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 500;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1.1rem;
  color: var(--text-1);
}

.text-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 40%, #6366f1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem; color: var(--text-2);
  line-height: 1.7; font-weight: 400;
  max-width: 420px; margin-bottom: 2rem;
}

.hero-actions {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn-primary {
  font-family: var(--font);
  font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--text-1);
  border: 1px solid var(--text-1);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center;
}
.btn-primary.lg { padding: 0.75rem 1.8rem; font-size: 0.95rem; }
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.985); }

.btn-ghost {
  font-family: var(--font);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { background: var(--surface); color: var(--text-1); border-color: var(--border-2); }

.proof-strip {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: var(--text-3);
}
.proof-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px #dcfce7;
}
.proof-text strong { color: var(--text-2); font-weight: 600; }

/* ===========================
   Floating cards
=========================== */
.float-cards {
  position: relative;
  height: 460px;
}

.fcard {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  min-width: 180px;
  box-shadow: 0 4px 16px rgba(9,9,11,0.06), 0 1px 3px rgba(9,9,11,0.04);
  animation: float 4s ease-in-out infinite;
}

.fcard-1 { top: 10%;  left: 5%;  animation-delay: 0s;    animation-duration: 4.2s; }
.fcard-2 { top: 5%;  right: 0%;  animation-delay: 0.8s;  animation-duration: 3.8s; }
.fcard-3 { top: 50%; left: 15%;  animation-delay: 1.4s;  animation-duration: 4.5s; }
.fcard-4 { top: 60%; right: 5%;  animation-delay: 0.3s;  animation-duration: 3.6s; }

.fcard-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
.fcard-label { font-size: 0.82rem; font-weight: 600; color: var(--text-1); letter-spacing: -0.01em; margin-bottom: 2px; }
.fcard-sub { font-size: 0.72rem; color: var(--text-3); }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ===========================
   Container
=========================== */
.container {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   Section header
=========================== */
.section-label {
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.035em;
  color: var(--text-1);
  margin-bottom: 2.5rem;
}

/* ===========================
   Features
=========================== */
.features {
  padding: 6rem 0;
  position: relative; z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 1.75rem;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface); }

.feature-icon { font-size: 1.5rem; margin-bottom: 0.85rem; }

.feature-card h3 {
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1); margin-bottom: 0.5rem;
}

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

/* ===========================
   How it works
=========================== */
.how {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}

.steps {
  display: flex; align-items: flex-start; gap: 1rem;
}

.step {
  flex: 1;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--mono);
  font-size: 0.68rem; font-weight: 600;
  color: var(--accent);
  background: var(--accent-lt);
  border: 1px solid #ddd6fe;
  padding: 2px 7px; border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 0.5rem;
}
.step p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }

.step-arrow {
  color: var(--text-3); font-size: 1.1rem;
  padding-top: 1.75rem; flex-shrink: 0;
}

/* ===========================
   CTA
=========================== */
.cta-section {
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-bubble {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(167,139,250,0.12) 0%,
    rgba(124,58,237,0.05) 50%,
    transparent 70%);
  pointer-events: none;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.04em;
  color: var(--text-1); margin-bottom: 0.75rem;
}

.cta-desc {
  font-size: 0.95rem; color: var(--text-2);
  margin-bottom: 2rem; line-height: 1.6;
}

/* ===========================
   Footer
=========================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative; z-index: 1;
}

.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.75rem; color: var(--text-3);
}

/* ===========================
   Desktop-only br
=========================== */
.desktop-only { display: inline; }

/* ===========================
   Responsive
=========================== */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto; }
  .cursor-bubble, .cursor-dot { display: none !important; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .float-cards { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .desktop-only { display: none; }
}

@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
}
