:root {
  --eskom-blue: #0067a5;
  --eskom-deep: #004b78;
  --eskom-yellow: #f3c300;
  --eskom-cyan: #00a7c8;
  --ink: #163042;
  --muted: #607684;
  --surface: #ffffff;
  --page: #eef4f6;
  --line: #d8e4e9;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 4px solid var(--eskom-yellow); box-shadow: 0 2px 9px #1232; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--eskom-blue); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--eskom-deep); background: var(--eskom-yellow); font-size: 22px; }
.brand strong { display: block; font-size: 24px; letter-spacing: .08em; }
.brand small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.technology-badge { color: var(--eskom-deep); border: 1px solid #bed4df; border-radius: 99px; padding: 7px 13px; font-size: 12px; }
.hero { min-height: 540px; padding: clamp(54px, 8vw, 110px) clamp(24px, 7vw, 110px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(35px, 7vw, 100px); align-items: center; background: linear-gradient(115deg, #004f7f 0%, #0075ad 55%, #00a5bb 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -180px; width: 480px; height: 480px; border: 70px solid #ffffff12; border-radius: 50%; }
.hero-copy, .service-panel { position: relative; z-index: 1; }
.eyebrow { color: var(--eskom-yellow); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 12px 0 18px; max-width: 670px; font-size: clamp(38px, 5vw, 67px); line-height: 1.04; letter-spacing: -.035em; }
.lede { max-width: 610px; margin: 0 0 28px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: #e3f4f9; }
.primary-button { border: 0; border-radius: 4px; padding: 14px 22px; background: var(--eskom-yellow); color: #17303c; font-weight: 700; box-shadow: 0 5px 14px #002b4660; }
.service-panel { background: #fff; color: var(--ink); padding: 26px; border-radius: 10px; box-shadow: 0 18px 50px #003a5c55; }
.service-panel h2 { margin: 0 0 20px; font-size: 22px; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-grid button { min-height: 105px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfc; color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; text-align: left; font-weight: 600; }
.service-grid button:hover { border-color: var(--eskom-cyan); box-shadow: 0 4px 14px #0067a51c; }
.service-grid span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e1f1f6; color: var(--eskom-blue); font-weight: 800; }
.notice { margin: 24px auto 110px; max-width: 980px; padding: 18px 22px; border-left: 5px solid var(--eskom-yellow); background: #fff; box-shadow: 0 4px 16px #1231; }
.notice strong { color: var(--eskom-deep); }
.notice p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; font-size: 14px; }
.chat-launcher { position: fixed; right: 28px; bottom: 26px; z-index: 20; border: 0; border-radius: 99px; padding: 14px 20px; display: flex; gap: 9px; align-items: center; color: #fff; background: var(--eskom-blue); box-shadow: 0 8px 25px #002b4666; font-weight: 700; }
.chat-launcher:hover { background: var(--eskom-deep); transform: translateY(-1px); }
.chat-panel { position: fixed; z-index: 30; right: 24px; bottom: 24px; width: min(420px, calc(100vw - 32px)); height: min(690px, calc(100vh - 32px)); display: none; grid-template-rows: auto 1fr auto auto; overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 22px 70px #002b4670; border: 1px solid #c4d7df; }
.chat-panel.open { display: grid; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(15px) scale(.98); } }
.chat-header { padding: 15px 16px; display: flex; align-items: center; gap: 11px; color: #fff; background: linear-gradient(110deg, var(--eskom-deep), var(--eskom-blue)); }
.assistant-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; color: var(--eskom-deep); background: var(--eskom-yellow); }
.chat-header strong, .chat-header small { display: block; }
.chat-header small { margin-top: 3px; font-size: 11px; color: #d7edf5; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; background: #67da8b; }
.chat-header button { margin-left: auto; border: 0; background: transparent; color: #fff; font-size: 27px; }
.messages { padding: 17px; overflow-y: auto; background: #f2f7f9; }
.message { display: flex; margin: 0 0 13px; }
.message.user { justify-content: flex-end; }
.bubble { max-width: 88%; padding: 11px 13px; border-radius: 5px 14px 14px 14px; background: #fff; line-height: 1.48; font-size: 14px; box-shadow: 0 2px 7px #1231; overflow-wrap: anywhere; }
.message.user .bubble { color: #fff; background: var(--eskom-blue); border-radius: 14px 5px 14px 14px; }
.bubble a { color: var(--eskom-blue); }
.source-list { margin: 7px 0 0; padding-left: 18px; font-size: 12px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.quick-actions button { border: 1px solid #9bc1d1; background: #fff; color: var(--eskom-deep); padding: 7px 9px; border-radius: 99px; font-size: 12px; }
.typing .bubble::after { content: "•••"; letter-spacing: 3px; color: var(--eskom-blue); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.access-row { padding: 8px 13px; border-top: 1px solid var(--line); font-size: 12px; }
.access-row input { float: right; width: 55%; }
.composer { padding: 11px 12px 8px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { resize: none; min-height: 42px; max-height: 96px; border: 1px solid #b9ccd4; border-radius: 7px; padding: 10px; outline: none; }
.composer textarea:focus { border-color: var(--eskom-blue); box-shadow: 0 0 0 3px #0067a51c; }
.composer > button { width: 42px; height: 42px; border: 0; border-radius: 7px; color: #fff; background: var(--eskom-blue); }
.composer p { grid-column: 1 / -1; margin: 0; color: #708691; text-align: center; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 780px) {
  .technology-badge { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .service-panel { max-width: 540px; }
  .notice { margin-inline: 16px; }
}
@media (max-width: 520px) {
  .site-header { height: 66px; }
  .hero { padding: 42px 20px 72px; }
  .service-panel { padding: 18px; }
  .service-grid button { min-height: 91px; padding: 12px; font-size: 13px; }
  .launcher-label { display: none; }
  .chat-launcher { padding: 15px; right: 16px; bottom: 16px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
}

