/* ═══════════════════════════════════════════
   InKiTrail — style.css
   Paleta: azul montaña / gris roca / blanco nieve
   Fuentes: Playfair Display · DM Sans · Space Mono
═══════════════════════════════════════════ */

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

:root {
  /* Colors */
  --bg:          #07090f;
  --surface:     #0d1018;
  --surface2:    #141825;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(77,143,255,0.15);

  --blue:        #4d8fff;
  --blue-light:  #7ec8ff;
  --blue-dark:   #2a5fcc;
  --blue-glow:   rgba(77,143,255,0.25);
  --blue-grad:   linear-gradient(135deg, #4d8fff 0%, #1a4fa0 100%);

  --snow:        #e8eef8;
  --rock:        #8a9bb5;
  --muted:       #5a6a85;
  --text:        #dde5f4;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Spacing */
  --nav-h: 70px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 10px; height: 10px;
  background: var(--blue);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-trail {
  width: 30px; height: 30px;
  border: 1px solid rgba(77,143,255,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, transform 0.2s;
}
body:has(a:hover) .cursor { transform: translate(-50%, -50%) scale(2); }
body:has(button:hover) .cursor { transform: translate(-50%, -50%) scale(2); }

/* ── NOISE OVERLAY ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  opacity: 0.35;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(7,9,15,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-back {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--text); }

.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--snow);
  text-decoration: none;
}
.nav-logo strong { color: var(--blue); }
.nav-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--blue-grad) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  box-shadow: 0 2px 16px var(--blue-glow);
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 4px 28px var(--blue-glow) !important;
  transform: translateY(-1px) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--rock); border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(7,9,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  flex-direction: column; gap: 1.5rem;
  z-index: 490;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rock);
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: calc(var(--nav-h) + 4rem) 5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Mountain layers */
.mountains-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.mtn {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: auto;
}
.mtn-far  { bottom: 0; opacity: 1; }
.mtn-mid  { bottom: 0; opacity: 1; }
.mtn-near { bottom: 0; opacity: 1; }

/* particles */
.particles {
  position: absolute; inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0;
  animation: particleFly linear infinite;
}

@keyframes particleFly {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

/* altitude line */
.altitude-line {
  position: absolute;
  bottom: 120px; left: 0; right: 0;
  pointer-events: none;
}
.altitude-line svg { width: 100%; height: 80px; }

/* hero content */
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 1.8rem;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(77,143,255,0.08);
  border: 1px solid var(--border2);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.title-inki  { color: var(--snow); }
.title-trail {
  color: var(--blue);
  text-shadow: 0 0 60px rgba(77,143,255,0.5);
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--rock);
  margin-top: 0.8rem;
  max-width: 400px;
  line-height: 1.6;
  font-style: italic;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 460px;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--blue-grad);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 24px var(--blue-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(77,143,255,0.4);
}
.btn-xl { padding: 1.1rem 2.5rem; font-size: 0.8rem; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--rock);
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex; align-items: center; gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.hstat { display: flex; flex-direction: column; gap: 0.2rem; }
.hstat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.hstat-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.hstat-div {
  width: 1px; height: 40px;
  background: var(--border);
}

/* hero icon */
.hero-icon-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.icon-glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(77,143,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero-icon {
  width: clamp(240px, 32vw, 380px);
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(77,143,255,0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 3;
  animation: fadeIn 1s 1.5s ease both;
}
.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-arrow {
  color: var(--muted);
  animation: bounceDown 2s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.9rem 0;
  white-space: nowrap;
}
.ticker { display: inline-block; }
.ticker-inner {
  display: inline-flex; align-items: center; gap: 0;
  animation: ticker 30s linear infinite;
}
.ticker-inner span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 1.5rem;
}
.ticker-inner .sep {
  color: var(--blue);
  padding: 0 0.5rem;
  font-size: 0.8rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(77,143,255,0.08);
  border: 1px solid var(--border2);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--snow);
}
.section-title em {
  font-style: normal;
  color: var(--blue);
}

/* ── FEATURES ── */
.features-section {
  padding: 8rem 0;
}

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

.feat-card {
  background: var(--surface);
  padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.feat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(77,143,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.feat-card:hover { background: var(--surface2); }
.feat-card:hover::before { opacity: 1; }

.feat-large { grid-column: 1 / 3; }
.feat-wide  { grid-column: 2 / 4; }

.feat-icon {
  font-size: 1.6rem;
  width: 52px; height: 52px;
  background: rgba(77,143,255,0.1);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--snow);
}
.feat-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

/* tramo bar */
.tramo-bar {
  display: flex; align-items: flex-end; gap: 0.5rem;
  height: 80px;
  margin-top: 1rem;
}
.tramo {
  flex: 1;
  height: var(--h);
  background: var(--c);
  border-radius: 4px 4px 0 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: rgba(255,255,255,0.7);
  gap: 2px;
  transition: opacity 0.2s;
  opacity: 0.8;
}
.tramo:hover { opacity: 1; }
.tramo span { font-size: 0.45rem; opacity: 0.8; }

/* dashboard preview */
.dashboard-preview {
  background: rgba(7,9,15,0.6);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 1.2rem;
  margin-top: 1rem;
}
.dp-row {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dp-block { display: flex; flex-direction: column; gap: 0.2rem; }
.dp-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.dp-key {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.dp-progress {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.dp-prog-bar {
  height: 100%;
  background: var(--blue-grad);
  border-radius: 2px;
}
.dp-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── HOW SECTION ── */
.how-section {
  padding: 8rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.how-bg-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.steps {
  display: flex; align-items: flex-start; gap: 0;
  margin-top: 3rem;
}
.step {
  flex: 1;
  display: flex; flex-direction: column; gap: 1.2rem;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  transition: background 0.3s;
}
.step:hover { background: var(--surface2); }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--border2);
  transition: color 0.3s;
}
.step:hover .step-num { color: var(--blue); }
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 0.6rem;
}
.step-content p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
}

.step-connector {
  width: 1px;
  height: 60px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

/* ── CTA ── */
.cta-section {
  padding: 9rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-mountains {
  position: absolute; inset: 0;
  pointer-events: none;
}
.cta-mountains svg { width: 100%; height: 100%; }

.cta-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.cta-icon {
  width: 100px; height: 100px;
  border-radius: 22px;
  filter: drop-shadow(0 12px 40px rgba(77,143,255,0.4));
  animation: float 5s ease-in-out infinite;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--snow);
}
.cta-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 500px;
}
.cta-back {
  margin-top: 1rem;
}
.cta-back a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-back a:hover { color: var(--text); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.8rem;
}
.footer-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--snow);
}
.footer-name strong { color: var(--blue); }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}
.footer-links {
  display: flex; gap: 2rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.45;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealAnim 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes revealAnim {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 3rem) 3rem 3rem;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-badge { margin: 0 auto; }
  .hero-desc { text-align: center; }
  .hero-icon-wrap {
    display: none;
  }
  .hero-stats { justify-content: center; }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feat-large, .feat-wide { grid-column: 1; }
  .steps { flex-direction: column; }
  .step-connector { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem; }
  .container { padding: 0 1.5rem; }
  .features-section, .how-section { padding: 5rem 0; }
  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}
