/* KNTX landing page. Dark plum with an electric-blue accent (untapped potential becoming operational velocity),
   hairline rules, numbered sections and mono labels. */

:root {
  --bg: #0e0511;
  --bg-2: #160b19;
  --bg-3: #1e1021;
  --ink: #f5f2e7;
  --ink-2: #bcb7ab;
  --ink-3: #8f8592;
  --rule: #2d2030;
  --rule-2: #3d2d41;
  --accent: #4da8ff;
  --accent-ink: #04111f;
  --accent-soft: rgba(77, 168, 255, 0.12);
  --amber: #eba941;
  --amber-soft: rgba(235, 169, 65, 0.12);
  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1180px;
  --radius: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--ink-3);
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
}

.label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 14px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font: 500 14px/1 var(--font-sans);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(77, 168, 255, 0);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -8px rgba(77, 168, 255, 0.55);
}

.btn-ghost {
  border-color: var(--rule-2);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink-3);
  background: var(--bg-3);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 5, 17, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1 var(--font-title);
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark circle {
  fill: var(--accent);
  stroke: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(77, 168, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  font: 500 13px/1 var(--font-mono);
  color: var(--ink-2);
  background: var(--bg-2);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin-top: 24px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 34px rgba(77, 168, 255, 0.35);
}

.lede {
  margin-top: 24px;
  max-width: 560px;
  font-size: 18px;
  color: var(--ink-2);
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Hero visual: a phone conversation, an invoice card, and the PE → KE meter */
.hero-visual {
  position: relative;
  min-height: 600px;
}

.phone {
  position: relative;
  margin-left: auto;
  width: min(330px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-3);
}

.phone-bar b {
  display: block;
  font-size: 14px;
}

.phone-bar small {
  color: var(--ink-3);
  font-size: 12px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 15px/1 var(--font-title);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px 22px;
  min-height: 330px;
  background:
    radial-gradient(circle at 20% 10%, rgba(77, 168, 255, 0.05), transparent 40%),
    var(--bg-2);
}

.msg {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in 0.5s ease forwards;
}

.msg.in {
  align-self: flex-end;
  background: #1b2a44;
  border-bottom-right-radius: 4px;
}

.msg.out {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 4px;
}

.msg:nth-child(1) { animation-delay: 0.3s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 1.9s; }
.msg:nth-child(4) { animation-delay: 2.6s; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}

.float-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 290px;
  padding: 16px 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.85);
  animation: float 6s ease-in-out infinite;
}

.plate {
  margin: 10px 0 12px;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f3f0e4;
  color: #141414;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-top: 8px;
}

.row b {
  color: var(--ink);
}

.energy {
  position: absolute;
  top: -34px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--font-mono);
  color: var(--ink-3);
}

.energy i {
  position: relative;
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: var(--rule-2);
  overflow: hidden;
}

.energy i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: charge 2.2s ease-in-out infinite;
}

.energy .ke {
  color: var(--accent);
}

/* Pills */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font: 500 11.5px/1.4 var(--font-mono);
  letter-spacing: 0.02em;
  border: 1px solid;
  white-space: nowrap;
}

.pill-live {
  color: var(--accent);
  border-color: rgba(77, 168, 255, 0.35);
  background: var(--accent-soft);
}

.pill-pilot {
  color: #c9a8ff;
  border-color: rgba(201, 168, 255, 0.35);
  background: rgba(201, 168, 255, 0.1);
}

.pill-soon {
  color: var(--amber);
  border-color: rgba(235, 169, 65, 0.35);
  background: var(--amber-soft);
}

/* Marquee of business types */
.marquee {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  border-block: 1px solid var(--rule);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee span {
  padding: 20px 28px;
  font: 500 14px/1 var(--font-mono);
  color: var(--ink-3);
  white-space: nowrap;
}

.marquee span::before {
  content: "◆";
  margin-right: 28px;
  color: var(--rule-2);
  font-size: 10px;
}

/* Sections */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--rule);
}

.section.alt {
  background: var(--bg-2);
}

.section-num {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.section h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  max-width: 820px;
}

.section-lede {
  margin-top: 20px;
  max-width: 680px;
  font-size: 17px;
  color: var(--ink-2);
}

.pillars {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}

.pillar:last-child {
  border-right: 0;
}

.pillar h3 {
  margin-top: 14px;
  font-size: 21px;
}

.pillar p:last-child {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.modules {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.module {
  padding: 22px 20px 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.module:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  background: var(--bg-3);
}

.module h3 {
  margin-top: 16px;
  font-size: 18px;
}

.module p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.checks {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
}

.checks li b {
  color: var(--ink);
  font-weight: 600;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234da8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  border: 1px solid rgba(77, 168, 255, 0.3);
}

.code-card {
  padding: 24px;
}

.code-card pre {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.code-card .c { color: var(--ink-3); }
.code-card .s { color: #f0c27b; }
.code-card .k { color: var(--ink); }
.code-card .g { color: var(--accent); }

.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.step-n {
  font-size: 13px;
  color: var(--accent);
}

.step h3 {
  margin-top: 18px;
  font-size: 22px;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 15px;
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.value p:last-child {
  margin-top: 10px;
  color: var(--ink-2);
}

/* CTA */
.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(77, 168, 255, 0.13), transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
}

.cta p {
  margin: 20px auto 0;
  max-width: 560px;
  color: var(--ink-2);
  font-size: 17px;
}

.cta .hero-actions {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 32px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-inner .brand + p {
  margin-top: 12px;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-cols div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.footer-cols a:hover {
  color: var(--ink);
}

.footer-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}

/* Motion */
@keyframes pulse {
  50% { opacity: 0.45; }
}

@keyframes msg-in {
  to { opacity: 1; transform: none; }
}

@keyframes float {
  50% { transform: translateY(-10px); }
}

@keyframes charge {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .msg {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding-top: 56px;
  }
  .hero-inner,
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    min-height: 620px;
  }
  .phone {
    margin-inline: auto;
  }
  .float-card {
    left: 50%;
    margin-left: -200px;
  }
  .pillars,
  .steps {
    grid-template-columns: 1fr;
  }
  .pillar {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .pillar:last-child {
    border-bottom: 0;
  }
  .section {
    padding: 88px 0;
  }
}

@media (max-width: 560px) {
  .nav-cta .btn-ghost {
    display: none;
  }
  .modules {
    grid-template-columns: 1fr;
  }
  .float-card {
    width: calc(100% - 24px);
    left: 12px;
    margin-left: 0;
    bottom: -8px;
  }
  .energy {
    display: none;
  }
  .footer-cols {
    gap: 40px;
  }
}

/* 404 page */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.notfound h2 {
  margin-top: 12px;
}
