/* ============================================================
   KFDW — Electric Purple / Dark Theme
   Accent: #9333EA   Supporting: #7E22CE / #E9D5FF / #2E0A4E
   Body: #141011      Text: #F0EBF3
   ============================================================ */

:root {
  --bg: #141011;
  --bg-2: #1C151A;
  --bg-3: #241A21;
  --surface: #1E171B;
  --surface-2: #2A1E26;
  --border: #3B2A37;
  --border-soft: #2E222C;
  --text: #F0EBF3;
  --text-soft: #D8CFDC;
  --muted: #B6A6BC;
  --accent: #9333EA;
  --accent-2: #7E22CE;
  --accent-light: #E9D5FF;
  --accent-deep: #2E0A4E;
  --accent-glow: #B15CFF;
  --radius: 16px;
  --maxw: 1180px;
}

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

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

body {
  font-size: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background-color: #141011;
  color: #F0EBF3;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: #E9D5FF;
  text-decoration: none;
}

a:hover {
  color: #F0EBF3;
}

h1, h2, h3, h4, h5 {
  color: #F0EBF3;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   CHESS KNIGHT NAVIGATION  (.chess-nav)
   ============================================================ */

.chess-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #141011;
  border-bottom: 1px solid #2E222C;
  height: 78px;
}

.chess-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.chess-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.chess-nav .brand:hover {
  text-decoration: none;
}

/* CSS-drawn chess knight */
.knight {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 44px;
  flex-shrink: 0;
}

.knight-head {
  position: absolute;
  top: 0;
  left: 2px;
  width: 30px;
  height: 30px;
  background: linear-gradient(160deg, #B15CFF 0%, #9333EA 55%, #7E22CE 100%);
  clip-path: polygon(
    52% 0%,
    40% 8%,
    46% 17%,
    54% 20%,
    62% 14%,
    72% 20%,
    76% 32%,
    74% 46%,
    76% 58%,
    66% 66%,
    52% 66%,
    46% 50%,
    40% 46%,
    24% 50%,
    16% 45%,
    10% 38%,
    14% 28%,
    28% 27%,
    36% 22%,
    44% 12%
  );
  filter: drop-shadow(0 2px 5px rgba(147, 51, 234, 0.4));
}

.knight-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 12px;
  background: linear-gradient(180deg, #7E22CE 0%, #9333EA 100%);
  border-radius: 3px 3px 6px 6px;
}

.knight-base::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 1px;
  background: rgba(233, 213, 255, 0.85);
}

.knight-base::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  right: 3px;
  height: 1px;
  background: rgba(233, 213, 255, 0.55);
}

.chess-nav .wordmark {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #F0EBF3;
}

.chess-nav .wordmark span {
  color: #B15CFF;
}

.chess-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.chess-nav .nav-links a {
  color: #D8CFDC;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 8px 2px;
  position: relative;
}

.chess-nav .nav-links a:hover {
  color: #E9D5FF;
}

.chess-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #9333EA;
  transition: width 0.25s ease;
}

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

.chess-nav .nav-cta {
  display: inline-block;
  background: #9333EA;
  color: #F0EBF3;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid #B15CFF;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.chess-nav .nav-cta:hover {
  background: #7E22CE;
  color: #F0EBF3;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #3B2A37;
  border-radius: 8px;
  width: 46px;
  height: 42px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #E9D5FF;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOON HERO  (.moon-hero)
   ============================================================ */

.moon-hero {
  position: relative;
  background-color: #141011;
  padding: 150px 0 90px;
  overflow: hidden;
}

.moon-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, rgba(20, 16, 17, 0) 70%);
  pointer-events: none;
}

.moon-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.moon-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2E0A4E;
  border: 1px solid #7E22CE;
  color: #E9D5FF;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.moon-hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #B15CFF;
}

.moon-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 22px;
  max-width: 620px;
}

.moon-hero h1 em {
  font-style: normal;
  color: #B15CFF;
  background: linear-gradient(120deg, #B15CFF 0%, #E9D5FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.moon-hero .sub {
  color: #D8CFDC;
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 34px;
}

.moon-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 10px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #9333EA;
  color: #F0EBF3;
  border: 1px solid #B15CFF;
}

.btn-primary:hover {
  background: #7E22CE;
  color: #F0EBF3;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #E9D5FF;
  border: 1px solid #7E22CE;
}

.btn-ghost:hover {
  background: #2E0A4E;
  color: #E9D5FF;
  transform: translateY(-2px);
}

/* Moon visual */
.moon-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.moon-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 92, 255, 0.25) 0%, rgba(147, 51, 234, 0.05) 55%, rgba(20, 16, 17, 0) 75%);
}

.moon {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: linear-gradient(150deg, #B15CFF 0%, #9333EA 55%, #7E22CE 100%);
  box-shadow: 0 0 0 6px rgba(147, 51, 234, 0.18), 0 0 70px rgba(147, 51, 234, 0.4);
}

.moon::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 34px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #141011;
}

.star {
  position: absolute;
  background: #E9D5FF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(233, 213, 255, 0.9);
}

.star.s1 { width: 8px; height: 8px; top: 12px; right: 8px; }
.star.s2 { width: 5px; height: 5px; top: 60px; right: -18px; }
.star.s3 { width: 6px; height: 6px; bottom: 24px; right: 30px; }
.star.s4 { width: 4px; height: 4px; top: -6px; right: 90px; }

/* ============================================================
   FULL-WIDTH STATEMENT ROW  (.statement)
   ============================================================ */

.statement {
  background-color: #1C151A;
  padding: 84px 0;
  border-top: 1px solid #2E222C;
  border-bottom: 1px solid #2E222C;
}

.statement h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  letter-spacing: -0.02em;
}

.statement h2 span {
  color: #B15CFF;
}

/* ============================================================
   BIG-NUMERAL STAT COLUMNS  (.stats)
   ============================================================ */

.stats {
  background-color: #141011;
  padding: 90px 0;
}

.stats .stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stat-card {
  background: #1E171B;
  border: 1px solid #2E222C;
  border-radius: 16px;
  padding: 44px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7E22CE, #B15CFF);
}

.stat-card .stat-num {
  font-size: 3.4rem;
  font-weight: 900;
  color: #B15CFF;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card .stat-label {
  margin-top: 14px;
  color: #D8CFDC;
  font-weight: 700;
  font-size: 1.05rem;
}

.stat-card .stat-desc {
  margin-top: 10px;
  color: #B6A6BC;
  font-size: 0.95rem;
}

/* ============================================================
   NUMBERED ENGAGEMENT PROCESS  (.process)
   ============================================================ */

.process {
  background-color: #1C151A;
  padding: 90px 0;
  border-top: 1px solid #2E222C;
  border-bottom: 1px solid #2E222C;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .kicker {
  display: inline-block;
  color: #B15CFF;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-head p {
  color: #B6A6BC;
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 28px;
  position: relative;
  padding-bottom: 44px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 45px;
  top: 84px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #7E22CE 0%, #2E0A4E 100%);
}

.process-num {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  background: #2E0A4E;
  border: 1px solid #7E22CE;
  color: #E9D5FF;
  font-weight: 900;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  position: relative;
  z-index: 2;
}

.process-step .process-body h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #F0EBF3;
}

.process-step .process-body p {
  color: #B6A6BC;
  max-width: 720px;
}

/* ============================================================
   TWO-COLUMN COMPARISON TABLE  (.compare)
   ============================================================ */

.compare {
  background-color: #141011;
  padding: 90px 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #2E222C;
  border-radius: 16px;
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 20px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #2E222C;
}

.compare-table thead th {
  background: #2E0A4E;
  color: #E9D5FF;
  font-weight: 800;
  font-size: 1rem;
}

.compare-table thead th:first-child {
  width: 26%;
  color: #F0EBF3;
  background: #241A21;
}

.compare-table tbody th {
  color: #D8CFDC;
  font-weight: 700;
  background: #1E171B;
}

.compare-table td {
  color: #B6A6BC;
  font-size: 0.98rem;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td.highlight {
  color: #E9D5FF;
  font-weight: 600;
}

/* ============================================================
   HORIZONTAL SCROLL SERVICE CARDS  (.services-scroll)
   ============================================================ */

.services-scroll {
  background-color: #1C151A;
  padding: 90px 0;
  border-top: 1px solid #2E222C;
  border-bottom: 1px solid #2E222C;
}

.scroll-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #7E22CE #1E171B;
}

.scroll-track::-webkit-scrollbar {
  height: 8px;
}

.scroll-track::-webkit-scrollbar-track {
  background: #1E171B;
  border-radius: 4px;
}

.scroll-track::-webkit-scrollbar-thumb {
  background: #7E22CE;
  border-radius: 4px;
}

.service-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #1E171B;
  border: 1px solid #2E222C;
  border-radius: 16px;
  padding: 34px 30px;
}

.service-card:hover {
  border-color: #7E22CE;
}

.service-card .svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #2E0A4E;
  border: 1px solid #7E22CE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B15CFF;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: #B6A6BC;
  font-size: 0.98rem;
}

.service-card .svc-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card .svc-tags span {
  background: #241A21;
  border: 1px solid #3B2A37;
  color: #D8CFDC;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ============================================================
   SPLIT CTA BAND  (.cta-band)
   ============================================================ */

.cta-band {
  background-color: #141011;
  padding: 90px 0;
}

.cta-band .cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #2E0A4E 0%, #1E171B 100%);
  border: 1px solid #7E22CE;
  border-radius: 20px;
  padding: 54px 50px;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: #D8CFDC;
}

.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

/* ============================================================
   CONTACT / REVEAL / MISC
   ============================================================ */

.contact-section {
  background-color: #1C151A;
  padding: 90px 0;
  border-top: 1px solid #2E222C;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.contact-info p {
  color: #B6A6BC;
  margin-bottom: 22px;
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #2E0A4E;
  border: 1px solid #7E22CE;
  color: #B15CFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-item .ci-label {
  color: #B6A6BC;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.contact-item .ci-value {
  color: #F0EBF3;
  font-weight: 700;
}

.contact-form {
  background: #1E171B;
  border: 1px solid #2E222C;
  border-radius: 16px;
  padding: 36px 32px;
}

.contact-form .field {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  color: #D8CFDC;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #141011;
  border: 1px solid #3B2A37;
  border-radius: 9px;
  color: #F0EBF3;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9333EA;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form .form-note {
  font-size: 0.85rem;
  color: #B6A6BC;
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  font-weight: 700;
  color: #E9D5FF;
  display: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   FOOTER  (.site-footer)
   ============================================================ */

.site-footer {
  background-color: #141011;
  border-top: 3px solid #9333EA;
  padding: 64px 0 36px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

.site-footer .f-brand .wordmark {
  font-weight: 900;
  font-size: 1.3rem;
  color: #F0EBF3;
  letter-spacing: 0.06em;
}

.site-footer .f-brand .wordmark span {
  color: #B15CFF;
}

.site-footer .f-brand p {
  color: #B6A6BC;
  margin-top: 14px;
  max-width: 320px;
  font-size: 0.95rem;
}

.site-footer h4 {
  color: #F0EBF3;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer ul a {
  color: #B6A6BC;
  font-size: 0.95rem;
}

.site-footer ul a:hover {
  color: #E9D5FF;
}

.site-footer .footer-bottom {
  border-top: 1px solid #2E222C;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #B6A6BC;
  font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .moon-hero .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .moon-visual {
    order: -1;
    min-height: 260px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-band .cta-actions {
    justify-content: flex-start;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }

  .chess-nav .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #1C151A;
    border-bottom: 1px solid #2E222C;
    padding: 12px 24px 20px;
    display: none;
  }

  .chess-nav .nav-links.open {
    display: flex;
  }

  .chess-nav .nav-links a {
    display: block;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid #2E222C;
  }

  .chess-nav .nav-cta {
    margin-top: 14px;
  }

  .stats .stat-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    grid-template-columns: 68px 1fr;
    gap: 18px;
  }

  .process-num {
    width: 68px;
    height: 68px;
    font-size: 1.3rem;
  }

  .process-step:not(:last-child)::before {
    left: 33px;
    top: 64px;
  }

  .compare-table th,
  .compare-table td {
    padding: 14px 12px;
    font-size: 0.9rem;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
