/* Avisence intranet, same design system as avisence.com / contact / verify (navy / sky / red, Montserrat) */
:root {
  --navy: #07131f; --navy-mid: #0b1e30; --navy-dark: #050e18;
  --red: #C8102E; --sky: #5BC8E8; --white: #fff;
  --ok: #2fbf71; --warn: #f2a33a; --bad: #e8435a;
  --border-dark: rgba(91,200,232,0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--navy); }
body {
  font-family: 'Montserrat', sans-serif; background: var(--navy); color: var(--white);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--sky); }
svg { flex: none; }

/* ═══ Texture + glows ═══ */
.tex-dark {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(91,200,232,0.22) 1.5px, transparent 1.5px),
    repeating-linear-gradient(-50deg, transparent, transparent 35px, rgba(91,200,232,0.06) 35px, rgba(91,200,232,0.06) 36px);
  background-size: 26px 26px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-1 { top: -220px; right: -160px; width: 750px; height: 750px; background: radial-gradient(circle, rgba(91,200,232,0.09) 0%, transparent 65%); }
.glow-2 { bottom: -220px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 65%); }

/* ═══ Navbar ═══ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 44px; background: rgba(5,14,24,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.nav-logo { height: 40px; width: auto; flex: none; display: block; }
.nav-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); padding-left: 14px; border-left: 1px solid var(--border-dark); white-space: nowrap;
}
.btn-account {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 2px solid var(--sky); border-radius: 5px; color: var(--sky); background: transparent; text-decoration: none;
  font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn-account:hover { background: var(--sky); color: var(--navy); }
.btn-account svg { width: 15px; height: 15px; }
.userbar { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-chip { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.who-chip:hover .who-name { color: var(--sky); }
.who-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.mini-av {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #163a66, #0b1e30); border: 1.5px solid rgba(91,200,232,0.45);
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em; color: #fff;
}
.mini-av.lg { width: 48px; height: 48px; font-size: 16px; }

/* ═══ Shared type + buttons ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sky); }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.sec-label::before { content: ''; width: 22px; height: 2px; background: var(--sky); }
h1 em { font-style: italic; color: var(--sky); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; background: var(--red); color: #fff; border: 0; border-radius: 5px;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #a50d25; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); border-radius: 5px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-mini {
  padding: 7px 11px; border-radius: 5px; border: 1.5px solid rgba(91,200,232,0.4); background: transparent; color: var(--sky);
  font-family: inherit; font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.btn-mini:hover { background: rgba(91,200,232,0.12); }
.btn-mini.danger { border-color: rgba(232,67,90,0.5); color: #ff9aa8; }
.btn-mini.danger:hover { background: rgba(232,67,90,0.14); }

/* ═══ Hero / page section ═══ */
.hero {
  position: relative; overflow: hidden; flex: 1;
  padding: 72px 44px 88px;
  background: linear-gradient(140deg, #030c15 0%, #07131f 50%, #0a1a2e 100%);
}
.hero-grid, .wrap, .solo { position: relative; z-index: 2; }
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: start;
}
.hero-copy { padding-top: 24px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; font-style: italic;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero-slogan { font-size: 15px; font-weight: 700; font-style: italic; color: rgba(91,200,232,0.75); letter-spacing: 0.04em; margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.78; max-width: 560px; margin-bottom: 32px; }

.hero-page { padding-top: 48px; }
.hero-page h1 { font-size: clamp(30px, 3.8vw, 48px); }
.wrap { max-width: 1200px; margin: 0 auto; }
.crumb { display: table; margin-bottom: 22px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: rgba(255,255,255,0.55); }
.crumb:hover { color: var(--sky); }

.client-note {
  display: flex; gap: 14px; align-items: flex-start; max-width: 540px; padding: 18px 20px;
  border: 1px solid var(--border-dark); border-radius: 10px; background: rgba(7,19,31,0.75);
}
.client-note svg { width: 22px; height: 22px; color: var(--sky); margin-top: 2px; }
.client-note p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.62); }
.client-note b { color: #fff; }

.panel {
  position: relative; background: rgba(11,30,48,0.86); border: 1px solid var(--border-dark);
  border-radius: 12px; padding: 38px 34px 30px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.38);
}
.panel::before { content: ''; position: absolute; top: 0; left: 34px; right: 34px; height: 3px; background: linear-gradient(90deg, var(--red) 0 46%, var(--sky) 46% 100%); }
.panel h2 { font-size: 28px; font-weight: 900; margin-bottom: 18px; }
.panel-narrow { max-width: 520px; }
.panel-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.panel-note svg { width: 15px; height: 15px; margin-top: 1px; color: rgba(91,200,232,0.7); }

/* ═══ Forms ═══ */
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); margin-top: 12px; }
.form label:first-of-type { margin-top: 0; }
.form .opt { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: rgba(255,255,255,0.38); }
.form input, .form select {
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 16px; border-radius: 6px; border: 1.5px solid rgba(91,200,232,0.25);
  background: rgba(5,14,24,0.72); color: #fff; width: 100%; -webkit-appearance: none; appearance: none;
}
.form select {
  background: rgba(5,14,24,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235BC8E8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.form select option { background: var(--navy-mid); }
.form input::placeholder { color: rgba(255,255,255,0.3); font-weight: 500; }
.form input:focus, .form select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(91,200,232,0.16); }
.form .btn-primary { margin-top: 24px; width: 100%; }
.hint { font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.55; }

.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.6; }
.alert-error { background: rgba(232,67,90,0.12); border: 1px solid rgba(232,67,90,0.35); color: #ff9aa8; }
.alert-ok { background: rgba(47,191,113,0.1); border: 1px solid rgba(47,191,113,0.35); color: #9fe6bf; }
.alert-ok b { color: #fff; }
.temp {
  display: inline-block; margin: 4px 0; padding: 4px 10px; border-radius: 5px; background: rgba(5,14,24,0.8);
  border: 1px solid rgba(47,191,113,0.4); color: #fff; font-size: 15px; letter-spacing: 0.06em; user-select: all;
}

/* ═══ Home tiles ═══ */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 24px 22px;
  background: rgba(11,30,48,0.82); border: 1px solid var(--border-dark); border-radius: 12px;
  color: #fff; text-decoration: none; transition: border-color .2s, transform .2s, background .2s;
}
a.tile:hover { border-color: rgba(91,200,232,0.55); background: rgba(14,38,60,0.9); transform: translateY(-2px); }
.tile-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border-dark); background: rgba(91,200,232,0.08); color: var(--sky);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-body { flex: 1; min-width: 0; }
.tile-body b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.tile-body span { display: block; font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.55; }
.tile-go { font-size: 18px; font-weight: 700; color: var(--sky); opacity: .7; transition: transform .2s, opacity .2s; }
a.tile:hover .tile-go { opacity: 1; transform: translateX(3px); }
.tile .tag {
  position: absolute; top: 12px; right: 44px; padding: 2px 8px; border-radius: 20px; background: rgba(200,16,46,0.18);
  border: 1px solid rgba(200,16,46,0.45); font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #ff9aa8;
}
.tile-soon { border-style: dashed; background: transparent; }
.tile-soon .tile-icon { color: rgba(255,255,255,0.4); background: transparent; }

/* ═══ Tables ═══ */
.split { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-dark); border-radius: 12px; background: rgba(11,30,48,0.82); }
.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data th {
  text-align: left; padding: 14px 16px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); border-bottom: 1px solid var(--border-dark); white-space: nowrap;
}
.data td { padding: 14px 16px; border-bottom: 1px solid rgba(91,200,232,0.08); vertical-align: middle; color: rgba(255,255,255,0.78); }
.data tr:last-child td { border-bottom: 0; }
.data td b { display: block; color: #fff; font-weight: 700; }
.sub { display: block; font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }
.nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap;
  background: rgba(91,200,232,0.12); color: var(--sky); border: 1px solid rgba(91,200,232,0.3);
}
.pill-ok { background: rgba(47,191,113,0.12); color: #7fe0ad; border-color: rgba(47,191,113,0.35); }
.pill-warn { background: rgba(242,163,58,0.12); color: #f7c47e; border-color: rgba(242,163,58,0.35); }
.pill-bad { background: rgba(232,67,90,0.12); color: #ff9aa8; border-color: rgba(232,67,90,0.35); }

/* ═══ Team directory ═══ */
.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.person {
  display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border-dark); border-radius: 12px; background: rgba(11,30,48,0.82);
}
.person > span:last-child { min-width: 0; }
.person b { display: block; font-size: 15px; font-weight: 800; }
.person span span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.person a { display: block; font-size: 12.5px; margin-top: 4px; text-decoration: none; overflow-wrap: anywhere; }

.solo { max-width: 640px; margin: 40px auto; text-align: center; }
.solo .hero-desc { margin: 0 auto 30px; }

/* ═══ Footer ═══ */
.site-foot { background: #030d1a; border-top: 1px solid var(--border-dark); }
.foot-bottom {
  max-width: 1200px; margin: 0 auto; padding: 22px 44px 26px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.32);
}
.foot-bottom a { color: rgba(255,255,255,0.32); text-decoration: none; }
.foot-bottom a:hover { color: var(--sky); }

/* ═══ Responsive ═══ */
@media (max-width: 1240px) {
  .split { grid-template-columns: 1fr; }
  .split .panel { max-width: 520px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-top: 0; }
  .who-name { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; height: 60px; }
  .nav-logo { height: 32px; }
  .btn-account { padding: 7px 12px; font-size: 11px; }
  .userbar .btn-account span { display: none; }   /* Sign out becomes an icon button */
  .hero { padding: 32px 16px 56px; }
  .panel { padding: 30px 20px 22px; }
  .panel::before { left: 20px; right: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .foot-bottom { padding: 16px 16px 24px; }
}
@media (max-width: 400px) {
  .nav-tag { display: none; }
}
