
/* =========================================================
   ABABIOAPPS NETWORK DIAGNOSTICS
   Phase 2 — Complete Responsive UI
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {

  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;

  --border: #dbe3ec;
  --border-strong: #cbd5e1;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;

  --success: #16a34a;
  --success-soft: #ecfdf3;

  --warning: #d97706;
  --warning-soft: #fffbeb;

  --danger: #dc2626;
  --danger-soft: #fef2f2;

  --purple: #7c3aed;
  --purple-soft: #f5f3ff;

  --cyan: #0891b2;
  --cyan-soft: #ecfeff;

  --header-bg: rgba(255, 255, 255, 0.88);

  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.05);

  --shadow:
    0 8px 30px rgba(15, 23, 42, 0.07);

  --shadow-lg:
    0 18px 55px rgba(15, 23, 42, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1180px;

  --transition:
    180ms ease;

}




html {
  scroll-behavior: smooth;
}


body {

  margin: 0;

  min-width: 320px;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(37, 99, 235, 0.06),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;

  line-height: 1.6;

  transition:
    background-color var(--transition),
    color var(--transition);

}


img,
svg,
canvas {
  max-width: 100%;
}


button,
input,
select,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


a {
  color: inherit;
}


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


::selection {
  background: var(--primary);
  color: white;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip-link {

  position: fixed;

  left: 16px;
  top: -100px;

  z-index: 9999;

  padding: 10px 16px;

  border-radius: 8px;

  background: var(--text);

  color: var(--surface);

  text-decoration: none;

  font-weight: 700;

  transition: top var(--transition);

}


.skip-link:focus {
  top: 16px;
}


.sr-only {

  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;

}


:focus-visible {

  outline: 3px solid
    color-mix(in srgb, var(--primary) 55%, transparent);

  outline-offset: 3px;

}


/* =========================================================
   4. CONTAINER
   ========================================================= */

.container {

  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin-inline: auto;

}


/* =========================================================
   5. HEADER
   ========================================================= */

.app-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background: var(--header-bg);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

}


.header-inner {

  min-height: 72px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

}


.brand {

  display: inline-flex;

  align-items: center;

  gap: 12px;

  color: var(--text);

  text-decoration: none;

}


.brand-icon {

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--purple)
    );

  color: white;

  box-shadow:
    0 8px 20px
    rgba(37, 99, 235, 0.22);

}


.brand-text {

  display: flex;

  flex-direction: column;

  line-height: 1.15;

}


.brand-text strong {

  font-size: 1rem;

  font-weight: 800;

  letter-spacing: -0.02em;

}


.brand-text small {

  margin-top: 4px;

  color: var(--text-muted);

  font-size: 0.72rem;

  font-weight: 600;

}


.header-actions {

  display: flex;

  align-items: center;

  gap: 10px;

}


.icon-button {

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: var(--surface);

  color: var(--text-soft);

  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);

}


.icon-button:hover {

  transform: translateY(-2px);

  border-color: var(--primary);

  color: var(--primary);

}


/* =========================================================
   6. HERO
   ========================================================= */

.hero-section {

  position: relative;

  overflow: hidden;

  padding:
    90px
    0
    75px;

  background:
    linear-gradient(
      135deg,
      var(--surface),
      var(--bg-soft)
    );

  border-bottom: 1px solid var(--border);

}


.hero-section::before {

  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -180px;
  top: -220px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(37, 99, 235, 0.14),
      transparent 70%
    );

  pointer-events: none;

}


.hero-section::after {

  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  left: -220px;
  bottom: -250px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(124, 58, 237, 0.08),
      transparent 70%
    );

  pointer-events: none;

}


.hero-grid {

  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(320px, 0.65fr);

  align-items: center;

  gap: 70px;

}


.hero-content {
  max-width: 720px;
}


.eyebrow {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 20px;

  padding: 7px 12px;

  border: 1px solid
    color-mix(
      in srgb,
      var(--primary) 20%,
      var(--border)
    );

  border-radius: 999px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 0.76rem;

  font-weight: 800;

  letter-spacing: 0.05em;

  text-transform: uppercase;

}


.hero-content h1 {

  max-width: 760px;

  margin-bottom: 22px;

  font-size:
    clamp(
      2.4rem,
      5vw,
      4.5rem
    );

  line-height: 1.02;

  letter-spacing: -0.055em;

  font-weight: 800;

}


.hero-lead {

  max-width: 720px;

  margin-bottom: 14px;

  color: var(--text-soft);

  font-size:
    clamp(
      1.05rem,
      2vw,
      1.25rem
    );

  line-height: 1.75;

}


.hero-description {

  max-width: 700px;

  margin-bottom: 30px;

  color: var(--text-muted);

}


.hero-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-bottom: 20px;

}


.primary-button,
.secondary-button,
.danger-button,
.security-button {

  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 11px 18px;

  border-radius: 11px;

  font-weight: 700;

  border: 1px solid transparent;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition);

}


.primary-button {

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-dark)
    );

  color: white;

  box-shadow:
    0 10px 24px
    rgba(37, 99, 235, 0.22);

}


.primary-button:hover {

  transform: translateY(-2px);

  box-shadow:
    0 14px 30px
    rgba(37, 99, 235, 0.30);

}


.secondary-button {

  background: var(--surface);

  color: var(--text);

  border-color: var(--border);

}


.secondary-button:hover {

  transform: translateY(-2px);

  border-color: var(--primary);

  color: var(--primary);

}


.danger-button {

  background: var(--danger-soft);

  color: var(--danger);

  border-color:
    color-mix(
      in srgb,
      var(--danger) 20%,
      var(--border)
    );

}


.danger-button:hover {

  transform: translateY(-2px);

  background:
    color-mix(
      in srgb,
      var(--danger) 12%,
      var(--surface)
    );

}


.connection-status {

  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--text-muted);

  font-size: 0.88rem;

  font-weight: 600;

}


.status-indicator {

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--warning);

  box-shadow:
    0 0 0 5px
    color-mix(
      in srgb,
      var(--warning) 12%,
      transparent
    );

}


.hero-card {

  padding: 30px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background:
    linear-gradient(
      145deg,
      var(--surface),
      var(--surface-soft)
    );

  box-shadow: var(--shadow-lg);

}


.hero-card-icon {

  width: 58px;
  height: 58px;

  display: grid;

  place-items: center;

  margin-bottom: 20px;

  border-radius: 16px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 1.35rem;

}


.card-kicker {

  display: block;

  margin-bottom: 7px;

  color: var(--primary);

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;

}


.hero-card h2 {

  margin-bottom: 10px;

  font-size: 1.45rem;

  line-height: 1.25;

  letter-spacing: -0.025em;

}


.hero-card p {

  margin-bottom: 22px;

  color: var(--text-muted);

}


.hero-card-features {

  display: grid;

  gap: 12px;

  padding: 0;

  margin: 0;

  list-style: none;

}


.hero-card-features li {

  display: flex;

  align-items: center;

  gap: 10px;

  color: var(--text-soft);

  font-size: 0.9rem;

  font-weight: 600;

}


.hero-card-features i {

  color: var(--success);

}


/* =========================================================
   7. SECTION SYSTEM
   ========================================================= */

.quick-results-section,
.dashboard-section,
.performance-section,
.security-section,
.insights-section,
.threat-section,
.history-section,
.seo-section,
.faq-section {

  padding: 88px 0;

}


.quick-results-section,
.performance-section,
.insights-section,
.history-section,
.faq-section {

  background: var(--bg);

}


.dashboard-section,
.security-section,
.threat-section,
.seo-section {

  background: var(--bg-soft);

}


.section-heading {

  max-width: 760px;

  margin-bottom: 36px;

}


.section-kicker {

  display: block;

  margin-bottom: 8px;

  color: var(--primary);

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;

}


.section-heading h2 {

  margin-bottom: 12px;

  font-size:
    clamp(
      1.75rem,
      3vw,
      2.45rem
    );

  line-height: 1.15;

  letter-spacing: -0.035em;

}


.section-heading p {

  margin-bottom: 0;

  color: var(--text-muted);

}


/* =========================================================
   8. QUICK RESULT CARDS
   ========================================================= */

.status-grid {

  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 14px;

}


.status-card {

  min-width: 0;

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 20px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);

}


.status-card:hover {

  transform: translateY(-3px);

  border-color:
    color-mix(
      in srgb,
      var(--primary) 35%,
      var(--border)
    );

  box-shadow: var(--shadow);

}


.status-card-icon {

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background: var(--primary-soft);

  color: var(--primary);

}


.status-card-content {

  min-width: 0;

  display: flex;

  flex-direction: column;

}


.status-card-label {

  margin-bottom: 3px;

  color: var(--text-muted);

  font-size: 0.73rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

}


.status-card strong {

  overflow: hidden;

  color: var(--text);

  font-size: 0.98rem;

  text-overflow: ellipsis;

  white-space: nowrap;

}


/* =========================================================
   9. DASHBOARD
   ========================================================= */

.dashboard-heading {
  margin-bottom: 30px;
}


.dashboard-grid {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

}


.dashboard-card,
.security-card,
.chart-card,
.history-card {

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

}


.dashboard-card {

  padding: 26px;

}


.card-header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 20px;

  margin-bottom: 24px;

}


.card-header h3 {

  margin: 0;

  font-size: 1.15rem;

  line-height: 1.3;

  letter-spacing: -0.02em;

}


.card-icon {

  flex: 0 0 44px;

  width: 44px;
  height: 44px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background: var(--primary-soft);

  color: var(--primary);

}


.data-list {

  display: grid;

}


.data-row {

  min-height: 50px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--border);

}


.data-row:last-child {
  border-bottom: 0;
}


.data-row > span {

  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--text-muted);

  font-size: 0.87rem;

}


.data-row > span i {

  width: 18px;

  color: var(--primary);

  text-align: center;

}


.data-row strong {

  max-width: 55%;

  color: var(--text);

  font-size: 0.88rem;

  text-align: right;

  overflow-wrap: anywhere;

}


.privacy-message {

  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-bottom: 18px;

  padding: 15px;

  border-radius: 12px;

  background: var(--primary-soft);

  color: var(--text-soft);

}


.privacy-message i {

  flex: 0 0 auto;

  margin-top: 3px;

  color: var(--primary);

}


.privacy-message p {

  margin: 0;

  font-size: 0.84rem;

  line-height: 1.55;

}


/* =========================================================
   10. PERFORMANCE
   ========================================================= */

.performance-grid {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 22px;

}


.performance-card {

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 26px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

}


.performance-icon {

  flex: 0 0 56px;

  width: 56px;
  height: 56px;

  display: grid;

  place-items: center;

  border-radius: 15px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 1.25rem;

}


.performance-card > div:last-child {

  display: flex;

  align-items: baseline;

  flex-wrap: wrap;

  gap: 5px;

}


.performance-card span {

  width: 100%;

  color: var(--text-muted);

  font-size: 0.8rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

}


.performance-card strong {

  color: var(--text);

  font-size: 2rem;

  line-height: 1;

}


.performance-card small {

  color: var(--text-muted);

  font-weight: 600;

}


.chart-card {

  padding: 26px;

}


.chart-container {

  position: relative;

  width: 100%;

  height: 300px;

}


.chart-container canvas {

  width: 100% !important;

  height: 100% !important;

}


/* =========================================================
   11. SECURITY
   ========================================================= */

.security-grid {

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

}


.security-card {

  padding: 28px;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);

}


.security-card:hover {

  transform: translateY(-4px);

  box-shadow: var(--shadow);

  border-color:
    color-mix(
      in srgb,
      var(--primary) 30%,
      var(--border)
    );

}


.security-card-icon {

  width: 52px;
  height: 52px;

  display: grid;

  place-items: center;

  margin-bottom: 20px;

  border-radius: 14px;

  background: var(--primary-soft);

  color: var(--primary);

  font-size: 1.2rem;

}


.security-card h3 {

  margin-bottom: 10px;

  font-size: 1.25rem;

}


.security-card p {

  min-height: 110px;

  margin-bottom: 20px;

  color: var(--text-muted);

  font-size: 0.9rem;

}


.security-button {

  width: 100%;

  background: var(--surface);

  color: var(--primary);

  border-color:
    color-mix(
      in srgb,
      var(--primary) 30%,
      var(--border)
    );

}


.security-button:hover {

  transform: translateY(-2px);

  background: var(--primary-soft);

}


.test-results {

  margin-top: 16px;

  color: var(--text-soft);

  font-size: 0.84rem;

  line-height: 1.55;

}


/* =========================================================
   12. INSIGHTS
   ========================================================= */

.insights-grid {

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

}


.empty-state {

  grid-column: 1 / -1;

  padding: 55px 30px;

  border: 1px dashed var(--border-strong);

  border-radius: var(--radius);

  background: var(--surface);

  text-align: center;

}


.empty-state-icon {

  width: 56px;
  height: 56px;

  display: grid;

  place-items: center;

  margin: 0 auto 18px;

  border-radius: 16px;

  background: var(--warning-soft);

  color: var(--warning);

  font-size: 1.25rem;

}


.empty-state h3 {

  margin-bottom: 8px;

  font-size: 1.1rem;

}


.empty-state p {

  max-width: 500px;

  margin: 0 auto;

  color: var(--text-muted);

}


.tips-container {

  margin-top: 20px;

}


/* =========================================================
   13. THREAT INTELLIGENCE
   ========================================================= */

.threat-toolbar {

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    220px;

  gap: 12px;

  margin-bottom: 22px;

}


.search-field {

  position: relative;

}


.search-field i {

  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  color: var(--text-muted);

  pointer-events: none;

}


.search-field input,
.filter-field select {

  width: 100%;

  min-height: 48px;

  padding: 10px 14px;

  border: 1px solid var(--border);

  border-radius: 11px;

  background: var(--surface);

  color: var(--text);

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition);

}


.search-field input {

  padding-left: 43px;

}


.search-field input:focus,
.filter-field select:focus {

  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    color-mix(
      in srgb,
      var(--primary) 12%,
      transparent
    );

}


.threat-grid {

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  margin-bottom: 22px;

}


.threat-grid:empty {
  display: none;
}


/* =========================================================
   14. HISTORY
   ========================================================= */

.history-card {

  padding: 26px;

}


.history-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding-bottom: 20px;

  margin-bottom: 10px;

  border-bottom: 1px solid var(--border);

}


.history-header h3 {

  margin-bottom: 4px;

  font-size: 1.1rem;

}


.history-header p {

  margin: 0;

  color: var(--text-muted);

  font-size: 0.82rem;

}


.history-list {

  display: grid;

  gap: 0;

  padding: 0;

  margin: 0;

  list-style: none;

}


.empty-history {

  min-height: 120px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  color: var(--text-muted);

  font-size: 0.9rem;

}


/* =========================================================
   15. SEO CONTENT
   ========================================================= */

.seo-container {

  max-width: 960px;

}


.seo-article {

  padding: 35px;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

}


.seo-article h3 {

  margin-top: 34px;

  margin-bottom: 12px;

  font-size: 1.35rem;

  line-height: 1.3;

  letter-spacing: -0.02em;

}


.seo-article h3:first-child {
  margin-top: 0;
}


.seo-article p,
.seo-article li {

  color: var(--text-soft);

  line-height: 1.8;

}


.seo-article p {

  margin-bottom: 16px;

}


.seo-article ol {

  padding-left: 22px;

}


.seo-article li {

  margin-bottom: 8px;

}


/* =========================================================
   16. FAQ
   ========================================================= */

.faq-list {

  max-width: 900px;

  display: grid;

  gap: 10px;

}


.faq-list details {

  border: 1px solid var(--border);

  border-radius: 13px;

  background: var(--surface);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

}


.faq-list summary {

  position: relative;

  padding: 19px 52px 19px 20px;

  color: var(--text);

  font-weight: 700;

  cursor: pointer;

  list-style: none;

}


.faq-list summary::-webkit-details-marker {
  display: none;
}


.faq-list summary::after {

  content: "+";

  position: absolute;

  right: 20px;

  top: 50%;

  transform: translateY(-50%);

  color: var(--primary);

  font-size: 1.25rem;

  font-weight: 500;

}


.faq-list details[open] summary::after {
  content: "−";
}


.faq-list details p {

  padding:
    0
    20px
    20px;

  margin: 0;

  color: var(--text-muted);

  line-height: 1.7;

}


/* =========================================================
   17. MODAL
   ========================================================= */

.modal {

  position: fixed;

  inset: 0;

  z-index: 2000;

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

  background:
    rgba(2, 6, 23, 0.62);

  backdrop-filter: blur(5px);

}


.modal.show,
.modal.active {
  display: flex;
}


.modal-content {

  width: min(
    100%,
    450px
  );

  padding: 30px;

  border: 1px solid var(--border);

  border-radius: var(--radius-lg);

  background: var(--surface);

  box-shadow: var(--shadow-lg);

  text-align: center;

}


.modal-icon {

  width: 58px;
  height: 58px;

  display: grid;

  place-items: center;

  margin: 0 auto 18px;

  border-radius: 16px;

  background: var(--danger-soft);

  color: var(--danger);

  font-size: 1.3rem;

}


.modal-content h2 {

  margin-bottom: 10px;

  font-size: 1.35rem;

}


.modal-content p {

  margin-bottom: 24px;

  color: var(--text-muted);

}


.modal-actions {

  display: flex;

  justify-content: center;

  gap: 10px;

}


/* =========================================================
   18. FOOTER
   ========================================================= */

.app-footer {

  border-top: 1px solid var(--border);

  background: var(--surface);

}


.footer-inner {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 40px;

  padding: 42px 0 30px;

}


.footer-logo {

  display: inline-block;

  margin-bottom: 8px;

  color: var(--text);

  font-weight: 800;

  text-decoration: none;

}


.footer-brand p {

  max-width: 420px;

  margin: 0;

  color: var(--text-muted);

  font-size: 0.86rem;

}


.footer-links {

  display: flex;

  flex-wrap: wrap;

  gap: 20px;

}


.footer-links a {

  color: var(--text-muted);

  font-size: 0.86rem;

  font-weight: 600;

  text-decoration: none;

  transition: color var(--transition);

}


.footer-links a:hover {

  color: var(--primary);

}


.footer-bottom {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px 0;

  border-top: 1px solid var(--border);

}


.footer-bottom p {

  margin: 0;

  color: var(--text-muted);

  font-size: 0.72rem;

}


/* =========================================================
   19. RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .hero-grid {

    grid-template-columns:
      minmax(0, 1fr)
      minmax(280px, 0.7fr);

    gap: 40px;

  }


  .status-grid {

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

  }


  .security-grid,
  .threat-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

  }

}


/* =========================================================
   20. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 800px) {

  .container {

    width: min(
      calc(100% - 30px),
      var(--container)
    );

  }


  .hero-section {

    padding:
      65px
      0
      55px;

  }


  .hero-grid {

    grid-template-columns: 1fr;

  }


  .hero-card {

    max-width: 620px;

  }


  .dashboard-grid {

    grid-template-columns: 1fr;

  }


  .performance-grid {

    grid-template-columns: 1fr;

  }


  .footer-inner {

    flex-direction: column;

  }


  .footer-bottom {

    flex-direction: column;

    align-items: flex-start;

  }

}


/* =========================================================
   21. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .container {

    width: min(
      calc(100% - 24px),
      var(--container)
    );

  }


  .header-inner {

    min-height: 64px;

  }


  .brand-icon {

    width: 38px;
    height: 38px;

  }


  .brand-text small {
    display: none;
  }


  .hero-section {

    padding:
      48px
      0
      45px;

  }


  .hero-content h1 {

    font-size:
      clamp(
        2.25rem,
        12vw,
        3.3rem
      );

  }


  .hero-actions {

    flex-direction: column;

  }


  .primary-button,
  .secondary-button {

    width: 100%;

  }


  .hero-card {

    padding: 23px;

  }


  .quick-results-section,
  .dashboard-section,
  .performance-section,
  .security-section,
  .insights-section,
  .threat-section,
  .history-section,
  .seo-section,
  .faq-section {

    padding: 58px 0;

  }


  .section-heading {

    margin-bottom: 26px;

  }


  .status-grid {

    grid-template-columns: 1fr;

  }


  .status-card {

    padding: 17px;

  }


  .dashboard-card,
  .security-card,
  .chart-card,
  .history-card {

    padding: 20px;

  }


  .data-row {

    align-items: flex-start;

    flex-direction: column;

    gap: 5px;

    padding:
      12px
      0;

  }


  .data-row strong {

    max-width: 100%;

    text-align: left;

  }


  .performance-card {

    padding: 20px;

  }


  .performance-card strong {

    font-size: 1.65rem;

  }


  .chart-container {

    height: 240px;

  }


  .security-grid,
  .threat-grid,
  .insights-grid {

    grid-template-columns: 1fr;

  }


  .security-card p {

    min-height: auto;

  }


  .threat-toolbar {

    grid-template-columns: 1fr;

  }


  .history-header {

    align-items: flex-start;

    flex-direction: column;

  }


  .history-header .danger-button {

    width: 100%;

  }


  .seo-article {

    padding: 22px;

  }


  .seo-article h3 {

    font-size: 1.2rem;

  }


  .modal-content {

    padding: 24px;

  }


  .modal-actions {

    flex-direction: column-reverse;

  }


  .modal-actions button {

    width: 100%;

  }


  .footer-inner {

    padding-top: 34px;

  }


  .footer-links {

    gap: 14px;

  }

}


/* =========================================================
   22. VERY SMALL DEVICES
   ========================================================= */

@media (max-width: 380px) {

  .hero-content h1 {

    font-size: 2.15rem;

  }


  .hero-lead {

    font-size: 1rem;

  }


  .hero-description {

    font-size: 0.9rem;

  }


  .performance-card {

    gap: 12px;

  }


  .performance-icon {

    width: 48px;
    height: 48px;

    flex-basis: 48px;

  }

}


/* =========================================================
   23. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

  }

}

/* =========================================================
   DYNAMIC DIAGNOSTIC COMPONENTS
   ========================================================= */

.insight-card,
.threat-card,
.history-item {

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow-sm);

}


.insight-card {

  display: flex;

  gap: 15px;

  padding: 22px;

}


.insight-icon {

  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background: var(--primary-soft);

  color: var(--primary);

}


.insight-card h3 {

  margin-bottom: 6px;

  font-size: 1rem;

}


.insight-card p {

  margin: 0;

  color: var(--text-muted);

  font-size: 0.84rem;

  line-height: 1.6;

}


.insight-success .insight-icon {

  background: var(--success-soft);

  color: var(--success);

}


.insight-warning .insight-icon {

  background: var(--warning-soft);

  color: var(--warning);

}


.insight-danger .insight-icon {

  background: var(--danger-soft);

  color: var(--danger);

}


/* Threat cards */

.threat-card {

  padding: 22px;

  transition:
    transform var(--transition),
    box-shadow var(--transition);

}


.threat-card:hover {

  transform: translateY(-3px);

  box-shadow: var(--shadow);

}


.threat-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 14px;

  color: var(--text-muted);

  font-size: 0.7rem;

  font-weight: 700;

}


.threat-severity {

  padding: 4px 8px;

  border-radius: 999px;

  background: var(--danger-soft);

  color: var(--danger);

}


.threat-card h3 {

  margin-bottom: 6px;

  font-size: 1.05rem;

}


.threat-category {

  display: inline-block;

  margin-bottom: 12px;

  color: var(--primary);

  font-size: 0.75rem;

  font-weight: 700;

}


.threat-card p {

  margin: 0;

  color: var(--text-muted);

  font-size: 0.84rem;

  line-height: 1.6;

}


.severity-critical .threat-severity {

  background: var(--danger-soft);

  color: var(--danger);

}


.severity-high .threat-severity {

  background: var(--warning-soft);

  color: var(--warning);

}


.severity-medium .threat-severity {

  background: var(--primary-soft);

  color: var(--primary);

}


.severity-low .threat-severity {

  background: var(--success-soft);

  color: var(--success);

}


/* History */

.history-list {

  display: grid;

  gap: 10px;

}


.history-item {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 17px 18px;

}


.history-item > div {

  display: flex;

  flex-direction: column;

  gap: 3px;

}


.history-item > div:last-child {

  flex-direction: row;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 8px 16px;

}


.history-item strong {

  font-size: 0.86rem;

}


.history-item span {

  color: var(--text-muted);

  font-size: 0.76rem;

}


.test-result {

  padding: 13px;

  border-radius: 10px;

  background: var(--surface-soft);

}


.test-result strong {

  display: block;

  margin-bottom: 5px;

  color: var(--text);

  font-size: 0.82rem;

}


.test-result p {

  margin: 0;

  color: var(--text-muted);

  font-size: 0.76rem;

  line-height: 1.55;

}


.test-result small {

  display: block;

  margin-top: 8px;

  color: var(--text-muted);

  font-size: 0.7rem;

}


.test-status {

  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--text-muted);

  font-size: 0.78rem;

}


@media (max-width: 600px) {

  .history-item {

    align-items: flex-start;

    flex-direction: column;

  }


  .history-item > div:last-child {

    justify-content: flex-start;

  }

}

/* =========================================================
   HEADER NAVIGATION
========================================================= */

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}


/* =========================================================
   PRIMARY NAVIGATION
========================================================= */

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.main-navigation a i {
  font-size: 14px;
}

.main-navigation a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.main-navigation a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.25);
  outline-offset: 2px;
}

.main-navigation a:active {
  transform: translateY(1px);
}


/* =========================================================
   ACTIVE / CURRENT PAGE
========================================================= */

.main-navigation a[aria-current="page"] {
  color: #0f172a;
  background: #e2e8f0;
  font-weight: 700;
}


/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 768px) {

  .header-inner {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 17px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .main-navigation {
    gap: 3px;
  }

  .main-navigation a {
    width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }

  .main-navigation a span {
    display: none;
  }

  .main-navigation a i {
    font-size: 15px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 430px) {

  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .main-navigation {
    gap: 1px;
  }

  .main-navigation a {
    width: 36px;
    min-height: 36px;
  }

}