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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f5f5f7;
  line-height: 1.6;
}

/* Theme */
:root {
  --kh-bg: #050816;
  --kh-bg-alt: #0b1020;
  --kh-card-bg: #101528;
  --kh-border: #22263d;
  --kh-primary: #4f46e5;
  --kh-primary-hover: #6366f1;
  --kh-text: #f9fafb;
  --kh-text-soft: #a1a5c0;
  --kh-accent: #22c55e;
}

/* Layout container */
.kh-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.kh-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.85));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.kh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 0.75rem;
}

/* Logo */
.kh-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kh-logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #22c55e, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f9fafb;
  box-shadow: 0 0 24px rgba(79, 70, 229, 0.55);
}

.kh-logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

/* Nav desktop */
.kh-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.kh-nav a {
  color: var(--kh-text-soft);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}

.kh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--kh-primary), var(--kh-accent));
  transition: width 0.2s ease;
}

.kh-nav a:hover {
  color: var(--kh-text);
}

.kh-nav a:hover::after {
  width: 100%;
}

/* Burger for mobile */
.kh-burger {
  display: none;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 999px;
  color: var(--kh-text-soft);
  padding: 0.3rem 0.7rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Mobile nav */
.kh-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 0.9rem;
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.kh-nav-mobile a {
  color: var(--kh-text-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}

.kh-nav-mobile a:hover {
  color: var(--kh-text);
}

/* Buttons */
.kh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.kh-btn-primary {
  background: linear-gradient(135deg, var(--kh-primary), var(--kh-accent));
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.kh-btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.6);
}

.kh-btn-ghost {
  border-color: rgba(148, 163, 184, 0.35);
  background: transparent;
  color: var(--kh-text-soft);
}

.kh-btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--kh-text);
  background: rgba(15, 23, 42, 0.7);
}

.kh-btn-full {
  width: 100%;
  margin-top: 0.75rem;
}

/* Hero section */
.kh-hero {
  padding: 3.2rem 0 2.75rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.28), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 55%);
}

.kh-hero-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 840px) {
  .kh-hero-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.kh-hero-text h1 {
  font-size: clamp(2.35rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.kh-hero-text p {
  color: var(--kh-text-soft);
  max-width: 30rem;
  font-size: 0.98rem;
}

.kh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

/* Hero card */
.kh-hero-card {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.22), rgba(15, 23, 42, 0.98));
  border-radius: 1.25rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
}

.kh-hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.kh-hero-card p {
  font-size: 0.9rem;
  color: var(--kh-text-soft);
  margin-bottom: 0.6rem;
}

/* Sections */
.kh-section {
  padding: 2.75rem 0;
  background: var(--kh-bg);
}

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

.kh-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.kh-section-subtitle {
  color: var(--kh-text-soft);
  margin-bottom: 1.7rem;
  font-size: 0.95rem;
}

/* Grid & cards */
.kh-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 768px) {
  .kh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kh-card {
  background: var(--kh-card-bg);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--kh-border);
}

.kh-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.kh-card p {
  font-size: 0.9rem;
  color: var(--kh-text-soft);
}

/* Lists */
.kh-list {
  list-style: none;
  margin-top: 0.5rem;
}

.kh-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--kh-text-soft);
}

.kh-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--kh-accent);
}

/* Note */
.kh-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--kh-text-soft);
}

/* Community section */
.kh-community-inner {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 840px) {
  .kh-community-inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }
}

.kh-community-box {
  background: var(--kh-card-bg);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--kh-border);
}

/* Link list */
.kh-link-list {
  list-style: none;
  margin-bottom: 0.6rem;
}

.kh-link-list li {
  margin-bottom: 0.35rem;
}

.kh-link-list a {
  color: var(--kh-text-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.kh-link-list a:hover {
  color: var(--kh-text);
  text-decoration: underline;
}

.kh-small {
  font-size: 0.8rem;
  color: var(--kh-text-soft);
}

/* Contact section */
.kh-contact-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .kh-contact-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.kh-contact-inner p {
  color: var(--kh-text-soft);
  max-width: 30rem;
}

.kh-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.kh-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
  padding: 1.1rem 0;
}

.kh-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--kh-text-soft);
}

@media (min-width: 640px) {
  .kh-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.kh-footer-links {
  display: flex;
  gap: 0.85rem;
}

.kh-footer-links a {
  color: var(--kh-text-soft);
  text-decoration: none;
}

.kh-footer-links a:hover {
  color: var(--kh-text);
}

/* Responsive tweaks */
@media (max-width: 840px) {
  .kh-nav {
    display: none;
  }

  .kh-burger {
    display: inline-flex;
  }

  .kh-header-inner {
    align-items: center;
  }

  .kh-hero {
    padding-top: 2.5rem;
  }

  .kh-hero-card {
    padding: 1.2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .kh-hero-text h1 {
    font-size: 2rem;
  }

  .kh-hero-card {
    margin-top: 0.5rem;
  }

  .kh-container {
    padding: 0 1rem;
  }
}
