:root {
  color-scheme: dark;
  --bg: #0c1116;
  --panel: #151c23;
  --panel-2: #1b242d;
  --line: #2b3743;
  --text: #eef4f8;
  --muted: #98a9b8;
  --blue: #65a9ff;
  --cyan: #61d4d4;
  --green: #72d49d;
  --yellow: #e5bd62;
  --red: #ee6b71;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 47, 65, 0.72), rgba(12, 17, 22, 0.4)),
    radial-gradient(circle at 78% 12%, rgba(101, 169, 255, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.is-hidden {
  display: none !important;
}

.landing-view {
  min-height: 100vh;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(43, 55, 67, 0.82);
  background: rgba(12, 17, 22, 0.86);
  backdrop-filter: blur(16px);
  padding: 14px 56px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.landing-brand strong {
  font-size: 17px;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav a,
.ghost-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav a:hover,
.ghost-link:hover {
  color: var(--text);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 56px 42px;
}

.landing-copy h1 {
  max-width: 780px;
  font-size: 62px;
  line-height: 1.03;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid #34424f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #121a22;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image-card {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 17, 22, 0.18), rgba(12, 17, 22, 0.72)),
    url("../img/hero-cyberprofile-dashboard.jpg");
  background-position: center;
  background-size: cover;
}

.visual-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(420px, calc(100% - 56px));
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(13, 20, 27, 0.88);
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(14px);
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.visual-top span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.visual-top strong {
  color: var(--green);
  font-size: 30px;
}

.visual-lines {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.visual-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), rgba(101, 169, 255, 0.4));
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.visual-grid span {
  display: block;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

.landing-section {
  padding: 62px 56px;
}

.section-head {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-head h2,
.package-band h2 {
  font-size: 38px;
  line-height: 1.12;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.package-band,
.workflow-list div {
  border: 1px solid var(--line);
  background: rgba(21, 28, 35, 0.92);
  border-radius: 8px;
}

.feature-grid article {
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 32px;
  border: 1px solid rgba(97, 212, 212, 0.35);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 22px;
}

.feature-grid p,
.package-band p {
  color: var(--muted);
  line-height: 1.5;
}

.workflow-section {
  background: rgba(255, 255, 255, 0.025);
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-list div {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.workflow-list strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #071117;
}

.workflow-list span {
  color: #d8e3ec;
  font-weight: 800;
}

.package-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.package-band p {
  max-width: 780px;
  margin-bottom: 0;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
  gap: 40px;
  align-items: center;
  min-height: 100vh;
  padding: 56px;
}

.brand-panel {
  max-width: 740px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, #66abff, #64d3c8);
  color: #081119;
  font-weight: 800;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-mark.small {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1;
}

h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.brand-copy {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.signal-strip span,
.badge,
.risk-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.login-card,
.panel,
.metric-card {
  border: 1px solid var(--line);
  background: rgba(21, 28, 35, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card {
  display: grid;
  gap: 20px;
  padding: 30px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0f151b;
  color: var(--text);
  border-radius: 6px;
  outline: none;
  padding: 13px 14px;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(101, 169, 255, 0.16);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 15px;
  color: var(--text);
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #071117;
}

.secondary-btn {
  background: #22303b;
  border-color: #344452;
}

.secondary-btn.compact {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.ghost-btn {
  background: transparent;
  border-color: var(--line);
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.portal-view {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  background: rgba(10, 15, 20, 0.92);
  padding: 22px;
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sidebar-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 12px 13px;
  text-align: left;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: var(--line);
  background: #17212a;
  color: var(--text);
}

.logout-btn {
  margin-top: auto;
}

.content {
  min-width: 0;
  padding: 28px;
}

.topbar,
.panel-head,
.asset-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar h2 {
  margin-bottom: 0;
}

.hero-band {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  border: 1px solid #32404d;
  background: linear-gradient(135deg, #182632, #111820);
  border-radius: 8px;
  padding: 28px;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.score-row strong {
  font-size: 70px;
  line-height: 0.9;
}

.score-row span {
  color: var(--muted);
  font-size: 24px;
}

.hero-band p {
  color: var(--muted);
  margin-bottom: 0;
}

.status-ring {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #18212a 0 54%, transparent 55%),
    conic-gradient(var(--green) 0 72%, #34404b 72% 100%);
}

.status-ring span {
  font-size: 34px;
  font-weight: 900;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 34px;
}

.metric-card p,
.report-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.panel {
  padding: 20px;
}

.badge.success {
  border-color: rgba(114, 212, 157, 0.4);
  color: var(--green);
}

.asset-line {
  margin: 20px 0;
  border: 1px solid var(--line);
  background: #111920;
  border-radius: 8px;
  padding: 14px;
}

.asset-line span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.risk-pill.medium {
  border-color: rgba(229, 189, 98, 0.45);
  color: var(--yellow);
  white-space: nowrap;
}

.check-list {
  display: grid;
  gap: 11px;
  color: #d9e4ed;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
}

.dot.ok {
  background: var(--green);
}

.dot.warn {
  background: var(--yellow);
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 210px;
  margin-top: 18px;
}

.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.finding-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.finding-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: #111920;
  border-radius: 8px;
  padding: 14px;
}

.severity {
  border-radius: 6px;
  padding: 7px 9px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.severity.critical {
  background: rgba(238, 107, 113, 0.16);
  color: var(--red);
}

.severity.high {
  background: rgba(229, 189, 98, 0.16);
  color: var(--yellow);
}

.severity.medium {
  background: rgba(101, 169, 255, 0.16);
  color: var(--blue);
}

.finding-item strong {
  display: block;
  margin-bottom: 5px;
}

.finding-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.finding-item small {
  color: var(--muted);
  text-align: right;
}

.report-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: 360px;
  border: 1px solid var(--line);
  background: #111920;
  color: var(--text);
  border-radius: 8px;
  padding: 13px 15px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .login-view,
  .portal-view,
  .two-column,
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-header,
  .landing-hero,
  .landing-section {
    padding-left: 28px;
    padding-right: 28px;
  }

  .landing-nav {
    display: none;
  }

  .landing-copy h1 {
    font-size: 44px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .feature-grid,
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-view {
    padding: 28px;
  }

  h1 {
    font-size: 46px;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content,
  .login-view,
  .landing-header,
  .landing-hero,
  .landing-section {
    padding: 18px;
  }

  .hero-band,
  .topbar,
  .panel-head,
  .asset-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-ring {
    width: 124px;
    height: 124px;
  }

  .metrics-grid,
  .nav-list,
  .feature-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .landing-copy h1 {
    font-size: 36px;
  }

  .package-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .finding-item {
    grid-template-columns: 1fr;
  }

  .finding-item small {
    text-align: left;
  }
}
