/* ============================================================
   KPR PREMIUM — Landing (production / static)
   Component + layout classes built on tokens/*. No framework,
   no CDN. Faithful port of ui_kits/landing (React preview).
   ============================================================ */

/* ---- Page chrome ---- */
html, body { margin: 0; }
body { background: var(--bg-0); color: var(--text-1); overflow-x: hidden; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---- Reveal on scroll: TRANSFORM-ONLY (content visible at frame 0) ---- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal[data-shown="1"] { animation: kprRise .7s var(--ease-out); }
}
@keyframes kprRise { from { transform: translateY(26px); } to { transform: none; } }

/* ---- Ambient float + marquee ---- */
@keyframes kprFloat  { 0%,100% { transform: perspective(1400px) rotateY(-16deg) rotateX(6deg) rotateZ(-1deg) translateY(0); } 50% { transform: perspective(1400px) rotateY(-16deg) rotateX(6deg) rotateZ(-1deg) translateY(-14px); } }
@keyframes kprFloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes kprFloat3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.float   { animation: kprFloat 7s var(--ease-in-out) infinite; }
.float-2 { animation: kprFloat2 5.5s var(--ease-in-out) infinite; }
.float-3 { animation: kprFloat3 6.5s var(--ease-in-out) infinite; }
@keyframes kprMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Primitives
   ============================================================ */

/* ---- Button ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; height: 46px; padding: 0 20px; font-size: 15px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: .01em;
  line-height: 1; border-radius: var(--r-md); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: var(--r-sm); gap: 7px; }
.btn--sm svg { width: 16px; height: 16px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--r-lg); gap: 11px; }
.btn--lg svg { width: 19px; height: 19px; }
.btn--primary { background: var(--grad-neon); color: var(--text-on-neon); box-shadow: var(--shadow-2), var(--glow-soft); }
.btn--primary:hover { box-shadow: var(--shadow-3), var(--glow-strong); }
.btn--secondary { background: var(--glass-2); color: var(--text-hi); border-color: var(--border-2); backdrop-filter: blur(var(--blur-sm)); -webkit-backdrop-filter: blur(var(--blur-sm)); }
.btn--secondary:hover { background: var(--glass-hi); }
.btn--ghost { background: transparent; color: var(--text-1); }
.btn--ghost:hover { background: var(--glass-1); }
.btn--neon-outline { background: rgba(124,77,255,.06); color: var(--violet-hi); border-color: var(--border-neon); box-shadow: 0 0 0 1px rgba(124,77,255,.15); }
.btn--neon-outline:hover { background: rgba(124,77,255,.16); }

/* ---- Icon button ---- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  cursor: pointer; border: 1px solid transparent; background: transparent;
  transition: transform var(--dur-fast) var(--ease-spring), background var(--dur-base) var(--ease-out);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--ghost { color: var(--text-1); }
.icon-btn--ghost:hover { background: var(--glass-hi); transform: translateY(-1px); }
.icon-btn--neon-outline { background: rgba(124,77,255,.06); color: var(--violet-hi); border-color: var(--border-neon); }
.icon-btn--neon-outline:hover { background: rgba(124,77,255,.16); transform: translateY(-1px); }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 11px; font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  border-radius: var(--r-pill); white-space: nowrap; border: 1px solid transparent;
}
.badge--sm { height: 20px; padding: 0 8px; font-size: 11px; }
.badge--neon { background: var(--grad-neon); color: var(--text-on-neon); }
.badge--neutral { background: var(--glass-2); color: var(--text-1); border-color: var(--border-2); }
.badge--violet { background: rgba(124,77,255,.16); color: var(--violet-hi); border-color: var(--border-neon); }
.badge--cyan { background: rgba(33,230,255,.14); color: var(--cyan-hi); border-color: var(--border-cyan); }
.badge--magenta { background: rgba(255,46,151,.16); color: var(--magenta-hi); border-color: rgba(255,46,151,.45); }

/* ---- Card ---- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border-1); border-radius: var(--r-xl);
  padding: var(--space-6); box-shadow: var(--shadow-3), var(--sheen-top);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card--flush { padding: 0; overflow: hidden; }
.card--glow-violet  { box-shadow: var(--shadow-3), var(--glow-soft), var(--sheen-top); }
.card--glow-cyan    { box-shadow: var(--shadow-3), 0 0 32px rgba(33,230,255,.22), var(--sheen-top); }
.card--glow-magenta { box-shadow: var(--shadow-3), 0 0 32px rgba(255,46,151,.22), var(--sheen-top); }
.card--interactive { cursor: pointer; }
.card--interactive:hover { transform: translateY(-4px); border-color: var(--border-3); box-shadow: var(--shadow-4), var(--glow-soft), var(--sheen-top); }
.card--interactive.card--glow-cyan:hover    { box-shadow: var(--shadow-4), 0 0 32px rgba(33,230,255,.22), var(--sheen-top); }
.card--interactive.card--glow-magenta:hover { box-shadow: var(--shadow-4), 0 0 32px rgba(255,46,151,.22), var(--sheen-top); }

/* ---- Stat ---- */
.stat__value { font-family: var(--font-pixel); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: .04em; }
.stat__value--display { font-family: var(--font-display); font-size: 44px; letter-spacing: -.02em; }
.stat__value--violet  { color: var(--violet-hi); text-shadow: 0 0 24px #9B72FF55; }
.stat__value--cyan    { color: var(--cyan); text-shadow: 0 0 24px #21E6FF55; }
.stat__value--magenta { color: var(--magenta-hi); text-shadow: 0 0 24px #FF6BB655; }
.stat__value--text    { color: var(--text-hi); }
.stat__label { margin-top: 10px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.stat--center { text-align: center; }

/* ---- Field / input ---- */
.field { display: block; }
.field__box {
  display: flex; align-items: center; gap: 9px; height: 54px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-md);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field__box:focus-within { border-color: var(--violet); box-shadow: var(--ring); }
.field__box svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.field__input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; color: var(--text-hi); font-family: var(--font-body); font-size: 16px; }
.field__input::placeholder { color: var(--text-3); }

/* ---- Logo ---- */
.logo { display: flex; align-items: center; gap: 11px; }
.logo__mark { font-family: var(--font-pixel); font-size: 28px; line-height: 1; letter-spacing: .04em; color: var(--text-on-neon); background: var(--grad-neon); border: 1px solid transparent; padding: 5px 10px 1px; border-radius: var(--r-md); box-shadow: var(--glow-violet); }
.logo__name { display: flex; flex-direction: column; line-height: 1; }
.logo__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text-hi); letter-spacing: -.02em; }
.logo__sub { font-family: var(--font-pixel); font-size: 10px; color: var(--cyan); letter-spacing: .18em; margin-top: 4px; }

/* ============================================================
   Sections
   ============================================================ */

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  padding: 0 clamp(20px, 5vw, 56px); background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(10,8,22,.72); backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md)); border-bottom-color: var(--border-1); }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-2); transition: color var(--dur-fast) var(--ease-out); }
.nav a:hover { color: var(--text-hi); }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .08em; }

/* ---- Hero ---- */
.hero { position: relative; padding-top: 150px; padding-bottom: 90px; overflow: hidden; }
.hero__grid { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 5px; border-radius: var(--r-pill); border: 1px solid var(--border-cyan); background: var(--glass-1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 26px; }
.eyebrow-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.eyebrow-pill__text { font-family: var(--font-pixel); font-size: 12px; letter-spacing: .16em; color: var(--cyan-hi); }
.hero h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.hero__lead { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 480px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 52px; }

/* ---- Hero mockup ---- */
.hero__mock { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
.hero__mock-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--wash-violet); filter: blur(20px); }
.phone { position: relative; z-index: 3; width: 268px; height: 540px; border-radius: 42px; background: linear-gradient(160deg, #2C2752, #110E22); padding: 9px; border: 1px solid var(--border-2); box-shadow: var(--shadow-4), var(--glow-strong); transform: perspective(1400px) rotateY(-16deg) rotateX(6deg) rotateZ(-1deg); }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg-0); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; z-index: 4; }
.chip--rating { top: 56px; right: 4px; padding: 14px 16px; border-radius: var(--r-lg); display: flex; align-items: center; gap: 12px; }
.chip--code { bottom: 64px; left: 0; padding: 12px 14px; border-radius: var(--r-md); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; }
.chip--badge { bottom: 8px; right: 30px; }
.rating__icon { width: 40px; height: 40px; border-radius: 11px; background: var(--grad-fire); display: flex; align-items: center; justify-content: center; }
.rating__icon svg { width: 20px; height: 20px; color: #1A0008; }
.rating__num { font-family: var(--font-pixel); font-size: 18px; color: var(--text-hi); }
.rating__sub { font-family: var(--font-body); font-size: 11px; color: var(--text-3); }
.t-violet { color: var(--violet-hi); } .t-cyan { color: var(--cyan); } .t-mute { color: var(--text-2); } .t-magenta { color: var(--magenta-hi); }

/* ---- Section head ---- */
.section { position: relative; padding: 90px clamp(20px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.sec-head__eyebrow { font-family: var(--font-pixel); font-size: 12px; letter-spacing: .18em; color: var(--violet-hi); margin-bottom: 16px; }
.sec-head__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; max-width: 620px; }
.sec-head--center { text-align: center; margin: 0 auto; }
.sec-head--center .sec-head__title { margin: 0 auto; max-width: 680px; }

/* ---- Services ---- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.svc__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--glass-2); border: 1px solid var(--border-2); margin-bottom: 20px; }
.svc__icon svg { width: 24px; height: 24px; color: var(--cyan-hi); }
.svc h3 { font-size: 22px; margin: 0 0 8px; }
.svc p { font-size: 14px; line-height: 1.55; color: var(--text-2); margin: 0; min-height: 66px; }
.svc__tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }

/* ---- Marquee ---- */
.marquee-sec { position: relative; padding: 26px 0; border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1); overflow: hidden; background: var(--bg-1); }
.marquee { display: flex; gap: 44px; width: max-content; animation: kprMarquee 26s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 44px; font-family: var(--font-pixel); font-size: 22px; color: var(--text-2); letter-spacing: .06em; }
.marquee .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* ---- Showcase ---- */
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.work__media { position: relative; height: 300px; background: var(--bg-0); }
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 20px 22px 24px; }
.work__top { display: flex; justify-content: space-between; align-items: center; }
.work__top h3 { font-size: 20px; margin: 0; }
.work__top svg { width: 18px; height: 18px; color: var(--text-3); }
.work__cat { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: .04em; }
.work__tags { display: flex; gap: 7px; margin-top: 16px; }

/* ---- Stats band ---- */
.statsband-wrap { padding: 0 clamp(20px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.statsband { position: relative; border-radius: var(--r-2xl); border: 1px solid var(--border-1); overflow: hidden; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 52px clamp(24px, 4vw, 64px); box-shadow: var(--shadow-3), var(--sheen-top); }
.statsband__texture { position: absolute; inset: 0; opacity: .5; }
.statsband__wash { position: absolute; top: -80px; left: 30%; width: 420px; height: 220px; background: var(--wash-violet); }
.statsband__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Process ---- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.step { position: relative; padding: 30px 26px; border-radius: var(--r-xl); border: 1px solid var(--border-1); background: var(--glass-1); }
.step__n { font-family: var(--font-pixel); font-size: 30px; color: var(--violet-hi); text-shadow: 0 0 24px rgba(124,77,255,.5); }
.step__head { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; }
.step__head svg { width: 20px; height: 20px; color: var(--cyan); }
.step__head h3 { font-size: 20px; margin: 0; }
.step p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }

/* ---- CTA ---- */
.cta-wrap { padding: 40px clamp(20px, 5vw, 56px) 100px; max-width: 1280px; margin: 0 auto; }
.cta { position: relative; border-radius: var(--r-3xl); overflow: hidden; text-align: center; padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 80px); border: 1px solid var(--border-neon); background: radial-gradient(120% 120% at 50% 0%, rgba(124,77,255,.22), transparent 60%), linear-gradient(180deg, var(--bg-2), var(--bg-1)); box-shadow: var(--shadow-4), 0 0 80px rgba(124,77,255,.25); }
.cta__texture { position: absolute; inset: 0; opacity: .4; }
.cta__inner { position: relative; }
.cta__eyebrow { font-family: var(--font-pixel); font-size: 13px; letter-spacing: .18em; color: var(--cyan-hi); margin-bottom: 18px; }
.cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; margin: 0 auto; max-width: 720px; }
.cta__lead { font-size: 17px; color: var(--text-2); margin: 20px auto 0; max-width: 520px; }
.cta__form { display: flex; gap: 12px; max-width: 520px; margin: 34px auto 0; }
.cta__form .field { flex: 1; }
.cta__note { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-top: 18px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border-1); padding: 44px clamp(20px, 5vw, 56px); max-width: 1280px; margin: 0 auto; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__socials { display: flex; align-items: center; gap: 12px; }
.footer__legal { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-1); flex-wrap: wrap; gap: 10px; }
.footer__legal span { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mock { height: 460px; }
  .services, .showcase, .process, .statsband__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 620px) {
  .services, .showcase, .process, .statsband__grid { grid-template-columns: 1fr; }
  .lang { display: none; }
  .cta__form { flex-direction: column; }
  .hero__stats { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .float-2, .float-3, .marquee { animation: none !important; }
}
