/* ==========================================================================
   IOT Solution & Technology — Design System 2026
   Brand red  #D02828  (sampled from the official logo)
   Tech cyan  #18C6E8  (from Company Profile 2026 deck)
   Author: IOT Solution & Technology Co., Ltd.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* brand */
  --brand:        #D02828;
  --brand-600:    #B21F1F;
  --brand-400:    #E84A4A;
  --brand-300:    #FF7A7A;
  --cyan:         #18C6E8;
  --cyan-600:     #0FA7C9;
  --cyan-300:     #7EE7FF;

  /* semantic */
  --ok:           #22C55E;
  --warn:         #F5A524;
  --crit:         #EF4444;

  /* dark surface scale (default theme) */
  --bg:           #060B14;
  --bg-2:         #08101E;
  --surface:      #0D1626;
  --surface-2:    #121E33;
  --surface-3:    #16263F;
  --line:         #1E3350;
  --line-soft:    #16273E;

  /* text */
  --text:         #E9F1FB;
  --text-2:       #A9BFD9;
  --muted:        #7C93AF;
  --faint:        #566E8B;

  /* effects */
  --glass:        rgba(13, 22, 38, .72);
  --grid-line:    rgba(24, 198, 232, .06);
  --ring:         0 0 0 1px var(--line);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.28);
  --shadow:       0 18px 40px -22px rgba(0,0,0,.85);
  --shadow-lg:    0 40px 80px -40px rgba(0,0,0,.9);
  --glow-cyan:    0 0 0 1px rgba(24,198,232,.28), 0 22px 60px -28px rgba(24,198,232,.5);
  --glow-red:     0 0 0 1px rgba(208,40,40,.32), 0 22px 60px -28px rgba(208,40,40,.55);

  /* geometry */
  --r-sm: 8px;  --r: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;
  --pad:  clamp(20px, 5vw, 32px);
  --maxw: 1200px;
  --nav-h: 74px;

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .8, .28, 1);
  color-scheme: dark;
}

/* light theme — only tokens are redefined, never component rules */
html[data-theme="light"] {
  --bg:        #F4F7FB;
  --bg-2:      #EAF0F8;
  --surface:   #FFFFFF;
  --surface-2: #F2F6FB;
  --surface-3: #E7EEF7;
  --line:      #D5E0EE;
  --line-soft: #E3EAF4;

  --text:      #0A1524;
  --text-2:    #3C5470;
  --muted:     #5A7290;
  --faint:     #8299B4;

  --brand-300: #C61F1F;
  --cyan:      #0C90AE;
  --cyan-300:  #0B7C96;

  --glass:     rgba(255, 255, 255, .82);
  --grid-line: rgba(10, 21, 36, .05);
  --shadow-sm: 0 2px 8px rgba(16, 38, 66, .08);
  --shadow:    0 18px 40px -24px rgba(16, 38, 66, .30);
  --shadow-lg: 0 40px 80px -44px rgba(16, 38, 66, .40);
  --glow-cyan: 0 0 0 1px rgba(12,144,174,.22), 0 22px 50px -30px rgba(12,144,174,.45);
  --glow-red:  0 0 0 1px rgba(208,40,40,.20), 0 22px 50px -30px rgba(208,40,40,.35);
  color-scheme: light;
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; letter-spacing: -.022em; text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap-wide { max-width: 1380px; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.center  { text-align: center; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:34px}.mt-5{margin-top:48px}

/* ---------- 4. Typography helpers ---------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--cyan); padding: 7px 15px 7px 11px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0 rgba(24,198,232,.55); animation: pulse 2.4s infinite;
}
.eyebrow--red { color: var(--brand-300); }
.eyebrow--red::before { background: var(--brand); animation-name: pulse-red; }
@keyframes pulse     { 70% { box-shadow: 0 0 0 9px rgba(24,198,232,0); } 100% { box-shadow: 0 0 0 0 rgba(24,198,232,0); } }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 9px rgba(208,40,40,0);  } 100% { box-shadow: 0 0 0 0 rgba(208,40,40,0);  } }

.h-display { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 900; letter-spacing: -.035em; }
.h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.6rem, 3.3vw, 2.4rem); }
.h3 { font-size: clamp(1.14rem, 1.8vw, 1.4rem); }
.h4 { font-size: 1.02rem; font-weight: 700; }

.lead   { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--text-2); max-width: 62ch; }
.muted  { color: var(--muted); }
.small  { font-size: .875rem; }
.tiny   { font-size: .78rem; }
.mono   { font-family: var(--mono); font-size: .8rem; letter-spacing: -.01em; }
.grad   { background: linear-gradient(96deg, var(--cyan) 0%, var(--cyan-300) 38%, var(--text) 92%);
          -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-red { background: linear-gradient(96deg, var(--brand-400), var(--brand-300) 55%, var(--text));
          -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head.center { margin-inline: auto; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-weight: 650; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { --btn-bg: linear-gradient(180deg, var(--brand-400), var(--brand)); --btn-fg: #fff; --btn-bd: transparent; }
.btn--primary:hover { box-shadow: var(--glow-red); }
.btn--cyan    { --btn-bg: linear-gradient(180deg, var(--cyan), var(--cyan-600)); --btn-fg: #04141B; --btn-bd: transparent; }
.btn--cyan:hover { box-shadow: var(--glow-cyan); }
.btn--ghost   { --btn-bg: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--sm { padding: 9px 16px; font-size: .86rem; }
.btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; color: var(--cyan);
  font-weight: 650; font-size: .92rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Cards ----------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px);
  transition: transform .38s var(--ease), border-color .38s, box-shadow .38s, background .38s;
  overflow: hidden;
}
.card--hover:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.card--hover:hover .card-ico { border-color: var(--cyan); color: var(--cyan); }
.card--flat { background: var(--surface-2); }
.card--glass { background: var(--glass); backdrop-filter: blur(12px); }
.card--feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .38s;
}
.card--feature:hover::before { opacity: 1; }

.card-ico {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border-radius: 13px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
  color: var(--cyan); margin-bottom: 16px;
  transition: color .3s, border-color .3s;
}
.card-ico svg { width: 22px; height: 22px; }
.card-ico--red { color: var(--brand-300); }
.card h3 + p, .card h4 + p { margin-top: 8px; color: var(--muted); font-size: .93rem; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 650; letter-spacing: .04em;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2);
}
.tag--cyan { color: var(--cyan); border-color: rgba(24,198,232,.35); }
.tag--red  { color: var(--brand-300); border-color: rgba(208,40,40,.4); }
.tag--ok   { color: var(--ok); border-color: rgba(34,197,94,.35); }

/* checklist */
.checks { list-style: none; padding: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-size: .93rem; color: var(--text-2); }
.checks li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: rgba(34,197,94,.13);
  border: 1px solid rgba(34,197,94,.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 11px;
}

/* ---------- 7. Header / nav ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 34px -26px rgba(0,0,0,.9); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-weight: 850; font-size: .97rem; letter-spacing: -.02em; line-height: 1.1; }
.brand-name span { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint); margin-top: 2px; }
@media (max-width: 420px) { .brand-name { display: none; } }

.nav-links { display: flex; align-items: center; gap: 3px; margin-inline: auto; }
.nav-links > li { position: relative; list-style: none; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-pill); font-size: .91rem; font-weight: 600;
  color: var(--text-2); transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 20px; height: 2px; border-radius: 2px; background: var(--brand);
}
.nav-link .chev { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 316px; padding: 9px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start;
  padding: 11px 12px; border-radius: var(--r); transition: background .2s; }
.submenu a:hover { background: var(--surface-2); }
.submenu .mi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--cyan); }
.submenu .mi svg { width: 17px; height: 17px; }
.submenu strong { display: block; font-size: .9rem; font-weight: 700; }
.submenu span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }

.nav-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2);
  cursor: pointer; color: var(--text-2); transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.icon-btn svg { width: 18px; height: 18px; }


.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-actions .btn--nav { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 1fr min(400px, 88vw);
  visibility: hidden; pointer-events: none;
  /* clip the off-canvas panel: a fixed element is not clipped by body overflow,
     so without this the closed drawer widens the page on mobile */
  overflow: hidden;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-scrim { background: rgba(3, 7, 14, .66); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel {
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 20px var(--pad) 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .38s var(--ease);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-panel ul { list-style: none; padding: 0; display: grid; gap: 2px; margin-top: 18px; }
.drawer-panel a.d-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; border-radius: var(--r); font-weight: 650; color: var(--text-2);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.drawer-panel a.d-link:hover, .drawer-panel a.d-link[aria-current="page"] {
  background: var(--surface-2); color: var(--text); border-color: var(--line);
}
.drawer-panel .d-group { margin-top: 10px; padding: 8px 14px 4px; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); font-weight: 750; }

/* ---------- 8. Hero ------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 8vw, 104px) clamp(56px, 8vw, 100px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .grid-layer {
  position: absolute; inset: -10% -10% 0 -10%;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 76% 62% at 50% 8%, #000 34%, transparent 100%);
          mask-image: radial-gradient(ellipse 76% 62% at 50% 8%, #000 34%, transparent 100%);
}
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-bg .orb-1 { width: 520px; height: 520px; top: -190px; left: -120px; background: rgba(208,40,40,.34); }
.hero-bg .orb-2 { width: 560px; height: 560px; top: -140px; right: -160px; background: rgba(24,198,232,.28); }
html[data-theme="light"] .hero-bg .orb { opacity: .35; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 42px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 6px; }
.hero-stats div { padding: 13px 12px; border-radius: var(--r); text-align: center; }
.hero-stats b { display: block; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 850; letter-spacing: -.02em; color: var(--text); }
.hero-stats span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* NOC console mock */
.console {
  background: linear-gradient(168deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-3); }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.console-bar i:nth-child(1) { background: #FF5F57; } .console-bar i:nth-child(2) { background: #FEBC2E; } .console-bar i:nth-child(3) { background: #28C840; }
.console-bar strong { margin-left: 8px; font-size: .76rem; font-weight: 650; color: var(--muted); letter-spacing: .05em; }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .68rem;
  font-weight: 750; letter-spacing: .1em; color: var(--ok); }
.console-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse-ok 2s infinite; }
@keyframes pulse-ok { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.console-body { padding: 18px; display: grid; gap: 14px; }

.kpi-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.gauge { position: relative; width: 108px; height: 108px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { stroke: var(--surface-3); }
.gauge .val { stroke: url(#gaugeGrad); stroke-linecap: round; }
.gauge figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge b { font-size: 1.7rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.gauge small { font-size: .62rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.kpi-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi-mini div { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px 12px; }
.kpi-mini b { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.kpi-mini span { font-size: .68rem; color: var(--muted); }

.alerts { display: grid; gap: 8px; }
.alert-row {
  display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 10px 13px 10px 0; overflow: hidden;
}
.alert-row .bar { width: 4px; height: 100%; min-height: 42px; background: var(--muted); }
.alert-row.crit .bar { background: var(--crit); } .alert-row.med .bar { background: var(--warn); } .alert-row.ok .bar { background: var(--ok); }
.alert-row .lv { font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.alert-row.crit .lv { color: var(--crit); } .alert-row.med .lv { color: var(--warn); } .alert-row.ok .lv { color: var(--ok); }
.alert-row strong { display: block; font-size: .86rem; font-weight: 700; }
.alert-row p { font-size: .74rem; color: var(--muted); line-height: 1.4; }
.alert-row time { font-family: var(--mono); font-size: .7rem; color: var(--faint); padding-right: 2px; }

/* ---------- 9b. Work cards & client logos -------------------------------- */
.work-card { padding: 0; overflow: hidden; }
.work-cover {
  aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card--hover:hover .work-cover img { transform: scale(1.06); }
.work-body { padding: 20px clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 26px); }
.work-body h3 + p { margin-top: 7px; color: var(--muted); font-size: .9rem; }

/* Logos keep their own artwork colours, so each sits on its own light tile —
   that is the only way a mix of transparent, white-ground and dark-ground
   marks stays legible in both themes. */
.logo-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  min-height: 152px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s;
}
.logo-tile:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.logo-tile img { max-height: 84px; max-width: 86%; width: auto; object-fit: contain; }

/* Some marks are portrait — a crest stacked over a wordmark. Capping those by
   the same height as a wide logo would shrink their lettering out of legibility,
   so they get a taller allowance. Grid rows equalise, so the wall stays even. */
.logo-tile--tall img { max-height: 116px; }

/* ---------- 10. SLA timeline --------------------------------------------- */
.sla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative;
       border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.sla-step { padding: 26px 22px; border-right: 1px solid var(--line); position: relative; }
.sla-step:last-child { border-right: 0; }
.sla-step::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); opacity: .18; }
.sla-step:hover::before { opacity: 1; }
.sla-step b { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 850; letter-spacing: -.03em; color: var(--cyan); }
.sla-step h4 { margin-top: 6px; font-size: .95rem; }
.sla-step p { margin-top: 6px; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .sla { grid-template-columns: repeat(2, 1fr); } .sla-step:nth-child(2n) { border-right: 0; }
  .sla-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .sla { grid-template-columns: 1fr; } .sla-step { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- 11. Feature list / steps ------------------------------------- */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 2px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: "0" counter(s); font-family: var(--mono); font-size: .82rem; font-weight: 700;
  color: var(--cyan); border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 34px; display: grid; place-items: center; background: var(--surface-2);
}
.steps h4 { font-size: 1rem; }
.steps p { font-size: .9rem; color: var(--muted); margin-top: 3px; }

/* ---------- 12. Pricing -------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.plan--hi { border-color: var(--cyan); box-shadow: var(--glow-cyan); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cyan), var(--cyan-600)); color: #04141B;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; padding: 5px 14px; border-radius: var(--r-pill); white-space: nowrap; }
.plan h3 { font-size: 1.25rem; }
.plan .plan-for { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- 13. Stats / outcomes ----------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--r-lg);
        background: var(--surface); }
.stat b { display: block; font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 900; letter-spacing: -.04em;
  background: linear-gradient(180deg, var(--cyan-300), var(--cyan-600));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 4px; font-size: .86rem; color: var(--text-2); font-weight: 600; }
.stat small { display: block; margin-top: 3px; font-size: .74rem; color: var(--faint); }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 16px; }
.ba div { text-align: center; padding: 12px 8px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface-2); }
.ba b { display: block; font-size: 1.2rem; font-weight: 800; }
.ba small { font-size: .68rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.ba .after { border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.07); }
.ba .after b { color: var(--ok); }
.ba .arrow { color: var(--faint); }

/* ---------- 14. Accordion ------------------------------------------------ */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 650; list-style: none; transition: background .2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: var(--surface-2); }
.acc summary::after { content: "+"; font-size: 1.3rem; color: var(--cyan); font-weight: 400; line-height: 1; flex: none; }
.acc details[open] summary::after { content: "\2212"; }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: .93rem; }

/* ---------- 15. Table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; }
table.t th, table.t td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
table.t th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 750;
  background: var(--surface-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 650; }

/* ---------- 16. CTA band ------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl);
  border: 1px solid var(--line); background: linear-gradient(150deg, var(--surface-2), var(--surface));
  padding: clamp(32px, 5vw, 58px); text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(208,40,40,.24); filter: blur(90px); top: -230px; left: 12%; }
.cta-band::after { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: rgba(24,198,232,.2); filter: blur(90px); bottom: -260px; right: 10%; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- 17. Page hero (inner pages) ---------------------------------- */
.page-hero { position: relative; padding-block: clamp(46px, 6vw, 78px) clamp(30px, 4vw, 44px); overflow: hidden;
  border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.page-hero .grid-layer { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000, transparent 75%); }
.page-hero > .wrap { position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--faint); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { color: var(--faint); }

/* ---------- 18. Contact form --------------------------------------------- */
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 650; color: var(--text-2); }
.field label .req { color: var(--brand-300); }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; font-size: .94rem; width: 100%;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--surface); box-shadow: 0 0 0 3px rgba(24,198,232,.14);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-note { font-size: .78rem; color: var(--faint); }
.form-status { padding: 13px 16px; border-radius: var(--r); font-size: .88rem; display: none; }
.form-status.ok  { display: block; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.4); color: var(--ok); }
.form-status.err { display: block; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); color: var(--crit); }

.contact-line { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 15px 0;
  border-bottom: 1px solid var(--line-soft); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ci { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--cyan); }
.contact-line .ci svg { width: 19px; height: 19px; }
.contact-line small { display: block; font-size: .74rem; color: var(--faint); letter-spacing: .07em; text-transform: uppercase; }
.contact-line strong { font-size: 1.02rem; font-weight: 700; }
.contact-line a:hover { color: var(--cyan); }

/* ---------- 19. Footer --------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(46px, 6vw, 70px) 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(24px, 3.4vw, 44px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h5 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 750; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.site-footer a { font-size: .9rem; color: var(--text-2); transition: color .2s; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: all .25s var(--ease); }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- 20. Floating actions ----------------------------------------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 10px; justify-items: end; }
.fab {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  box-shadow: var(--shadow); cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s;
}
.fab:hover { transform: translateY(-3px) scale(1.04); }
.fab svg { width: 22px; height: 22px; }
.fab--line { background: #06C755; border-color: #06C755; color: #fff; }
.fab--call { background: var(--brand); border-color: var(--brand); color: #fff; }
.fab--top { opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--top.show { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 560px) { .fab { width: 46px; height: 46px; } .fab svg { width: 20px; height: 20px; } }

/* ---------- 21. Reveal on scroll ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
