  :root{
    --black: #0A0A0C;
    --black-2: #111114;
    --card: #FAFAF8;
    --ink: #16161A;
    --yellow: #F4D03F;
    --yellow-dim: #C9AC2E;
    --violet: #8B6BF2;
    --violet-2: #6D4FD1;
    --gray: #8B8B95;
    --gray-line: rgba(255,255,255,0.09);
    --display: 'Chakra Petch', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    /* fallback so --accent/--accent-rgb never resolve empty if a card omits them */
    --accent: var(--violet);
    --accent-rgb: 139,107,242;

    /* per-service brand colors, reused across the services grid, detail-page heroes, and related-service chips */
    --acc-solar: #F4D03F;    --acc-solar-rgb: 244,208,63;
    --acc-charging: #FF7A45; --acc-charging-rgb: 255,122,69;
    --acc-cctv: #4EA1F7;     --acc-cctv-rgb: 78,161,247;
    --acc-interior: #C9A6FF; --acc-interior-rgb: 201,166,255;
    --acc-fire: #F0553F;     --acc-fire-rgb: 240,85,63;
    --acc-projects: #4FD1C5; --acc-projects-rgb: 79,209,197;
    --acc-iot: #8B6BF2;      --acc-iot-rgb: 139,107,242;
  }

  *{ margin:0; padding:0; box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    background:var(--black);
    color:#EDEDEF;
    font-family:var(--body);
    line-height:1.5;
    overflow-x:hidden;
  }
  a{ color:inherit; text-decoration:none; }
  img,svg{ display:block; max-width:100%; }
  ::selection{ background:var(--yellow); color:var(--black); }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
  }

  .wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }

  /* ===== NAV ===== */
  nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:rgba(10,10,12,0.82);
    backdrop-filter:blur(10px);
    border-bottom:1px solid var(--gray-line);
  }
  nav .wrap{
    height:74px; display:flex; align-items:center; justify-content:space-between;
  }
  .logo{
    font-family:var(--display); font-weight:700; font-size:22px; letter-spacing:0.5px;
    color:var(--yellow);
  }
  .logo span{ color:var(--violet); }
  .nav-links{ display:flex; gap:36px; font-size:14px; font-weight:500; color:#C9C9CF; }
  .nav-links a{ position:relative; transition:color .2s; }
  .nav-links a:hover, .nav-links a:focus-visible{ color:var(--yellow); }
  .nav-cta{
    background:var(--yellow); color:var(--black); font-family:var(--display);
    font-weight:600; font-size:13px; padding:11px 22px; border-radius:2px;
    letter-spacing:0.3px; transition:transform .15s, background .2s;
  }
  .nav-cta:hover{ background:#FFE066; transform:translateY(-1px); }
  .burger{ display:none; }

  /* ===== HERO ===== */
  header.hero{
    position:relative;
    min-height:100vh;
    display:flex; flex-direction:column; justify-content:center;
    padding:120px 0 80px;
    overflow:hidden;
  }
  #circuit-bg{
    position:absolute; inset:0; width:100%; height:100%;
    opacity:0.55;
  }
  .hero-content{ position:relative; z-index:2; }
  .eyebrow{
    font-family:var(--mono); font-size:13px; letter-spacing:2.5px; text-transform:uppercase;
    color:var(--violet); display:flex; align-items:center; gap:10px; margin-bottom:22px;
  }
  .eyebrow::before{
    content:''; width:8px; height:8px; border-radius:50%; background:var(--yellow);
    box-shadow:0 0 0 0 rgba(244,208,63,0.7); animation:pulse-dot 2s infinite;
  }
  @keyframes pulse-dot{
    0%{ box-shadow:0 0 0 0 rgba(244,208,63,0.55); }
    70%{ box-shadow:0 0 0 10px rgba(244,208,63,0); }
    100%{ box-shadow:0 0 0 0 rgba(244,208,63,0); }
  }
  h1{
    font-family:var(--display); font-weight:700;
    font-size:clamp(40px, 6.4vw, 82px);
    line-height:1.03; letter-spacing:-1px;
    max-width:900px; color:#F5F5F3;
  }
  h1 .rotator-wrap{
    display:inline-block; position:relative; color:var(--yellow);
    border-bottom:4px solid var(--violet);
    padding-bottom:4px;
  }
  .hero-sub{
    font-size:clamp(16px, 2vw, 19px); color:var(--gray); max-width:560px;
    margin-top:26px; font-weight:400;
  }
  .hero-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
  .btn-primary{
    background:var(--yellow); color:var(--black); font-family:var(--display);
    font-weight:600; font-size:14.5px; padding:16px 30px; border-radius:2px;
    letter-spacing:0.3px; transition:transform .15s, box-shadow .2s;
    box-shadow:0 0 0 rgba(244,208,63,0);
  }
  .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(244,208,63,0.25); }
  .btn-ghost{
    border:1px solid rgba(255,255,255,0.22); color:#EDEDEF; font-family:var(--display);
    font-weight:600; font-size:14.5px; padding:16px 30px; border-radius:2px;
    transition:border-color .2s, background .2s;
  }
  .btn-ghost:hover{ border-color:var(--violet); background:rgba(139,107,242,0.08); }

  .hero-stats{
    display:flex; gap:48px; margin-top:76px; flex-wrap:wrap;
    border-top:1px solid var(--gray-line); padding-top:28px;
  }
  .stat-num{ font-family:var(--display); font-size:30px; font-weight:700; color:#F5F5F3; }
  .stat-num span{ color:var(--yellow); }
  .stat-label{ font-family:var(--mono); font-size:12px; color:var(--gray); letter-spacing:0.5px; margin-top:4px; }

  /* ===== SECTION HEADERS ===== */
  .section{ padding:120px 0; position:relative; }
  .section-head{ max-width:640px; margin-bottom:64px; }
  .section-eyebrow{
    font-family:var(--mono); font-size:12.5px; letter-spacing:2px; text-transform:uppercase;
    color:var(--violet); margin-bottom:14px; display:block;
  }
  .section-title{
    font-family:var(--display); font-weight:700; font-size:clamp(30px,4vw,44px);
    letter-spacing:-0.5px; color:#F5F5F3;
  }
  .section-title em{ font-style:normal; color:var(--yellow); }
  .section-desc{ color:var(--gray); font-size:16px; margin-top:16px; max-width:520px; }

  /* ===== SERVICES GRID (button-style cards, per-service accent) ===== */
  #services{ background:var(--black-2); border-top:1px solid var(--gray-line); border-bottom:1px solid var(--gray-line); }
  .services-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
  }
  .svc-card{
    display:flex; flex-direction:column; justify-content:space-between;
    background:linear-gradient(155deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
    border:1px solid var(--gray-line); border-radius:14px;
    padding:26px 24px; position:relative; overflow:hidden; min-height:200px;
    transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }
  .svc-card:hover, .svc-card:focus-visible{
    transform:translateY(-5px);
    border-color:var(--accent);
    box-shadow:0 16px 36px rgba(var(--accent-rgb), 0.16);
  }
  .svc-card:focus-visible{ outline:none; }
  .svc-card .tag{
    position:absolute; top:22px; right:22px; font-family:var(--mono); font-size:10px;
    letter-spacing:1.2px; color:rgba(var(--accent-rgb), 0.75);
  }
  .svc-card .icon-wrap{
    width:50px; height:50px; border-radius:12px; flex-shrink:0;
    background:rgba(var(--accent-rgb), 0.14);
    display:flex; align-items:center; justify-content:center;
    margin-bottom:20px; transition:background .25s ease;
  }
  .svc-card:hover .icon-wrap{ background:rgba(var(--accent-rgb), 0.24); }
  .svc-card .icon{ width:25px; height:25px; color:var(--accent); }
  .svc-card h3{
    font-family:var(--display); font-weight:700; font-size:18.5px; letter-spacing:0.1px;
    color:#F3F3F3; margin-bottom:8px;
  }
  .svc-card p{ font-size:13.5px; color:var(--gray); line-height:1.5; }
  .svc-card .view-more{
    display:flex; align-items:center; gap:6px; margin-top:18px;
    font-family:var(--mono); font-size:11.5px; letter-spacing:0.5px; color:var(--accent);
  }
  .svc-card .view-more svg{ width:13px; height:13px; transition:transform .2s ease; }
  .svc-card:hover .view-more svg{ transform:translateX(4px); }

  /* ===== PROCESS TIMELINE ===== */
  .timeline{
    display:grid; grid-template-columns:repeat(5,1fr); gap:0; position:relative;
  }
  .timeline::before{
    content:''; position:absolute; top:19px; left:0; right:0; height:1px;
    background:var(--gray-line);
  }
  .tl-step{ position:relative; padding-right:20px; }
  .tl-num{
    width:40px; height:40px; border-radius:50%; border:1px solid var(--yellow);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--display); font-weight:700; font-size:14px; color:var(--yellow);
    background:var(--black); position:relative; z-index:2; margin-bottom:22px;
  }
  .tl-step h4{ font-family:var(--display); font-size:16px; font-weight:600; color:#F0F0F0; margin-bottom:8px; }
  .tl-step p{ font-size:13.5px; color:var(--gray); line-height:1.5; }

  /* ===== ABOUT / STRIP ===== */
  #about{ }
  .about-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:80px; align-items:center; }
  .about-copy p{ color:#C6C6CE; font-size:16px; margin-top:18px; line-height:1.7; }
  .pillars{ display:flex; flex-direction:column; gap:0; }
  .pillar{
    display:flex; gap:18px; padding:22px 0; border-bottom:1px solid var(--gray-line);
  }
  .pillar:first-child{ border-top:1px solid var(--gray-line); }
  .pillar .p-icon{ width:34px; height:34px; flex-shrink:0; color:var(--yellow); }
  .pillar h5{ font-family:var(--display); font-size:15.5px; font-weight:600; color:#F0F0F0; margin-bottom:4px; }
  .pillar span{ font-size:13.5px; color:var(--gray); }

  /* ===== CONTACT ===== */
  #contact{ background:var(--black-2); border-top:1px solid var(--gray-line); }
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
  .form-group{ margin-bottom:20px; }
  .form-group label{
    display:block; font-family:var(--mono); font-size:11.5px; letter-spacing:1px;
    text-transform:uppercase; color:var(--gray); margin-bottom:8px;
  }
  .form-group input, .form-group select, .form-group textarea{
    width:100%; background:transparent; border:1px solid var(--gray-line);
    border-bottom:1px solid rgba(255,255,255,0.3);
    color:#F0F0F0; font-family:var(--body); font-size:15px; padding:13px 4px;
    border-radius:2px; transition:border-color .2s;
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus{
    outline:none; border-color:var(--yellow);
  }
  .form-group textarea{ resize:vertical; min-height:100px; }
  select option{ background:var(--black); color:#EDEDEF; }
  .submit-btn{
    background:var(--yellow); color:var(--black); font-family:var(--display);
    font-weight:600; font-size:14.5px; padding:16px 34px; border:none; border-radius:2px;
    cursor:pointer; letter-spacing:0.3px; transition:transform .15s, background .2s;
    width:100%; margin-top:8px;
  }
  .submit-btn:hover{ background:#FFE066; transform:translateY(-1px); }
  .submit-btn:disabled{ opacity:0.6; cursor:not-allowed; transform:none; }
  .form-note{ font-size:12.5px; color:var(--gray); margin-top:14px; }
  .form-success{
    display:none; background:rgba(139,107,242,0.12); border:1px solid var(--violet);
    color:#D9CFFB; font-size:14px; padding:14px 16px; border-radius:4px; margin-bottom:20px;
    font-family:var(--mono);
  }

  .contact-info h3{ font-family:var(--display); font-size:22px; font-weight:700; color:#F5F5F3; margin-bottom:18px; }
  .info-row{ display:flex; gap:16px; padding:16px 0; border-top:1px solid var(--gray-line); }
  .info-row:last-of-type{ border-bottom:1px solid var(--gray-line); }
  .info-row .i-icon{ width:22px; height:22px; color:var(--yellow); flex-shrink:0; margin-top:2px; }
  .info-row h6{ font-size:14px; font-weight:600; color:#F0F0F0; margin-bottom:3px; }
  .info-row span{ font-size:13.5px; color:var(--gray); }
  .info-row span a{ color:var(--gray); border-bottom:1px solid var(--gray-line); transition:color .2s, border-color .2s; }
  .info-row span a:hover, .info-row span a:focus-visible{ color:var(--yellow); border-color:var(--yellow); }
  .service-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; }
  .service-tags span{
    font-family:var(--mono); font-size:11.5px; border:1px solid var(--gray-line);
    padding:6px 12px; border-radius:20px; color:var(--gray);
  }

  /* ===== FOOTER ===== */
  footer{ padding:40px 0; border-top:1px solid var(--gray-line); }
  .footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
  .footer-row .logo{ font-size:17px; }
  .footer-links{ display:flex; gap:26px; font-size:13px; color:var(--gray); }
  .footer-copy{ font-size:12.5px; color:#5c5c63; }

  /* ===== FLOATING WHATSAPP + CHAT ASSISTANT ===== */
  .fab{
    position:fixed; right:24px; width:56px; height:56px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 24px rgba(0,0,0,0.35); z-index:999; cursor:pointer; border:none;
    transition:transform .2s ease; text-decoration:none;
  }
  .fab:hover{ transform:translateY(-3px); }
  .fab-whatsapp{ bottom:28px; background:#25D366; }
  .fab-whatsapp svg{ width:28px; height:28px; }
  .fab-chat{ bottom:100px; background:var(--yellow); color:var(--black); }
  .fab-chat svg{ width:25px; height:25px; }
  .fab-badge{
    position:absolute; top:1px; right:1px; width:13px; height:13px; border-radius:50%;
    background:var(--violet); border:2px solid var(--black);
    animation:pulse-dot 2s infinite;
  }

  .chat-panel{
    position:fixed; right:24px; bottom:100px; width:368px; max-width:calc(100vw - 32px);
    height:min(560px, 72vh); background:var(--black-2); border:1px solid var(--gray-line);
    border-radius:16px; box-shadow:0 24px 64px rgba(0,0,0,0.5);
    display:flex; flex-direction:column; overflow:hidden; z-index:998;
    transform:translateY(18px) scale(0.96); opacity:0; pointer-events:none;
    transition:transform .25s ease, opacity .2s ease;
  }
  .chat-panel.open{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }

  .chat-header{
    background:linear-gradient(135deg, var(--violet-2), var(--violet));
    padding:16px 18px; display:flex; align-items:center; justify-content:space-between; flex-shrink:0;
  }
  .chat-header-info{ display:flex; align-items:center; gap:10px; }
  .chat-dot{ width:8px; height:8px; border-radius:50%; background:#4ADE80; box-shadow:0 0 0 3px rgba(74,222,128,0.22); flex-shrink:0; }
  .chat-header h4{ font-family:var(--display); font-size:14.5px; font-weight:600; color:#fff; }
  .chat-header p{ font-family:var(--body); font-size:11.5px; color:rgba(255,255,255,0.78); margin-top:1px; }
  .chat-close{ background:none; border:none; color:#fff; font-size:22px; line-height:1; cursor:pointer; opacity:.85; padding:4px; }
  .chat-close:hover{ opacity:1; }

  .chat-messages{
    flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--black);
  }
  .msg{ max-width:84%; padding:10px 13px; border-radius:13px; font-size:13.5px; line-height:1.5; white-space:pre-line; }
  .msg.bot{ background:#1C1C21; color:#EDEDEF; align-self:flex-start; border-bottom-left-radius:4px; }
  .msg.user{ background:var(--violet); color:#fff; align-self:flex-end; border-bottom-right-radius:4px; }
  .msg.typing{ display:flex; gap:4px; align-items:center; padding:13px 15px; }
  .msg.typing span{ width:6px; height:6px; border-radius:50%; background:#9a9aa3; opacity:.5; animation:typing-bounce 1s infinite; }
  .msg.typing span:nth-child(2){ animation-delay:.15s; }
  .msg.typing span:nth-child(3){ animation-delay:.3s; }
  @keyframes typing-bounce{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

  .chat-quick-replies{ display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 14px; background:var(--black); flex-shrink:0; }
  .chip{
    font-family:var(--mono); font-size:11.5px; border:1px solid var(--gray-line); background:transparent;
    color:#D8D8DE; padding:7px 12px; border-radius:20px; cursor:pointer;
    transition:border-color .2s, color .2s;
  }
  .chip:hover, .chip:focus-visible{ border-color:var(--yellow); color:var(--yellow); }

  .chat-input-row{
    display:flex; border-top:1px solid var(--gray-line); background:var(--black-2); padding:10px; gap:8px; flex-shrink:0;
  }
  .chat-input-row input{
    flex:1; background:transparent; border:1px solid var(--gray-line); border-radius:20px;
    padding:10px 14px; color:#EDEDEF; font-family:var(--body); font-size:13.5px;
  }
  .chat-input-row input:focus{ outline:none; border-color:var(--yellow); }
  .chat-input-row button{
    width:38px; height:38px; border-radius:50%; background:var(--yellow); border:none;
    color:var(--black); font-size:16px; cursor:pointer; flex-shrink:0; transition:background .2s;
  }
  .chat-input-row button:hover{ background:#FFE066; }

  /* ===== SERVICE DETAIL PAGES ===== */
  .page-hero{ padding:150px 0 64px; position:relative; }
  .back-link{
    display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:12.5px;
    color:var(--gray); margin-bottom:36px; transition:color .2s;
  }
  .back-link svg{ width:13px; height:13px; }
  .back-link:hover, .back-link:focus-visible{ color:var(--yellow); }
  .page-hero-icon{
    width:64px; height:64px; border-radius:16px; background:rgba(var(--accent-rgb), 0.14);
    display:flex; align-items:center; justify-content:center; margin-bottom:26px;
  }
  .page-hero-icon svg{ width:32px; height:32px; color:var(--accent); }
  .page-title{
    font-family:var(--display); font-weight:700; font-size:clamp(34px, 5vw, 56px);
    letter-spacing:-1px; color:#F5F5F3; margin-bottom:16px; max-width:760px;
  }
  .page-lead{ font-size:clamp(15.5px, 1.6vw, 17.5px); color:var(--gray); max-width:600px; line-height:1.65; margin-bottom:36px; }

  .include-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:30px 44px; }
  .include-item{ display:flex; gap:15px; }
  .include-item .check{
    width:24px; height:24px; border-radius:50%; background:rgba(var(--accent-rgb), 0.16);
    color:var(--accent); flex-shrink:0; display:flex; align-items:center; justify-content:center; margin-top:1px;
  }
  .include-item .check svg{ width:12px; height:12px; }
  .include-item h4{ font-family:var(--display); font-size:15px; font-weight:600; color:#F0F0F0; margin-bottom:5px; }
  .include-item p{ font-size:13.5px; color:var(--gray); line-height:1.55; }

  .faq-list{ display:flex; flex-direction:column; max-width:780px; }
  .faq-item{ border-bottom:1px solid var(--gray-line); padding:22px 0; }
  .faq-item:first-child{ border-top:1px solid var(--gray-line); }
  .faq-item summary{
    cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;
    gap:20px; font-family:var(--display); font-weight:600; font-size:15.5px; color:#F0F0F0;
  }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item .faq-plus{
    font-family:var(--mono); font-size:19px; color:var(--accent); flex-shrink:0;
    transition:transform .2s ease; line-height:1;
  }
  .faq-item[open] .faq-plus{ transform:rotate(45deg); }
  .faq-item p{ margin-top:14px; color:var(--gray); font-size:14.5px; line-height:1.65; max-width:660px; }

  .related-row{ display:flex; gap:16px; flex-wrap:wrap; }
  .related-chip{
    display:flex; align-items:center; gap:12px; padding:15px 22px; border:1px solid var(--gray-line);
    border-radius:11px; transition:border-color .2s ease, transform .2s ease;
  }
  .related-chip:hover, .related-chip:focus-visible{ border-color:var(--accent); transform:translateY(-3px); }
  .related-chip .icon-wrap{
    width:36px; height:36px; border-radius:9px; background:rgba(var(--accent-rgb), 0.16);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .related-chip svg{ width:18px; height:18px; color:var(--accent); }
  .related-chip span{ font-family:var(--display); font-weight:600; font-size:14px; color:#F0F0F0; }

  .cta-section{ text-align:center; }
  .cta-inner{ display:flex; flex-direction:column; align-items:center; }
  .cta-inner h2{
    font-family:var(--display); font-weight:700; font-size:clamp(26px, 3.6vw, 38px);
    color:#F5F5F3; margin-bottom:12px; letter-spacing:-0.5px;
  }
  .cta-inner p{ color:var(--gray); margin-bottom:30px; font-size:15.5px; }
  .cta-inner .hero-actions{ margin-top:0; }

  /* reveal on scroll */
  .reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }

  @media (max-width: 980px){
    .nav-links{ display:none; }
    .about-grid, .contact-grid{ grid-template-columns:1fr; gap:44px; }
    .services-grid{ grid-template-columns:repeat(2,1fr); }
    .timeline{ grid-template-columns:repeat(2,1fr); row-gap:36px; }
    .timeline::before{ display:none; }
    .hero-stats{ gap:32px; }
    .include-grid{ grid-template-columns:1fr; }
  }
  @media (max-width: 560px){
    .wrap{ padding:0 20px; }
    .services-grid{ grid-template-columns:1fr; }
    .timeline{ grid-template-columns:1fr; }
    .hero-actions{ flex-direction:column; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost{ text-align:center; }
    .fab{ right:16px; }
    .fab-whatsapp{ bottom:20px; }
    .fab-chat{ bottom:84px; }
    .chat-panel{ right:12px; bottom:84px; width:calc(100vw - 24px); height:min(520px, 74vh); }
    .page-hero{ padding:130px 0 48px; }
  }
