/* PrivateXDR — aiantimalware.com marketing site */
:root {
  --bg: #070a18;
  --bg2: #0b1026;
  --panel: rgba(20, 16, 40, 0.72);
  --panel-solid: #141028;
  --border: rgba(177, 76, 255, 0.35);
  --text: #f4ecff;
  --muted: #b9a8d9;
  --mag: #ff2e97;
  --vio: #b14cff;
  --cyan: #3ddcff;
  --green: #3ddc97;
  --gold: #ffe08a;
  --red: #f85149;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 3D canvas */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site {
  position: relative;
  z-index: 2;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}
a:hover {
  color: var(--gold);
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(7, 10, 24, 0.92), rgba(7, 10, 24, 0.7));
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-inner .brand {
  margin-right: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(177, 76, 255, 0.4), 0 8px 24px rgba(255, 46, 151, 0.25);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand span.grad {
  background: linear-gradient(90deg, var(--gold), var(--mag), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(177, 76, 255, 0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--mag), var(--vio));
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(177, 76, 255, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text) !important;
}
.btn-cyan {
  background: rgba(61, 220, 255, 0.12);
  border-color: rgba(61, 220, 255, 0.4);
  color: var(--cyan) !important;
}

/* Sections */
section {
  padding: 88px 20px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-title .grad {
  background: linear-gradient(90deg, var(--gold), var(--mag), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 36px;
}

/* Hero */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(12px);
}
.stat b {
  display: block;
  font-size: 22px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--gold);
}

.pulse-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pulse-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}
.dot.g {
  background: var(--green);
  color: var(--green);
}
.dot.m {
  background: var(--mag);
  color: var(--mag);
}
.dot.c {
  background: var(--cyan);
  color: var(--cyan);
}
.dot.v {
  background: var(--vio);
  color: var(--vio);
}

/* Features */
.features {
  background: linear-gradient(180deg, transparent, rgba(177, 76, 255, 0.05), transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 210px;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 220, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 46, 151, 0.2), rgba(177, 76, 255, 0.25));
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
}

.feature-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.feature-card li {
  margin-bottom: 4px;
}

/* Platform */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.panel h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--gold);
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 14px;
}

.panel ul {
  padding-left: 18px;
  margin-top: 10px;
}
.panel li {
  margin-bottom: 6px;
}

/* Creator */
.creator {
  background: radial-gradient(700px 300px at 20% 50%, rgba(255, 46, 151, 0.12), transparent 60%),
    radial-gradient(600px 280px at 90% 30%, rgba(61, 220, 255, 0.08), transparent 55%);
}

.creator-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.avatar-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.avatar-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--mag), var(--vio), var(--cyan), var(--gold));
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(160deg, #1a1030, #0b1026);
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: #0b1026;
}

.avatar-card h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.avatar-card .role {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.avatar-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}

.creator-copy p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15px;
}

.quote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--mag);
  background: rgba(255, 46, 151, 0.08);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: italic;
}

/* Pricing-ish modules strip */
.modules-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(177, 76, 255, 0.1);
  color: var(--text);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-info .row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.contact-info .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(61, 220, 255, 0.12);
  border: 1px solid rgba(61, 220, 255, 0.3);
  flex-shrink: 0;
}

.contact-info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.contact-info span,
.contact-info a {
  font-size: 13px;
  color: var(--muted);
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

input,
select,
textarea {
  width: 100%;
  background: #0a0c18;
  color: var(--text);
  border: 1px solid #3a2a5c;
  border-radius: 10px;
  padding: 12px 14px;
  font: 14px/1.4 var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 220, 255, 0.15);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.1);
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}
.form-success.show {
  display: block;
}
.form-success.ok {
  border-color: rgba(61, 220, 151, 0.4);
  background: rgba(61, 220, 151, 0.1);
  color: var(--green);
}
.form-success.error {
  border-color: rgba(248, 81, 73, 0.45);
  background: rgba(248, 81, 73, 0.12);
  color: #ff8b84;
}

/* Honeypot — invisible to humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none !important;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.check-row input {
  width: auto;
  margin-top: 3px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px 28px;
  background: rgba(0, 0, 0, 0.35);
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .creator-grid,
  .contact-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .hero-stats,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    width: 100%;
  }
  .form-grid .full {
    grid-column: auto;
  }
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.open {
    display: flex;
  }
}

/* Language switcher */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: #0a0c18
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b9a8d9' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 32px 8px 12px;
  font: 600 12px/1.2 var(--font);
  cursor: pointer;
  max-width: min(240px, 52vw);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lang-select:hover,
.lang-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(61, 220, 255, 0.12);
}
.lang-select option {
  background: #141028;
  color: var(--text);
}

.nav-links {
  order: 2;
  flex: 1;
  justify-content: flex-end;
}

/* RTL */
html[dir="rtl"] body,
body.rtl {
  direction: rtl;
}
html[dir="rtl"] .nav-inner,
body.rtl .nav-inner {
  flex-direction: row-reverse;
}
html[dir="rtl"] .nav-links,
body.rtl .nav-links {
  justify-content: flex-start;
}
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .creator-grid,
html[dir="rtl"] .contact-grid,
html[dir="rtl"] .platform-grid,
body.rtl .hero-grid,
body.rtl .creator-grid,
body.rtl .contact-grid,
body.rtl .platform-grid {
  direction: rtl;
}
html[dir="rtl"] .feature-card ul,
html[dir="rtl"] .panel ul,
body.rtl .feature-card ul,
body.rtl .panel ul {
  padding-left: 0;
  padding-right: 18px;
}
html[dir="rtl"] .quote,
body.rtl .quote {
  border-left: none;
  border-right: 3px solid var(--mag);
  border-radius: 12px 0 0 12px;
}
html[dir="rtl"] .lang-select,
body.rtl .lang-select {
  background-position: left 10px center;
  padding: 8px 12px 8px 32px;
}
html[dir="rtl"] .check-row,
body.rtl .check-row {
  flex-direction: row-reverse;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Subtle body vignette so 3D never washes out text */
.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 80% 60% at 70% 20%,
    rgba(177, 76, 255, 0.08),
    transparent 55%
  );
}
