﻿/**
 * Copyright 2026 Georgi Emilov Isaev
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@400&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  --bg-primary: #0c0c0f;
  --bg-surface: #141419;
  --bg-raised: #1c1c24;
  --bg-hover: #25252f;

  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,0.12);
  --accent-hover: #818cf8;
  --accent-glow: rgba(99,102,241,0.08);

  --text-primary: #ececf1;
  --text-secondary: #a1a1aa;
  --text-muted: #63637a;

  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --blue: #3b82f6;
  --purple: #a855f7;

  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --max-width: 1120px;
  --nav-height: 64px;

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + 2rem);
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.25;
}
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  background: rgba(12, 12, 15, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  animation: navSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 12, 15, 0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-brand .logo-svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-links a svg,
.nav-links a i {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 12, 15, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}
.page-header {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.page-header h1 svg,
.page-header h1 i {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 7s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.13s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.stat-pill strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.39s both;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.14) 50%, transparent 65%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 0.65s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(99,102,241,0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.intro-text p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.highlight-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}

.highlight-card:hover {
  border-color: var(--accent);
}

.highlight-card .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.highlight-card .icon svg {
  width: 20px;
  height: 20px;
}

.highlight-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.highlight-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .intro-grid { grid-template-columns: 1fr; }
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
  padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
  padding-left: calc(50% + 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  border: 3px solid var(--bg-primary);
  z-index: 2;
  animation: dotPulse 2.8s ease-in-out infinite;
}

.timeline-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
  width: 100%;
}

.timeline-card:hover {
  border-color: var(--border-hover);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.375rem;
}

.timeline-card h4 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}

.timeline-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .timeline::before {
    left: 1rem;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 3rem;
  }

  .timeline-dot {
    left: 1rem;
  }
}
.device-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.device-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.device-card:hover .device-icon {
  animation: iconFloat 2.2s ease-in-out infinite;
}

.device-card .device-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}

.device-card .device-icon svg {
  width: 24px;
  height: 24px;
}

.device-card .device-icon .device-illustration {
  width: 28px;
  height: 28px;
}

.device-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.device-specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.spec-row .spec-label {
  color: var(--text-muted);
}

.spec-row .spec-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.device-card > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tag-pill {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.tag-pill.green { background: rgba(34,197,94,0.12); color: var(--green); }
.tag-pill.blue { background: rgba(59,130,246,0.12); color: var(--blue); }
.tag-pill.orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.tag-pill.purple { background: rgba(168,85,247,0.12); color: var(--purple); }
.tag-pill.red { background: rgba(239,68,68,0.12); color: var(--red); }
.tag-pill.yellow { background: rgba(234,179,8,0.12); color: var(--yellow); }
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

#inventoryTableWrap {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

#inventoryTableWrap::-webkit-scrollbar {
  height: 6px;
}

#inventoryTableWrap::-webkit-scrollbar-track {
  background: transparent;
}

#inventoryTableWrap::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

#inventoryTableWrap::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  background: var(--bg-raised);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-align: left;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--bg-hover);
}

.data-table .mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.fs-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.fs-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.fs-card .security-bar {
  height: 6px;
  background: var(--bg-raised);
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.fs-card .security-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.fs-card ul {
  list-style: none;
  margin-bottom: 1rem;
}

.fs-card ul li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.fs-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.verdict-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verdict-badge.good { background: rgba(34,197,94,0.12); color: var(--green); }
.verdict-badge.ok { background: rgba(234,179,8,0.12); color: var(--yellow); }
.verdict-badge.limited { background: rgba(249,115,22,0.12); color: var(--orange); }
.verdict-badge.poor { background: rgba(239,68,68,0.12); color: var(--red); }
.risk-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.risk-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.risk-card.critical::before { background: var(--red); }
.risk-card.high::before { background: var(--orange); }
.risk-card.medium::before { background: var(--yellow); }

.severity-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.severity-badge.critical { background: rgba(239,68,68,0.15); color: var(--red); }
.severity-badge.high { background: rgba(249,115,22,0.15); color: var(--orange); }
.severity-badge.medium { background: rgba(234,179,8,0.15); color: var(--yellow); }

.risk-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.risk-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.risk-card > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.risk-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.risk-meta span {
  font-family: var(--font-mono);
}
.encrypt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.encrypt-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.encrypt-card .subtitle {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.encrypt-card ul {
  list-style: none;
}

.encrypt-card ul li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.encrypt-card ul li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.backup-visual {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.backup-block {
  text-align: center;
  min-width: 140px;
}

.backup-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.backup-block h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.backup-block p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 180px;
  margin: 0 auto;
}

.nist-table-title {
  max-width: 860px;
  margin: -0.25rem auto 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--text-secondary);
}

.nist-table-note {
  max-width: 860px;
  margin: 0 auto 1rem;
  font-size: 0.78125rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

.nist-table-note .nist-badge {
  vertical-align: middle;
  margin: 0 0.2rem;
}

.nist-list {
  max-width: 900px;
  margin: 0 auto;
}

.nist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  transition: border-color var(--transition);
}

.nist-item:hover {
  border-color: var(--border-hover);
}

.nist-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
}

.nist-badge.id { background: rgba(59,130,246,0.15); color: var(--blue); }
.nist-badge.pr { background: rgba(34,197,94,0.15); color: var(--green); }
.nist-badge.de { background: rgba(234,179,8,0.15); color: var(--yellow); }
.nist-badge.rs { background: rgba(249,115,22,0.15); color: var(--orange); }
.nist-badge.rc { background: rgba(168,85,247,0.15); color: var(--purple); }

.nist-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.nist-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.case-card.danger::before { background: var(--red); }
.case-card.warning::before { background: var(--orange); }
.case-card.success::before { background: var(--green); }

.case-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-raised);
  border-radius: 4px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.case-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.625rem;
}

.case-card > p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.case-lesson {
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.screenshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.screenshot-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.22);
}

.screenshot-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screenshot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.68) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.screenshot-card::before {
  content: 'Open';
  position: absolute;
  right: 1rem;
  bottom: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(12,12,15,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
  z-index: 1;
}

.screenshot-card:hover::after,
.screenshot-card:hover::before,
.screenshot-card:focus-visible::after,
.screenshot-card:focus-visible::before {
  opacity: 1;
}

.screenshot-card:hover::before,
.screenshot-card:focus-visible::before {
  transform: translateY(0);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.screenshot-card figcaption {
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal.is-open .gallery-figure {
  animation: galleryFigureIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.gallery-modal.is-open .gallery-nav.prev {
  animation: galleryNavSlideLeft 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.gallery-modal.is-open .gallery-nav.next {
  animation: galleryNavSlideRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.gallery-modal.is-open .gallery-close {
  animation: galleryNavSlideRight 0.3s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(8px);
}

.gallery-dialog {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.gallery-figure {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.gallery-figure img {
  width: 100%;
  max-height: min(75vh, 900px);
  object-fit: contain;
  background: #08080b;
}

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.gallery-count {
  color: var(--accent);
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-source {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-style: italic;
  white-space: nowrap;
  flex-shrink: 0;
}

.gallery-figure img.is-entering {
  animation: galleryImgEnter 0.22s ease both;
}

.gallery-close,
.gallery-nav {
  border: 1px solid var(--border);
  background: rgba(20, 20, 25, 0.92);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.gallery-close:hover,
.gallery-nav:hover {
  background: var(--bg-raised);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.gallery-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gallery-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-close svg,
.gallery-nav svg {
  width: 22px;
  height: 22px;
}

body.gallery-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .gallery-dialog {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 2;
  }

  .gallery-nav.prev { left: 0.75rem; }
  .gallery-nav.next { right: 0.75rem; }

  .gallery-close:hover,
  .gallery-nav:hover {
    transform: translateY(-50%);
  }

  .gallery-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: var(--bg-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-col h4 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-col p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.charts-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}

.charts-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  height: fit-content;
  max-height: calc(100vh - var(--nav-height) - 4rem);
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-hover) transparent;
}

.charts-sidebar::-webkit-scrollbar {
  width: 6px;
}

.charts-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.charts-sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 3px;
}

.charts-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.charts-sidebar h3 {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  border-left: 2px solid transparent;
  transition: all var(--transition);
}

.sidebar-nav li a:hover {
  color: var(--text-secondary);
  background: var(--bg-raised);
}

.sidebar-nav li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-nav .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.charts-main {
  min-width: 0;
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.chart-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.chart-card .chart-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.chart-card canvas {
  width: 100% !important;
  max-height: 400px;
}

@media (max-width: 768px) {
  .charts-layout {
    grid-template-columns: 1fr;
  }

  .charts-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
  }

  .charts-sidebar h3 { display: none; }

  .sidebar-nav {
    display: flex;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .sidebar-nav li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: var(--radius-xs) var(--radius-xs) 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .sidebar-nav li a.active {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
  }

  .sidebar-nav .nav-divider {
    width: 1px;
    height: auto;
    margin: 0 0.25rem;
  }
}
.author-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.author-avatar {
  width: clamp(120px, 14vw, 156px);
  height: clamp(120px, 14vw, 156px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-hover);
  background: var(--bg-raised);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.author-info .author-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.author-info .author-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.author-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  background: var(--bg-raised);
  border-radius: var(--radius-xs);
  transition: all var(--transition);
}

.author-links a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.author-links a svg {
  width: 14px;
  height: 14px;
}

.author-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.detail-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.detail-item .detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.detail-item .detail-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 640px) {
  .author-profile { flex-direction: column; text-align: center; }
  .author-avatar { width: 132px; height: 132px; }
  .author-links { justify-content: center; }
  .author-details { grid-template-columns: 1fr; }
}
.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.project-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-link {
  font-size: 0.8125rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.project-link svg {
  width: 14px;
  height: 14px;
}

.project-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-details-btn {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.project-details-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}

.project-details-btn svg {
  width: 14px;
  height: 14px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(5px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 2rem));
  margin: 5vh auto 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.project-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.project-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-modal-close svg {
  width: 16px;
  height: 16px;
}

.project-modal-dialog h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.project-modal-summary {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-modal-block {
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  margin-bottom: 0.875rem;
}

.project-modal-block h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.project-modal-block ul {
  margin: 0;
  padding-left: 1.125rem;
}

.project-modal-block li,
.project-modal-block p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-modal-block p {
  margin: 0;
}

body.project-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .project-modal-dialog {
    width: calc(100% - 1rem);
    margin-top: 3vh;
    padding: 1.25rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info-panel,
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info-panel h3,
.contact-form-panel h3 {
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-info-panel h3 svg,
.contact-form-panel h3 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
}

.contact-item strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
}

.contact-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-item p a {
  color: var(--text-secondary);
}

.contact-item p a:hover {
  color: var(--accent);
}

.contact-topic {
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.contact-topic h4 {
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.contact-topic h4 svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.contact-topic p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group label svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2363637a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-raised);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(99,102,241,0.25);
}

.btn-submit svg {
  width: 16px;
  height: 16px;
}

.form-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.form-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.form-toast.error {
  background: var(--red);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.9;  transform: translateX(-50%) scale(1.18); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(99,102,241,0); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position:  200% center; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes galleryFigureIn {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes galleryNavSlideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes galleryNavSlideRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes galleryImgEnter {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.56s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.64s; }
.stagger.visible > *:nth-child(10) { transition-delay: 0.72s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 99;
  overflow: visible;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.back-to-top .lucide {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.back-to-top .back-to-top-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.back-to-top .back-to-top-ring-progress {
  transition: stroke-dashoffset 0.12s linear;
}
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

@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;
  }
  .fade-in { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { gap: 0.75rem; }
  .stat-pill { font-size: 0.8125rem; padding: 0.5rem 0.875rem; }
  .stat-pill strong { font-size: 1rem; }
  .section { padding: 3.5rem 0; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.625rem; }
  .container { padding: 0 1rem; }
}

/* 2026 editorial redesign: security-lab clarity with Awwwards-inspired pacing. */
:root {
  --bg-primary: #090a0a;
  --bg-surface: #111413;
  --bg-raised: #181d1b;
  --bg-hover: #202824;

  --accent: #b8ff4d;
  --accent-soft: rgba(184, 255, 77, 0.12);
  --accent-hover: #dcff85;
  --accent-glow: rgba(184, 255, 77, 0.18);

  --text-primary: #f4f1e8;
  --text-secondary: #c3c0b7;
  --text-muted: #85857d;

  --border: rgba(244, 241, 232, 0.12);
  --border-hover: rgba(184, 255, 77, 0.42);

  --red: #ff5d5d;
  --orange: #ff9a3d;
  --yellow: #ffd84d;
  --green: #7bed7b;
  --blue: #65c7ff;
  --purple: #caa6ff;
  --cyan: #55f0d8;

  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius: 8px;
  --radius-sm: 7px;
  --radius-xs: 5px;
  --max-width: 1240px;
  --nav-height: 72px;
}

html {
  background: var(--bg-primary);
}

body {
  color: var(--text-secondary);
  background:
    linear-gradient(rgba(244, 241, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(85, 240, 216, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(255, 154, 61, 0.08), transparent 38%),
    var(--bg-primary);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(9, 10, 10, 0.1), rgba(9, 10, 10, 0.78) 58%, rgba(9, 10, 10, 0.22));
}

::selection {
  color: #090a0a;
  background: var(--accent);
}

.container {
  max-width: var(--max-width);
  padding: 0 2rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section:nth-of-type(even) {
  background:
    linear-gradient(90deg, transparent, rgba(244, 241, 232, 0.028), transparent),
    rgba(244, 241, 232, 0.018);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(260px, 0.46fr);
  gap: 2rem;
  align-items: end;
  text-align: left;
  margin-bottom: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 1.35rem;
}

.section-header h2,
.cta-section h2 {
  font-size: 2.55rem;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-header p,
.cta-section p {
  max-width: none;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.navbar {
  left: 1rem;
  right: 1rem;
  top: 0.8rem;
  width: auto;
  height: 58px;
  padding: 0.45rem 0.45rem 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(9, 10, 10, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
}

.navbar.scrolled {
  border-color: rgba(244, 241, 232, 0.18);
  background: rgba(9, 10, 10, 0.92);
}

.nav-brand {
  gap: 0.55rem;
  color: var(--text-primary);
  font-size: 0.96rem;
  letter-spacing: 0;
}

.nav-brand .logo-svg {
  width: 34px;
  height: 34px;
  padding: 0.32rem;
  color: #090a0a;
  background: var(--accent);
  border-radius: 50%;
}

.nav-links {
  gap: 0.15rem;
}

.nav-links a {
  min-height: 42px;
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #090a0a;
  background: var(--accent);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.84fr);
  gap: 2rem;
  align-items: end;
  width: min(100% - 4rem, 1380px);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: left;
}

.hero::before {
  display: none;
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.72rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 5.2rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 680px;
  margin-bottom: 1.8rem;
  color: var(--text-secondary);
  font-size: 1.18rem;
}

.hero-stats {
  justify-content: flex-start;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.stat-pill {
  min-height: 40px;
  gap: 0.45rem;
  padding: 0.48rem 0.7rem;
  border-radius: 7px;
  background: rgba(244, 241, 232, 0.05);
  color: var(--text-secondary);
  border-color: var(--border);
}

.stat-pill strong {
  color: var(--accent);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn,
.btn-submit,
.project-details-btn {
  min-height: 44px;
  border-radius: 999px;
  letter-spacing: 0;
}

.btn-primary,
.btn-submit {
  background: var(--accent);
  color: #090a0a;
  box-shadow: none;
}

.btn-primary:hover,
.btn-submit:hover {
  background: var(--accent-hover);
  color: #090a0a;
  box-shadow: 0 10px 38px rgba(184, 255, 77, 0.18);
}

.btn-outline {
  color: var(--text-primary);
  background: rgba(244, 241, 232, 0.045);
  border-color: var(--border);
}

.btn-outline:hover {
  color: var(--accent);
  border-color: var(--border-hover);
}

.hero-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 20, 19, 0.84);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 10, 0.12) 56%, rgba(9, 10, 10, 0.78) 100%);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
}

.hero-panel-main {
  grid-column: 1 / -1;
  min-height: 300px;
}

.hero-panel-main > div,
.hero-panel-main .panel-status,
.hero-panel-shot .panel-label {
  position: absolute;
  z-index: 2;
}

.hero-panel-main > div {
  left: 1rem;
  top: 1rem;
}

.panel-label {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.hero-panel-main h2 {
  max-width: 9ch;
  margin-top: 0.2rem;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.panel-status {
  right: 1rem;
  top: 1rem;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: #090a0a;
  background: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.hero-metric::after {
  display: none;
}

.hero-metric strong {
  color: var(--text-primary);
  font-size: 3.2rem;
  line-height: 1;
}

.hero-metric span:last-child {
  max-width: 14ch;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.hero-metric.accent {
  background: var(--accent);
  color: #090a0a;
}

.hero-metric.accent .panel-label,
.hero-metric.accent strong,
.hero-metric.accent span:last-child {
  color: #090a0a;
}

.hero-panel-shot .panel-label {
  left: 0.9rem;
  top: 0.9rem;
  z-index: 2;
}

.card,
.highlight-card,
.timeline-card,
.device-card,
.fs-card,
.risk-card,
.encrypt-card,
.case-card,
.screenshot-card,
.chart-card,
.author-profile,
.detail-item,
.project-card,
.contact-info-panel,
.contact-form-panel,
.contact-topic,
.data-table-wrapper,
.backup-block,
.nist-item {
  border-radius: var(--radius);
  background: rgba(17, 20, 19, 0.82);
  border-color: var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.card:hover,
.highlight-card:hover,
.device-card:hover,
.project-card:hover,
.chart-card:hover,
.screenshot-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.intro-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
}

.intro-text {
  padding: 1.35rem 0 0;
  color: var(--text-secondary);
  font-size: 1.04rem;
}

.highlight-card {
  padding: 1.35rem;
}

.highlight-card .icon,
.device-card .device-icon,
.project-icon,
.contact-icon {
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.timeline {
  max-width: 980px;
}

.timeline::before {
  background: linear-gradient(var(--accent), var(--cyan), var(--orange));
  opacity: 0.45;
}

.timeline-dot {
  background: var(--accent);
  border-color: var(--bg-primary);
}

.timeline-card {
  padding: 1.4rem;
}

.timeline-year,
.spec-value,
.risk-meta span,
.data-table .mono {
  color: var(--accent);
}

.grid-3,
.grid-4,
.grid-2 {
  gap: 1rem;
}

.device-card,
.encrypt-card,
.risk-card,
.case-card,
.project-card,
.chart-card {
  padding: 1.35rem;
}

.device-card h3,
.risk-card h3,
.encrypt-card h3,
.case-card h3,
.project-card h3,
.chart-card h3 {
  text-transform: uppercase;
  letter-spacing: 0;
}

.tag-pill,
.severity-badge,
.verdict-badge,
.case-year,
.nist-badge {
  border-radius: 999px;
  font-family: var(--font-mono);
}

.tag-pill {
  background: rgba(244, 241, 232, 0.07);
  color: var(--text-secondary);
}

.backup-visual {
  gap: 1rem;
}

.backup-block {
  flex: 1 1 180px;
  padding: 1.25rem;
}

.backup-number {
  color: var(--accent);
}

.screenshots-grid {
  gap: 1rem;
}

.screenshot-card {
  overflow: hidden;
}

.screenshot-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshot-card figcaption {
  background: rgba(9, 10, 10, 0.92);
}

.cta-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section .container {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) auto;
  gap: 2rem;
  align-items: end;
  text-align: left;
}

.footer {
  background: #070808;
}

.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(190px, 0.6fr));
}

.page-header {
  position: relative;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 3rem;
  text-align: left;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  height: 1px;
  background: var(--border);
}

.page-header h1,
.page-header p {
  width: min(100% - 4rem, var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  justify-content: flex-start;
  max-width: var(--max-width);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.charts-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}

.charts-sidebar {
  top: calc(var(--nav-height) + 2.2rem);
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 20, 19, 0.82);
}

.charts-sidebar h3 {
  padding-left: 0.4rem;
  color: var(--accent);
}

.sidebar-nav li a {
  border-left: 0;
  border-radius: var(--radius-xs);
}

.sidebar-nav li a.active {
  color: #090a0a;
  background: var(--accent);
}

.chart-card {
  margin-bottom: 1rem;
}

.chart-card canvas {
  max-height: 460px;
}

.data-table th {
  background: #0b0d0c;
  color: var(--accent);
}

.data-table tr:hover td {
  background: rgba(184, 255, 77, 0.055);
}

.author-profile {
  align-items: stretch;
}

.author-avatar {
  border-radius: var(--radius);
  border-color: var(--border);
}

.author-info h1 {
  font-size: 2.35rem;
  text-transform: uppercase;
}

.author-links a,
.project-details-btn {
  border: 1px solid var(--border);
  background: rgba(244, 241, 232, 0.06);
}

.contact-grid {
  align-items: start;
}

.form-group input,
.form-group select,
.form-group textarea {
  border-radius: var(--radius-sm);
  background: #0c0f0e;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.gallery-dialog,
.project-modal-dialog {
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.back-to-top {
  border-radius: 50%;
  background: var(--accent);
  color: #090a0a;
  border: 0;
}

.back-to-top:hover {
  background: var(--accent-hover);
  color: #090a0a;
}

.back-to-top .back-to-top-ring-track {
  stroke: rgba(9, 10, 10, 0.18);
}

.back-to-top .back-to-top-ring-progress {
  stroke: #090a0a;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: 4.1rem;
  }

  .hero-dashboard {
    max-width: 760px;
  }

  .charts-layout {
    grid-template-columns: 1fr;
  }

  .charts-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-header,
  .cta-section .container,
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .navbar {
    left: 0.7rem;
    right: 0.7rem;
    top: 0.55rem;
  }

  .nav-links {
    top: 64px;
    left: 0.7rem;
    right: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(9, 10, 10, 0.96);
  }

  .nav-links a {
    border-radius: var(--radius-sm);
  }

  .hero {
    width: min(100% - 2rem, 720px);
    padding-top: calc(var(--nav-height) + 3.5rem);
    min-height: auto;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-dashboard {
    grid-template-columns: 1fr;
  }

  .hero-panel-main {
    min-height: 240px;
  }

  .page-header {
    padding-top: calc(var(--nav-height) + 4rem);
  }

  .page-header h1 {
    font-size: 2.6rem;
  }

  .page-header h1,
  .page-header p {
    width: min(100% - 2rem, var(--max-width));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-brand span {
    max-width: 11ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 2.32rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-panel-main h2 {
    font-size: 1.55rem;
  }

  .page-header h1 {
    font-size: 2.05rem;
  }
}
