/* ═══════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — change colors here only
   ═══════════════════════════════════════════════ */
:root {
  /* Colors */
  --bg:           #0F1117;
  --surface:      #1A1D27;
  --surface2:     #22263A;
  --accent:       #2171b5;
  --accent-lt:    #4A9FD5;
  --accent-glow:  rgba(33, 113, 181, 0.18);
  --accent-ring:  rgba(33, 113, 181, 0.35);
  --text:         #F0EEE9;
  --muted:        #8B8FA8;
  --border:       rgba(255, 255, 255, 0.07);
  --danger:       #e05555;

  /* Typography */
  --font-base:    'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad:  100px;
  --container:    1160px;
  --nav-h:        64px;

  /* Radii */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    16px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}

.section-pad { padding: var(--section-pad) 0; }
.surface { background: var(--surface); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scanSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scanSpinReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50%       { filter: drop-shadow(0 0 22px rgba(33,113,181,0.5)); }
}
@keyframes threatFloat {
  0%   { opacity: 0; transform: scale(0.5) translateX(30px); }
  40%  { opacity: 1; transform: scale(1) translateX(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: scale(0.6) translateX(-20px); }
}
@keyframes checkBounce {
  0%   { transform: translate(295px, 270px) scale(0); opacity: 0; }
  60%  { transform: translate(295px, 270px) scale(1.15); opacity: 1; }
  100% { transform: translate(295px, 270px) scale(1); opacity: 1; }
}
@keyframes frameworkFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes navbarSolid {
  from { background: rgba(15,17,23,0); }
  to   { background: rgba(15,17,23,0.97); }
}

.animate-in {
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.animate-in > * { animation-delay: calc(var(--i, 0) * 0.1s); }

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease,
              backdrop-filter 0.3s ease;
}
.site-nav.scrolled {
  background: rgba(15, 17, 23, 0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 5% 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { display: flex; flex-direction: column; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(33, 113, 181, 0.12);
  border: 1px solid var(--accent-ring);
  color: var(--accent-lt);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
  animation: fadeSlideUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.7s 0.1s ease both;
}
.hero h1 em { color: var(--accent-lt); font-style: normal; }

.hero > .hero-inner > .hero-text > p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s 0.3s ease both;
}
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  animation: fadeSlideUp 0.7s 0.4s ease both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.trust-item svg { color: var(--accent-lt); flex-shrink: 0; }

/* Hero SVG */
.hero-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideUp 0.9s 0.2s ease both;
}
.hero-svg {
  width: 100%;
  max-width: 460px;
}
.svg-glow-bg { animation: shieldPulse 3s ease-in-out infinite; }
.shield-body  { animation: shieldPulse 3s ease-in-out infinite; }
.scan-ring-1 {
  transform-origin: 240px 240px;
  animation: scanSpin 12s linear infinite;
}
.scan-ring-2 {
  transform-origin: 240px 240px;
  animation: scanSpinReverse 8s linear infinite;
}
.scan-ring-3 {
  transform-origin: 240px 240px;
  animation: scanSpin 5s linear infinite;
}
.threat-1 { animation: threatFloat 4s 0.5s ease-in-out infinite; }
.threat-2 { animation: threatFloat 4s 1.5s ease-in-out infinite; }
.threat-3 { animation: threatFloat 4s 2.5s ease-in-out infinite; }
.threat-4 { animation: threatFloat 4s 3.2s ease-in-out infinite; }
.check-mark { animation: checkBounce 0.6s 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

.btn-card {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-card:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-card.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-card.outline:hover { border-color: var(--muted); }

/* ═══════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════ */
.section-header { margin-bottom: 3rem; }
.section-label {
  color: var(--accent-lt);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--muted);
  max-width: 540px;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-lt);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.about-svg { width: 100%; max-width: 400px; margin: 0 auto; }
.framework-float { animation: frameworkFloat ease-in-out infinite; }
.framework-1 { animation-duration: 4s; animation-delay: 0s; }
.framework-2 { animation-duration: 5s; animation-delay: 1s; }
.framework-3 { animation-duration: 4.5s; animation-delay: 2s; }

/* ═══════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--accent-ring);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(33, 113, 181, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent-lt);
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--muted); font-size: 0.9rem; }

/* ═══════════════════════════════════════════════
   WHY IT MATTERS
   ═══════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-left: 3px solid var(--danger);
  transition: transform 0.2s;
}
.why-card:hover { transform: translateY(-3px); }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.why-icon.danger {
  background: rgba(224, 85, 85, 0.1);
  color: var(--danger);
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-card p { color: var(--muted); font-size: 0.9rem; }
.why-card strong { color: var(--text); }

/* ═══════════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { transform: translateY(-3px); border-color: var(--accent-ring); }
.product-card.featured { border-color: var(--accent-ring); }
.product-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
}
.product-icon { font-size: 2rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.product-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-lt);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.product-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.product-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex: 1;
}
.product-features li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.product-features li::before {
  content: '✓';
  color: var(--accent-lt);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-text .section-title { margin-bottom: 1rem; }
.contact-text > p { color: var(--muted); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-item svg { color: var(--accent-lt); flex-shrink: 0; }
.contact-item a { color: var(--text); text-decoration: none; }
.contact-item a:hover { color: var(--accent-lt); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-base);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-success {
  background: rgba(33, 113, 181, 0.1);
  border: 1px solid var(--accent-ring);
  color: var(--accent-lt);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.form-error {
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.35);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer-logo span { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 0.85rem; }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-graphic { display: none; }
  .hero-btns, .trust-bar { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 70px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 5%;
    gap: 1rem;
  }
  .nav-links.open + .nav-cta { display: block; }
  .products-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .about-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}


/* ═══════════════════════════════════════════════
   PRODUCT TAG / DUO GRID / PRICE-WAS
   ═══════════════════════════════════════════════ */
.product-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-lt);
  background: rgba(33,113,181,0.12);
  border: 1px solid var(--accent-ring);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}
.products-grid-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.price-was {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
  display: inline;
}
@media (max-width: 700px) {
  .products-grid-duo { grid-template-columns: 1fr; }
}
