:root {
  /* Purple / blue / green scheme. The --gold* vars hold the violet PRIMARY so all
     existing references re-theme without renaming. */
  --bg: #0b0d16;
  --bg-2: #11131f;
  --panel: rgba(20, 22, 36, 0.78);
  --panel-strong: rgba(24, 26, 44, 0.92);
  --line: rgba(139, 108, 240, 0.24);
  --text: #dcd8ff;
  --heading: #ece8ff;
  --muted: #aeb7d6;
  --gold: #8b6cf0;
  --gold-soft: #65d6ff;
  --gold-deep: #6d4fd0;
  --green: #4fc08d;
  --blue: #4aa3ff;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 24rem),
    radial-gradient(980px 520px at 80% 0%, rgba(139, 108, 240, 0.12), transparent 62%),
    radial-gradient(760px 430px at 6% 18%, rgba(79, 192, 141, 0.08), transparent 60%),
    radial-gradient(840px 520px at 60% 90%, rgba(74, 163, 255, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#leafCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  color: var(--heading);
  text-shadow: 0 0 26px rgba(139, 108, 240, 0.12);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 22, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--blue), var(--gold));
  color: #f7fbff;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(139, 108, 240, 0.28);
}

.brand-word {
  font-family: Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--heading);
  background: linear-gradient(100deg, var(--blue) 0%, var(--gold) 38%, var(--green) 72%, var(--heading) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px rgba(139, 108, 240, 0.18);
}

/* Brand emphasis: the K and T carry the strongest palette notes. */
.brand-word b {
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(74, 163, 255, 0.28),
    0 0 14px rgba(139, 108, 240, 0.22);
}

.lede b {
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: rgba(139, 108, 240, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 90px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2,
.about h2,
.contact h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.section-sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 78px 0 72px;
  min-height: 76vh;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 4.95rem);
  margin: 6px 0 0;
}

.lede {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: 1.14rem;
  color: #bfc8e8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, var(--blue), var(--gold) 58%, var(--green));
  color: #f7fbff;
  box-shadow: 0 10px 30px rgba(139, 108, 240, 0.3);
}

.btn-ghost {
  border-color: rgba(101, 214, 255, 0.24);
  color: #d9e6ff;
  background: rgba(74, 163, 255, 0.035);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: #aab8d8;
  font-size: 0.91rem;
}

.hero-trust li {
  position: relative;
  padding-left: 18px;
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  display: grid;
  place-items: end center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 0 4% 8%;
  border: 1px solid rgba(139, 108, 240, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(139, 108, 240, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(139, 108, 240, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 54% 44%, black 0%, black 56%, transparent 78%);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 16% 0 0 10%;
  background:
    radial-gradient(circle at 52% 46%, rgba(139, 108, 240, 0.2), transparent 48%),
    radial-gradient(circle at 64% 58%, rgba(79, 192, 141, 0.12), transparent 54%);
  filter: blur(14px);
}

.hero-tree {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.48));
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 108, 240, 0.4);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: rgba(139, 108, 240, 0.12);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-num {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #e3ddff;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 44px;
  align-items: center;
}

.about-leaf {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: linear-gradient(145deg, rgba(232, 241, 247, 0.96), rgba(205, 218, 232, 0.9));
  box-shadow: var(--shadow);
}

.about-leaf img {
  width: 100%;
  display: block;
  filter: contrast(1.06);
  mix-blend-mode: multiply;
}

.about p {
  color: #bfc8e8;
  max-width: 620px;
}

/* ---------- contact ---------- */
.contact-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.contact-box .btn {
  margin-top: 22px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-brand {
  display: grid;
  gap: 3px;
}

.footer-affil {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-affil a {
  color: var(--gold);
  font-weight: 600;
}

.footer-affil a:hover {
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 28px 0;
  font-size: 0.9rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
    min-height: auto;
    gap: 32px;
  }
  .hero-art {
    min-height: 260px;
    place-items: center;
  }
  .hero-tree {
    max-width: 315px;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(11, 13, 22, 0.96);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .cards,
  .cards.three {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-leaf {
    width: 120px;
    padding: 18px;
  }
  .section {
    padding: 64px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
