/* ============================================================
   KINETICORE SYSTEMS — Design System
   ============================================================ */

:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --border: #dbe3df;
  --text: #1c2823;
  --text-2: #51655c;
  --muted: #7d8f87;

  --green-900: #0c2f22;
  --green-800: #123c2c;
  --green-700: #1a5540;
  --green-600: #1f6b4f;
  --green-500: #2e8963;
  --green-400: #43a37b;
  --green-300: #7cc4a1;
  --green-200: #b7e0cb;
  --green-100: #ddf1e5;
  --green-50: #eef8f2;

  --amber-500: #e0972d;
  --amber-400: #ecb454;
  --amber-100: #fbeed6;
  --red-500: #c94f43;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(12, 47, 34, 0.06), 0 1px 3px rgba(12, 47, 34, 0.08);
  --shadow-md: 0 2px 6px rgba(12, 47, 34, 0.06), 0 12px 32px -12px rgba(12, 47, 34, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(12, 47, 34, 0.35);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1180px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; color: var(--green-900); }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 900px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo svg { display: block; }
.logo-mark { width: 34px; height: 34px; flex: none; display: block; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-weight: 800; font-size: 17px; color: var(--green-900); letter-spacing: -0.02em; }
.logo-tag { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 550; color: var(--text-2);
  padding: 8px 13px; border-radius: 9px; transition: all 0.15s;
}
.nav a:hover { color: var(--green-800); background: var(--green-50); }
.nav a.active { color: var(--green-700); background: var(--green-100); }
.nav-cta { margin-left: 8px; }

/* Mobile nav */
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--green-900); margin: 5px 0; border-radius: 2px; transition: 0.2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; border-radius: 8px; }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 620; letter-spacing: -0.01em;
  cursor: pointer; border: 0; transition: all 0.18s;
  font-family: inherit;
}
.btn-primary { background: var(--green-600); color: #fff !important; box-shadow: 0 1px 2px rgba(12,47,34,.2); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(12,47,34,.4); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff !important; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--green-700) !important; border: 1.5px solid var(--green-600); }
.btn-outline:hover { background: var(--green-50); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-light { background: #fff; color: var(--green-800) !important; }
.btn-light:hover { background: var(--green-100); }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero sections ---------- */
.hero {
  position: relative; color: #fff;
  background:
    linear-gradient(160deg, rgba(9, 38, 27, 0.88) 0%, rgba(13, 52, 38, 0.72) 45%, rgba(10, 40, 30, 0.88) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 22% 40%, rgba(67, 163, 123, 0.22), transparent 70%);
  pointer-events: none; /* defensive: decorative overlay */
}
.hero-inner { position: relative; padding: 108px 0 96px; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); font-weight: 780; margin-bottom: 22px; max-width: 800px; }
.hero .hero-accent { color: var(--amber-400); }
.hero p.lede {
  font-size: clamp(16.5px, 2vw, 19px); color: rgba(255,255,255,0.88);
  max-width: 680px; margin-bottom: 34px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.16); }
.hero-badges .badge-item { display: flex; gap: 10px; align-items: flex-start; max-width: 300px; }
.hero-badges svg { flex: none; margin-top: 2px; }
.hero-badges b { display: block; font-size: 14.5px; font-weight: 650; }
.hero-badges span { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5; }

/* Page hero (solid) */
.page-hero {
  background: linear-gradient(150deg, var(--green-900), var(--green-800) 55%, var(--green-700));
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 80% 20%, rgba(236, 180, 84, 0.12), transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; padding: 74px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 44px); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 17.5px; max-width: 720px; line-height: 1.7; }
.crumb { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.crumb a { color: rgba(255,255,255,0.85); }
.crumb a:hover { color: #fff; }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-green { background: var(--green-900); color: rgba(255,255,255,0.85); }
.section-green h2, .section-green h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 16px; }
.section-head p { font-size: 17px; color: var(--text-2); line-height: 1.7; }
.section-green .section-head p { color: rgba(255,255,255,0.75); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.section-green .eyebrow { color: var(--amber-400); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .icon-chip { margin-bottom: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.icon-chip {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100); color: var(--green-700);
}
.icon-chip.amber { background: var(--amber-100); color: var(--amber-500); }
.icon-chip.dark { background: rgba(255,255,255,0.08); color: var(--amber-400); }

.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 11px;
  color: var(--text-2); font-size: 15px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--green-100) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="%231f6b4f" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / 11px no-repeat;
}
.section-green .check-list li { color: rgba(255,255,255,0.78); }
.section-green .check-list li::before { background-color: rgba(255,255,255,0.1); background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="%23ecb454" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>'); }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-content .eyebrow { margin-bottom: 12px; }
.split-content h2 { font-size: clamp(25px, 3vw, 33px); margin-bottom: 18px; }
.split-content p { color: var(--text-2); margin-bottom: 20px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* Image card with caption overlay */
.media-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 0.5s; }
.media-card:hover img { transform: scale(1.04); }
.media-card .media-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 18px; color: #fff;
  background: linear-gradient(transparent, rgba(8, 30, 22, 0.85));
  font-size: 14.5px; font-weight: 620;
}
.media-card .media-label span { display: block; font-weight: 450; font-size: 13px; opacity: 0.85; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: left; }
.stat .stat-num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--green-600); letter-spacing: -0.03em; }
.section-green .stat .stat-num { color: var(--amber-400); }
.stat .stat-label { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.section-green .stat .stat-label { color: rgba(255,255,255,0.65); }
@media (max-width: 860px) { .stats-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Process timeline ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }
.process-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 22px;
  position: relative; box-shadow: var(--shadow-sm);
}
.process-step .step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: 15px; margin-bottom: 16px;
}
.process-step:nth-child(odd) .step-num { background: var(--amber-500); color: var(--green-900); }
.process-step h3 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.process-step .step-arrow {
  position: absolute; right: -16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); z-index: 2;
}
@media (max-width: 1000px) { .process-step .step-arrow { display: none; } }

/* ---------- Division switcher (homepage) ---------- */
.division-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 30px; }
.division-switch button {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 620; color: var(--text-2);
  padding: 9px 20px; border-radius: 9px; transition: all 0.15s;
}
.division-switch button.on { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.division-panel { display: none; }
.division-panel.on { display: block; animation: fadeUp 0.4s ease both; }

/* ---------- Tables (specs) ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.spec-table th, .spec-table td { padding: 14px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--green-50); color: var(--green-900); font-weight: 700; width: 34%; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td { color: var(--text-2); }
.spec-table td b { color: var(--text); font-weight: 650; }

/* ---------- Download cards ---------- */
.dl-card { display: flex; gap: 18px; align-items: flex-start; }
.dl-card .icon-chip { flex: none; }
.dl-card h3 { font-size: 17px; }
.dl-card p { font-size: 14px; margin-bottom: 12px; }

/* ---------- Product page device frame ---------- */
.device-figure { position: relative; }
.device-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.device-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 650; color: var(--green-900); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 14.5px; color: var(--text);
  transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(46, 137, 99, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-status { display: none; padding: 14px 18px; border-radius: 10px; margin-top: 18px; font-size: 14.5px; }
.form-status.ok { display: block; background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-200); }
.form-status.err { display: block; background: #fdecea; color: #8c2f26; border: 1px solid #f5c6c0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(140deg, var(--green-800), var(--green-700));
  border-radius: var(--radius-lg); padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(236,180,84,0.25), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; }
.cta-band .cta-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 780px) { .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; } .cta-band .cta-actions { justify-content: center; } }

/* ---------- Footer ---------- */
.site-footer { background: #08211a; color: rgba(255,255,255,0.72); padding: 64px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 16px; max-width: 300px; line-height: 1.6; }
.footer-col h3 { color: #fff; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--amber-400); }
.footer-col .footer-contact { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-col .footer-contact svg { flex: none; margin-top: 3px; color: var(--green-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.max-640 { max-width: 640px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--green-100); color: var(--green-800);
  font-size: 12.5px; font-weight: 650; margin: 0 6px 6px 0;
}
.tag.amber { background: var(--amber-100); color: #7a5310; }
.section-green .tag { background: rgba(255,255,255,0.08); color: var(--green-200); }
