/* ============================================================
   ProTexa — Smart Security Solutions
   Design system: deep navy + electric blue, techy & premium
   Fonts: Exo 2 (display/wordmark) · Manrope (body/UI)
   ============================================================ */

:root {
  /* Surfaces */
  --bg-900: #050b16;
  --bg-800: #081222;
  --bg-700: #0a1a30;
  --card:   #0c1e36;
  --card-2: #0e233f;

  /* Brand blue */
  --blue:        #2a8cff;
  --blue-bright: #5aa9ff;
  --blue-deep:   #0e5fd1;
  --blue-ink:    #0b4aa8;

  /* Text */
  --ink:   #eef4ff;
  --text:  #aebfdb;
  --muted: #708199;

  /* Lines & effects */
  --line:  rgba(120,170,255,.13);
  --line-2: rgba(120,170,255,.22);
  --glow:  0 0 50px rgba(42,140,255,.30);

  --grad: linear-gradient(135deg, #5aa9ff 0%, #2a8cff 45%, #0e5fd1 100%);
  --grad-soft: linear-gradient(160deg, #0e233f 0%, #0a1626 100%);

  --maxw: 1200px;
  --r: 16px;
  --r-sm: 11px;

  --font-display: "Exo 2", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--blue); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.04; letter-spacing: -.01em; font-weight: 800; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em; font-size: 13px;
  color: var(--blue-bright);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 2px; background: var(--blue); display: inline-block; }

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); margin: 18px 0 18px; }
.section-head p { font-size: 18px; color: var(--text); }

.accent { color: var(--blue-bright); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(42,140,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(42,140,255,.8); }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--blue); background: rgba(42,140,255,.10); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,13,24,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 4px 14px rgba(42,140,255,.35)); }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm b {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 24px; letter-spacing: .01em;
}
.brand .wm b span { color: var(--blue-bright); }
.brand .wm small {
  font-family: var(--font-display); font-weight: 600; font-size: 8.5px;
  letter-spacing: .34em; color: var(--muted); text-transform: uppercase; margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); transition: width .25s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .glow-a {
  position: absolute; width: 720px; height: 720px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(42,140,255,.30), transparent 62%); filter: blur(20px);
}
.hero-bg .glow-b {
  position: absolute; width: 560px; height: 560px; left: -180px; bottom: -160px;
  background: radial-gradient(circle, rgba(14,95,209,.22), transparent 64%); filter: blur(20px);
}
.grid-overlay {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.hero-copy h1 { font-size: clamp(44px, 6.4vw, 82px); margin: 22px 0 24px; }
.hero-copy h1 em { font-style: normal; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.hero-copy p.lead { font-size: 20px; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 52px; }
.hero-stats .stat b { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--ink); display: block; }
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

.hero-product { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-product .ring {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,140,255,.28), transparent 60%);
  filter: blur(10px);
}
.hero-product .ring::before, .hero-product .ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2);
}
.hero-product .ring::after { inset: 50px; border-color: var(--line); }
.hero-product img { position: relative; z-index: 2; max-height: 560px; width: auto;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.7)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero-tag {
  position: absolute; z-index: 3; background: rgba(8,18,34,.8); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.hero-tag svg { width: 20px; height: 20px; color: var(--blue-bright); }
.hero-tag.t1 { top: 14%; left: -6%; }
.hero-tag.t2 { bottom: 16%; right: -4%; }

/* ---------- Marquee trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-900); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; font-size: 15px; }
.trust-item svg { width: 22px; height: 22px; color: var(--blue-bright); flex: none; }

/* ---------- Access methods ---------- */
.access-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.acard {
  background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px 28px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
}
.acard::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120% 80% at 50% 0%, rgba(42,140,255,.16), transparent 60%);
}
.acard:hover { transform: translateY(-6px); border-color: var(--blue); }
.acard:hover::before { opacity: 1; }
.acard .ic {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(42,140,255,.12); border: 1px solid var(--line-2); margin-bottom: 20px;
}
.acard .ic svg { width: 28px; height: 28px; color: var(--blue-bright); }
.acard h3 { font-size: 20px; margin-bottom: 10px; }
.acard p { font-size: 15px; color: var(--text); }
.acard .num {
  position: absolute; top: 22px; right: 24px; font-family: var(--font-display);
  font-weight: 800; font-size: 14px; color: var(--blue); opacity: .5; letter-spacing: .1em;
}

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 56px; }
.feat {
  display: flex; gap: 22px; padding: 30px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feat .ic {
  width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); box-shadow: var(--glow);
}
.feat .ic svg { width: 26px; height: 26px; color: #fff; }
.feat h3 { font-size: 21px; margin-bottom: 8px; }
.feat p { font-size: 15.5px; }

/* ---------- Product showcase ---------- */
.show-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.show-media { position: relative; display: flex; justify-content: center; }
.show-media .panel {
  background: var(--grad-soft); border: 1px solid var(--line); border-radius: 28px;
  padding: 48px; position: relative; overflow: hidden; width: 100%;
}
.show-media .panel::after {
  content: ""; position: absolute; width: 420px; height: 420px; left: 50%; top: 46%;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(42,140,255,.22), transparent 60%);
}
.show-media img { position: relative; z-index: 2; max-height: 460px; margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.spec-list { list-style: none; display: grid; gap: 2px; margin-top: 34px; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px;
  border-bottom: 1px solid var(--line); font-size: 16px;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { color: var(--ink); font-weight: 600; font-family: var(--font-display); text-align: right; }

/* ---------- About ---------- */
.about { background: var(--bg-900); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-grid p { font-size: 17px; margin-bottom: 18px; }
.about-points { display: grid; gap: 18px; margin-top: 30px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; list-style: none; font-size: 16px; color: var(--text); }
.about-points svg { width: 22px; height: 22px; color: var(--blue-bright); flex: none; margin-top: 2px; }
.about-visual {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line); position: relative;
  background: var(--grad-soft); aspect-ratio: 4/4.4; display: grid; place-items: center; padding: 48px;
}
.about-visual .shield-xl { width: 64%; filter: drop-shadow(0 20px 50px rgba(42,140,255,.4)); }
.about-visual .badge-row { position: absolute; bottom: 28px; left: 28px; right: 28px;
  display: flex; justify-content: space-around; }
.about-visual .badge-row b { font-family: var(--font-display); font-size: 30px; color: var(--ink); display: block; }
.about-visual .badge-row span { font-size: 12px; color: var(--muted); }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; }
.ctaband .inner {
  background: var(--grad); border-radius: 28px; padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.ctaband .inner::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.ctaband h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); position: relative; }
.ctaband p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 560px; margin: 16px auto 30px; position: relative; }
.ctaband .btn { position: relative; }
.ctaband .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ctaband .btn-primary:hover { background: #f0f6ff; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-900); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 16px; margin-top: 32px; }
.cinfo {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); transition: border-color .25s;
}
.cinfo:hover { border-color: var(--blue); }
.cinfo .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: rgba(42,140,255,.12); border: 1px solid var(--line-2); }
.cinfo .ic svg { width: 22px; height: 22px; color: var(--blue-bright); }
.cinfo small { color: var(--muted); font-size: 13px; display: block; text-transform: uppercase; letter-spacing: .1em; }
.cinfo b { color: var(--ink); font-size: 17px; font-family: var(--font-display); font-weight: 700; }

.form-card { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); padding: 38px; }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card .sub { font-size: 15px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-900); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 14px 16px; color: var(--ink); font-family: var(--font-body); font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,140,255,.18);
}
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.row2 > div { margin: 0; }
.field-error { border-color: #ff5a6a !important; }
.err-msg { color: #ff8088; font-size: 12.5px; margin-top: 6px; display: none; }
.err-msg.show { display: block; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 70px; height: 70px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  margin: 0 auto 20px; box-shadow: var(--glow);
}
.form-success .check svg { width: 34px; height: 34px; color: #fff; }
.form-success h3 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-900); border-top: 1px solid var(--line); padding: 72px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand img { height: 44px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); margin-bottom: 20px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--text); font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-about { color: var(--text); font-size: 15px; margin: 20px 0; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--text); transition: all .25s; }
.footer-social a:hover { border-color: var(--blue); color: #fff; background: rgba(42,140,255,.12); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-bottom .tagline { font-family: var(--font-display); font-weight: 700; letter-spacing: .03em; }
.footer-bottom .tagline span { color: var(--blue-bright); }

/* ---------- Reveal animation (progressive enhancement) ----------
   Content is visible by default. Only when JS adds .js-reveal to <html>
   do elements hide and animate in — so nothing is ever stranded hidden. */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
html.js-reveal .reveal.d1 { transition-delay: .08s; }
html.js-reveal .reveal.d2 { transition-delay: .16s; }
html.js-reveal .reveal.d3 { transition-delay: .24s; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 78px 0 0 0; z-index: 99; background: rgba(5,11,22,.97); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; padding: 32px 28px; gap: 6px; transform: translateY(-12px);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink);
  padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-product { order: -1; margin-bottom: 10px; }
  .hero-product img { max-height: 420px; }
  .hero-product .ring { width: 360px; height: 360px; }
  .access-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .show-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-tag.t1 { left: 0; } .hero-tag.t2 { right: 0; }
}
@media (max-width: 560px) {
  .section { padding: 80px 0; }
  .hero { padding: 124px 0 60px; }
  .access-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .field.row2 { grid-template-columns: 1fr; }
  .ctaband .inner, .form-card { padding: 34px 24px; }
  .brand .wm small { display: none; }
}
