/* FLANIVO Systems — crystalline fire-and-ice design system */
:root {
  --bg: #050508;
  --bg-2: #090b12;
  --panel: #0d1019;
  --line: rgba(130, 170, 230, .16);
  --ice: #3ec7ff;
  --ice-2: #8af6ff;
  --indigo: #5b6dff;
  --fire: #ff7a32;
  --gold: #ffc14a;
  --magenta: #ff4d9a;
  --ink: #f4f7fb;
  --muted: #9aa3b5;
  --ok: #5ee0a8;
  --warn: #ffc14a;
  --err: #ff6b6b;
  --flare: linear-gradient(90deg, #2ea7ff 0%, #7a5cff 50%, #ff6a2a 100%);
  --copper: #3ec7ff;
  --copper-2: #ff9a4a;
  --serif: "Syne", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(980px 560px at 8% -12%, rgba(46, 167, 255, .2), transparent 58%),
    radial-gradient(820px 500px at 96% 0%, rgba(255, 106, 42, .14), transparent 56%),
    radial-gradient(640px 420px at 50% 120%, rgba(90, 70, 180, .12), transparent 60%),
    url("../img/crystal-mesh.svg");
  background-attachment: fixed, fixed, fixed, scroll;
  background-size: auto, auto, auto, 1400px auto;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ice-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(62, 199, 255, .18), 0 0 18px rgba(255, 122, 50, .28);
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; background: var(--ice); color: var(--bg); padding: 8px 12px; z-index: 9; }

.mode-banner {
  background: var(--flare);
  color: #050508;
  text-align: center;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--mono);
  padding: 8px 12px;
  font-weight: 600;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(62, 199, 255, .35));
}
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.02rem;
  background: var(--flare);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ice-2);
  margin-top: .12rem;
}
.brand-logo {
  width: min(240px, 72vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(62, 199, 255, .22));
}
.brand-stacked { display: block; }
.wordmark {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--flare);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark span {
  font-family: var(--mono);
  font-size: .62rem;
  margin-left: .4rem;
  color: var(--ice);
  letter-spacing: .18em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.eyebrow, .coord {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 .8rem;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .9em; }
.break { word-break: break-all; }
.lede { font-size: 1.15rem; color: #d5dce8; max-width: 42rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.15rem, 5vw, 4.05rem); margin: 0 0 1rem; }
h1 em {
  font-style: normal;
  background: var(--flare);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.22rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid rgba(62, 199, 255, .45);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: .95rem;
  padding: .72rem 1.18rem;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .15s, color .15s, transform .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-copper {
  background: var(--flare);
  color: #07080c;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(62, 199, 255, .22);
}
.btn-copper:hover { color: #050508; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); background: rgba(8, 10, 16, .4); }
.btn-ghost:hover { border-color: var(--ice); box-shadow: 0 0 16px rgba(62, 199, 255, .16); }

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 5, 8, .78);
  backdrop-filter: blur(16px) saturate(1.25);
}
.site-head::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), #d9b0ff, var(--fire), transparent);
}
.facility-meta {
  display: flex; gap: 1.5rem; justify-content: flex-end;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  color: var(--muted); padding: 6px 24px 0;
}
.site-head-inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
}
.site-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--ice-2); }
.site-actions { display: flex; gap: .6rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  padding: .4rem .6rem; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.hero { position: relative; padding: 3.6rem 24px 3rem; max-width: 1280px; margin: 0 auto; overflow: hidden; }
.hero-orb {
  position: absolute;
  right: -6%;
  top: -18%;
  width: min(640px, 72vw);
  pointer-events: none;
  opacity: .42;
  filter: drop-shadow(0 0 40px rgba(62, 199, 255, .18));
  z-index: 0;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: start; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.hero-stats { display: flex; gap: 2rem; padding: 0; margin: 2rem 0 0; }
.hero-stats div {
  border-top: 1px solid transparent;
  border-image: var(--flare) 1;
  padding-top: .6rem;
  min-width: 7rem;
}
.hero-stats dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.hero-stats dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.hero-visual { display: flex; flex-direction: column; gap: 1.1rem; align-items: center; }
.hero-logo { width: min(340px, 100%); height: auto; }

.rack-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 18, 28, .92), rgba(8, 10, 16, .94));
  padding: 1rem;
  width: 100%;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(62, 199, 255, .06), 0 0 40px rgba(5, 5, 8, .4);
}
.rack-panel::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(62, 199, 255, .2), transparent 32%, transparent 68%, rgba(255, 122, 50, .2));
  mix-blend-mode: screen;
}
.rack-panel header {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  margin-bottom: .6rem;
}
.rack-caption { font-size: 11px; color: var(--muted); margin: .8rem 0 0; }
.led {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  background: var(--muted);
}
.led-ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2.4s ease-in-out infinite; }
.led-idle { background: var(--fire); box-shadow: 0 0 8px rgba(255, 122, 50, .5); }
.led-warn { background: var(--warn); }
@keyframes pulse { 50% { box-shadow: 0 0 12px var(--ok); } }

.strip-trust { border-block: 1px solid var(--line); padding: 2.5rem 24px; max-width: var(--max); margin: 0 auto; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; padding: 0; list-style: none; }
.trust-list li {
  padding-left: 1rem;
  border-left: 2px solid transparent;
  border-image: var(--flare) 1;
}

.section { padding: 4rem 24px; max-width: var(--max); margin: 0 auto; position: relative; }
.section::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 2.2rem;
  background: linear-gradient(90deg, transparent, var(--ice), #c9a6ff, var(--fire), transparent);
}
.section-alt {
  background: linear-gradient(180deg, rgba(10, 12, 20, .72), rgba(8, 10, 16, .5));
  max-width: none;
  padding-inline: calc((100% - var(--max)) / 2 + 24px);
  box-shadow: inset 0 1px 0 rgba(62, 199, 255, .12), inset 0 -1px 0 rgba(255, 122, 50, .1);
}
.section-head { max-width: 40rem; margin-bottom: 2rem; }

.rack-list { display: flex; flex-direction: column; gap: .45rem; }
.rack-unit {
  display: grid; grid-template-columns: 28px 1fr;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(14, 28, 44, .55), var(--panel) 28%, rgba(36, 18, 16, .4));
  min-height: 92px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.screws { display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; align-items: center; }
.screws span {
  width: 7px; height: 7px;
  border: 1px solid rgba(180, 210, 255, .35);
  transform: rotate(45deg);
}
.rack-unit-body { display: grid; grid-template-columns: 18px 1fr auto; gap: 1rem; align-items: center; padding: .9rem 1.2rem .9rem 0; }
.rack-unit h3 { margin: .15rem 0; }
.rack-unit-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.rack-unit:hover { border-color: rgba(62, 199, 255, .55); box-shadow: 0 0 24px rgba(62, 199, 255, .12); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; list-style: none; padding: 0; }
.step-n {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--flare);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { border-bottom: 1px solid var(--line); padding: .65rem .4rem; text-align: left; vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 38%; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

.portal-teaser { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.fake-ui { width: min(640px, 100%); border: 1px solid var(--line); background: #07090f; font-family: var(--mono); font-size: 13px; }
.fake-ui-bar { background: #121624; padding: .5rem .8rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.fake-ui-bar span:nth-child(1) { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.fake-ui-bar span:nth-child(2) { width: 8px; height: 8px; border-radius: 50%; background: #ffc14a; }
.fake-ui-bar span:nth-child(3) { width: 8px; height: 8px; border-radius: 50%; background: #5ee0a8; }
.fake-ui-row { padding: .7rem .9rem; border-top: 1px solid var(--line); display: flex; gap: .6rem; align-items: center; }

.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.cta-final {
  text-align: center;
  padding: 5rem 24px 6rem;
  position: relative;
}
.cta-final::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 auto 2.4rem;
  max-width: var(--max);
  background: linear-gradient(90deg, transparent, var(--ice), var(--fire), transparent);
}

.site-foot { padding: 3rem 24px 2rem; max-width: var(--max); margin: 0 auto; }
.site-foot::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 2rem;
  background: linear-gradient(90deg, transparent, var(--ice), var(--fire), transparent);
}
.site-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-foot a { display: block; color: var(--ink); text-decoration: none; margin: .25rem 0; }
.site-foot a:hover { color: var(--ice-2); }
.site-foot-bottom {
  display: flex; justify-content: space-between; margin-top: 2rem;
  color: var(--muted); font-size: .85rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
}

.page-hero, .legal-page, .product-sheet { max-width: var(--max); margin: 0 auto; padding: 3rem 24px 4rem; }
.legal-page { max-width: 760px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: var(--max); margin: 0 auto 4rem; padding: 0 24px; }
.product-card, .plan-card, .stat {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line);
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(18, 24, 38, .9), rgba(10, 12, 18, .94));
  min-height: 180px;
  position: relative;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.product-card { min-height: 180px; }
.plan-card, .stat { min-height: 0; }
.product-card:hover, .plan-card:hover {
  border-color: rgba(62, 199, 255, .5);
  box-shadow: 0 0 28px rgba(62, 199, 255, .12), inset 0 0 24px rgba(255, 122, 50, .05);
}
.price-from {
  background: var(--flare);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}
.sheet-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.plan-card .price { font-family: var(--display); font-size: 1.8rem; margin: .4rem 0; font-weight: 800; }
.price-block { max-width: var(--max); margin: 0 auto 2rem; padding: 0 24px; }

.flash { max-width: var(--max); margin: 1rem auto; padding: .8rem 1rem; border: 1px solid var(--line); }
.flash-ok { border-color: var(--ok); color: var(--ok); }
.flash-err { border-color: var(--err); color: #f0b4a8; }
.flash-info { border-color: var(--ice); }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(8, 10, 16, .94);
  border-top: 1px solid transparent;
  border-image: var(--flare) 1;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1rem 1.5rem; flex-wrap: wrap;
  backdrop-filter: blur(12px);
}
.cookie-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-rail {
  padding: 3rem;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(520px 360px at 20% 15%, rgba(46, 167, 255, .18), transparent 60%),
    radial-gradient(420px 280px at 80% 80%, rgba(255, 106, 42, .12), transparent 55%),
    var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-rail-kicker { font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); font-size: 11px; }
.auth-rail h1 { font-size: 2.4rem; }
.auth-panel { padding: 3rem; max-width: 480px; }
.form { display: flex; flex-direction: column; gap: .85rem; margin: 1.2rem 0; }
.form label, fieldset { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; color: var(--muted); border: 0; padding: 0; }
input, select, textarea {
  background: #07090f; border: 1px solid var(--line); color: var(--ink);
  padding: .65rem .7rem; font-family: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--ice); outline: none; box-shadow: 0 0 0 3px rgba(62, 199, 255, .15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .6rem; }
.check { flex-direction: row !important; align-items: center; gap: .5rem !important; }
.choice { flex-direction: row !important; align-items: flex-start; gap: .6rem !important; border: 1px solid var(--line); padding: .7rem; }
.form-inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 1rem 0; }
.pay-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }

.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.app-nav {
  border-right: 1px solid var(--line);
  padding: 1.4rem 1rem;
  background:
    linear-gradient(180deg, rgba(18, 36, 56, .35), transparent 28%),
    #07090f;
}
.app-nav.ops {
  background:
    linear-gradient(180deg, rgba(48, 22, 18, .4), transparent 30%),
    #07080c;
  border-right-color: rgba(255, 122, 50, .22);
}
.app-nav nav { display: flex; flex-direction: column; gap: .35rem; margin-top: 1.2rem; }
.app-nav nav a { color: var(--ink); text-decoration: none; padding: .4rem .5rem; clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.app-nav nav a:hover { color: var(--ice-2); background: rgba(62, 199, 255, .08); }
.nav-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ice); }
.nav-logout { margin-top: 2rem; }
.app-main { padding: 1.5rem 2rem 3rem; }
.app-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: .55rem .4rem; text-align: left; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; font-weight: 800; }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .45rem; border: 1px solid var(--line); }
.pill-running { border-color: var(--ok); color: var(--ok); }
.pill-stopped, .pill-pending { border-color: var(--muted); }
.pill-suspended, .pill-overdue { border-color: var(--err); color: var(--err); }
.pill-provisioning { border-color: var(--warn); color: var(--warn); }
.secret-box { border: 1px dashed var(--ice); padding: 1rem; margin: 1rem 0; background: #0a1218; }
.thread article { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.thread .staff { border-left: 2px solid var(--ice); padding-left: .8rem; }
.diagram { background: var(--bg-2); border: 1px solid var(--line); }
.error-mark { width: 96px; height: 96px; margin: 2rem auto 1rem; filter: drop-shadow(0 0 18px rgba(62, 199, 255, .35)); }
.theme-public .error-page, .legal-page .error-mark { margin-left: 0; }

.logo-preview {
  max-height: 72px;
  background: #050508;
  padding: 10px 14px;
  border: 1px solid var(--line);
}

@media (max-width: 960px) {
  .hero-grid, .split, .sheet-grid, .auth-shell, .app-shell, .site-foot-grid, .trust-list, .steps { grid-template-columns: 1fr; }
  .site-nav, .facility-meta { display: none; }
  .site-head-inner.nav-open .site-nav { display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: rgba(5, 5, 8, .96); padding: 1rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rack-unit-body { grid-template-columns: 18px 1fr; }
  .rack-unit-price { grid-column: 2; text-align: left; align-items: flex-start; }
  .app-nav { position: sticky; top: 0; z-index: 5; }
  .hero-orb { opacity: .28; top: -8%; right: -18%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led-ok { animation: none; }
  .btn:hover { transform: none; }
}
