/* CyberWitch landing page — made by Fatima Zahra */
:root {
  --bg: #0a0510;
  --surface: rgba(21, 11, 34, 0.82);
  --surface-2: #1c0f2e;
  --border: #2a1746;
  --border-strong: #3b2163;
  --purple: #a855f7;
  --purple-light: #c99bff;
  --purple-deep: #6d28d9;
  --orange: #f97316;
  --orange-light: #fdba74;
  --text: #f4ecff;
  --muted: #bfaedb;
  --dim: #8b78aa;
  --danger: #f0453a;
  --warning: #f59e0b;
  --safe: #2fd36b;
  --serif: Constantia, "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(109, 40, 217, 0.35), transparent 60%),
    radial-gradient(900px 600px at 100% 40%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(249, 115, 22, 0.10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-light); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.kicker {
  color: var(--orange-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section { padding: 96px 0; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--orange); color: #1a0a00; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-orange {
  color: #1a0a00;
  background: linear-gradient(135deg, #ea580c, #fb923c);
  border-color: var(--orange-light);
  box-shadow: 0 10px 30px -8px rgba(249, 115, 22, 0.55);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #b14dff);
  border-color: #c084fc;
}
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: rgba(168, 85, 247, 0.08); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 5, 16, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand img { height: 52px; width: auto; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px;
}
.lang button {
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--muted);
  background: none; border: 0; padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--purple-deep); color: #fff; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 5, 16, 0.96) 0%, rgba(10, 5, 16, 0.78) 45%, rgba(10, 5, 16, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    url("img/hero_bg.webp") center 30% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-note { margin-top: 14px; color: var(--dim); font-size: 0.9rem; }
.hero-shot { position: relative; margin: 0; }
.hero-shot img:first-child {
  border-radius: 14px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 70px -10px rgba(168, 85, 247, 0.45);
  transform: perspective(1400px) rotateY(-6deg);
}
.pumpkin {
  position: absolute; left: -34px; bottom: -34px; width: 96px;
  filter: drop-shadow(0 0 22px rgba(249, 115, 22, 0.7));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ------------------------------------------------------------------ stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: -30px; position: relative;
}
.stats div { background: rgba(16, 8, 26, 0.95); padding: 26px 22px; text-align: center; }
.stats strong {
  display: block; font-family: var(--sans); font-weight: 800; font-size: 2.4rem;
  color: var(--orange-light); line-height: 1.05; font-variant-numeric: lining-nums;
}
.stats span { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.feature { overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature img { width: 100%; height: 190px; object-fit: cover; border-bottom: 1px solid var(--border); }
.feature h3, .feature p { padding: 0 22px; }
.feature h3 { margin-top: 20px; }
.feature p { color: var(--muted); font-size: 0.97rem; margin-bottom: 24px; }
.feature.wide { grid-column: span 3; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.feature.wide img { height: 100%; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--border); }
.feature.wide > div { padding: 24px 12px; }

/* ------------------------------------------------------------------ showcase */
.showcase {
  background:
    radial-gradient(700px 400px at 80% 50%, rgba(240, 69, 58, 0.10), transparent 70%),
    linear-gradient(180deg, transparent, rgba(28, 15, 46, 0.55), transparent);
}
.showcase-grid, .privacy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.toast-shot { margin: 0; justify-self: center; }
.toast-shot img { width: 420px; filter: drop-shadow(0 0 40px rgba(240, 69, 58, 0.35)); }
.levels { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.levels li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.levels li span:first-child {
  min-width: 96px; text-align: center; font-weight: 700; font-size: 0.85rem;
  border-radius: 999px; padding: 3px 12px; border: 1px solid currentColor;
}
.levels .danger span:first-child { color: var(--danger); background: rgba(240, 69, 58, 0.12); }
.levels .warning span:first-child { color: var(--warning); background: rgba(245, 158, 11, 0.12); }
.levels .protected span:first-child { color: var(--safe); background: rgba(47, 211, 107, 0.12); }

/* ------------------------------------------------------------------ screenshots */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 26px; }
.tabs button {
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--border-strong); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: #fff; background: rgba(168, 85, 247, 0.25); border-color: var(--purple); }
.screen { display: block; max-width: 1040px; margin: 0 auto; }
.screen img {
  border-radius: 14px; border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(168, 85, 247, 0.4);
  margin: 0 auto;
}

/* ------------------------------------------------------------------ install */
.steps {
  list-style: none; padding: 0; margin: 46px 0 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps li { padding: 30px 26px; position: relative; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #1a0a00; font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}

/* ------------------------------------------------------------------ privacy */
.checks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(47, 211, 107, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fd36b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid rgba(47, 211, 107, 0.6);
}
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tech { padding: 30px; }
.tech ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tech li { color: var(--muted); }
.tech strong { color: var(--text); }

/* ------------------------------------------------------------------ final / footer */
.final { padding-top: 60px; }
.final-icon { margin: 0 auto 26px; border-radius: 24px; box-shadow: 0 0 60px -10px rgba(168, 85, 247, 0.6); }
.center-row { justify-content: center; }
.footer { border-top: 1px solid var(--border); padding: 36px 0; background: rgba(8, 4, 14, 0.8); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-links { margin-left: auto; display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .showcase-grid, .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot img:first-child { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 48px 0 70px; }
  .brand img { height: 40px; }
  .nav-actions .btn { display: none; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .feature.wide img { border-right: 0; border-bottom: 1px solid var(--border); min-height: 0; height: 190px; }
  .pumpkin { width: 70px; left: -10px; bottom: -26px; }
  .toast-shot img { width: 100%; }
  .footer-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pumpkin { animation: none; }
  .btn, .feature { transition: none; }
}
