/* ═══════════════════════════════════════════════════════════
   OMNEX Corporate — "Defense Intelligence" Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
  --black: #03030a;
  --surface: #08081a;
  --surface-2: #0d0d22;
  --surface-3: #12122e;
  --border: #1a1a3a;
  --border-hover: #2a2a5a;
  --cyan: #00e5ff;
  --cyan-dim: #005566;
  --cyan-glow: rgba(0, 229, 255, 0.08);
  --red: #ef476f;
  --green: #06d6a0;
  --amber: #ffbe0b;
  --text: #d8d8e8;
  --text-2: #8888a8;
  --text-3: #555570;
  --white: #f0f0f8;
  --font: 'DM Sans', -apple-system, sans-serif;
  --mono: 'Space Mono', 'Courier New', monospace;
  --max-w: 1200px;
  --nav-h: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Navigation ────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(3, 3, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo svg { flex-shrink: 0; }

.nav-logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--cyan);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--cyan) !important;
  color: var(--black) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  transition: all 0.2s !important;
}
.nav-cta:hover { opacity: 0.9 !important; transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ── Page Container ────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
}

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px;
}

.section-sm { padding: 48px 32px; }

/* ── Typography ────────────────────────────────────── */

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--white);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--white);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.2px;
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Hero ──────────────────────────────────────────── */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { max-width: 780px; margin: 0 auto; }

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--cyan); }

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stat-row {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  justify-content: center;
}

.hero-stat {
  text-align: left;
}
.hero-stat .num {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 700;
  line-height: 1;
}
.hero-stat .label {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--cyan);
  color: var(--black);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,229,255,0.2); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

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

/* ── Cards ─────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--cyan);
}

.card h3 { margin-bottom: 12px; }

.card p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* ── Trust bar ─────────────────────────────────────── */

.trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Forms ──────────────────────────────────────────── */

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

.form-group { margin-bottom: 0; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label .required { color: var(--red); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check label {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  cursor: pointer;
}

.form-check label a { color: var(--cyan); }

/* ── Authorization Box ─────────────────────────────── */

.auth-box {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 24px 0;
}

.auth-box h3 {
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-box .legal-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
}

.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.signature-field {
  padding: 14px 16px;
  background: var(--black);
  border: 1px dashed var(--border-hover);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Brush Script MT', cursive, var(--font);
  font-size: 18px;
  outline: none;
  width: 100%;
}

.signature-field:focus { border-color: var(--cyan); border-style: solid; }

/* ── Footer ────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-3);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
}

/* ── Legal Pages ───────────────────────────────────── */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 { font-size: 2rem; margin-bottom: 32px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 16px; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 12px; }

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-2);
}

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-2);
}

.legal-content li { margin-bottom: 8px; }

.legal-content .updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* ── Flash Messages ────────────────────────────────── */

.flash {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.flash.error {
  background: rgba(239,71,111,0.1);
  border: 1px solid rgba(239,71,111,0.3);
  color: var(--red);
}

.flash.success {
  background: rgba(6,214,160,0.1);
  border: 1px solid rgba(6,214,160,0.3);
  color: var(--green);
}

/* ── Confirmation Page ─────────────────────────────── */

.confirmation {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.confirmation-box {
  max-width: 500px;
}

.confirmation-icon {
  width: 64px;
  height: 64px;
  background: rgba(6,214,160,0.1);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
  color: var(--green);
}

.confirmation .ref-id {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cyan);
  background: var(--surface);
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-block;
  margin: 16px 0;
  letter-spacing: 2px;
}

/* ── Beta Top Bar ─────────────────────────────────── */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 200;
  background: linear-gradient(90deg, #001a1f 0%, #00262e 50%, #001a1f 100%);
  border-bottom: 1px solid var(--cyan-dim);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text);
}

.top-bar a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar a:hover { text-decoration: underline; }

.top-bar-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6,214,160,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6,214,160,0); }
}

/* Push nav and page down for top-bar */
.nav { top: 36px; }
.page { padding-top: calc(var(--nav-h) + 36px); }

/* ── Beta Banner (homepage) ──────────────────────── */

.beta-banner {
  background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, rgba(6,214,160,0.06) 100%);
  border-top: 1px solid rgba(0,229,255,0.15);
  border-bottom: 1px solid rgba(0,229,255,0.15);
  padding: 20px 32px;
}

.beta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.beta-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--black);
  background: var(--green);
  padding: 5px 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.beta-text {
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

.beta-highlight {
  color: var(--cyan);
  font-weight: 700;
}

.beta-inner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Quick Check ──────────────────────────────────── */

.quick-check {
  margin: 32px auto 0;
  max-width: 560px;
  width: 100%;
}

.qc-input-row {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}
.qc-input-row:focus-within { border-color: var(--cyan); }

.qc-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--surface);
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
}
.qc-input::placeholder { color: var(--text-3); }

.qc-input-row .btn { border-radius: 0; padding: 16px 28px; flex-shrink: 0; }

#qc-results {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
}

.qc-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  justify-content: center;
}

.qc-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.qc-error { color: var(--red); text-align: center; }

.qc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.qc-grade {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}
.qc-grade-a { background: rgba(6,214,160,0.15); color: var(--green); border: 2px solid var(--green); }
.qc-grade-b { background: rgba(6,214,160,0.1); color: #4ecdc4; border: 2px solid #4ecdc4; }
.qc-grade-c { background: rgba(255,190,11,0.1); color: var(--amber); border: 2px solid var(--amber); }
.qc-grade-f { background: rgba(239,71,111,0.1); color: var(--red); border: 2px solid var(--red); }

.qc-domain-name { font-size: 18px; font-weight: 600; color: var(--white); }
.qc-score { font-family: var(--mono); font-size: 13px; color: var(--text-3); margin-top: 2px; }

.qc-checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.qc-check {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.qc-pass { background: rgba(6,214,160,0.06); color: var(--green); }
.qc-warn { background: rgba(255,190,11,0.06); color: var(--amber); }
.qc-fail { background: rgba(239,71,111,0.06); color: var(--red); }

.qc-icon { font-size: 16px; flex-shrink: 0; }
.qc-detail { color: var(--text-2); font-weight: 400; }

.qc-cta {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
}

/* ── WhatsApp Float ──────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── Animations ────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.animate { animation: fadeUp 0.6s ease both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .hero { min-height: 70vh; }
  .hero-stat-row { flex-direction: row; gap: 24px; flex-wrap: wrap; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .signature-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section { padding: 48px 20px; }
  .top-bar { font-size: 11px; padding: 0 12px; gap: 6px; height: 32px; }
  .nav { top: 32px; }
  .page { padding-top: calc(var(--nav-h) + 32px); }
  .nav-links.open { top: var(--nav-h); }
  .beta-inner { flex-direction: column; text-align: center; gap: 12px; }
  .beta-badge { align-self: center; }
}
