:root {
  --red: #c8102e;
  --red-dark: #a00d25;
  --ink: #1c1f24;
  --ink-soft: #4a4f57;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 31, 36, 0.10);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 0.95rem; font-weight: 800;
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { font-weight: 500; color: var(--ink-soft); transition: color 0.15s; }
.main-nav a:hover { color: var(--red); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; transition: all 0.15s; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--red); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.6); color: #fff; }
.header-cta { padding: 10px 20px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(200, 16, 46, 0.08), transparent),
    linear-gradient(180deg, #fbfbfc 0%, #f2f3f5 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; padding: 84px 24px 72px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--red); }
.hero-sub { margin: 20px 0 28px; font-size: 1.08rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual { position: relative; min-height: 340px; }
.hero-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 22px; display: flex; align-items: center; gap: 12px;
  font-weight: 600; white-space: nowrap;
}
.hc-icon { font-size: 1.5rem; }
.hc-1 { top: 8%; right: 6%; }
.hc-2 { top: 42%; left: 0; }
.hc-3 { bottom: 4%; right: 12%; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 40px; max-width: 40rem; }
.lede { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 28px; max-width: 36rem; }

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

/* ---------- Product cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; font-weight: 800; margin-bottom: 18px; font-size: 0.95rem;
}
.card-icon.grey { background: #565d68; }
.card-icon.white { background: linear-gradient(135deg, #c9ced6, #9aa3af); color: var(--ink); }
.card-icon.putty { background: var(--red); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.card ul { list-style: none; }
.card li { font-size: 0.9rem; padding: 5px 0 5px 22px; position: relative; color: var(--ink-soft); }
.card li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- Features ---------- */
.feature { text-align: left; }
.feature span { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.feature h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Sustainability ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.mini-stat { background: var(--bg-alt); border-radius: 12px; padding: 16px 18px; }
.mini-stat strong { display: block; font-size: 1.05rem; }
.mini-stat span { font-size: 0.83rem; color: var(--ink-soft); }
.green-panel {
  background: linear-gradient(150deg, #0d3b2e, #14563f);
  border-radius: 20px; min-height: 320px; display: grid; place-items: center;
}
.green-ring {
  width: 190px; height: 190px; border-radius: 50%; border: 3px dashed rgba(255,255,255,0.4);
  display: grid; place-content: center; text-align: center; color: #fff;
}
.green-ring strong { font-size: 1.4rem; }
.green-ring span { font-size: 0.85rem; opacity: 0.8; }

/* ---------- Network ---------- */
.net-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.net-card strong { display: block; font-size: 1.05rem; margin-bottom: 8px; color: var(--red); }
.net-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--red), #8f0c21); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; color: #fff; }
.cta-band p { opacity: 0.9; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #14161a; color: #c9cdd3; padding: 48px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-footer .brand-text { color: #fff; }
.footer-note { font-size: 0.88rem; margin-top: 10px; opacity: 0.7; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; opacity: 0.8; }
.footer-links a:hover { opacity: 1; color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* ---------- Chatbot widget ---------- */
.jkc-chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.4);
  display: grid; place-items: center; transition: transform 0.15s, background 0.15s;
}
.jkc-chat-launcher:hover { transform: scale(1.06); background: var(--red-dark); }
.jkc-chat-launcher svg { width: 28px; height: 28px; }

.jkc-chat-panel {
  position: fixed; bottom: 98px; right: 24px; z-index: 1000;
  width: 560px; max-width: calc(100vw - 32px); height: 680px; max-height: calc(100vh - 110px);
  background: #fff; border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,0.22);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.98); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.jkc-chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.jkc-chat-header {
  background: linear-gradient(120deg, var(--red), #8f0c21); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.jkc-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.18);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.jkc-chat-title { font-weight: 700; font-size: 0.98rem; line-height: 1.25; }
.jkc-chat-status { font-size: 0.75rem; opacity: 0.85; display: flex; align-items: center; gap: 6px; }
.jkc-chat-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.jkc-chat-close {
  margin-left: auto; background: none; border: none; color: #fff; font-size: 1.3rem;
  cursor: pointer; opacity: 0.85; line-height: 1;
}
.jkc-chat-close:hover { opacity: 1; }

.jkc-chat-messages {
  flex: 1; overflow-y: auto; padding: 18px 16px; background: #f7f8fa;
  display: flex; flex-direction: column; gap: 12px;
}
.jkc-msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.jkc-msg.user { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 4px; }
.jkc-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; max-width: 96%; }
.jkc-msg.error { align-self: flex-start; background: #fdecec; border: 1px solid #f5b8b8; color: #8a1f1f; }

/* Markdown inside bot messages */
.jkc-msg.bot p { margin: 0 0 8px; }
.jkc-msg.bot p:last-child { margin-bottom: 0; }
.jkc-msg.bot h1, .jkc-msg.bot h2, .jkc-msg.bot h3, .jkc-msg.bot h4 {
  margin: 10px 0 6px; line-height: 1.3; font-weight: 700;
}
.jkc-msg.bot h1 { font-size: 1.05rem; }
.jkc-msg.bot h2 { font-size: 1rem; }
.jkc-msg.bot h3, .jkc-msg.bot h4 { font-size: 0.94rem; }
.jkc-msg.bot ul, .jkc-msg.bot ol { margin: 4px 0 8px; padding-left: 20px; }
.jkc-msg.bot li { margin: 3px 0; }
.jkc-msg.bot a,
.jkc-msg.bot a:visited {
  color: #1558d6 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  word-break: break-word;
}
.jkc-msg.bot a:hover { color: #0b3ea8 !important; text-decoration: underline; }
.jkc-msg.bot code {
  background: #f0f1f3; border-radius: 4px; padding: 1px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em;
}
.jkc-msg.bot strong { font-weight: 700; }

.jkc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; }
.jkc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b6bcc4; animation: jkcBlink 1.2s infinite; }
.jkc-typing i:nth-child(2) { animation-delay: 0.2s; }
.jkc-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes jkcBlink { 0%, 60%, 100% { opacity: 0.35; } 30% { opacity: 1; } }

.jkc-chat-input {
  display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); background: #fff;
}
.jkc-chat-input textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-family: var(--font); font-size: 0.9rem; max-height: 96px;
  outline: none; transition: border-color 0.15s;
}
.jkc-chat-input textarea:focus { border-color: var(--red); }
.jkc-chat-send {
  width: 42px; height: 42px; border-radius: 10px; border: none; background: var(--red);
  color: #fff; cursor: pointer; display: grid; place-items: center; align-self: flex-end;
  transition: background 0.15s;
}
.jkc-chat-send:hover { background: var(--red-dark); }
.jkc-chat-send:disabled { background: #d6d9de; cursor: not-allowed; }
.jkc-chat-send svg { width: 18px; height: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 24px; gap: 14px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }

  /* Full-screen chat sheet on phones */
  .jkc-chat-panel {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; max-width: 100%;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
  }
  .jkc-chat-panel.open { transform: none; }
  .jkc-chat-header { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
  .jkc-chat-input { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .jkc-msg { max-width: 88%; }
  .jkc-msg.bot { max-width: 92%; }
  /* Hide the launcher while the sheet is open so it doesn't float over the input */
  .jkc-chat-launcher { right: 16px; bottom: 16px; }
  body.jkc-chat-open .jkc-chat-launcher { display: none; }
}
