/* ===== USBProtect — Static Stylesheet ===== */

:root {
  --background: hsl(216, 60%, 5%);
  --foreground: hsl(0, 0%, 100%);
  --card: hsl(216, 58%, 10%);
  --primary: hsl(221, 83%, 53%);
  --primary-hover: hsl(221, 83%, 47%);
  --muted: hsl(215, 16%, 65%);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.05);
  --red: hsl(0, 84%, 60%);
  --green: hsl(142, 71%, 45%);
  --blue-light: hsl(213, 94%, 68%);
  --radius: 0.5rem;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", var(--font-sans);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand svg {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a:hover {
  color: #fff;
  transition: color 0.2s;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-back:hover {
  color: #fff;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  height: 2.5rem;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-lg {
  height: 3.5rem;
  padding: 0 2rem;
  font-size: 1.125rem;
}

.btn-white {
  background-color: #fff;
  color: var(--primary);
  height: 4rem;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.3);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.875rem;
  font-weight: 500;
}

.pulse-dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.pulse-dot span:first-child {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--primary);
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot span:last-child {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 0.5rem;
  width: 0.5rem;
  background-color: var(--primary);
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(to right, var(--blue-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.hero-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-color: rgba(37, 99, 235, 0.2);
  filter: blur(100px);
  border-radius: 9999px;
}

.hero-visual img {
  position: relative;
  z-index: 10;
  width: 450px;
  object-fit: contain;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 12rem 0 8rem;
  }
  .hero h1 {
    font-size: 4.5rem;
  }
  .hero-sub {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-visual {
    justify-content: flex-end;
  }
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-threat {
  background-color: rgba(13, 25, 45, 0.5);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

.section-head {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .section-head h2 {
    font-size: 3rem;
  }
}

/* ===== Threat Cards ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: rgba(5, 10, 20, 0.8);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon.red {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.card-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--blue-light);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.features-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.features-text > p {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-item .icon {
  margin-top: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--muted);
}

/* ===== Status Panel ===== */
.panel {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.panel-glow {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 10rem;
  height: 10rem;
  background-color: rgba(37, 99, 235, 0.3);
  filter: blur(60px);
  border-radius: 9999px;
  pointer-events: none;
}

.panel-inner {
  background-color: var(--background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  position: relative;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.5; }
}

.panel-version {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-row {
  padding: 1rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-row .label {
  font-size: 0.875rem;
  font-weight: 500;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.tag.danger {
  background-color: rgba(239, 68, 68, 0.2);
  color: hsl(0, 84%, 70%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag.ok {
  background-color: rgba(34, 197, 94, 0.2);
  color: hsl(142, 71%, 60%);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.mono {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .features-text h2 {
    font-size: 3rem;
  }
}

/* ===== CTA ===== */
.cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(37, 99, 235, 0.1);
}

.cta-glow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  background-color: rgba(37, 99, 235, 0.2);
  filter: blur(120px);
  border-radius: 9999px;
}

.cta-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.25rem;
  color: hsl(213, 94%, 90%);
  max-width: 672px;
  margin: 0 auto 2.5rem;
}

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(213, 94%, 85%);
}

@media (min-width: 768px) {
  .cta h2 {
    font-size: 3.75rem;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand svg {
  color: var(--primary);
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: #fff;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
  }
}

/* ===== Legal Pages ===== */
.legal-main {
  padding: 8rem 0 6rem;
}

.legal-content {
  max-width: 768px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 3rem;
}

.legal-intro {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal-content section {
  margin-bottom: 2rem;
  color: var(--muted);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 0.5rem;
}

.legal-content strong {
  color: #fff;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .legal-content h1 {
    font-size: 3rem;
  }
}
