/* ============================================================
   KIMSAI 3D — Landing Page
   Brand: navy + gold, cinematic, motion-rich
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #06212d;
  --navy-900: #0a2c3c;
  --navy-800: #0d3a4f;
  --navy-700: #114b66;
  --gold-400: #f5cc6b;
  --gold-300: #fadc94;
  --gold-500: #efbf4f;
  --ink: #eaf3f8;
  --ink-dim: rgba(234, 243, 248, 0.65);
  --ink-faint: rgba(234, 243, 248, 0.4);
  --line: rgba(245, 204, 107, 0.18);
  --line-strong: rgba(245, 204, 107, 0.32);

  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold-400); color: var(--navy-950); }

/* ---------- Global background ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(245, 204, 107, 0.18), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 100%, rgba(17, 75, 102, 0.55), transparent 60%),
    linear-gradient(180deg, #06212d 0%, #061a26 50%, #04141d 100%);
}
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: rgba(245, 204, 107, 0.04);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(245, 204, 107, 0.55) 0%,
    rgba(245, 204, 107, 0.18) 25%,
    rgba(245, 204, 107, 0) 50%,
    rgba(245, 204, 107, 0) 60%,
    rgba(245, 204, 107, 0.18) 85%,
    rgba(245, 204, 107, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.glass-soft {
  background: rgba(245, 204, 107, 0.025);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* ---------- Type ---------- */
.font-display { font-family: var(--font-display); font-weight: 400; }
.font-mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.dim { color: var(--ink-dim); }

.gold-italic {
  font-style: italic;
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-400) 60%, var(--gold-500) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; margin: 0; }
.h-hero { font-size: clamp(48px, 9vw, 104px); line-height: 0.96; }
.h-section { font-size: clamp(36px, 6vw, 68px); }
.h-final { font-size: clamp(48px, 10vw, 112px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s, border-color .25s; min-height: 48px; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-400));
  color: var(--navy-950);
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(245, 204, 107, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold:hover { box-shadow: 0 12px 40px rgba(245, 204, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold.pulse { animation: goldpulse 3s ease-in-out infinite; }
@keyframes goldpulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(245, 204, 107, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
  50%      { box-shadow: 0 12px 50px rgba(245, 204, 107, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}
.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); background: rgba(245, 204, 107, 0.05); }
.btn-ghost { color: var(--ink-dim); padding: 10px 16px; font-size: 14px; }
.btn-ghost:hover { color: var(--ink); }

/* ---------- Focus rings ---------- */
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Containers ---------- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 600px) { .container { padding: 0 20px; } }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 100; padding: 0 20px; opacity: 0; transform: translateY(-10px); animation: navIn .9s .2s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes navIn { to { opacity: 1; transform: translateY(0); } }
.nav { max-width: 1080px; margin: 0 auto; border-radius: 999px; padding: 8px 10px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(6, 33, 45, 0.35); }
.nav-logo { display: flex; align-items: center; gap: 9px; }
.nav-logo img { width: 22px; height: 22px; }
.nav-logo .word { font-family: var(--font-body); font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.nav-logo .tag { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-faint); letter-spacing: 0.18em; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-size: 13px; color: var(--ink-dim); transition: color .2s; }
.nav-links a:hover { color: var(--gold-400); }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-right .btn-ghost { font-size: 13px; }
.nav-right .btn-gold { padding: 8px 16px !important; font-size: 13px !important; min-height: 36px; }
@media (max-width: 900px) { .nav-links, .nav-logo .tag { display: none; } }
@media (max-width: 600px) { .nav-right .btn-ghost { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}
.hero > .container { padding-top: 40px; }
.hero-video-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(-2%) scale(1.06); opacity: 0; }
.hero-video-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% 80%, rgba(6, 33, 45, 0) 0%, rgba(6, 33, 45, 0.15) 70%, rgba(6, 33, 45, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 33, 45, 0.65) 0%, rgba(6, 33, 45, 0.15) 25%, rgba(6, 33, 45, 0.0) 55%, rgba(6, 33, 45, 0.3) 100%);
}
.hero-video-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 360px at 50% 0%, rgba(245, 204, 107, 0.10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 85% 90%, rgba(17, 75, 102, 0.20), transparent 70%);
  mix-blend-mode: screen;
}

/* Soft fade at the bottom of hero into the page bg — no hard edge */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35vh;
  background: linear-gradient(180deg, rgba(6, 33, 45, 0) 0%, rgba(6, 33, 45, 0.6) 55%, var(--navy-950) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero > .container { position: relative; z-index: 2; }

.hero-inner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  max-width: 880px;
  margin: 0 auto;
}
.hero-inner h1 { text-wrap: balance; }
.hero-microsub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 4px 0 0;
  max-width: 480px;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 204, 107, 0.05);
}
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 0 rgba(245, 204, 107, 0.6); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 204, 107, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(245, 204, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 204, 107, 0); }
}

.hero-sub { color: var(--ink-dim); font-size: 18px; line-height: 1.55; max-width: 540px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 36px; border-top: 1px solid var(--line); margin-top: 12px; }
.stat .num { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 54px); line-height: 1; color: var(--gold-400); }
.stat .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* Printer scene card */
.printer-card {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(245, 204, 107, 0.20), transparent 70%),
    linear-gradient(180deg, #08283a 0%, #051a26 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.printer-overlay { position: absolute; left: 18px; right: 18px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); z-index: 2; }
.printer-overlay.top { top: 18px; }
.printer-overlay.bot { bottom: 18px; gap: 16px; flex-wrap: wrap; }
.printer-overlay .val { color: var(--gold-400); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); animation: dotPulse 1.4s ease-in-out infinite; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ---------- Marquee ---------- */
.marquee-wrap {
  padding: 28px 0 36px;
  margin: 20px 0 60px;
  position: relative;
  overflow: hidden;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.marquee-wrap::before { top: 0; }
.marquee-wrap::after { bottom: 0; }
.marquee-label { text-align: center; margin-bottom: 18px; }
.marquee {
  display: flex;
  gap: 0;
  animation: marquee 45s linear infinite;
  width: max-content;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 36px; padding: 0 18px; font-family: var(--font-display); font-size: 24px; color: var(--ink); white-space: nowrap; }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); opacity: 0.7; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 0 56px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 22px; }
.section-head p { color: var(--ink-dim); font-size: 17.5px; max-width: 580px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
.product-card {
  position: relative;
  border-radius: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(245, 204, 107, 0.025);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .35s;
  display: flex; flex-direction: column; gap: 14px;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--gold-400); box-shadow: 0 20px 50px rgba(245, 204, 107, 0.15); }
.product-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(6, 33, 45, 0.85); color: var(--gold-400); border: 1px solid var(--line-strong); }
.product-image {
  aspect-ratio: 4/3;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 60%, rgba(245, 204, 107, 0.10), transparent 70%),
    linear-gradient(180deg, #0a2c3c 0%, #061a26 100%);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 204, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 204, 107, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent 75%);
}
.product-image svg { width: 55%; height: 55%; color: var(--gold-400); position: relative; z-index: 1; }
.product-image img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-image img { transform: scale(1.05); }
a.product-card { text-decoration: none; color: inherit; }
.product-card h3 { font-size: 24px; }
.product-card .desc { color: var(--ink-dim); font-size: 13.5px; min-height: 18px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--font-display); font-size: 26px; color: var(--gold-400); }
.arrow-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .3s, background .3s, color .3s; color: var(--gold-400); }
.product-card:hover .arrow-btn { background: var(--gold-400); color: var(--navy-950); transform: rotate(-45deg); }

/* ---------- Personaliza split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: stretch; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.step { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(245, 204, 107, 0.02); }
.step .num { font-family: var(--font-mono); color: var(--gold-400); font-size: 13px; letter-spacing: 0.08em; width: 32px; }
.step .lbl { font-size: 15.5px; color: var(--ink); }
.process-image {
  margin-top: 36px;
  aspect-ratio: 16/9;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(245, 204, 107, 0.18), transparent 70%),
    linear-gradient(180deg, #0a2c3c 0%, #051a26 100%);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.process-image .hand-svg { width: 70%; height: 70%; color: var(--gold-400); opacity: 0.9; }
.process-image .ph-label { position: absolute; bottom: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* Form */
.form-card { padding: 28px; border-radius: 22px; background: rgba(8, 32, 45, 0.55); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 16px; height: 100%; }
.form-card h3 { font-size: 26px; }
.field-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.field { display: block; width: 100%; padding: 13px 14px; border-radius: 12px; background: rgba(245, 204, 107, 0.03); border: 1px solid var(--line); color: var(--ink); font-size: 14.5px; transition: border-color .2s, background .2s; min-height: 44px; }
.field:focus { outline: none; border-color: var(--gold-400); background: rgba(245, 204, 107, 0.06); }
.field::placeholder { color: var(--ink-faint); }
select.field { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23f5cc6b' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.field { min-height: 96px; resize: vertical; }
.field option { background: var(--navy-900); color: var(--ink); }
.field option:disabled { color: var(--ink-faint); }

.file-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(245, 204, 107, 0.06); border: 1px solid var(--line); }
.file-chip .name { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 16px; line-height: 1; color: var(--gold-400); border: 1px solid var(--line-strong); transition: background .2s, color .2s; }
.file-remove:hover { background: var(--gold-400); color: var(--navy-950); }
.form-error { font-size: 13.5px; line-height: 1.55; color: #f5b4b4; background: rgba(220, 90, 90, 0.10); border: 1px solid rgba(220, 90, 90, 0.3); border-radius: 14px; padding: 14px 16px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.dropzone { display: block; width: 100%; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-dim); font-size: 13.5px; transition: border-color .2s, background .2s, color .2s; cursor: pointer; }
.dropzone span { display: block; }
.dropzone:hover { border-color: var(--gold-400); color: var(--gold-400); background: rgba(245, 204, 107, 0.04); }
.dropzone .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--gold-400); }
.submit-foot { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin-top: 6px; }

.contact-direct { padding: 24px 28px; border-radius: 22px; background: rgba(245, 204, 107, 0.05); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.contact-direct h3 { font-size: 22px; }
.contact-direct > p { color: var(--ink-dim); font-size: 13.5px; margin: 6px 0 18px; }
.contact-direct-list { display: flex; flex-direction: column; gap: 12px; }
.contact-phone { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(6, 33, 45, 0.45); border: 1px solid var(--line); }
.contact-phone .num { font-size: 15px; letter-spacing: 0.04em; color: var(--ink); }
.form-success { font-size: 14px; line-height: 1.55; color: var(--gold-300); background: rgba(245, 204, 107, 0.10); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px; }
@media (max-width: 480px) {
  .contact-phone { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Top productos distribuidores ---------- */
.top-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  height: 100%;
}
.tp-tile {
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 204, 107, 0.08), transparent 70%),
    linear-gradient(180deg, #0a2c3c 0%, #051a26 100%);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .3s;
}
.tp-tile:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: 0 18px 40px rgba(245, 204, 107, 0.12);
}
.tp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(245, 204, 107, 0.06);
  display: grid;
  place-items: center;
  color: var(--gold-400);
}
.tp-img {
  width: 100%;
  flex: 1;
  min-height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(245, 204, 107, 0.04);
}
.tp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.tp-tile:hover .tp-img img { transform: scale(1.06); }
.tp-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  color: var(--ink);
}
.dist-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: stretch; }
@media (max-width: 780px) { .dist-grid { grid-template-columns: 1fr; gap: 24px; } }
.map-card {
  position: relative;
  height: 100%;
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(245, 204, 107, 0.18), transparent 70%),
    linear-gradient(180deg, #0a2c3c 0%, #051a26 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.map-card svg.map-bg { position: absolute; inset: 8% 6%; width: 88%; height: 84%; color: var(--gold-400); opacity: 0.9; }
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-400); transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(245, 204, 107, 0.6); animation: dotPulse 2.4s ease-in-out infinite; cursor: pointer; z-index: 2; }
.map-pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(245, 204, 107, 0.4); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(2); opacity: 0; } }
.pin-tooltip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); padding: 8px 12px; border-radius: 10px; background: rgba(6, 33, 45, 0.92); border: 1px solid var(--line-strong); white-space: nowrap; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.pin-tooltip .city { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 2px; display: block; }
.map-pin:hover .pin-tooltip { opacity: 1; }

.dist-stats { display: flex; flex-direction: column; gap: 14px; }
.dist-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(245, 204, 107, 0.02); }
.dist-stat .icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(245, 204, 107, 0.08); border: 1px solid var(--line); display: grid; place-items: center; color: var(--gold-400); flex-shrink: 0; }
.dist-stat .lbl { color: var(--ink-dim); font-size: 13.5px; }
.dist-stat .val { font-family: var(--font-display); color: var(--gold-400); font-size: 26px; line-height: 1; margin-left: auto; white-space: nowrap; }
.join-card { padding: 26px; border-radius: 18px; border: 1px solid var(--gold-400); background: linear-gradient(160deg, rgba(245, 204, 107, 0.12), rgba(245, 204, 107, 0.02) 60%); display: flex; flex-direction: column; gap: 14px; }
.join-card h4 { font-size: 24px; }
.join-card p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- Kimsai OS teaser ---------- */
.os-card {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(245, 204, 107, 0.12), transparent 70%),
    linear-gradient(180deg, #0a2c3c 0%, #051a26 100%);
  padding: 56px;
  overflow: hidden;
}
.os-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 204, 107, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 204, 107, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}
.os-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .os-inner { grid-template-columns: 1fr; gap: 40px; } .os-card { padding: 40px 28px; } }
.os-mockup {
  aspect-ratio: 4/3;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #061a26 0%, #04131c 100%);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.os-mockup-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.os-mockup-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.os-mockup-bar .title { margin-left: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--ink-faint); }
.os-mockup-body { padding: 18px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; height: calc(100% - 42px); }
.os-mock-block { border-radius: 10px; border: 1px solid var(--line); background: rgba(245, 204, 107, 0.03); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.os-mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-dim); }
.os-mock-row .pill { font-size: 9px; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-400); }
.os-mock-bar { height: 6px; border-radius: 999px; background: rgba(245, 204, 107, 0.1); overflow: hidden; }
.os-mock-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); }
.os-mock-header { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.os-mock-num { font-family: var(--font-display); font-size: 30px; color: var(--gold-400); line-height: 1; }
.os-mock-stat-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }

.email-capture { display: flex; gap: 10px; margin-top: 22px; padding: 6px; border-radius: 999px; background: rgba(245, 204, 107, 0.04); border: 1px solid var(--line); max-width: 460px; }
.email-capture input { flex: 1; min-width: 0; background: transparent; border: none; padding: 0 16px; color: var(--ink); font-size: 14.5px; }
.email-capture input:focus { outline: none; }
.email-capture .btn { padding: 11px 18px; font-size: 13.5px; min-height: 40px; white-space: nowrap; flex-shrink: 0; }

/* ---------- Kimsai OS — mobile ---------- */
@media (max-width: 600px) {
  .os-card { padding: 32px 20px; border-radius: 22px; }
  .os-inner { gap: 28px; }
  .os-inner h2 { font-size: clamp(30px, 8vw, 42px) !important; }
  .os-inner p { font-size: 15.5px !important; }

  .email-capture {
    flex-direction: column;
    border-radius: 18px;
    padding: 10px;
    background: rgba(245, 204, 107, 0.05);
    gap: 8px;
  }
  .email-capture input {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    width: 100%;
    min-height: 44px;
  }
  .email-capture .btn {
    width: 100%;
    border-radius: 12px;
    min-height: 44px;
    padding: 12px 18px;
  }

  .os-mockup { aspect-ratio: auto; }
  .os-mockup-body {
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px;
    gap: 12px;
  }
  .os-mockup-bar { padding: 10px 12px; }
  .os-mockup-bar .title { font-size: 9px; }
  .os-mock-row { font-size: 9.5px; letter-spacing: 0.08em; gap: 6px; }
  .os-mock-row > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
  }
  .os-mock-row .pill { font-size: 8px; padding: 3px 6px; flex-shrink: 0; }
  .os-mock-num { font-size: 26px; }
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 140px 0;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 50% 50%, rgba(245, 204, 107, 0.16), transparent 65%);
  pointer-events: none;
}
.final-cta .inner { position: relative; max-width: 980px; margin: 0 auto; padding: 0 28px; }
.final-cta h2 { margin: 0 0 22px; }
.final-cta p { color: var(--ink-dim); font-size: 18px; margin: 0 0 38px; }
.final-cta .btn { padding: 18px 32px; font-size: 16.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { width: 40px; height: 40px; }
.footer-logo .word { font-family: var(--font-display); font-size: 32px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-dim); transition: color .2s, background .2s, border-color .2s; }
.social-btn:hover { color: var(--gold-400); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } .footer-top { flex-direction: column; align-items: flex-start; } }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bot { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee { animation: none; }
}

/* small */
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 120px 0 60px; }
  .stats-row { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  .marquee-item { font-size: 18px; gap: 24px; }
  .marquee-wrap { padding: 24px 0; }
}
