/* ================================================================
   USX CYBER — DEMO / CONTACT LANDING PAGE
   Dynamic Defense | Request a Demo
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --cida:      #44d7b6;
  --principle: #4fabbd;
  --deep:      #006e7b;
  --alert:     #f1754a;
  --bg:        #07080B;
  --bg2:       #0C0F14;
  --bg3:       #111620;
  --surface:   #161D2A;
  --text:      #EEF2F8;
  --muted:     #9BB8CC;
  --faint:     rgba(255,255,255,.04);
  --border:    rgba(68,215,182,0.13);
  --font-d:    'Outfit',  sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --max-w:     1200px;
  --nav-h:     68px;
  --r:         6px;
  --ease:      cubic-bezier(.4, 0, .2, 1);
  --tr:        all .2s var(--ease);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(68,215,182,.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
strong { color: var(--text); font-weight: 600; }

/* ── Container ──────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 36px; }

/* ── Headings ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* ── Eyebrow ─────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-family: var(--font-d);
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--cida); margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 30px; border-radius: var(--r);
  transition: var(--tr); cursor: pointer; border: none;
}
.btn-cida { background: var(--cida); color: #000; font-size: 16px; padding: 16px 36px; }
.btn-cida:hover { background: #5ce8c7; box-shadow: 0 0 28px rgba(68,215,182,.35); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.18); font-size: 16px; padding: 16px 36px;
}
.btn-outline:hover { border-color: var(--cida); color: var(--cida); background: rgba(68,215,182,.04); }
.btn-block { width: 100%; justify-content: center; }


/* ================================================================
   NAVIGATION
   ================================================================ */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(7,8,11,.65);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(68,215,182,.06); transition: var(--tr);
}
.nav-wrap.scrolled {
  background: rgba(7,8,11,.96); border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.55);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 36px; height: 100%;
  display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 44px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--cida); }
.nav-mobile-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login { font-size: 13px; font-weight: 500; color: var(--muted); padding: 8px 14px; transition: color .15s; }
.nav-login:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 22px; border-radius: var(--r);
  background: var(--principle); color: #fff; transition: all .17s; white-space: nowrap;
}
.nav-cta:hover { background: #5cbece; box-shadow: 0 0 20px rgba(79,171,189,.35); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: 16px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--tr); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(30px, -20px); }
  66%       { transform: translate(-20px, 30px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes sbShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}


/* ================================================================
   DEMO LANDING — MAIN SPLIT
   ================================================================ */
.demo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  position: relative;
}

/* Background orbs */
.demo-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
}
.demo-orb-1 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,110,123,.1) 0%, transparent 60%);
  top: -200px; left: -200px;
  animation: orbDrift 14s ease-in-out infinite;
}
.demo-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(68,215,182,.06) 0%, transparent 60%);
  bottom: -100px; right: -100px;
  animation: orbDrift 12s ease-in-out infinite reverse;
}

.demo-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  z-index: 1;
}

/* ── Left panel — pitch ──────────────────────────────────────────── */
.demo-left {
  background: var(--deep);
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  position: relative; overflow: hidden;
}
.demo-left::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(68,215,182,.2), transparent 65%);
  pointer-events: none;
}
.demo-left::after {
  content: ''; position: absolute; bottom: -80px; left: -60px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.3), transparent 65%);
  pointer-events: none;
}

.demo-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(0,0,0,.5); margin-bottom: 0;
  animation: fadeUp .4s ease both .05s;
}
.demo-eyebrow-line { width: 24px; height: 1px; background: rgba(0,0,0,.35); flex-shrink: 0; }

.demo-headline {
  font-size: clamp(30px, 3.5vw, 48px);
  color: #000; line-height: 1.05;
  animation: fadeUp .5s ease both .1s;
  position: relative; z-index: 1;
}

.demo-tagline {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(0,0,0,.65); line-height: 1.7;
  animation: fadeUp .5s ease both .15s;
  position: relative; z-index: 1;
}

.demo-bullets {
  display: flex; flex-direction: column; gap: 14px;
  animation: fadeUp .5s ease both .2s;
  position: relative; z-index: 1;
}
.demo-bullet {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--r);
  transition: background .2s;
}
.demo-bullet:hover { background: rgba(0,0,0,.22); }
.demo-bullet-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.demo-bullet-text strong {
  display: block; font-family: var(--font-d); font-size: 14px; font-weight: 700;
  color: #000; margin-bottom: 2px;
}
.demo-bullet-text span { font-size: 13px; color: rgba(0,0,0,.6); line-height: 1.5; }

.demo-supporting {
  font-size: 14px; color: rgba(0,0,0,.6); line-height: 1.75;
  animation: fadeUp .5s ease both .25s;
  position: relative; z-index: 1;
}

.demo-sig {
  font-family: var(--font-d); font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(0,0,0,.35);
  animation: fadeUp .5s ease both .3s;
  position: relative; z-index: 1;
}

.demo-badges {
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp .5s ease both .35s;
  position: relative; z-index: 1;
}
.demo-badges img {
  height: 52px; width: auto; object-fit: contain;
  opacity: .9; filter: none; transition: opacity .2s;
}
.demo-badges img:hover { opacity: 1; }


/* ── Right panel — form ─────────────────────────────────────────── */
.demo-right {
  background: var(--bg2);
  padding: 72px 60px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
  animation: fadeUp .6s ease both .1s;
}

.demo-form-label {
  display: block; font-family: var(--font-d); font-size: 10px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--cida); margin-bottom: 14px;
}

.demo-form-h {
  font-size: clamp(22px, 2.6vw, 34px); margin-bottom: 8px; color: var(--text);
}

.demo-form-sub {
  font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 32px;
}

.demo-form { display: flex; flex-direction: column; gap: 12px; }

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

.demo-form input,
.demo-form select {
  width: 100%; padding: 14px 16px;
  background: var(--faint);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r);
  font-size: 14px; color: var(--text); font-family: var(--font-b);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.demo-form input::placeholder { color: rgba(155,184,204,.4); }
.demo-form input:focus,
.demo-form select:focus {
  outline: none; border-color: var(--cida);
  background: rgba(68,215,182,.04); box-shadow: 0 0 0 3px rgba(68,215,182,.1);
}

.demo-form .btn-submit {
  margin-top: 4px; width: 100%; justify-content: center;
  font-size: 15px; padding: 16px 28px;
  background: var(--cida); color: #000;
  font-family: var(--font-d); font-size: 14px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  border: none; border-radius: var(--r); cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  display: flex; align-items: center; gap: 10px;
}
.demo-form .btn-submit:hover {
  background: #5ce8c7; box-shadow: 0 0 28px rgba(68,215,182,.35);
  transform: translateY(-2px);
}

.demo-form .btn-secondary {
  width: 100%; justify-content: center; text-align: center;
  font-family: var(--font-d); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 14px 28px;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r);
  background: transparent; cursor: pointer; transition: border-color .2s, color .2s;
  display: block;
}
.demo-form .btn-secondary:hover { border-color: var(--cida); color: var(--cida); }

.form-legal {
  font-size: 11px; color: rgba(155,184,204,.45); line-height: 1.6; text-align: center;
  margin-top: 4px;
}
.form-legal a { color: rgba(155,184,204,.55); text-decoration: underline; }
.form-legal a:hover { color: var(--cida); }

/* Success state */
.form-success {
  display: none; text-align: center; padding: 40px 20px;
}
.form-success.visible { display: block; }
.form-success-icon {
  font-size: 48px; margin-bottom: 20px;
}
.form-success h3 {
  font-size: 24px; color: var(--cida); margin-bottom: 12px;
}
.form-success p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: #000; border-top: 1px solid rgba(68,215,182,.07); padding: 64px 0 32px; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.ft-logo    { height: 44px; width: auto; margin-bottom: 14px; }
.ft-tagline { font-family: var(--font-d); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--cida); margin-bottom: 10px; }
.ft-desc    { font-size: 13px; color: rgba(255,255,255,.28); line-height: 1.75; max-width: 260px; }
.ft-addr    { font-size: 12px; color: rgba(255,255,255,.18); line-height: 1.75; margin-top: 14px; }
.ft-col h4  { font-family: var(--font-d); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 18px; }
.ft-col ul  { display: flex; flex-direction: column; gap: 10px; }
.ft-col a   { font-size: 13px; color: rgba(255,255,255,.38); transition: color .15s; }
.ft-col a:hover { color: var(--cida); }
.ft-bottom  { border-top: 1px solid rgba(255,255,255,.05); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.ft-bottom p { font-size: 12px; color: rgba(255,255,255,.18); }
.ft-awards  { display: flex; gap: 12px; align-items: center; }
.ft-awards img { height: 56px; width: auto; object-fit: contain; opacity: .9; filter: none; transition: opacity .2s; }
.ft-awards img:hover { opacity: 1; }


/* ================================================================
   RESPONSIVE — TABLET  (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 28px; }

  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }

  .demo-split { grid-template-columns: 1fr; }
  .demo-left  { padding: 56px 40px; order: 2; }
  .demo-right { padding: 56px 40px; order: 1; border-left: none; border-top: 1px solid var(--border); }
  .ft-top     { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Mobile nav overlay */
.nav-links.open {
  display: flex !important; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(7,8,11,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 36px 36px; gap: 0; z-index: 9999; overflow-y: auto;
}
.nav-links.open li { border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-links.open a  { display: block; padding: 18px 0; font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.nav-links.open a:hover { color: var(--cida); }
.nav-links.open .nav-mobile-cta { display: block; border-bottom: none; padding-top: 28px; }
.nav-links.open .nav-mobile-cta .btn { width: 100%; justify-content: center; font-size: 15px; padding: 15px 28px; }


/* ================================================================
   RESPONSIVE — MOBILE  (≤ 640px)
   ================================================================ */
@media (max-width: 640px) {
  .container  { padding: 0 20px; }

  .demo-left  { padding: 48px 24px; }
  .demo-right { padding: 48px 24px; }
  .form-row   { grid-template-columns: 1fr; }
  .ft-top     { grid-template-columns: 1fr; }
  .ft-bottom  { flex-direction: column; text-align: center; }
  .ft-awards  { justify-content: center; }
}

@media (max-width: 400px) {
  :root { --nav-h: 60px; }
  .nav-logo img { height: 34px; }
}
