/*
Theme Name: SecurePulse Premium
Theme URI: https://securepulse.io
Author: SecurePulse
Author URI: https://securepulse.io
Description: A premium, elegant website security scanner WordPress theme. Clean minimalist structure with sophisticated micro-interactions, refined typography, and a luxury aesthetic.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: security, scanner, premium, elegant, minimalist, one-page, custom-colors, custom-logo
Text Domain: securepulse
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:           #0d0f14;
  --ink-deep:      #080a0e;
  --ink-mid:       #131720;
  --ink-surface:   #1a1f2e;
  --ink-raised:    #202535;
  --snow:          #f8f7f4;
  --pearl:         #ede9e1;
  --mist:          #c8c4bc;
  --smoke:         #8a8680;
  --ash:           #4a4842;
  --gold:          #c8a96e;
  --gold-light:    #dfc08a;
  --gold-dim:      #a08850;
  --gold-glow:     rgba(200, 169, 110, 0.10);
  --gold-border:   rgba(200, 169, 110, 0.22);
  --emerald:       #4caf7d;
  --emerald-dim:   rgba(76, 175, 125, 0.12);
  --ruby:          #c0545a;
  --ruby-dim:      rgba(192, 84, 90, 0.12);
  --amber:         #c8903a;
  --amber-dim:     rgba(200, 144, 58, 0.12);
  --sapphire:      #5b8ad4;
  --sapphire-dim:  rgba(91, 138, 212, 0.12);
  --text-primary:   #e8e6e1;
  --text-secondary: #9e9b95;
  --text-tertiary:  #5c5a56;
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-soft:    rgba(255, 255, 255, 0.09);
  --border-mid:     rgba(255, 255, 255, 0.13);
  --border-gold:    rgba(200, 169, 110, 0.22);
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-sans:     'DM Sans', system-ui, sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px; --radius-xl: 20px; --radius-pill: 100px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-gold: 0 0 30px rgba(200,169,110,0.15), 0 4px 20px rgba(0,0,0,0.4);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.05);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

body { background-color: var(--ink); color: var(--text-primary); font-family: var(--font-sans); font-weight: 300; line-height: 1.65; overflow-x: hidden; }

body.admin-bar { margin-top: 32px; }
a { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease-smooth); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
a, button, label, [role="button"] { cursor: pointer; }
input, textarea { cursor: text; }
::selection { background: rgba(200, 169, 110, 0.18); color: var(--text-primary); }


/* ============================================================
   AMBIENT BACKGROUND
   ============================================================ */
.ambient-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient-bg::before {
  content: ''; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(200,169,110,0.04) 0%, rgba(91,138,212,0.02) 40%, transparent 70%);
}
.ambient-bg::after {
  content: ''; position: absolute; bottom: -20%; right: -10%; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(91,138,212,0.03) 0%, transparent 70%);
}

/* CONTAINER */
.site-wrapper { position: relative; z-index: 2; min-height: 100vh; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 2rem; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--text-primary); }
.label-caps { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.mono { font-family: var(--font-mono); font-weight: 300; letter-spacing: 0.03em; }

/* ORNAMENT */
.ornament { display: flex; align-items: center; gap: 1rem; color: var(--gold); margin-bottom: 1.25rem; }
.ornament::before { content: ''; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-text { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(13, 15, 20, 0.72);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease-smooth);
}
.site-header.scrolled { height: 60px; background: rgba(8,10,14,0.94); border-color: var(--border-soft); }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-primary); }
.logo-text em { font-style: italic; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.site-nav a { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.04em; color: var(--text-secondary); position: relative; padding-bottom: 2px; transition: color 0.25s var(--ease-smooth); }
.site-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s var(--ease-out); }
.site-nav a:hover { color: var(--text-primary); }
.site-nav a:hover::after { width: 100%; }
.site-nav a.nav-active { color: var(--text-primary); }
.site-nav a.nav-active::after { width: 100%; background: var(--gold); }
.nav-cta { font-family: var(--font-mono) !important; font-size: 0.7rem !important; letter-spacing: 0.1em !important; padding: 0.55rem 1.4rem !important; background: transparent !important; border: 1px solid var(--border-gold) !important; border-radius: var(--radius-sm) !important; color: var(--gold) !important; transition: all 0.3s var(--ease-smooth) !important; }
.nav-cta:hover { border-color: var(--gold) !important; color: var(--gold-light) !important; box-shadow: 0 0 20px rgba(200,169,110,0.1) !important; background: var(--gold-glow) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text-secondary); transition: all 0.3s var(--ease-smooth); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-nav.open { display: flex; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: rgba(8,10,14,0.98); backdrop-filter: blur(24px); padding: 2rem; gap: 1.5rem; border-bottom: 1px solid var(--border-soft); animation: slideDown 0.35s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 140px 2rem 6rem; text-align: center; position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%); }
.hero-circles { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-circle { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero-circle:nth-child(1) { width: 400px; height: 400px; border: 1px solid rgba(200,169,110,0.07); }
.hero-circle:nth-child(2) { width: 660px; height: 660px; border: 1px solid rgba(200,169,110,0.045); }
.hero-circle:nth-child(3) { width: 920px; height: 920px; border: 1px solid rgba(200,169,110,0.022); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(200,169,110,0.06); border: 1px solid var(--border-gold); border-radius: 100px; padding: 0.45rem 1.2rem; margin-bottom: 2rem; animation: fadeUp 0.9s var(--ease-out) both; }
.hero-badge-dot { width: 5px; height: 5px; background: var(--emerald); border-radius: 50%; animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(76,175,125,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(76,175,125,0); } }
.hero-badge-text { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.hero-headline { font-family: var(--font-serif); font-size: clamp(3rem, 8vw, 7.5rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 2rem; animation: fadeUp 1s 0.1s var(--ease-out) both; }
.hero-headline .word-accent { font-style: italic; color: var(--gold); }
.hero-headline .word-light { color: var(--text-secondary); }
.hero-subtitle { max-width: 560px; font-size: 1rem; font-weight: 300; color: var(--text-secondary); line-height: 1.85; margin-bottom: 2.5rem; animation: fadeUp 1s 0.2s var(--ease-out) both; }
.hero-cta-group { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 4.5rem; animation: fadeUp 1s 0.3s var(--ease-out) both; }
.btn-primary { display: inline-flex; align-items: center; gap: 10px; padding: 0.85rem 2rem; background: var(--gold); border: none; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); cursor: pointer; position: relative; overflow: hidden; transition: all 0.35s var(--ease-smooth); }
.btn-primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,169,110,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-arrow { font-size: 1rem; line-height: 1; transition: transform 0.3s var(--ease-spring); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 0.85rem 0.5rem; background: transparent; border: none; font-family: var(--font-sans); font-size: 0.82rem; font-weight: 300; color: var(--text-secondary); cursor: pointer; position: relative; transition: color 0.25s ease; border-bottom: 1px solid var(--border-soft); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--gold-dim); }
.hero-stats { display: flex; align-items: center; gap: 2.5rem; animation: fadeUp 1s 0.45s var(--ease-out) both; }
.hero-stat-divider { width: 1px; height: 28px; background: var(--border-subtle); }
.hero-stat { text-align: center; }
.hero-stat-number { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 300; color: var(--text-primary); line-height: 1; letter-spacing: -0.02em; }
.hero-stat-number em { font-style: normal; color: var(--gold); }
.hero-stat-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 5px; display: block; }
.scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fadeIn 1.5s 1s ease both; }
.scroll-indicator-line { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--border-mid)); animation: scrollDrop 2.8s ease-in-out infinite; }
@keyframes scrollDrop { 0% { height: 0; opacity: 0; } 30% { height: 40px; opacity: 1; } 70% { height: 40px; opacity: 1; } 100% { height: 0; opacity: 0; transform: translateY(18px); } }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section { padding: 7rem 2rem; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent); margin: 0 2rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1rem; }
.section-title em { font-style: italic; color: var(--gold); }
.section-desc { font-size: 0.95rem; font-weight: 300; color: var(--text-secondary); line-height: 1.85; max-width: 500px; }
.section-header { margin-bottom: 3.5rem; }

/* ============================================================
   SCANNER SECTION
   ============================================================ */
.scanner-section { padding: 7rem 0; }
.scanner-card { background: var(--ink-surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg), var(--shadow-inset); position: relative; }
.scanner-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-gold), transparent); }
.scanner-card-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.75rem; border-bottom: 1px solid var(--border-subtle); background: rgba(0,0,0,0.15); }
.scanner-card-title { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); display: flex; align-items: center; gap: 10px; }
.scanner-card-title::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(76,175,125,0.5); animation: breathe 3s ease-in-out infinite; }
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.65; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #28ca41; }
.scanner-card-body { padding: 2.5rem; }
.scanner-input-group { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.scanner-input-wrap { flex: 1; position: relative; }
.scanner-input-prefix { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold-dim); pointer-events: none; z-index: 1; }
.scanner-input { width: 100%; background: rgba(0,0,0,0.25); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 1rem 1.2rem 1rem 2.4rem; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 300; color: var(--text-primary); outline: none; transition: all 0.3s var(--ease-smooth); letter-spacing: 0.02em; }
.scanner-input::placeholder { color: var(--text-tertiary); }
.scanner-input:focus { border-color: var(--gold-dim); background: rgba(200,169,110,0.03); box-shadow: 0 0 0 3px rgba(200,169,110,0.08); }
.scan-btn { display: inline-flex; align-items: center; gap: 8px; padding: 1rem 1.75rem; background: var(--gold); border: none; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap; min-width: 145px; justify-content: center; position: relative; overflow: hidden; transition: all 0.3s var(--ease-smooth); }
.scan-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.35); background: var(--gold-light); color: var(--ink); }
.scan-btn:active { transform: translateY(0); }
.scan-btn.scanning { background: var(--ink-raised); color: var(--gold); border: 1px solid var(--border-gold); pointer-events: none; }
.scan-options { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.75rem; }
.scan-option { display: flex; align-items: center; gap: 8px; padding: 0.42rem 1rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-soft); border-radius: 100px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; color: var(--text-secondary); cursor: pointer; transition: all 0.25s var(--ease-smooth); user-select: none; }
.scan-option input { display: none; }
.scan-option:hover { border-color: var(--border-gold); color: var(--text-primary); }
.scan-option.active { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-glow); }
.opt-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-tertiary); transition: all 0.25s ease; }
.scan-option.active .opt-dot { background: var(--gold); box-shadow: 0 0 8px rgba(200,169,110,0.5); }
.scan-progress-wrap { display: none; margin-bottom: 1.75rem; }
.scan-progress-wrap.active { display: block; }
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.progress-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-secondary); }
.progress-pct { font-family: var(--font-serif); font-size: 0.9rem; color: var(--gold); }
.progress-track { height: 2px; background: var(--border-subtle); border-radius: 100px; overflow: hidden; position: relative; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 100px; width: 0%; transition: width 0.35s var(--ease-out); position: relative; }
.progress-fill::after { content: ''; position: absolute; right: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(200,169,110,0.6); }
.scan-log { background: rgba(0,0,0,0.35); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.2rem; max-height: 180px; overflow-y: auto; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 300; line-height: 1.9; margin-top: 1rem; }
.scan-log::-webkit-scrollbar { width: 3px; }
.scan-log::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
.log-line { display: block; animation: logAppear 0.35s var(--ease-out); }
.log-line.info { color: var(--text-secondary); } .log-line.success { color: var(--emerald); } .log-line.warning { color: var(--amber); } .log-line.danger { color: var(--ruby); } .log-line.accent { color: var(--gold); }
@keyframes logAppear { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
.results-section { display: none; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--border-subtle); animation: fadeUp 0.6s var(--ease-out); }
.results-section.active { display: block; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.results-title { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 400; display: flex; align-items: center; gap: 0.5rem; }
.results-title-host { font-style: italic; color: var(--gold); }
.score-badge { display: inline-flex; align-items: center; gap: 6px; padding: 0.4rem 1.1rem; border-radius: 100px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; border: 1px solid; }
.score-badge.good { color: var(--emerald); border-color: rgba(76,175,125,0.25); background: var(--emerald-dim); }
.score-badge.warning { color: var(--amber); border-color: rgba(200,144,58,0.25); background: var(--amber-dim); }
.score-badge.bad { color: var(--ruby); border-color: rgba(192,84,90,0.25); background: var(--ruby-dim); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.vuln-card { background: rgba(0,0,0,0.2); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 1.25rem; transition: all 0.3s var(--ease-smooth); position: relative; overflow: hidden; cursor: default; }
.vuln-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; }
.vuln-card.critical::before { background: var(--ruby); } .vuln-card.high::before { background: var(--amber); } .vuln-card.medium::before { background: #c0b838; } .vuln-card.low::before { background: var(--emerald); } .vuln-card.pass::before { background: var(--sapphire); }
.vuln-card:hover { border-color: var(--border-mid); background: rgba(0,0,0,0.3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vuln-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.vuln-name { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; color: var(--text-primary); letter-spacing: 0.02em; line-height: 1.4; }
.severity-tag { font-family: var(--font-mono); font-size: 0.56rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: var(--radius-sm); white-space: nowrap; flex-shrink: 0; border: 1px solid; }
.severity-tag.critical { background: var(--ruby-dim); color: var(--ruby); border-color: rgba(192,84,90,0.2); }
.severity-tag.high { background: var(--amber-dim); color: var(--amber); border-color: rgba(200,144,58,0.2); }
.severity-tag.medium { background: rgba(192,184,56,0.1); color: #b8b038; border-color: rgba(192,184,56,0.2); }
.severity-tag.low { background: var(--emerald-dim); color: var(--emerald); border-color: rgba(76,175,125,0.2); }
.severity-tag.pass { background: var(--sapphire-dim); color: var(--sapphire); border-color: rgba(91,138,212,0.2); }
.vuln-desc { font-size: 0.78rem; font-weight: 300; color: var(--text-secondary); line-height: 1.65; }
.vuln-meta { margin-top: 0.5rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-tertiary); letter-spacing: 0.06em; }

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section { padding: 7rem 2rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; margin-top: 3.5rem; }
.feature-card { background: var(--ink-mid); padding: 2rem; transition: background 0.35s var(--ease-smooth); position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200,169,110,0.05) 0%, transparent 55%); opacity: 0; transition: opacity 0.4s ease; }
.feature-card:hover { background: var(--ink-surface); }
.feature-card:hover::after { opacity: 1; }
.feature-number { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; color: var(--border-soft); line-height: 1; margin-bottom: 1.25rem; letter-spacing: -0.02em; transition: color 0.3s ease; }
.feature-card:hover .feature-number { color: rgba(200,169,110,0.12); }
.feature-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 0.5rem; color: var(--text-primary); position: relative; z-index: 1; }
.feature-desc { font-size: 0.8rem; font-weight: 300; color: var(--text-secondary); line-height: 1.7; position: relative; z-index: 1; }
.feature-tag { display: inline-block; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); padding: 0.2rem 0.6rem; border: 1px solid var(--border-gold); border-radius: 3px; position: relative; z-index: 1; }

/* ============================================================
   THREAT MAP
   ============================================================ */
.threat-section { padding: 7rem 2rem; }
.threat-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.threat-visual { position: relative; aspect-ratio: 1; max-width: 400px; margin: 0 auto; }
.radar-container { position: relative; width: 100%; aspect-ratio: 1; }
.radar-ring { position: absolute; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.radar-ring:nth-child(1) { width: 100%; height: 100%; border: 1px solid rgba(200,169,110,0.08); }
.radar-ring:nth-child(2) { width: 75%; height: 75%; border: 1px solid rgba(200,169,110,0.11); }
.radar-ring:nth-child(3) { width: 50%; height: 50%; border: 1px solid rgba(200,169,110,0.16); }
.radar-ring:nth-child(4) { width: 25%; height: 25%; border: 1px solid rgba(200,169,110,0.22); }
.radar-sweep { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(200,169,110,0.07) 0deg, transparent 55deg, transparent 360deg); animation: radarSpin 4s linear infinite; }
.radar-line { position: absolute; top: 50%; left: 50%; width: 50%; height: 1px; background: linear-gradient(90deg, rgba(200,169,110,0.4), transparent); transform-origin: left center; animation: radarSpin 4s linear infinite; }
@keyframes radarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-blip { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); animation: blipPulse 2.5s ease-in-out infinite; }
.radar-blip.critical { width: 8px; height: 8px; background: var(--ruby); box-shadow: 0 0 8px var(--ruby); }
.radar-blip.high { width: 7px; height: 7px; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.radar-blip.medium { width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
@keyframes blipPulse { 0%,100% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 0.3; transform: translate(-50%,-50%) scale(1.7); } }
.radar-center { position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(200,169,110,0.5); }
.radar-crosshair { position: absolute; inset: 0; pointer-events: none; }
.radar-crosshair::before,.radar-crosshair::after { content: ''; position: absolute; background: rgba(200,169,110,0.05); }
.radar-crosshair::before { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }
.radar-crosshair::after { height: 1px; width: 100%; top: 50%; transform: translateY(-50%); }
.threat-stats-list { list-style: none; display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2.5rem; }
.threat-stat { display: flex; flex-direction: column; gap: 8px; }
.threat-stat-label-row { display: flex; justify-content: space-between; align-items: center; }
.threat-stat-name { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-secondary); }
.threat-stat-val { font-family: var(--font-serif); font-size: 0.9rem; color: var(--text-primary); }
.threat-bar { height: 2px; background: var(--border-subtle); border-radius: 100px; overflow: hidden; }
.threat-bar-fill { height: 100%; border-radius: 100px; width: 0%; transition: width 1.2s var(--ease-out); }

/* ============================================================
   PLANS
   ============================================================ */
.plans-section { padding: 7rem 2rem; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; align-items: start; }
.plan-card { background: var(--ink-surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 2.25rem; transition: all 0.4s var(--ease-smooth); position: relative; overflow: hidden; }
.plan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft), transparent); }
.plan-card:hover { border-color: var(--border-mid); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured { background: linear-gradient(150deg, rgba(200,169,110,0.06) 0%, var(--ink-surface) 100%); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }
.plan-card.featured::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.plan-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--ink); font-family: var(--font-mono); font-size: 0.58rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.28rem 1.2rem; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.plan-tier { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1rem; display: block; }
.plan-card.featured .plan-tier { color: var(--gold-dim); }
.plan-price-wrap { display: flex; align-items: baseline; gap: 4px; margin-bottom: 0.3rem; }
.plan-currency { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 300; color: var(--text-secondary); align-self: flex-start; margin-top: 6px; }
.plan-price { font-family: var(--font-serif); font-size: 3.4rem; font-weight: 300; color: var(--text-primary); line-height: 1; letter-spacing: -0.03em; }
.plan-period { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 300; color: var(--text-tertiary); align-self: flex-end; margin-bottom: 5px; }
.plan-subtitle { font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-tertiary); margin-bottom: 2rem; letter-spacing: 0.04em; }
.plan-divider { height: 1px; background: var(--border-subtle); margin-bottom: 1.75rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.plan-feature { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 300; color: var(--text-secondary); }
.plan-feature .check { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; background: var(--emerald-dim); color: var(--emerald); border: 1px solid rgba(76,175,125,0.2); }
.plan-feature.disabled { opacity: 0.3; }
.plan-feature.disabled .check { background: transparent; color: var(--text-tertiary); border-color: var(--border-subtle); }
.plan-btn { display: block; width: 100%; padding: 0.9rem; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; cursor: pointer; transition: all 0.3s var(--ease-smooth); border: 1px solid; }
.plan-btn.outline { background: transparent; border-color: var(--border-mid); color: var(--text-secondary); }
.plan-btn.outline:hover { border-color: var(--border-gold); color: var(--gold); background: var(--gold-glow); }
.plan-btn.filled { background: var(--gold); border-color: transparent; color: var(--ink); }
.plan-btn.filled:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,169,110,0.35); background: var(--gold-light); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { padding: 2.5rem 2rem; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.trust-strip-inner { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-tertiary); }
.trust-icon { font-size: 1rem; opacity: 0.45; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-copy { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 300; color: var(--text-tertiary); letter-spacing: 0.06em; }
.footer-copy em { font-style: normal; color: var(--gold-dim); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 300; color: var(--text-tertiary); letter-spacing: 0.08em; transition: color 0.25s ease; }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) { .threat-inner { grid-template-columns: 1fr; } .threat-visual { max-width: 300px; margin: 0 auto 2.5rem; } .container { padding: 0 1.5rem; } }
@media (max-width: 720px) { .site-nav { display: none; } .site-nav.open { display: flex; } .nav-toggle { display: flex; } .scanner-input-group { flex-direction: column; } .scan-btn { min-width: unset; width: 100%; } .plans-grid { grid-template-columns: 1fr; } .hero-stats { flex-wrap: wrap; justify-content: center; gap: 1.5rem; } .hero-stat-divider { display: none; } .hero-cta-group { flex-direction: column; align-items: center; } .features-grid { grid-template-columns: 1fr; } .trust-strip-inner { gap: 1.5rem; } .section, .scanner-section, .features-section, .threat-section, .plans-section { padding: 5rem 1.5rem; } }

/* WordPress */
.alignnone { margin: 0 auto 1rem; } .aligncenter { display: block; margin: 0 auto 1rem; } .alignleft { float: left; margin: 0 1.5rem 1rem 0; } .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ============================================================
   SecurePulse v2 — Fix Guide Button & Modal
   ============================================================ */

/* ── Fix Guide Button on vuln cards ── */
.vuln-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vuln-sev-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted, #6b7280);
  letter-spacing: 0.05em;
}

.sp-fix-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--cyan, #00e5ff);
  border-radius: 4px;
  color: var(--cyan, #00e5ff);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
  white-space: nowrap;
}
.sp-fix-btn:hover {
  background: var(--cyan, #00e5ff);
  color: #020408;
  box-shadow: 0 0 14px rgba(0,229,255,0.35);
  transform: translateY(-1px);
}
.sp-fix-btn-icon { font-size: 0.85rem; }

/* ── Solution Link (in result cards) ── */
.vuln-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sp-solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.sp-solution-link:hover {
  background: var(--gold-glow);
  color: var(--gold-light);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.sp-solution-link-icon { font-size: 0.85rem; }

/* ── Modal Backdrop ── */
#sp-fix-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}
#sp-fix-modal.open { display: block; }

.sp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(6px);
}

/* ── Modal Box ── */
.sp-modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 94vw);
  max-height: 88vh;
  background: #0a0f1a;
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0,229,255,0.12), 0 24px 60px rgba(0,0,0,0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sp-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.07);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}
.sp-modal-close:hover { background: rgba(255,77,109,0.25); color: #ff4d6d; }

.sp-modal-content {
  overflow-y: auto;
  flex: 1;
  padding: 2rem 2rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,0.3) transparent;
}

/* ── Loading State ── */
.sp-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1.25rem;
  color: var(--text-muted, #6b7280);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
}

.sp-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(0,229,255,0.15);
  border-top-color: var(--cyan, #00e5ff);
  border-radius: 50%;
  animation: sp-spin 0.75s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* ── Guide Content ── */
.sp-guide-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sp-guide-severity {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.sp-guide-severity.critical { background: rgba(255,45,85,0.15); color: #ff4d6d; border: 1px solid rgba(255,45,85,0.35); }
.sp-guide-severity.high     { background: rgba(255,100,50,0.12); color: #ff6432; border: 1px solid rgba(255,100,50,0.3); }
.sp-guide-severity.medium   { background: rgba(255,165,0,0.1);  color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }
.sp-guide-severity.low      { background: rgba(0,200,150,0.1);  color: #00c896; border: 1px solid rgba(0,200,150,0.25); }
.sp-guide-severity.pass     { background: rgba(0,229,255,0.08); color: #00e5ff; border: 1px solid rgba(0,229,255,0.2); }

.sp-guide-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 0.6rem;
  padding-right: 2.5rem;
  line-height: 1.3;
}

.sp-guide-meta {
  display: flex;
  gap: 1.2rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
}

.sp-guide-section { margin-bottom: 1.4rem; }
.sp-guide-section h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan, #00e5ff);
  margin-bottom: 0.55rem;
  opacity: 0.85;
}
.sp-guide-section p {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  color: #c8d0e0;
  line-height: 1.65;
  margin: 0;
}

/* ── Steps ── */
.sp-guide-steps { display: flex; flex-direction: column; gap: 0.85rem; }
.sp-guide-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(0,229,255,0.04);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.sp-guide-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan, #00e5ff);
  color: #020408;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.sp-guide-step-body strong {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e8edf5;
  margin-bottom: 0.3rem;
}
.sp-guide-step-body p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: #8fa0b8;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

/* ── Verify box ── */
.sp-guide-verify {
  background: rgba(0,200,150,0.05);
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.sp-guide-verify h3 { color: #00c896; }

/* ── Links ── */
.sp-guide-links {
  margin-top: 0.5rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1rem;
}
.sp-guide-links a { color: var(--cyan, #00e5ff); text-decoration: none; }
.sp-guide-links a:hover { text-decoration: underline; }

/* ── Error state ── */
.sp-guide-error {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255,45,85,0.07);
  border: 1px solid rgba(255,45,85,0.25);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.sp-guide-error-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.05rem; }
.sp-guide-error p {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  color: #c8d0e0;
  margin: 0;
  line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 540px) {
  .sp-modal-content { padding: 1.5rem 1.25rem 1.25rem; }
  .sp-guide-header h2 { font-size: 1.05rem; }
  .sp-fix-btn { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
}

/* ============================================================
   SecurePulse v3 — Group Headers & Summary Bar
   ============================================================ */

/* ── Results Summary Bar ── */
.sp-results-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
.sp-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  gap: 0.2rem;
}
.sp-summary-item span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.sp-summary-item small {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted, #6b7280);
}
.sp-summary-pass span { color: #00c896; }
.sp-summary-fail span { color: #ff4d6d; }
.sp-summary-warn span { color: #ffa500; }
.sp-summary-total span { color: var(--cyan, #00e5ff); }

/* ── Group Header ── */
.sp-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem 0.55rem 0.5rem;
  margin: 1.4rem 0 0.6rem;
  border-left: 3px solid var(--cyan, #00e5ff);
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sp-group-header:first-of-type { margin-top: 0; }

.sp-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan, #00e5ff);
}

.sp-group-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.sp-gs-fail, .sp-gs-warn, .sp-gs-pass {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}
.sp-gs-fail { background: rgba(255,77,109,0.12); color: #ff4d6d; border: 1px solid rgba(255,77,109,0.3); }
.sp-gs-warn { background: rgba(255,165,0,0.1);   color: #ffa500; border: 1px solid rgba(255,165,0,0.3); }
.sp-gs-pass { background: rgba(0,200,150,0.1);   color: #00c896; border: 1px solid rgba(0,200,150,0.25); }

/* ── Critical Group Highlights (Malware & Exposed Files) ── */
.sp-group-header[data-group="Malware & Backdoors"] .sp-group-title,
.sp-group-header[data-group="Exposed Files"] .sp-group-title {
  color: #ff4d6d;
}
.sp-group-header[data-group="Malware & Backdoors"] {
  border-left: 2px solid rgba(255,77,109,0.5);
  padding-left: 0.75rem;
}
.sp-group-header[data-group="Exposed Files"] {
  border-left: 2px solid rgba(255,120,0,0.5);
  padding-left: 0.75rem;
}
.sp-group-header[data-group="WordPress Config"] .sp-group-title {
  color: #ffa500;
}

/* ============================================================
   SECUREPULSE OPTIMIZATION PATCH
   SEO · Accessibility · Mobile · Performance
   ============================================================ */

/* ── Skip to content link (accessibility) ── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 1rem;
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

/* ── Focus-visible styles (keyboard nav) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove outline for mouse users on buttons */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ── Touch target minimum size (WCAG 2.5.5) ── */
.nav-toggle,
.btn-primary,
.btn-ghost,
.nav-cta,
.scan-btn,
button {
  min-height: 44px;
  min-width: 44px;
}

/* ── Improved nav-toggle hit area ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-smooth), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Respect reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .ambient-bg { display: none; }
}

/* ── High-contrast mode support ── */
@media (forced-colors: active) {
  .btn-primary, .btn-ghost, .nav-cta {
    border: 2px solid ButtonText;
  }
  .site-header {
    border-bottom: 1px solid ButtonText;
  }
}

/* ── Fluid typography scale (clamp) ── */
h1, .hero-headline {
  font-size: clamp(2rem, 6vw + 1rem, 5rem);
}
h2, .section-title {
  font-size: clamp(1.5rem, 3vw + 1rem, 2.75rem);
}
h3 {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
}

/* ── Mobile Navigation — full-screen overlay ── */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(8, 10, 14, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav li a {
    font-size: 1.35rem;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    padding: 0.5rem 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .site-nav li a.nav-cta {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-family: var(--font-sans);
  }

  /* Header layout on mobile */
  .site-header {
    padding: 0 1rem;
    min-height: 60px;
  }
  .logo-text {
    font-size: 1.1rem;
  }
}

/* ── Small phone (≤ 390px) ── */
@media (max-width: 390px) {
  .container, .container--narrow {
    padding: 0 1rem;
  }
  .hero-headline {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .hero-stat-number {
    font-size: 1.8rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
  }
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
  .scanner-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }
  .scanner-input {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
  }
  .section, .scanner-section, .features-section, .threat-section, .plans-section {
    padding: 3.5rem 1rem;
  }
  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .plan-card {
    padding: 1.5rem 1.25rem;
  }
  .sp-results-summary {
    gap: 0.5rem;
  }
  .sp-summary-item span {
    font-size: 1.2rem;
  }
}

/* ── Landscape phone fix ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 2rem 1rem;
    min-height: auto;
  }
  .hero-headline {
    font-size: 1.8rem;
  }
}

/* ── Image optimisation ── */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Print styles (SEO score, basic) ── */
@media print {
  .site-header,
  .nav-toggle,
  .ambient-bg,
  .hero-circles,
  .hero-grid-bg,
  .scroll-indicator,
  .trust-strip,
  footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  h1, h2, h3 {
    color: #000;
    page-break-after: avoid;
  }
}

/* ── Improved link underlines for readability ── */
.single-content a,
.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold-dim);
}
.single-content a:hover,
.page-content a:hover {
  text-decoration-color: var(--gold);
}

/* ── Prevent horizontal scroll on all screens ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ── Improved screen-reader-text (WCAG) ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--ink-surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--text-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ── Scanner input — better mobile keyboard ── */
.scanner-input {
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
@media (max-width: 720px) {
  .scanner-input {
    border-radius: var(--radius-md);
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

/* ── CLS prevention: reserve space for images ── */
.hero-image-wrap img,
.feature-icon img,
.sp-card-img img {
  aspect-ratio: attr(width) / attr(height);
}

/* ── Smooth scroll offset for fixed header ── */
:target {
  scroll-margin-top: 80px;
}

/* ── Improved contrast ratios ── */
.text-muted,
.section-desc,
.hero-stat-label,
.footer-copy {
  color: var(--text-secondary);
  /* Minimum 4.5:1 against dark background */
}

/* ── Mobile: fix SP results modal ── */
@media (max-width: 480px) {
  .sp-modal-overlay {
    align-items: flex-end;
  }
  .sp-modal-content {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1rem 2rem;
  }
  .sp-group-stats {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ── Sticky header performance ── */
.site-header {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

