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

:root {
  /* Paleta — from Xavi Docs v2 */
  --text-highest: #172B4D;
  --text-high:    #42526E;
  --text-medium:  #505F79;
  --text-low:     #6B778C;
  --text-muted:   #8993A4;

  --blue-700: #0C66E4;
  --blue-600: #1D7AFC;
  --blue-500: #388BFF;
  --blue-100: #E9F2FF;
  --blue-050: #F3F7FF;

  --bg-page:    #F4F5F7;
  --bg-surface: #FFFFFF;
  --border-default: #DFE1E6;
  --border-subtle:  #EBECF0;

  --shadow-sm: 0 1px 3px rgba(9, 30, 66, 0.08);
  --shadow-md: 0 3px 8px rgba(9, 30, 66, 0.12);

  --radius: 8px;
}

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

h1, h2, h3, h4 {
  color: var(--text-highest);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.blue { color: var(--blue-700); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out; }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.5);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-icon {
  width: 32px; height: 32px;
  background: var(--blue-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}
/* XAVI X LOGO — exact replica from original site */
/* Two crossed pills using ::before (back, solid) and ::after (front, gradient+shadow) */
.xavi-x {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
}

/* Back pill — solid blue, rotated 45deg */
.xavi-x::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: #0C66E4;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Front pill — gradient + shadow, rotated -45deg */
.xavi-x::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: linear-gradient(135deg, #36B0F0 0%, #0C66E4 100%);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: -2px 2px 6px rgba(12, 102, 228, 0.4);
}

/* Sizes — ratio 4.25:1 (width:height = pill shape) */
/* Nav: 28px container, 26x6 pills */
.xavi-x--sm { width: 22px; height: 22px; }
.xavi-x--sm::before, .xavi-x--sm::after {
  width: 26px; height: 6px; border-radius: 4px;
}

/* Footer: 20px container */
.xavi-x--xs { width: 18px; height: 18px; }
.xavi-x--xs::before, .xavi-x--xs::after {
  width: 22px; height: 5px; border-radius: 3px;
}

/* Hero: large — 120px container, 110x26 pills */
.xavi-x--hero { width: 120px; height: 120px; }
.xavi-x--hero::before, .xavi-x--hero::after {
  width: 110px; height: 26px; border-radius: 13px;
}
.xavi-x--hero::after {
  box-shadow: -4px 4px 16px rgba(12, 102, 228, 0.35);
}

/* Float animation on hero only */
@keyframes xFloat1 {
  0%, 100% { transform: translate(-50%, -50%) rotate(45deg); }
  50% { transform: translate(-50%, calc(-50% - 8px)) rotate(45deg); }
}
@keyframes xFloat2 {
  0%, 100% { transform: translate(-50%, -50%) rotate(-45deg); }
  50% { transform: translate(-50%, calc(-50% - 8px)) rotate(-45deg); }
}
.xavi-x--hero::before { animation: xFloat1 4s ease-in-out infinite; }
.xavi-x--hero::after { animation: xFloat2 4s ease-in-out infinite 0.4s; }

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-highest);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:not(.btn):hover { color: var(--blue-700); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-700);
  transition: width 0.2s;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* HAMBURGER */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text-highest); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-sm { font-size: 13px; padding: 8px 20px; }
.btn-md { font-size: 14px; padding: 12px 28px; }
.btn-lg { font-size: 15px; padding: 14px 36px; }
.btn-primary {
  background: var(--blue-700);
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(12, 102, 228, 0.2);
}
.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 6px 20px rgba(12, 102, 228, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-highest);
  border: 1.5px solid var(--border-default);
}
.btn-outline:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: var(--blue-100);
}
.btn-arrow::after { content: '\2192'; margin-left: 4px; transition: margin-left 0.2s; }
.btn-arrow:hover::after { margin-left: 8px; }

/* BADGE */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 5px 16px;
  border-radius: 50px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
}

/* SPOTLIGHT GLOW — cursor-following radial glow on hover */
.feature-card,
.guide-card,
.step {
  position: relative;
  overflow: hidden;
}
.feature-card::before,
.guide-card::before,
.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(450px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(12, 102, 228, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover::before,
.guide-card:hover::before,
.step:hover::before {
  opacity: 1;
}
.feature-card > *,
.guide-card > *,
.step > * {
  position: relative;
  z-index: 2;
}

/* HERO */
.hero {
  padding: 140px 32px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* No background gradient — clean */
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.8s ease-out;
}
.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-highest);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--blue-700); }
.hero-desc {
  font-size: 18px;
  color: var(--text-medium);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 48px;
}
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-medium);
  background: white;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-default);
}

/* HERO LOGO */
.hero-logo-container {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  animation: fadeUp 1s ease-out 0.3s both;
}

/* SECTIONS */
.section {
  padding: 80px 32px;
}
.section-alt { background: var(--bg-page); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-medium);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon i[data-lucide] {
  width: 18px; height: 18px;
  stroke-width: 2;
  margin: 0;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-highest);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-low);
  line-height: 1.55;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  background: var(--blue-700);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* GUIDES */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-highest);
  transition: all 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.guide-card:hover {
  border-color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.guide-icon {
  width: 40px; height: 40px;
  min-width: 40px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-icon i[data-lucide] {
  width: 18px; height: 18px;
  stroke-width: 2;
  margin: 0;
}
.guide-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.guide-card p {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 100px 32px 120px;
  text-align: center;
}
.cta-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-float h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-highest);
}

/* CTA X — animated like hero */
.xavi-x--cta { width: 80px; height: 80px; }
.xavi-x--cta::before, .xavi-x--cta::after {
  width: 72px; height: 17px; border-radius: 9px;
}
.xavi-x--cta::after {
  box-shadow: -3px 3px 10px rgba(12, 102, 228, 0.3);
}
.xavi-x--cta::before { animation: xFloat1 4s ease-in-out infinite; }
.xavi-x--cta::after { animation: xFloat2 4s ease-in-out infinite 0.4s; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-medium);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-700); }

/* MOBILE */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    background: #FFFFFF;
    padding: 8px 0;
    gap: 0;
    z-index: 200;
    border-radius: 12px;
    border: 1px solid var(--border-default);
    box-shadow: 0 8px 30px rgba(9, 30, 66, 0.12);
  }
  .nav-links.open a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-highest);
    padding: 14px 20px;
    border-bottom: none;
  }
  .nav-links.open a:not(.btn):hover {
    background: var(--bg-page);
  }
  .nav-links.open a:not(.btn)::after { display: none; }
  .nav-links.open .btn {
    margin: 8px 16px 12px;
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
  }
  .nav-toggle { display: block; }
  .nav-inner { padding: 0 20px; }

  /* Hero */
  .hero { padding: 110px 20px 48px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-pills { gap: 6px; }
  .pill { font-size: 12px; padding: 5px 12px; }
  .hero-logo-container { margin-top: 36px; }
  .xavi-x--hero { width: 80px; height: 80px; }
  .xavi-x--hero::before, .xavi-x--hero::after {
    width: 72px; height: 17px; border-radius: 9px;
  }

  /* Sections */
  .section { padding: 56px 20px; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 26px; letter-spacing: -0.5px; }
  .section-header p { font-size: 14px; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 16px 18px; gap: 14px; }
  .feature-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
  .feature-card h3 { font-size: 14px; }
  .feature-card p { font-size: 12.5px; }

  /* Steps */
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-number { width: 40px; height: 40px; font-size: 16px; }
  .step h3 { font-size: 14px; }
  .step p { font-size: 12px; }

  /* Guides */
  .guides-grid { grid-template-columns: 1fr; gap: 10px; }
  .guide-card { padding: 16px 18px; gap: 14px; }
  .guide-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; }
  .guide-card h3 { font-size: 14px; }
  .guide-card p { font-size: 12.5px; }

  /* CTA */
  .cta { padding: 64px 20px 80px; }
  .cta-float { gap: 20px; }
  .cta-float h2 { font-size: 24px; }
  .xavi-x--cta { width: 56px; height: 56px; }
  .xavi-x--cta::before, .xavi-x--cta::after {
    width: 50px; height: 12px; border-radius: 6px;
  }

  /* Footer */
  .footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .steps { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 22px; }
}
