/* ============================================================
   Kazadi Enterprises — v1 "HARVEST"
   Clean optimistic cleantech flagship
   ============================================================ */

:root {
  --blue:        #116DFF;
  --blue-light:  #5E97FF;
  --gold:        #FFCC44;
  --coral:       #FE9361;
  --amber:       #FF8044;
  --slate:       #3F5060;
  --ink:         #242323;
  --white:       #FFFFFF;
  --gray-100:    #F5F7FA;
  --gray-200:    #DBE2E9;
  --gray-300:    #C3CDD8;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(31, 60, 95, .08);
  --shadow:    0 18px 48px rgba(31, 60, 95, .14);
  --shadow-lg: 0 30px 80px rgba(31, 60, 95, .22);

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Quicksand", system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* focus states */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .96rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  text-align: center; line-height: 1;
}
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(17,109,255,.32); }
.btn-primary:hover { background: #0c5be0; box-shadow: 0 14px 30px rgba(17,109,255,.4); }

.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(255,204,68,.4); }
.btn-gold:hover { background: #ffd35f; }

.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 40px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--slate);
  padding: .55em .85em; border-radius: 8px; display: block;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--blue); background: var(--gray-100); }
.header-cta { margin-left: 6px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 10px; margin-left: auto; cursor: pointer;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--slate); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px,5vw,64px); text-align: center; }
.section-head h2, .value-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.section-sub { font-size: 1.12rem; color: var(--slate); }
.eyebrow {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .78rem; color: var(--blue); margin: 0 0 .9em;
}
.eyebrow-light { color: var(--gold); }
.accent-gold { color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(110px, 18vw, 200px) 0 clamp(80px, 12vw, 140px);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("assets/img/photo3.jpg") center 35% / cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(115deg, rgba(13,42,90,.9) 0%, rgba(17,109,255,.78) 42%, rgba(17,109,255,.32) 100%),
    linear-gradient(0deg, rgba(13,30,55,.55), rgba(13,30,55,0) 55%);
}
.hero-inner { max-width: 820px; }
.hero-title { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.4rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.1rem, 2.2vw, 1.42rem); max-width: 660px; color: rgba(255,255,255,.95); margin-bottom: 1.8em; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.6em; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 16px 36px; padding-top: 1.4em; border-top: 1px solid rgba(255,255,255,.25); }
.trust-strip li { display: flex; flex-direction: column; }
.trust-strip strong { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.trust-strip span { font-size: .9rem; color: rgba(255,255,255,.85); }

/* thermal rings motif */
.thermal-rings { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.thermal-rings span {
  position: absolute; top: 50%; right: -8%; transform: translateY(-50%);
  border: 2px solid rgba(255,204,68,.28); border-radius: 50%;
  animation: pulseRing 6s ease-in-out infinite;
}
.thermal-rings span:nth-child(1){ width: 260px; height: 260px; animation-delay: 0s;}
.thermal-rings span:nth-child(2){ width: 440px; height: 440px; animation-delay: .8s;}
.thermal-rings span:nth-child(3){ width: 640px; height: 640px; animation-delay: 1.6s;}
.thermal-rings span:nth-child(4){ width: 860px; height: 860px; animation-delay: 2.4s;}
@keyframes pulseRing { 0%,100%{ opacity:.25; transform: translateY(-50%) scale(1);} 50%{ opacity:.55; transform: translateY(-50%) scale(1.04);} }

/* ---------- idea / heritage ---------- */
.idea { background: var(--white); }
.idea-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.idea-copy h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.pull-quote {
  margin: 1.4em 0 0; padding: 1em 0 1em 1.4em; border-left: 4px solid var(--gold);
  font-family: var(--font-head); font-weight: 600; font-style: italic; font-size: 1.2rem; color: var(--slate);
}
.idea-figure { margin: 0; }
.idea-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
figcaption { margin-top: .8em; font-size: .88rem; color: var(--slate); opacity: .8; }

/* ---------- technology ---------- */
.technology { background: var(--gray-100); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,52px); align-items: center; }
.tech-diagram { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.ring-svg { width: 100%; max-width: 380px; margin: 0 auto; display: block; }
.ring-track { fill: none; stroke: var(--gray-200); stroke-width: 10; }
.ring-track--inner { stroke: #eef2f7; }
.ring-flow { fill: none; stroke: url(#gBlue); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 90 850; animation: ringSpin 5s linear infinite; }
.ring-flow--inner { stroke: url(#gHeat); stroke-dasharray: 60 630; animation: ringSpinRev 4s linear infinite; }
@keyframes ringSpin { to { stroke-dashoffset: -940; } }
@keyframes ringSpinRev { to { stroke-dashoffset: 690; } }
.ring-core-t { font-family: var(--font-head); font-weight: 800; font-size: 18px; fill: #fff; }
.ring-core-t2 { font-family: var(--font-head); font-weight: 600; font-size: 10px; letter-spacing: 1px; fill: rgba(255,255,255,.9); }
.ring-node-t { font-family: var(--font-head); font-weight: 700; font-size: 12px; fill: #fff; }
.ring-node { animation: nodeFloat 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nodeFloat { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.07);} }

.ring-legend { margin-top: 22px; counter-reset: step; display: grid; gap: 10px; }
.ring-legend li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: 5px; }
.dot-blue { background: var(--blue); } .dot-heat { background: var(--amber); } .dot-slate { background: var(--slate); }

.tech-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform .2s var(--ease), box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, var(--blue-light), var(--blue)); color: #fff; margin-bottom: 14px; }
.card h3 { font-size: 1.06rem; margin-bottom: .4em; }
.card p { font-size: .92rem; margin: 0; }

/* ---------- value ---------- */
.value { background: linear-gradient(135deg, #0d2a5a 0%, var(--blue) 100%); color: #fff; }
.value-head { max-width: 740px; margin: 0 auto clamp(40px,6vw,64px); text-align: center; }
.value-head h2 { color: #fff; }
.section-sub--light { color: rgba(255,255,255,.9); }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 36px 22px; }
.stat-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.6rem,7vw,4rem); color: var(--gold); line-height: 1; display: block; }
.stat-unit { font-size: .55em; }
.stat-label { margin: .8em 0 0; font-size: .98rem; color: rgba(255,255,255,.9); }

/* ---------- applications ---------- */
.applications { background: var(--white); }
.app-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.app-card { background: var(--gray-100); border-radius: var(--radius-sm); padding: 26px 22px; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; border-color: var(--gray-200); }
.app-ic { font-size: 30px; display: block; margin-bottom: 14px; }
.app-card h3 { font-size: 1.04rem; margin-bottom: .4em; }
.app-card p { font-size: .9rem; margin: 0; }

.app-feature { margin: clamp(36px,5vw,56px) 0 0; position: relative; }
.app-feature img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* ---------- why ---------- */
.why { background: var(--gray-100); }
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem,4vw,2.7rem); }
.why-list { margin-top: 1.4em; display: grid; gap: 12px; }
.why-list li { position: relative; padding-left: 34px; font-size: 1.02rem; }
.why-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; display: grid; place-items: center; font-weight: 700;
}
.why-figure { margin: 0; }
.why-figure img { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--gray-200); width: 100%; height: auto; }

/* ---------- about ---------- */
.about { background: var(--white); }
.about-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; text-align: left; font-size: 1.06rem; }
.fact-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: clamp(36px,5vw,52px); }
.fact-row li { background: var(--gray-100); border-radius: var(--radius-sm); padding: 22px 16px; }
.fact-row span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: .35em; }
.fact-row strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }

/* ---------- investors ---------- */
.investors { background: linear-gradient(135deg, var(--ink) 0%, var(--slate) 100%); color: #fff; }
.investors .section-head h2 { color: #fff; }
.investor-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.inv-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 32px 28px; }
.inv-card p { color: rgba(255,255,255,.82); font-size: .96rem; }
.inv-card--feature { background: linear-gradient(135deg, rgba(17,109,255,.35), rgba(255,204,68,.14)); border-color: rgba(255,204,68,.4); }
.inv-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.inv-logo-ts { height: 34px; width: auto; margin-bottom: 6px; }
.inv-year { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff !important; margin: 0 0 .5em; }
.inv-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff !important; margin: 0 0 .5em; }

/* ---------- pilot cta ---------- */
.pilot { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--amber) 0%, var(--gold) 100%); color: var(--ink); text-align: center; isolation: isolate; }
.pilot-inner { max-width: 720px; margin: 0 auto; }
.pilot h2 { font-size: clamp(1.9rem,4.5vw,2.9rem); color: var(--ink); }
.pilot p { font-size: 1.12rem; color: #5a4626; margin-bottom: 1.8em; }
.pilot-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.pilot .btn-ghost-light { color: var(--ink); border-color: rgba(36,35,35,.4); background: rgba(255,255,255,.25); }
.pilot .btn-ghost-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.thermal-rings--cta span { border-color: rgba(255,255,255,.4); }

/* ---------- contact ---------- */
.contact { background: var(--gray-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem,4vw,2.6rem); }
.contact-info { margin-top: 1.6em; display: grid; gap: 16px; }
.contact-info li { display: flex; flex-direction: column; }
.ci-label { font-family: var(--font-head); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); margin-bottom: 2px; }
.contact-info a { font-size: 1.1rem; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--gray-200); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--gray-100);
  transition: border-color .15s, background .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #fff; outline: none; }
.field.invalid input, .field.invalid textarea { border-color: #e0483a; background: #fff5f4; }
.error { display: block; color: #d23a2c; font-size: .82rem; margin-top: 5px; min-height: 1em; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(48px,7vw,72px) 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-pill { display: inline-block; background: #fff; padding: 12px 18px; border-radius: 12px; }
.footer-pill img { height: 38px; width: auto; }
.footer-tag { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin: 18px 0 4px; font-size: 1.05rem; }
.footer-mini { font-size: .88rem; opacity: .7; margin: 0; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.78); font-size: .94rem; line-height: 2; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; opacity: .65; }
.footer-bottom p { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 15px 24px; border-radius: 12px;
  box-shadow: var(--shadow-lg); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  z-index: 300; max-width: min(90vw, 460px); opacity: 0; transition: transform .4s var(--ease), opacity .3s;
  border-left: 4px solid var(--gold);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .ring-flow, .ring-flow--inner, .ring-node, .thermal-rings span { animation: none !important; }
  .hero-bg { transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .tech-grid, .idea-grid, .why-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .investor-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2,1fr); }
  .fact-row { grid-template-columns: repeat(2,1fr); }
  .why-figure, .idea-figure { order: -1; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: #fff; margin: 0;
    max-height: 0; overflow: hidden; border-bottom: 1px solid var(--gray-200);
    transition: max-height .35s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 18px; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid var(--gray-100); font-size: 1.05rem; }
  .main-nav li:last-child a { border-bottom: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .tech-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn, .pilot-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .app-grid { grid-template-columns: 1fr; }
  .fact-row { grid-template-columns: 1fr; }
  .trust-strip { gap: 14px 24px; }
}
