/* SEMS brand foundation — shared by the public landing (/) and login (/login) pages.
   Values mirror the Penpot "SEMS Landing" file (Landing/Login – Desktop & Mobile). */

:root {
  --ink: #030E1D;
  --ink2: #0A1A2F;
  --ink3: #11253F;
  --float: #0F2238;
  --mint: #2FBF9B;
  --sky: #4C6FFF;
  --amber: #FFB547;
  --coral: #FF6B6B;
  --cyan: #22C3E6;
  --violet: #9B7BFF;
  --gold: #C99A68;
  --gold2: #E4C59D;
  --mute: #8A9BB4;
  --sub: #5B6B82;
  --light: #F3F6FA;
  --line: #E3EAF2;
  --wa: #25D366;

  --grad-gold: linear-gradient(90deg, #B5875A 0%, #D8B588 60%, #E8CDA6 100%);
  --grad-gold-text: linear-gradient(90deg, #B5875A 0%, #E4C59D 55%, #F3E3CB 100%);
  --grad-card: linear-gradient(180deg, rgba(17, 37, 63, .92), rgba(10, 26, 47, .88));

  --f-head: "Gabarito", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow-card: 0 40px 80px -20px rgba(0, 0, 0, .6);
  --shadow-float: 0 20px 40px -10px rgba(0, 0, 0, .55);
  --shadow-gold: 0 10px 30px -6px rgba(201, 154, 104, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
/* No blue tap flash on Android/iOS; pressed states come from our own :active styles. */
html, a, button, input, label, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.ic {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; position: relative; }

/* ---------- logo lockup (wordmark | SMART ENERGY / MANAGEMENT SYSTEM) ---------- */
.logo { display: inline-flex; align-items: center; gap: 15px; }
.logo-word { height: 34px; width: auto; }
.logo-divider { width: 1px; height: 37px; background: rgba(255, 255, 255, .18); }
.logo-tag { display: flex; flex-direction: column; gap: 2px; font: 700 10.88px/1.2 var(--f-body); letter-spacing: 1.6px; color: #fff; white-space: nowrap; }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 15px/1 var(--f-body); white-space: nowrap; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}
.btn .ic { stroke-width: 2.2; }
.btn-gold { background: var(--grad-gold); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 34px -6px rgba(201, 154, 104, .6); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

/* ---------- small bits ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot-mint { background: var(--mint); box-shadow: 0 0 0 4px rgba(47, 191, 155, .25); }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 34px; padding: 0 16px 0 14px; border-radius: 17px;
  font: 600 12px/1 var(--f-body); letter-spacing: 1.2px; white-space: nowrap;
}
.pill-gold { color: var(--gold2); background: rgba(201, 154, 104, .1); box-shadow: inset 0 0 0 1px rgba(201, 154, 104, .4); }
.text-gold { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-white-gold { background: linear-gradient(90deg, #fff, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- atmosphere ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: calc(50% - 720px) 0;
}
/* Glow coordinates are design-board coordinates (1440 wide), re-centred on wide screens. */
.glow {
  position: absolute; pointer-events: none; border-radius: 50%;
  left: calc(50% - 720px + var(--x)); top: var(--y); width: var(--w); height: var(--h);
  /* No filter: blur() here — a large blurred layer is re-rasterised on every frame while it
     drifts or the page scrolls. A soft multi-stop gradient looks the same and costs nothing. */
  background: radial-gradient(closest-side, rgb(var(--rgb) / var(--o, .22)) 0%, rgb(var(--rgb) / calc(var(--o, .22) * .7)) 25%,
              rgb(var(--rgb) / calc(var(--o, .22) * .35)) 55%, rgb(var(--rgb) / calc(var(--o, .22) * .1)) 80%, transparent 100%);
  will-change: transform;
}
.glow-gold { --rgb: 201 154 104; --o: .2; }
.glow-sky { --rgb: 76 111 255; --o: .28; }
.glow-soft { --o: .12; }
.glow-mint { --rgb: 47 191 155; --o: .12; }
.glow-amber { --rgb: 255 181 71; --o: .1; }

/* ---------- dark surfaces ---------- */
.card-dark {
  background: var(--grad-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), var(--shadow-card);
}
.tile-dark { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.chip-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 12px;
  background: rgba(47, 191, 155, .14); color: var(--mint); font: 700 10px/1 var(--f-body); letter-spacing: 1.2px;
}
.chip-live .dot { width: 6px; height: 6px; box-shadow: none; }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(15, 34, 56, .96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow-float);
}
.float b { display: block; font: 700 13px/1.3 var(--f-body); }
.float small { display: block; font: 500 11px/1.4 var(--f-body); color: var(--mute); margin-top: 2px; white-space: nowrap; }
.float-ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font-size: 20px;
}
.float-ic.wa { background: var(--wa); color: #fff; }

/* Motion is intentionally not switched off for prefers-reduced-motion: the owner wants the
   landing/login animations shown everywhere (their own Mac runs with Reduce Motion on). */
