/* ============================================
   Kelo — Next-Gen Chatbot Landing
   ============================================ */

:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #f97317;
  --font: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --pad: 24px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

@media (min-width: 768px) {
  :root { --pad: 32px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn--sm { padding: 6px 16px; font-size: 13px; }

.btn--solid {
  background: #fff;
  color: #000;
}

.btn--solid:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.03);
}

.btn--glass {
  padding: 16px 32px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.btn--ghost {
  padding: 12px 16px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn--block { width: 100%; }

.link-quiet {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 8px;
}

.link-quiet:hover { color: #fff; }

/* Hero shell */
.hero-shell {
  position: relative;
  min-height: 110vh;
  display: flex;
  flex-direction: column;
  background: #000;
  width: 100%;
}

.hero-shell__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shell__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Nav */
.nav {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: 24px;
}

.nav__shell { max-width: 56rem; margin-inline: auto; }

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
}

.nav__logo img { height: 22px; width: auto; }

.nav__links,
.nav__actions {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }

@media (min-width: 768px) {
  .nav__links,
  .nav__actions { display: flex; }
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav__toggle { display: none; }
}

.nav__mobile {
  margin-top: 8px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__mobile[hidden] { display: none; }

.nav__mobile > a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  border-radius: 8px;
}

.nav__mobile > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav__mobile-actions {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 768px) {
  .nav__mobile { display: none !important; }
}

/* Hero content */
.hero {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 148px 24px 64px;
}

.hero__title {
  font-size: clamp(40px, 7vw, 66px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 56rem;
  margin-bottom: 20px;
}

.hero__title em { font-style: italic; }

.hero__lead {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__micro {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Logos */
.logos {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  opacity: 0.4;
  transition: opacity 0.5s ease;
  max-width: 900px;
}

.logos:hover { opacity: 0.8; }

.logos img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0.9;
}

.logos img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Sections */
.section {
  padding: clamp(72px, 12vw, 120px) 0;
  background: #050505;
}

.section--alt {
  background: #0a0a0a;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section--cta {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(249, 115, 23, 0.12), transparent 55%),
    #050505;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.section-lead {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.65;
}

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.feature-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 800px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.feature {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature__index {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.solutions__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .solutions__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

.solution-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-list strong { font-size: 18px; }
.solution-list span { font-size: 15px; color: var(--muted); }

.price-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.price {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.price--featured {
  border-color: rgba(249, 115, 23, 0.45);
  background: rgba(249, 115, 23, 0.06);
}

.price__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.price h3 { font-size: 18px; font-weight: 600; }

.price__amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price__amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price__desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.price ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
  flex: 1;
}

.price li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 18px;
  position: relative;
}

.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price .btn { margin-top: auto; }

.cta { max-width: 720px; }
.cta .section-title { max-width: 22ch; }

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

.cta__form input {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
}

.cta__form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
}

.form-status.is-error { color: #f87171; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0;
  background: #000;
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.footer__inner img { height: 20px; width: auto; }

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer nav a {
  font-size: 14px;
  color: var(--muted);
}

.footer nav a:hover { color: #fff; }

.footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .footer nav { justify-content: center; }
}
