/* ============================================================
   ARUSIQ — Smart AC Intelligence Platform
   Design tokens, layout & components
   ============================================================ */

:root {
  --bg-hero: #0B1933;
  --bg-navy-deep: #081226;
  --bg-card: #FFFFFF;
  --bg-soft: #F4F7FB;
  --primary: #022465;
  --primary-hover: #08308A;
  --primary-soft: #EAF0FA;
  --accent: #DB1217;
  --accent-hover: #B50E12;
  --savings: #27AE60;
  --savings-dark: #1E8449;
  --savings-soft: #E6F7EE;
  --text-light: #FFFFFF;
  --text-muted-dark: #A9B7CC;
  --text-dark: #101828;
  --text-muted: #5A6478;
  --line-dark: #334457;
  --border: #E2E8F2;
  --navy-2: #12284A;
  --navy-3: #0E1F3E;
  --navy-4: #1B3052;
  --navy-line: #2B4A78;
  --glow: #7FE0B2;

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1312px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-card: 0 16px 48px rgba(11, 25, 51, 0.12);
  --shadow-cta: 0 6px 18px rgba(2, 36, 101, 0.5);
  --tr: 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text-dark);
  background: var(--bg-card);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:is(a, button, input[type="range"], .lang-switch a):focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: 0;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline { background: transparent; color: var(--text-light); border: 1px solid #5A6B85; }
.btn-outline:hover { border-color: #C7D2E3; background: rgba(255, 255, 255, 0.06); }

.btn-sm { padding: 12px 22px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-hero);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow var(--tr);
}
.nav-scrolled { box-shadow: 0 12px 30px rgba(2, 8, 20, 0.45); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
  padding-inline: 64px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary);
  display: grid; place-items: center;
}
.brand-text {
  font-family: var(--font-head);
  font-weight: 700; font-size: 24px; letter-spacing: 0.5px; color: #fff;
}
.brand-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  color: var(--text-muted-dark);
}

.menu { display: flex; align-items: center; gap: 36px; }
.menu a {
  position: relative;
  font-size: 15px; font-weight: 500; color: var(--text-light);
  transition: color var(--tr);
}
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 1px;
  background: var(--glow); transition: width var(--tr);
}
.menu a:hover { color: var(--glow); }
.menu a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--line-dark);
  border-radius: 99px; color: #C7D2E3; font-size: 13px; font-weight: 600;
}
.lang-active { color: #fff; }
.lang-idle { color: var(--text-muted-dark); }
.lang-switch a:hover { color: #fff; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--bg-hero);
  color: #fff;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 860px; height: 480px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(22, 64, 126, 0.55), transparent 72%);
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 26px; text-align: center;
}

.badges { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 99px;
  background: #10233F; border: 1px solid var(--navy-line);
  color: var(--text-muted-dark); font-size: 13px; font-weight: 500;
}
.badge svg, .badge-dark svg { color: var(--glow); }

.hero-title {
  max-width: 980px;
  font-size: 56px; line-height: 1.1; font-weight: 700;
  color: #fff;
}
.text-savings { color: var(--glow); }

.hero-sub {
  max-width: 720px;
  font-size: 18px; line-height: 1.5;
  color: #C7D4E8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 14px; color: #8FA3BF; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-top: 38px;
  padding: 24px 64px;
  border: 1px solid var(--navy-line); border-radius: 16px;
  background: #0E1F3E;
  flex-wrap: wrap;
}
.stat { display: grid; gap: 6px; padding: 0 36px; justify-items: center; }
.stat-ico { color: var(--glow); display: grid; place-items: center; }
.stat-value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; }
.stat-label { font-size: 13px; color: #8FA3BF; }
.stat-div { width: 1px; height: 44px; background: var(--navy-line); }

/* ------------------------------------------------------------
   Section headers
   ------------------------------------------------------------ */
.section-head {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; margin-bottom: 56px;
}
.section-head h2 {
  font-size: 48px; line-height: 1.1; font-weight: 700; max-width: 860px;
}
.section-head p { font-size: 17px; line-height: 1.5; color: var(--text-muted); max-width: 700px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
}
.eyeball { background: var(--savings-soft); color: var(--savings-dark); }
.eye-blue { background: var(--primary-soft); color: var(--primary); }
.badge-dark { background: #10233F; border: 1px solid var(--navy-line); color: var(--text-muted-dark); font-weight: 500; }

/* ------------------------------------------------------------
   Simulator
   ------------------------------------------------------------ */
.simulator {
  background: var(--bg-soft);
  padding: 96px 0 100px;
  border-top: 1px solid var(--border);
}

.sim-card {
  display: flex; gap: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 720px;
}

.sim-controls {
  flex: 0 0 600px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 40px 40px 36px;
  background: #fff;
}
.panel-title { font-size: 22px; font-weight: 700; }
.panel-sub { font-size: 14px; line-height: 1.5; color: var(--text-muted); margin-bottom: 8px; }

.field { padding: 20px 0 8px; }
.field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.field-head label { font-size: 15px; font-weight: 600; }
.chip {
  padding: 6px 12px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  min-width: 74px; text-align: center;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 24px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: linear-gradient(
    to right,
    var(--primary) 0%, var(--primary) var(--fill, 0%), #E2E8F2 var(--fill, 0%), #E2E8F2 100%
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  margin-top: -8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 1px 4px rgba(2, 36, 101, 0.35);
  transition: transform var(--tr), box-shadow var(--tr);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); border-color: var(--primary-hover); }
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px; background: #E2E8F2;
}
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary); }
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  transition: transform var(--tr);
}
input[type="range"]:hover::-moz-range-thumb { transform: scale(1.15); }

.scale { display: flex; justify-content: space-between; font-size: 12px; color: #8A93A6; }
.field-note { font-size: 12px; line-height: 1.5; color: #8A93A6; margin-top: 8px; }

/* Results */
.sim-results {
  flex: 1;
  display: flex; flex-direction: column; gap: 24px;
  padding: 36px 40px;
  background: var(--bg-hero); color: #fff;
}
.results-head { display: flex; justify-content: space-between; align-items: center; }
.results-title { font-size: 24px; font-weight: 700; color: #fff; }
.results-sub { font-size: 13px; color: var(--text-muted-dark); }

.live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px;
  background: var(--navy-2); border: 1px solid var(--navy-line);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--glow);
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--savings); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.savings-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px; border-radius: var(--radius-md);
  background: var(--savings);
}
.savings-label { font-size: 14px; font-weight: 600; color: #0E3D22; }
.savings-value { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: #fff; line-height: 1.05; }
.savings-note { font-size: 13px; color: #BFF0D3; }
.savings-note strong { font-weight: 700; }

.mid-row { display: flex; gap: 16px; }
.metric-card {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--navy-3); border: 1px solid var(--navy-line);
}
.metric-label { font-size: 13px; font-weight: 600; color: var(--text-muted-dark); }
.metric-value-row { display: flex; align-items: flex-end; gap: 8px; }
.metric-value { font-family: var(--font-head); font-size: 32px; font-weight: 800; color: #fff; }
.metric-hint { font-size: 12px; color: #8FA3BF; padding-bottom: 6px; }
.metric-unit { font-size: 12px; line-height: 1.4; color: #8FA3BF; max-width: 92px; }
.scope {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 5px 10px; border-radius: 99px;
  background: #eaf0fa; color: var(--primary);
  font-size: 11px; font-weight: 700;
}

.compare { display: flex; flex-direction: column; gap: 16px; }
.compare h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; }
.bar-row { display: flex; align-items: center; gap: 16px; }
.bar-label { display: flex; flex-direction: column; gap: 3px; width: 190px; flex-shrink: 0; }
.bar-name { font-size: 13px; font-weight: 600; color: var(--text-muted-dark); }
.bar-amount { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff; }
.bar-track { flex: 1; height: 8px; border-radius: 4px; background: var(--navy-4); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s ease; }
.bar-fill-base { background: #4A6FA5; }
.bar-fill-save { background: var(--savings); }
.bar-pct {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
  background: var(--navy-2); color: #C7D4E8; min-width: 48px; text-align: center;
}

.capex-note {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px;
  background: var(--navy-2); border: 1px solid var(--navy-line);
  font-size: 13px; line-height: 1.5; color: #D7E2F2;
}
.capex-note svg { color: var(--glow); flex-shrink: 0; }
.capex-note strong { font-weight: 700; color: #fff; }

/* ------------------------------------------------------------
   Features
   ------------------------------------------------------------ */
.features { padding: 96px 0; background: #fff; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 24px; border-radius: 20px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(11, 25, 51, 0.06);
  transition: transform var(--tr), box-shadow var(--tr);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11, 25, 51, 0.12); }

.icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.feature-card:nth-child(2) .icon-wrap,
.feature-card:nth-child(4) .icon-wrap { background: var(--savings-soft); color: var(--savings-dark); }

.feature-card h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.feature-card > p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

.vs { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.vs > div {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.4;
}
.vs-ok { background: var(--savings-soft); color: #135B33; font-weight: 600; }
.vs-ok svg { color: var(--savings-dark); flex-shrink: 0; }
.vs-bad { background: #F8FAFD; border: 1px solid var(--border); color: #7A849B; }
.vs-bad svg { color: var(--accent); flex-shrink: 0; }

/* ------------------------------------------------------------
   Showcase / Tech snippet
   ------------------------------------------------------------ */
.showcase { background: var(--bg-hero); padding: 96px 0; color: #fff; }
.showcase-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 80px;
}
.showcase-text { width: 540px; min-width: 540px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.showcase-text h2 { font-size: 44px; line-height: 1.12; font-weight: 700; color: #fff; }
.showcase-desc { font-size: 16px; line-height: 1.55; color: var(--text-muted-dark); }

.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullets li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; color: #D7E2F2; }
.bullets svg { color: var(--glow); flex-shrink: 0; }

/* Module figure */
.module-figure {
  width: 560px; height: 440px; flex-shrink: 0;
  border-radius: 28px; background: var(--navy-3);
  border: 1px solid var(--navy-line);
  overflow: hidden; position: relative;
}
.fig-caption { position: absolute; top: 22px; left: 36px; font-size: 12px; color: #8FA3BF; }

.diagram { position: relative; width: 100%; height: 100%; }

.ac-body {
  position: absolute; top: 96px; left: 80px;
  width: 400px; height: 56px; border-radius: 12px;
  background: var(--navy-4); border: 1px solid #3A5C9E;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  padding: 0 20px;
}
.grille { display: block; height: 4px; border-radius: 2px; background: var(--bg-hero); }

.cutout {
  position: absolute; top: 120px; left: 196px;
  width: 168px; height: 80px; border-radius: 10px;
  background: var(--bg-hero); border: 1.5px dashed #4A6FA5;
}
.iot-module {
  position: absolute; top: 130px; left: 206px;
  width: 148px; height: 60px; border-radius: 10px;
  background: var(--accent); border: 1.5px solid #FF5C44;
}
.iot-module .mod-chip {
  position: absolute; top: 10px; left: 14px;
  width: 52px; height: 28px; border-radius: 4px; background: #FDE8E6;
}
.iot-module .pin { position: absolute; left: 20px; width: 6px; height: 4px; background: #FDE8E6; width: 6px; }
.iot-module .p1 { top: 6px; } .iot-module .p2 { top: 6px; left: 30px; } .iot-module .p3 { left: 40px; top: 6px; }
.iot-module .p4 { top: 50px; } .iot-module .p5 { top: 50px; left: 30px; } .iot-module .p6 { top: 50px; left: 40px; }
.iot-module .led { position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; }
.iot-module .led1 { left: 78px; background: var(--savings); }
.iot-module .led2 { left: 94px; background: var(--glow); }
.iot-module .antenna { position: absolute; top: 28px; left: 80px; width: 6px; height: 26px; border-radius: 3px; background: #FDE8E6; }
.iot-module .pad { position: absolute; top: 44px; width: 16px; height: 8px; border-radius: 2px; background: #FDE8E6; }
.iot-module .pa { left: 108px; } .iot-module .pb { left: 128px; }
.iot-module .mod-tag {
  position: absolute; top: 66px; left: 0; width: 148px; text-align: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: #FFC9C2;
}

.wifi-ico {
  position: absolute; top: 104px; left: 382px; color: var(--glow);
  display: grid; place-items: center;
}

.callout {
  position: absolute; top: 236px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--navy-2); border: 1px solid #3A5C9E;
  font-size: 12px; font-weight: 600; color: #D7E2F2;
}
.callout svg { color: var(--glow); flex-shrink: 0; }
.c-a { left: 40px; }
.c-b { left: 296px; }

.mod-spec {
  position: absolute; top: 340px; left: 0; width: 100%; text-align: center;
  font-size: 13px; font-weight: 600; color: #8FA3BF;
}
.fig-bar {
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 40px; line-height: 40px; text-align: center;
  background: var(--bg-navy-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #5A6478;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer { background: var(--bg-navy-deep); border-top: 1px solid var(--line-dark); padding: 48px 0 40px; }
.footer .container { display: flex; flex-direction: column; gap: 28px; padding-inline: 64px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--text-muted-dark); transition: color var(--tr); }
.footer-links a:hover { color: #fff; }
.footer-div { height: 1px; background: var(--navy-4); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: #6B7A93; }
.socials { display: flex; gap: 14px; color: #8FA3BF; }
.socials svg { cursor: pointer; transition: color var(--tr), transform var(--tr); }
.socials svg:hover { color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------
   Motion & scroll reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow var(--tr);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.feature-card.reveal.is-visible {
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform var(--tr), box-shadow var(--tr);
}
.feature-card.reveal.is-visible:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1280px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-card { flex-direction: column; }
  .sim-controls { flex: initial; width: 100%; }
  .showcase-inner { flex-direction: column; gap: 56px; }
  .showcase-text { width: 100%; min-width: 0; }
  .module-figure { width: 100%; }
  .container { padding-inline: 32px; }
  .nav-inner { padding-inline: 32px; }
  .footer .container { padding-inline: 32px; }
}

@media (max-width: 900px) {
  .menu { display: none; }
  .brand-tag { display: none; }
  .hero-title { font-size: 40px; }
  .section-head h2 { font-size: 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { padding: 20px 24px; gap: 12px; }
  .stat { padding: 0 16px; }
  .stat-div { display: none; }
  .mid-row { flex-direction: column; }
  .bar-label { width: 150px; }
  .capsule { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .nav-actions .btn { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-title { font-size: 32px; }
  .sim-results { padding: 28px 20px; }
  .savings-value { font-size: 30px; }
  .bar-row { flex-wrap: wrap; }
}