/* ============================================================================
   Kumplex — Design System (Blue monochrome scale)
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  /* Brand palette — Royal Blue (Material Blue scale) */
  --electric: #1565C0;
  --electric-light: #1E88E5;
  --electric-deep: #0D47A1;

  /* Accent red — details, stars, secondary highlights */
  --red: #FF1744;
  --red-glow: rgba(255, 23, 68, 0.18);
  --navy: #0F1D3A;
  --white: #FFFFFF;
  --surface: #F5F8FF;
  --muted: #94A3B8;
  --border: #E2E8F0;
  --blue-wash: #DBEAFE;

  /* Legacy aliases (keep components working) */
  --blue-900: var(--navy);
  --blue-700: #475569;
  --blue-500: var(--electric);
  --blue-300: #93B4F6;
  --blue-100: var(--border);
  --blue-50:  var(--surface);

  /* Sky-toned canvas layer — now white-dominant */
  --sky-wash:   var(--white);
  --sky-medium: var(--surface);

  /* Semantic roles */
  --bg: var(--white);
  --bg-elevated: var(--white);
  --bg-subtle: var(--surface);
  --surface: var(--white);
  --surface-soft: var(--surface);
  --hairline: var(--border);
  --divider: var(--border);

  --text: var(--navy);
  --text-muted: var(--muted);
  --text-dim: #93B4F6;

  --accent: var(--electric);
  --accent-ink: var(--white);
  --accent-deep: var(--electric-deep);

  /* Dark "banner" surface */
  --dark-bg: var(--navy);
  --dark-text: var(--white);
  --dark-muted: #93B4F6;
  --dark-hairline: rgba(255, 255, 255, 0.12);

  /* Tinted shadows */
  --shadow-sm: 0 2px 8px rgba(15, 29, 58, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 29, 58, 0.06);
  --shadow-lg: 0 24px 56px rgba(15, 29, 58, 0.08);
  --shadow-xl: 0 40px 80px rgba(15, 29, 58, 0.10);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1E88E5 100%);

  /* Type scale */
  --font: "Inter", "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(64px, 9.2vw, 168px);
  --fs-headline: clamp(40px, 5.5vw, 88px);
  --fs-title: clamp(28px, 3.4vw, 52px);
  --fs-subtitle: clamp(20px, 1.8vw, 28px);
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* Spacing */
  --pad-x: clamp(20px, 4vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-micro: 200ms;
  --t-quick: 280ms;
  --t-base: 500ms;
  --t-section: 650ms;
  --t-reveal: 800ms;

  --r-card: 16px;
  --r-chip: 999px;
  --r-input: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button {
  font-family: inherit; font-size: inherit; color: inherit;
  border: 0; background: none; cursor: pointer; padding: 0;
}
input, textarea, select {
  font-family: inherit; font-size: inherit; color: inherit;
}
::selection { background: var(--blue-500); color: var(--white); }

/* ---------- Typography ---------- */
.k-display {
  font-weight: 900; font-size: var(--fs-display);
  line-height: 0.92; letter-spacing: -0.045em; margin: 0;
}
.k-headline {
  font-weight: 900; font-size: var(--fs-headline);
  line-height: 0.96; letter-spacing: -0.035em; margin: 0;
  text-wrap: pretty;
}
.k-title {
  font-weight: 800; font-size: var(--fs-title);
  line-height: 1.02; letter-spacing: -0.025em; margin: 0;
}
.k-subtitle {
  font-weight: 500; font-size: var(--fs-subtitle);
  line-height: 1.4; letter-spacing: -0.01em; margin: 0;
  color: var(--text-muted);
}
.k-body { font-weight: 400; font-size: var(--fs-body); line-height: 1.6; }
.k-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red);
}
.k-eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--red); display: inline-block;
}

/* ---------- Layout ---------- */
.k-section {
  padding: clamp(80px, 10vw, 160px) var(--pad-x);
  position: relative;
}

/* ---------- Buttons ---------- */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: var(--r-chip);
  transition: transform var(--t-micro) var(--ease),
              background-color var(--t-micro) var(--ease),
              color var(--t-micro) var(--ease),
              border-color var(--t-micro) var(--ease),
              box-shadow var(--t-micro) var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.k-btn--primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 23, 68, 0.30);
}
.k-btn--primary:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(255, 23, 68, 0.42); }
.k-btn--ghost {
  background: transparent; color: var(--blue-900);
  border: 1px solid var(--blue-100);
}
.k-btn--ghost:hover { border-color: var(--blue-500); color: var(--blue-500); transform: scale(1.02); }
.k-btn--ghost-light {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.k-btn--ghost-light:hover { border-color: var(--blue-500); color: var(--blue-500); transform: scale(1.02); }
.k-btn--mono {
  background: var(--blue-900); color: var(--white);
}
.k-btn--mono:hover { transform: scale(1.03); }
.k-btn--lg { padding: 22px 42px; font-size: 18px; }
.k-btn--sm { padding: 12px 22px; font-size: 14px; }

/* ---------- Cards / surfaces ---------- */
.k-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px;
  transition: transform var(--t-quick) var(--ease),
              border-color var(--t-quick) var(--ease),
              background-color var(--t-quick) var(--ease),
              box-shadow var(--t-quick) var(--ease);
}
.k-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-300);
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
}

/* ---------- Chips ---------- */
.k-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-chip);
  background: transparent;
  border: 1px solid var(--blue-100);
  color: var(--blue-900);
  font-weight: 500; font-size: 14px;
  transition: all var(--t-micro) var(--ease);
  white-space: nowrap;
}
.k-chip:hover { background: var(--blue-50); border-color: var(--blue-300); }
.k-chip[aria-pressed="true"], .k-chip.is-active {
  background: var(--blue-500); color: var(--white); border-color: var(--blue-500);
}

/* ---------- Reveal animation ---------- */
.r-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-section) var(--ease-out),
              transform var(--t-section) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.r-reveal.is-in { opacity: 1; transform: translateY(0); }
.r-reveal--left { transform: translateX(-20px) translateY(0); }
.r-reveal--left.is-in { transform: translateX(0); }
.r-reveal--scale { transform: scale(0.9); }
.r-reveal--scale.is-in { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .r-reveal, .r-reveal--left, .r-reveal--scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Logo lockup ---------- */
.k-logo {
  display: inline-flex; align-items: center; gap: 5px;
  height: 38px;
  color: var(--blue-900);
  text-decoration: none;
}
.k-logo__shield {
  height: 100%; width: auto; flex-shrink: 0;
}
.k-logo__shield img { height: 100%; width: auto; display: block; }
/* Handle both img and svg versions */
.k-logo__shield[src] { height: 100%; width: auto; display: block; }
.k-logo__wordmark {
  font-family: var(--font);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--blue-900);
}
.k-logo--sm { height: 30px; }
.k-logo--sm .k-logo__wordmark { font-size: 18px; }
.k-logo--light { color: var(--white); }
.k-logo--light .k-logo__wordmark { color: var(--white); }
.k-logo--light .k-logo__shield { color: var(--blue-500); }

/* ---------- Nav (top) ---------- */
.k-nav {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 32px;
  background: #F5F8FF;
  border-radius: 32px;
  border: none;
  box-shadow: 0 4px 20px rgba(15, 29, 58, 0.10);
  color: var(--blue-900);
  transition: box-shadow var(--t-quick) var(--ease),
              padding var(--t-quick) var(--ease),
              transform 0.42s var(--ease-out),
              opacity 0.42s var(--ease-out);
}
.k-nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(15, 29, 58, 0.13);
}
.k-nav.is-hidden {
  transform: translateY(calc(-100% - 32px));
  opacity: 0;
  pointer-events: none;
}

.k-nav__links { display: flex; align-items: center; gap: 28px; }
.k-nav__link {
  font-size: 14px; font-weight: 500;
  color: var(--blue-700);
  transition: color var(--t-micro) var(--ease);
}
.k-nav__link:hover { color: var(--blue-900); }

/* ---------- Bottom mobile nav — disabled (replaced by hamburger) ---------- */
.k-botnav { display: none !important; }

/* ---------- Hamburger button ---------- */
.k-nav__hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
  flex-shrink: 0;
}
.k-nav__hamburger span {
  display: block; width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease), width var(--t-quick) var(--ease);
  transform-origin: center;
}
.k-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.k-nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.k-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.k-nav.is-scrolled .k-nav__hamburger { border-color: var(--border); color: var(--navy); }

/* ---------- Mobile menu drawer ---------- */
.k-nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 79;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px 28px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-quick) var(--ease);
  opacity: 0;
  box-shadow: var(--shadow-lg);
}
.k-nav__mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
}
.k-nav__mobile-menu__link {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px; font-weight: 600;
  color: var(--navy);
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.k-nav__mobile-menu__link:hover { background: var(--surface); color: var(--electric); }
.k-nav__mobile-menu__cta {
  margin-top: 12px;
  padding: 16px;
}

@media (max-width: 767px) {
  .k-nav__hamburger { display: flex; }
  .k-nav__links { display: none; }
  .k-nav__mobile-menu { display: flex; }
  body { padding-bottom: 0; }
}

/* ---------- Hairline rule ---------- */
.k-rule { height: 1px; background: var(--blue-100); width: 100%; }

/* ---------- Footer ---------- */
.k-footer {
  padding: 64px var(--pad-x) 96px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.k-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.k-footer__col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-700); margin: 0 0 18px;
}
.k-footer__col a {
  display: block; color: var(--blue-700); margin-bottom: 10px; font-size: 15px;
  transition: color var(--t-micro) var(--ease);
}
.k-footer__col a:hover { color: var(--blue-500); }
@media (max-width: 768px) { .k-footer { grid-template-columns: 1fr; } }

/* ---------- Verification badge ---------- */
.k-badge-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--blue-500);
  border-radius: 50%;
  color: var(--white);
  flex-shrink: 0;
}
.k-badge-check svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 3; fill: none; }

/* ---------- Stars ---------- */
.k-stars {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; color: var(--blue-900);
}
.k-stars svg { width: 14px; height: 14px; fill: var(--red); }

/* ---------- Avatar placeholder ---------- */
.k-avatar {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  background: linear-gradient(135deg, #93B4F6 0%, #2563EB 100%);
  color: var(--white);
  overflow: hidden;
}
.k-avatar--lg { width: 120px; height: 120px; font-size: 38px; }
.k-avatar--xl { width: 160px; height: 160px; font-size: 56px; }
.k-avatar--alt { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); color: var(--white); }
.k-avatar--alt2 { background: linear-gradient(135deg, #1D4ED8 0%, #0F1D3A 100%); color: var(--white); }
.k-avatar__badge {
  position: absolute;
  right: -2px; bottom: -2px;
  border: 2px solid var(--white);
  border-radius: 50%;
}

/* ---------- Thumbnail placeholder ---------- */
.k-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--blue-100);
  position: relative;
  overflow: hidden;
}
.k-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 30% 25%, rgba(72, 168, 216, 0.18) 0%, transparent 60%);
}

/* ---------- Inputs ---------- */
.k-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.k-field__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--blue-700);
}
.k-field__label .req { color: var(--blue-500); margin-left: 2px; }
.k-field__hint { font-size: 12px; color: var(--blue-300); }
.k-input, .k-textarea, .k-select {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-input);
  padding: 16px 18px;
  color: var(--blue-900);
  font-size: 16px;
  transition: border-color var(--t-micro) var(--ease),
              background-color var(--t-micro) var(--ease),
              box-shadow var(--t-micro) var(--ease);
}
.k-input:focus, .k-textarea:focus, .k-select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(72, 168, 216, 0.18);
}
.k-textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.k-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232B6090' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.k-input::placeholder, .k-textarea::placeholder { color: var(--blue-300); }
.k-input.is-invalid, .k-textarea.is-invalid, .k-select.is-invalid { border-color: #d65a5a; }
.k-field__error { font-size: 12px; color: #d65a5a; display: none; }
.k-field.is-invalid .k-field__error { display: block; }

/* ---------- Progress bar ---------- */
.k-progress {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 56px;
}
.k-progress__step {
  flex: 1; height: 4px;
  background: var(--blue-100); border-radius: 2px;
  position: relative; overflow: hidden;
}
.k-progress__step.is-done, .k-progress__step.is-active {
  background: var(--blue-500);
}
.k-progress__label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-300); margin-bottom: 18px;
}

/* ---------- Misc ---------- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
[hidden] { display: none !important; }
