  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #191127;
    --surface: #23133a;
    --border: #3a1c63;
    --accent: #883CF0;
    --accent2: #7b5cff;
    --accent3: #af62c8;
    --text: #c8dde8;
    --muted: #d6d6d6;
    --glow: 0 0 20px #be52e50f;
    --glow2: 0 0 20px #be52e535;
  }

  html { scroll-behavior: smooth; }

  .desktop-app-security {
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    cursor: crosshair;
    height: 100vh;
  }

  /* SCAN LINE OVERLAY */
  .desktop-app-security::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(170, 0, 255, 0.015) 2px,
      rgba(136, 0, 255, 0.015) 4px
    );
    pointer-events: none;
  }

  /* NOISE GRAIN */
  .desktop-app-security::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
  }

  /* GRID BACKGROUND */
  .grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(179, 0, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(191, 0, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
  }

  /* FLOATING PARTICLES */
  #particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

  /* HEADER */
  .desktop-app-security header {
    position: relative;
    padding: 60px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
  }

  .logo {
    
    font-size: 0.75rem;
    color: var(--accent);
    
    text-transform: uppercase;
    opacity: 0.8;
  }

  .status-bar {
    
    font-size: 0.65rem;
    color: var(--muted);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .status-bar .live {
    color: var(--accent3);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
  }

  .live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent3);
    animation: pulse-dot 1.5s infinite;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent3); }
    50% { opacity: 0.4; box-shadow: none; }
  }

  /* HERO */
  .hero {
    position: relative;
    padding: 60px 40px 40px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .hero-eyebrow {
    
    font-size: 0.7rem;
    
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.2s forwards;
  }

  .hero-title {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    
    color: #fff;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
  }

  .hero-title span {
    -webkit-text-stroke: 1px var(--accent);
    color: transparent;
    display: block;
  }

  .hero-title em {
    color: var(--accent2);
    font-style: normal;
  }

  .hero-sub {
    
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.7;
    margin-top: 32px;
    opacity: 0;
    animation: fadeUp 0.8s 0.6s forwards;
  }

  .hero-decoration {
    position: absolute;
    right: 40px;
    top: 40px;
    width: 420px;
    height: 420px;
    opacity: 0;
    animation: fadeIn 1.2s 0.8s forwards;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* THREAT TICKER */
  .threat-ticker {
    position: relative;
    background: #1f1232;
    border-top: 1px solid #3a1c63;
    border-bottom: 1px solid #3a1c63;
    padding: 10px 0;
    overflow: hidden;
    margin: 20px 0;
  }

  .ticker-inner {
    display: flex;
    gap: 80px;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    
    font-size: 0.7rem;
    color: var(--accent2);
    
  }

  @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .ticker-item::before { content: '⚠ '; }

  /* SECTION */
  .desktop-app-security section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
  }

  .section-label {
    
    font-size: 0.65rem;
    
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* TOP 10 VULNERABILITIES */
  .vuln-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }

  .vuln-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 28px 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }

  .vuln-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .vuln-card:hover {
    border-color: var(--accent);
    background: #1f1232;
    box-shadow: var(--glow);
    transform: translateY(-4px);
  }

  .vuln-card:hover::before { transform: scaleX(1); }

  .vuln-card.danger:hover {
    border-color: var(--accent2);
    background: #2a1647;
    box-shadow: var(--glow2);
  }

  .vuln-card.danger::before { background: var(--accent2); }

  .vuln-num {
    
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.3s;
  }

  .vuln-card:hover .vuln-num { color: var(--accent); }
  .vuln-card.danger:hover .vuln-num { color: var(--accent2); }

  .vuln-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .vuln-tag {
    
    font-size: 0.6rem;
    color: var(--muted);
    
  }

  .vuln-severity {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
  }

  .sev-critical { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
  .sev-high { background: #ff8c00; box-shadow: 0 0 8px #ff8c00; }
  .sev-medium { background: #ffd700; box-shadow: 0 0 8px #ffd700; }

  /* DETAIL PANEL */
  .detail-panel {
    margin-top: 2px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .detail-panel.open { max-height: 400px; }

  .detail-inner {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }

  .detail-col h4 {
    
    font-size: 0.65rem;
    
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .detail-col p, .detail-col li {
    
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .detail-col ul { list-style: none; }
  .detail-col li::before { content: '→ '; color: var(--accent); }

  .code-snippet {
    background: #040810;
    border: 1px solid var(--border);
    padding: 16px;
    
    font-size: 0.65rem;
    color: var(--accent3);
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
    margin-top: 12px;
  }

  /* SECURITY SCANNER WIDGET */
  .scanner-section {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 48px;
    position: relative;
    overflow: hidden;
  }

  .scanner-section::before {
    content: 'SECURITY ANALYZER';
    position: absolute;
    top: 20px; right: 24px;
    
    font-size: 0.6rem;
    color: var(--border);
    
  }

  .scanner-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
  }

  .scanner-sub {
    
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 32px;
  }

  .scanner-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .scanner-input {
    flex: 1;
    min-width: 280px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    
    font-size: 0.8rem;
    padding: 14px 20px;
    outline: none;
    transition: border-color 0.2s;
  }

  .scanner-input:focus { border-color: var(--accent); box-shadow: var(--glow); }
  .scanner-input::placeholder { color: var(--muted); }

  .scan-btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    
    font-size: 0.75rem;
    font-weight: 700;
    
    text-transform: uppercase;
    padding: 14px 32px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .scan-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .scan-btn:hover::after { transform: translateX(100%); }
  .scan-btn:hover { box-shadow: var(--glow); }
  .scan-btn:active { transform: scale(0.98); }

  .scan-results {
    display: none;
  }

  .scan-results.show { display: block; }

  .scan-bar-wrap {
    margin-bottom: 12px;
  }

  .scan-bar-label {
    display: flex;
    justify-content: space-between;
    
    font-size: 0.65rem;
    color: var(--muted);
    margin-bottom: 6px;
  }

  .scan-bar-label span:last-child { color: var(--accent); }

  .scan-bar-track {
    height: 4px;
    background: var(--border);
    position: relative;
    overflow: hidden;
  }

  .scan-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .scan-bar-fill.red { background: var(--accent2); }
  .scan-bar-fill.orange { background: #ff8c00; }
  .scan-bar-fill.yellow { background: #ffd700; }

  .scan-score {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
  }

  .score-ring {
    width: 100px; height: 100px;
    position: relative;
    flex-shrink: 0;
  }

  .score-ring svg { transform: rotate(-90deg); }

  .score-ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    font-size: 1.6rem;
    color: var(--accent2);
    line-height: 1;
  }

  .score-ring-num small {
    font-size: 0.55rem;
    color: var(--muted);
    
  }

  .score-details { flex: 1; }

  .score-details h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
  }

  .score-details p {
    
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.6;
  }

  .findings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }

  .finding-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s;
  }

  .finding-item.visible {
    opacity: 1;
    transform: translateX(0);
  }

  .finding-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .finding-text {
    
    font-size: 0.7rem;
    flex: 1;
  }

  .finding-badge {
    
    font-size: 0.6rem;
    
    padding: 3px 8px;
    border: 1px solid currentColor;
  }

  /* ARCHITECTURE DIAGRAM */
  .arch-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }

  .arch-visual {
    position: relative;
  }

  .arch-diagram {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px;
  }

  .arch-node {
    border: 1px solid var(--border);
    padding: 14px 20px;
    margin-bottom: 2px;
    
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
  }

  .arch-node:hover {
    border-color: var(--accent);
    background: #1f1232;
    padding-left: 28px;
  }

  .arch-node-icon {
    width: 28px; height: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: border-color 0.2s;
  }

  .arch-node:hover .arch-node-icon { border-color: var(--accent); }

  .arch-node-label { flex: 1; color: var(--text); }

  .arch-node-status {
    font-size: 0.6rem;
    
    padding: 2px 8px;
  }

  .status-secure { color: var(--accent3); border: 1px solid rgba(168,255,62,0.3); }
  .status-warn { color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
  .status-vuln { color: var(--accent2); border: 1px solid rgba(255,60,95,0.3); }

  .arch-connector {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin-left: 53px;
    position: relative;
  }

  .arch-connector::after {
    content: '↓';
    position: absolute;
    bottom: -8px;
    left: -5px;
    font-size: 0.7rem;
    color: var(--muted);
  }

  .arch-info {
    padding-top: 40px;
  }

  .arch-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .arch-info p {
    
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
  }

  .checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    
    font-size: 0.72rem;
    color: var(--text);
    cursor: pointer;
    padding: 10px 16px;
    border: 1px solid transparent;
    transition: all 0.2s;
  }

  .check-item:hover { border-color: var(--border); background: rgba(255,255,255,0.02); }

  .check-box {
    width: 18px; height: 18px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 0.7rem;
  }

  .check-item.checked .check-box {
    border-color: var(--accent3);
    background: rgba(168,255,62,0.1);
    color: var(--accent3);
  }

  /* STATS ROW */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 60px 0;
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 3s infinite;
  }

  .stat-card:nth-child(2)::after { animation-delay: 0.75s; }
  .stat-card:nth-child(3)::after { animation-delay: 1.5s; }
  .stat-card:nth-child(4)::after { animation-delay: 2.25s; }

  @keyframes shimmer { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

  .stat-num {
    
    font-size: 3rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
  }

  .stat-num .unit { font-size: 1.2rem; color: var(--accent); }

  .stat-label {
    
    font-size: 0.65rem;
    color: var(--muted);
    
    text-transform: uppercase;
  }

  /* TERMINAL */
  .terminal {
    background: #020608;
    border: 1px solid var(--border);
    
    font-size: 0.75rem;
    overflow: hidden;
  }

  .terminal-bar {
    background: var(--surface);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
  }

  .term-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
  }

  .td-red { background: #ff5f57; }
  .td-yellow { background: #febc2e; }
  .td-green { background: #28c840; }

  .terminal-title {
    margin-left: 8px;
    font-size: 0.65rem;
    color: var(--muted);
    
  }

  .terminal-body {
    padding: 24px;
    height: 280px;
    overflow-y: auto;
    color: #4af;
  }

  .terminal-body::-webkit-scrollbar { width: 4px; }
  .terminal-body::-webkit-scrollbar-track { background: transparent; }
  .terminal-body::-webkit-scrollbar-thumb { background: var(--border); }

  .t-line { margin-bottom: 4px; line-height: 1.6; }
  .t-prompt { color: var(--accent3); }
  .t-comment { color: var(--muted); font-style: italic; }
  .t-warn { color: var(--accent2); }
  .t-ok { color: var(--accent3); }
  .t-info { color: var(--accent); }
  .t-cmd { color: #fff; }

  .cursor-blink {
    display: inline-block;
    width: 8px; height: 14px;
    background: var(--accent);
    vertical-align: middle;
    animation: blink 1s infinite;
  }

  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

  /* FOOTER */
  .desktop-app-security footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-brand {
    
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
  }

  .footer-brand span { color: var(--accent); }

  .footer-links {
    display: flex;
    gap: 32px;
    
    font-size: 0.65rem;
    
    text-transform: uppercase;
  }

  .footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--accent); }

  .footer-copy {
    
    font-size: 0.6rem;
    color: var(--muted);
    width: 100%;
  }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .vuln-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .arch-section { grid-template-columns: 1fr; }
    .hero-decoration { display: none; }
    .hero-title { font-size: 3rem; }
    .desktop-app-security header, .hero, section, .desktop-app-security footer { padding-left: 20px; padding-right: 20px; }
    .detail-inner { grid-template-columns: 1fr; }
  }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #873cf015; }
::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }