/* ============================================
   F925 Systems — landing minimalista
   ============================================ */

@font-face {
  font-family: "SFRounded-fallback";
  src: local("SF Pro Display");
  size-adjust: 100%;
}

:root {
  --bg: #d8d5cf;          /* cemento claro */
  --bg-deep: #c9c6bf;     /* cemento algo más oscuro, para el degradado */
  --panel: #cfccc5;
  --ink: #1c1c1e;         /* negro cálido, nunca #000 puro */
  --ink-soft: rgba(28, 28, 30, 0.72);
  --ink-mute: rgba(28, 28, 30, 0.48);
  --line: rgba(28, 28, 30, 0.14);
  --royal: #2947e0;       /* azul royal — único acento */
  --royal-ink: #1c2fa0;
  --white: #f7f6f3;

  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Ambient texture ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  background:
    radial-gradient(120% 100% at 100% 0%, var(--bg-deep) 0%, transparent 55%),
    var(--bg);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding: clamp(2rem, 5vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(.16,.8,.24,1) 0.15s forwards;
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal-ink);
  margin: 0;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--royal);
  flex: none;
}

.headline {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  max-width: 12ch;
  text-wrap: balance;
}
.headline em {
  font-style: normal;
  color: var(--royal);
}

.subline {
  margin: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  font-weight: 400;
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  padding-top: 0.4rem;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.stat {
  min-width: 7.5rem;
}
.stat dt {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat dd {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ---------- CTAs ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 0.4rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.35s cubic-bezier(.2,.9,.25,1), box-shadow 0.35s ease, background 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(41, 71, 224, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(41, 71, 224, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink-mute);
  transform: translateY(-2px);
}

.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Photo ---------- */
.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(2rem, 5vw, 3.5rem) clamp(1.6rem, 3vw, 2.4rem);
  min-height: 46vh;
  background: var(--bg);
}

.photo-label {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI Rounded", var(--font);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(.16,.8,.24,1) 0.2s forwards;

  background: linear-gradient(100deg, var(--royal-ink) 35%, #8ea1ff 50%, var(--royal-ink) 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(41, 71, 224, 0.45), 0 0 60px rgba(41, 71, 224, 0.22);
  animation: rise 0.9s cubic-bezier(.16,.8,.24,1) 0.2s forwards, shine 3.4s ease-in-out 1.1s infinite;
}
@keyframes shine {
  0%, 15% { background-position: 220% 0; }
  60%, 100% { background-position: -120% 0; }
}
.photo-label::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--royal);
  box-shadow: 0 0 8px 2px rgba(41, 71, 224, 0.7), 0 0 22px 6px rgba(41, 71, 224, 0.35);
  flex: none;
}

.photo-frame {
  position: relative;
  flex: none;
  width: 100%;
  max-width: min(380px, 82%);
  aspect-ratio: 1086 / 1448;
  max-height: 62vh;
  overflow: hidden;
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(1.02) contrast(1.02);
  opacity: 0;
  animation: fadeIn 1.1s ease 0.05s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,28,30,0) 60%, rgba(28,28,30,0.14) 100%);
  pointer-events: none;
}

/* ---------- Footer mark ---------- */
.footnote {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(1.2rem, 2.5vw, 2rem);
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  z-index: 3;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero-photo {
    order: -1;
    min-height: 52svh;
  }
  .hero-content {
    padding-top: clamp(2.2rem, 6vw, 3rem);
  }
  .headline { max-width: 14ch; }
  .footnote { position: static; margin: 1rem clamp(1.5rem, 6vw, 5rem) 2rem; }
}

@media (max-width: 480px) {
  .stats { gap: 1.2rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
