/* ============================================================
   PentestAI — pentestai.ca
   Dark, technical, minimal. Plain CSS, no frameworks.
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --bg-alt: #0d1424;
  --surface: #101a2e;
  --border: rgba(0, 212, 255, 0.14);
  --border-strong: rgba(0, 212, 255, 0.35);
  --teal: #00d4ff;
  --green: #00ff9d;
  --text: #e6edf7;
  --text-dim: #93a4bd;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--mono); }
.dim { color: var(--text-dim); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

::selection { background: rgba(0, 212, 255, 0.28); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); }

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

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: 0.2px;
}
.brand:hover { color: var(--text); }
.brand em { font-style: normal; background: linear-gradient(90deg, var(--teal), var(--green)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-mark { width: 28px; height: 28px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-dim); font-size: 15px; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--teal) !important;
}
.nav-cta:hover { background: rgba(0, 212, 255, 0.1); color: var(--green) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.2px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #04121a;
  background: linear-gradient(90deg, var(--teal), var(--green));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}
.btn-primary:hover { color: #04121a; box-shadow: 0 0 36px rgba(0, 255, 157, 0.4); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { color: var(--green); border-color: var(--green); }

.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: radial-gradient(1100px 520px at 50% -10%, rgba(0, 212, 255, 0.10), transparent 60%),
              radial-gradient(800px 420px at 85% 110%, rgba(0, 255, 157, 0.07), transparent 60%),
              var(--bg);
  overflow: hidden;
}

#codeRain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; }

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 75%);
}

.hero-content { position: relative; z-index: 2; padding-top: 68px; }

.hero-eyebrow { color: var(--green); font-size: 15px; margin-bottom: 22px; }
.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800; line-height: 1.12; letter-spacing: -1px;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(90deg, var(--teal), var(--green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px; margin: 0 auto 38px;
  color: var(--text-dim); font-size: clamp(17px, 2.2vw, 20px);
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; color: var(--text-dim); font-size: 13px;
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { color: var(--green); font-size: 26px; font-weight: 600; }
.hero-stats span { text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); z-index: 2; animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg { width: 24px; height: 24px; }
.scroll-hint:hover { color: var(--green); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt {
  background:
    radial-gradient(900px 400px at 15% 0%, rgba(0, 212, 255, 0.05), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow { color: var(--teal); font-size: 14px; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-lead { color: var(--text-dim); max-width: 560px; margin-bottom: 48px; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 64px;
  align-items: center; margin-top: 20px;
}

.avatar-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
}
.avatar-frame img { display: block; width: 100%; height: auto; }

.about-meta { margin-top: 16px; color: var(--text-dim); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

.about-text p { margin-bottom: 18px; color: var(--text-dim); }
.about-text strong, .about-text em { color: var(--text); }

.about-quote {
  margin-top: 28px; padding: 20px 24px;
  border-left: 3px solid var(--green);
  background: rgba(0, 255, 157, 0.05); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text); font-style: italic;
}

/* ---------- Product cards ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 255, 0.08);
}

.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 21px; font-weight: 700; }
.card > p { color: var(--text-dim); font-size: 15.5px; flex: 1; }
.card strong { color: var(--text); font-weight: 600; }

.card-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.badge-green { color: var(--green); border: 1px solid rgba(0, 255, 157, 0.4); background: rgba(0, 255, 157, 0.07); }
.badge-teal { color: var(--teal); border: 1px solid rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.07); }

.card-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card-stats li {
  font-size: 12px; color: var(--green);
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0, 255, 157, 0.06); border: 1px solid rgba(0, 255, 157, 0.18);
}

.card-link { font-weight: 600; font-size: 15px; }
.card-soon { border-style: dashed; background: transparent; }

/* ---------- Milestones ---------- */
.milestone-list { list-style: none; margin-top: 16px; }
.milestone-list li {
  display: flex; gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--border);
}
.milestone-list li:first-child { border-top: 1px solid var(--border); }
.m-num { color: var(--teal); font-size: 15px; min-width: 34px; }
.milestone-list p { color: var(--text-dim); font-size: 16.5px; }
.milestone-list em { color: var(--text); }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px;
}
.service {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service h3 { font-size: 18px; }
.service p { color: var(--text-dim); font-size: 15px; flex: 1; }
.service a { font-size: 14.5px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  padding: 110px 0 48px; text-align: center;
  background: radial-gradient(700px 300px at 50% 0%, rgba(0, 255, 157, 0.06), transparent 65%), var(--bg);
}
.footer-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-lead { color: var(--text-dim); margin-bottom: 34px; }

.footer-meta {
  margin-top: 56px; padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-dim);
}
.footer-meta .sep { color: var(--border-strong); }
.copyright { margin-top: 22px; color: var(--text-dim); font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #codeRain, .scroll-hint, .cursor { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 260px; margin: 0 auto; text-align: center; }
  .about-meta { justify-content: center; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(10, 15, 26, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 0; font-size: 16px; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero-stats { gap: 28px; }
  .milestone-list li { gap: 14px; }
}
