/* KROWAPOS Landing — Design system tokens + base */

:root {
  /* Brand blues */
  --blue-50:  #EFF4FF;
  --blue-100: #DBE6FE;
  --blue-200: #BED1FE;
  --blue-300: #91B2FD;
  --blue-400: #5E89FA;
  --blue-500: #3B66F5;
  --blue-600: #2050E5;   /* primary */
  --blue-700: #1B3FC9;
  --blue-800: #1C36A2;
  --blue-900: #1C3380;

  /* Ink + neutrals (warm-cool blend) */
  --ink:        #0B0E1A;
  --ink-2:      #1A1F2E;
  --ink-3:      #2C3243;
  --muted:      #6B7280;
  --muted-2:    #9CA3AF;
  --line:       #E5E7EB;
  --line-2:     #EEF0F4;
  --surface:    #FFFFFF;
  --surface-2:  #F7F8FB;
  --surface-3:  #F2F4F8;

  /* Accents */
  --warm:       #FF7A45;    /* food / energy */
  --lime:       #C8FF6B;
  --gold:       #FFC857;
  --pink:       #FF6BB5;

  /* Type scale */
  --display-1: clamp(56px, 9vw, 124px);
  --display-2: clamp(40px, 6vw, 80px);
  --h1:        clamp(36px, 4.5vw, 64px);
  --h2:        clamp(28px, 3.4vw, 44px);
  --h3:        clamp(22px, 2vw, 28px);
  --body-lg:   18px;
  --body:      16px;
  --small:     14px;
  --eyebrow:   12px;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card:  0 1px 2px rgba(11,14,26,.04), 0 8px 24px -8px rgba(11,14,26,.08);
  --shadow-pop:   0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px -20px rgba(32,80,229,.35), 0 8px 24px -12px rgba(11,14,26,.18);
  --shadow-soft:  0 30px 80px -30px rgba(11,14,26,.18);

  /* Fonts */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-serif:'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

::selection { background: var(--blue-600); color: white; }

/* ───────────────────────── Layout ───────────────────────── */

.kw-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.kw-section {
  padding: 120px 0;
  position: relative;
}

.kw-eyebrow {
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kw-eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--blue-600);
}

.kw-h2 {
  font-size: var(--h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 18px 0 14px;
  max-width: 720px;
  text-wrap: balance;
}
.kw-h2 em {
  font-style: normal;
  color: var(--blue-600);
  font-weight: 600;
}

.kw-sub {
  font-size: var(--body-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  text-wrap: pretty;
}

/* ───────────────────────── Buttons ───────────────────────── */

.kw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.kw-btn:active { transform: translateY(1px) scale(0.99); }

.kw-btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 20px -8px rgba(11,14,26,.5);
}
.kw-btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 12px 28px -8px rgba(32,80,229,.55);
}

.kw-btn-blue {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -8px rgba(32,80,229,.55);
}
.kw-btn-blue:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.kw-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.kw-btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }

.kw-btn-link {
  background: transparent;
  color: var(--ink);
  height: auto;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.kw-btn-link:hover { color: var(--blue-600); border-color: var(--blue-600); }

/* ───────────────────────── Nav ───────────────────────── */

.kw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.kw-nav.is-scrolled {
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-2);
}
.kw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kw-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.kw-logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.kw-logo-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.kw-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.kw-nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.kw-nav-link:hover { background: var(--surface-2); color: var(--ink); }
.kw-nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

@media (max-width: 1080px) {
  .kw-nav-links { display: none; }
}

/* ───────────────────────── Hero (shared) ───────────────────────── */

.kw-hero {
  position: relative;
  padding-top: 60px;
  padding-bottom: 80px;
  overflow: hidden;
}
.kw-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.kw-hero-bg::before {
  content: "";
  position: absolute;
  left: 50%; top: -10%;
  transform: translateX(-50%);
  width: 1200px; height: 700px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(32,80,229,.18) 0%, rgba(32,80,229,0) 70%);
  filter: blur(20px);
}
.kw-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,14,26,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,14,26,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(60% 50% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 40%, black 0%, transparent 80%);
  opacity: 0.5;
}

.kw-hero-inner { position: relative; z-index: 1; }

.kw-rubro-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(11,14,26,.04);
}
.kw-rubro-pill-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--blue-600);
  color: white;
  display: grid; place-items: center;
  font-size: 11px;
}

/* Word morpher used in headlines */
.kw-morph {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
  text-align: left;
  line-height: inherit;
}
.kw-morph-ghost {
  display: inline-block;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}
.kw-morph-word {
  display: inline-block;
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--blue-600);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.kw-morph-word.is-leaving {
  animation: kwOut .45s cubic-bezier(.5,0,.7,0) forwards;
}
.kw-morph-word.is-entering {
  animation: kwIn .55s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes kwOut {
  to { transform: translateY(-110%) skewY(-3deg); opacity: 0; filter: blur(3px); }
}
@keyframes kwIn {
  from { transform: translateY(110%) skewY(3deg); opacity: 0; filter: blur(3px); }
  to   { transform: translateY(0) skewY(0); opacity: 1; filter: blur(0); }
}

/* ───────────────────────── App mock window ───────────────────────── */

.kw-window {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.kw-window-bar {
  height: 38px;
  background: linear-gradient(to bottom, #20253A, #161A2A);
  display: flex; align-items: center;
  padding: 0 14px;
  gap: 8px;
  position: relative;
}
.kw-window-dots { display: flex; gap: 6px; }
.kw-window-dots span {
  width: 11px; height: 11px; border-radius: 999px; background: #3A4053;
}
.kw-window-dots span:nth-child(1) { background: #FF5F57; }
.kw-window-dots span:nth-child(2) { background: #FFBD2E; }
.kw-window-dots span:nth-child(3) { background: #28C940; }
.kw-window-title {
  position: absolute; left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  color: #8A92A8;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.kw-window-body {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  min-height: 540px;
  background: #FAFBFC;
}

/* ───────────────────────── Card / Grid utils ───────────────────────── */

.kw-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.kw-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--line);
}

.kw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 920px) {
  .kw-grid-2, .kw-grid-3, .kw-grid-4 { grid-template-columns: 1fr; }
}

/* ───────────────────────── Marquee ───────────────────────── */

.kw-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.kw-marquee-track {
  display: flex;
  gap: 64px;
  animation: kwSlide 38s linear infinite;
  width: max-content;
}
@keyframes kwSlide {
  to { transform: translateX(-50%); }
}
.kw-logo-cell {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 16px;
  opacity: 0.55;
  letter-spacing: -0.01em;
}
.kw-logo-cell svg { opacity: 0.7; }

/* ───────────────────────── Fade-in on scroll ───────────────────────── */

.kw-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.kw-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.kw-reveal[data-delay="1"] { transition-delay: .08s; }
.kw-reveal[data-delay="2"] { transition-delay: .16s; }
.kw-reveal[data-delay="3"] { transition-delay: .24s; }
.kw-reveal[data-delay="4"] { transition-delay: .32s; }

/* ───────────────────────── Misc ───────────────────────── */

.kw-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.kw-kbd {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: #F3F4F8;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.kw-tag {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
}
.kw-tag.tag-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.kw-tag.tag-dark { background: var(--ink); color: white; border-color: var(--ink); }
.kw-tag.tag-warm { background: #FFF3EE; color: #C24410; border-color: #FFD5C2; }
