/* ============================================================
   ViperFX — public marketing site
   Self-contained. Loaded ONLY by index/privacy/terms.
   Does NOT touch the app shell (app.html + style.css).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --black: #0A0A0A;
  --panel: #141414;
  --panel-2: #181818;
  --white: #FFFFFF;
  --yellow: #F7C400;
  --ink-1: rgba(255, 255, 255, 0.92);
  --ink-2: rgba(255, 255, 255, 0.62);
  --ink-3: rgba(255, 255, 255, 0.40);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--ink-1);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: #000; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- typographic system ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 22px;
  display: inline-block;
}
h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.01em; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 30px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: #0A0A0A; box-shadow: 0 0 0 rgba(247,196,0,0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -18px rgba(247,196,0,.7); }
.btn-ghost { background: transparent; color: var(--ink-1); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 12.5px; }
.btn-block { width: 100%; }

/* ============================================================ HEADER */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 78px; display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.6)); }
.brand .wm { font-weight: 800; font-size: 21px; letter-spacing: 0.04em; }
.brand .wm b { color: var(--yellow); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 38px; }
.nav a {
  font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.02em;
  position: relative; transition: color .3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0;
  background: var(--yellow); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .login { font-size: 13.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.03em; transition: color .3s var(--ease); }
.header-cta .login:hover { color: var(--white); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 4px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 25px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 78px 0 0 0; z-index: 99;
  background: rgba(10,10,10,.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 40px 28px; gap: 8px;
  transform: translateX(100%); transition: transform .45s var(--ease); visibility: hidden;
}
body.menu-open .mobile-nav { transform: translateX(0); visibility: visible; }
.mobile-nav a { font-size: 24px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }

/* ============================================================ HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(247,196,0,.10), transparent 55%),
    linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,.55) 45%, var(--black) 100%);
}
.hero-emblem {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 620px); opacity: .14; z-index: 0; pointer-events: none;
  filter: grayscale(1) contrast(1.1);
  mask-image: radial-gradient(circle, #000 55%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { max-width: 940px; }
.hero h1 { margin-bottom: 30px; }
.hero h1 .accent { color: var(--yellow); }
.hero .lead { max-width: 680px; margin-bottom: 18px; }
.hero .lead.second { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* drifting smoke layers */
.smoke { position: absolute; inset: -20% -10%; z-index: 1; pointer-events: none; opacity: .5; mix-blend-mode: screen; }
.smoke img { width: 120%; height: 120%; object-fit: cover; opacity: .3; }
.smoke.a { animation: drift1 38s ease-in-out infinite alternate; }
.smoke.b { animation: drift2 52s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(-3%, -2%) scale(1.05); } to { transform: translate(4%, 3%) scale(1.12); } }
@keyframes drift2 { from { transform: translate(3%, 2%) scale(1.1); } to { transform: translate(-4%, -3%) scale(1.04); } }

/* floating particles */
.particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.particles i {
  position: absolute; bottom: -10px; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(247,196,0,.6); box-shadow: 0 0 6px 1px rgba(247,196,0,.35);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .5; }
  100% { transform: translateY(-100vh) translateX(var(--dx, 20px)); opacity: 0; }
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--yellow), transparent); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================ SECTION SHELL */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 90px 0; }
.divider { height: 1px; background: var(--line); }
.center { text-align: center; }
.center .eyebrow { display: block; }
.mw-720 { max-width: 720px; }
.mw-820 { max-width: 820px; }
.section-head { margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 22px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================ ABOUT */
.about { background: linear-gradient(180deg, var(--black), #0c0c0c); }
.about .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.about .stack p { margin-bottom: 20px; }
.about .pull { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; color: var(--white); line-height: 1.25; letter-spacing: -0.01em; }
.about .pull span { color: var(--yellow); }

/* ============================================================ CAPABILITIES / WHAT WE DO */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 40px 34px; overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--yellow);
  transition: width .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); background: var(--panel-2); }
.card:hover::before { width: 100%; }
.card .num { font-size: 13px; font-weight: 700; color: var(--yellow); letter-spacing: 0.2em; margin-bottom: 22px; }
.card h3 { margin-bottom: 14px; }
.card p { font-size: 15.5px; }
.closing { margin-top: 56px; max-width: 760px; }
.closing p { margin-bottom: 14px; }
.closing .accent { color: var(--white); font-weight: 600; }

/* ============================================================ TECHNOLOGY + STATS */
.tech { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.tech .stack p { margin-bottom: 20px; }
.tech .one-word { font-size: clamp(2rem,3vw,2.6rem); font-weight: 800; color: var(--yellow); letter-spacing: -0.02em; margin: 6px 0 24px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stat { background: var(--black); padding: 38px 30px; }
.stat .n { font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1; }
.stat .n .y { color: var(--yellow); }
.stat .l { margin-top: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================ PROCESS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding-top: 28px; border-top: 1px solid var(--line-2); position: relative; }
.step .k { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--yellow); margin-bottom: 18px; }
.step h3 { margin-bottom: 14px; }
.step p { font-size: 15px; }

/* ============================================================ CLIENTS / LOGO WALL */
.clients { background: linear-gradient(180deg, #0c0c0c, var(--black)); }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 18px; }
.logo-cell {
  background: var(--black); display: flex; align-items: center; justify-content: center;
  padding: 34px 24px; min-height: 120px; transition: background .4s var(--ease);
}
.logo-cell img { max-height: 36px; max-width: 150px; width: auto; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); opacity: .5; transition: opacity .4s var(--ease), filter .4s var(--ease); }
.logo-cell .txt { color: var(--ink-3); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; transition: color .4s var(--ease); }
.logo-cell:hover { background: var(--panel-2); }
.logo-cell:hover img { opacity: 1; filter: grayscale(0) brightness(1) invert(0); }
.logo-cell:hover .txt { color: var(--white); }
.logo-cell.screamify:hover .txt { color: var(--yellow); }
.logo-cell.screamify img { max-height: 50px; max-width: 150px; }
.logo-cell.foxnews img { max-height: 52px; max-width: 150px; }
.logo-cell.wide img { max-width: 178px; }
.clients .disclaim { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); max-width: 760px; }

/* ============================================================ WHY */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px; transition: transform .5s var(--ease), border-color .5s var(--ease); }
.why-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.why-card .ic { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(247,196,0,.1); margin-bottom: 22px; }
.why-card .ic svg { width: 22px; height: 22px; stroke: var(--yellow); fill: none; stroke-width: 1.6; }
.why-card h3 { margin-bottom: 12px; }
.why-card p { font-size: 15px; }

/* ============================================================ INDUSTRIES */
.industries { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ind {
  background: var(--black); padding: 34px 28px; font-size: 16px; font-weight: 600; color: var(--ink-2);
  display: flex; align-items: center; gap: 12px; transition: color .4s var(--ease), background .4s var(--ease);
}
.ind::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); opacity: .6; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ind:hover { color: var(--white); background: var(--panel-2); }
.ind:hover::before { opacity: 1; transform: scale(1.5); }

/* ============================================================ FOUNDER */
.founder { position: relative; overflow: hidden; }
.founder .emblem-bg { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(70vw, 720px); opacity: .05; filter: grayscale(1); pointer-events: none; }
.founder .wrap { position: relative; z-index: 1; }
.founder blockquote { max-width: 860px; margin: 0 auto; }
.founder blockquote p { font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--ink-1); margin-bottom: 22px; font-weight: 400; line-height: 1.6; }
.founder .sign { color: var(--yellow); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; }
.founder .twolines { font-size: clamp(1.3rem,2.2vw,1.9rem); font-weight: 700; color: var(--white); line-height: 1.3; margin-top: 8px; }

/* ============================================================ CONTACT */
.contact { background: linear-gradient(180deg, var(--black), #0c0c0c); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact .intro p { margin-bottom: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field-l { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.input, .select, .textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 5px;
  color: var(--white); font-family: var(--font); font-size: 15px; padding: 14px 16px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--yellow); background: var(--panel-2); }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: 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='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-success { display: none; padding: 28px; border: 1px solid var(--yellow); border-radius: 8px; background: rgba(247,196,0,.06); color: var(--ink-1); }
.form-success.show { display: block; }

/* ============================================================ PRE-FOOTER CTA */
.cta-strip { position: relative; overflow: hidden; background: var(--panel); border-top: 1px solid var(--line); }
.cta-strip .glow { position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 120%, rgba(247,196,0,.12), transparent 60%); }
.cta-strip .wrap { position: relative; z-index: 1; }
.cta-strip h2 { margin-bottom: 20px; }
.cta-strip p { max-width: 640px; margin: 0 auto 36px; }

/* ============================================================ FOOTER */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; font-weight: 700; }
.footer-col a { display: block; font-size: 15px; color: var(--ink-2); padding: 7px 0; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--ink-3); }

/* ============================================================ LEGAL PAGES */
.legal { padding: 150px 0 110px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 50px; }
.legal h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin: 48px 0 16px; }
.legal p { margin-bottom: 18px; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal a { color: var(--yellow); }
.back-home { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; margin-bottom: 40px; transition: color .3s var(--ease); }
.back-home:hover { color: var(--white); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .about .grid, .tech .grid, .contact .grid { grid-template-columns: 1fr; gap: 48px; }
  .cap-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav, .header-cta .login, .header-cta .btn { display: none; }
  .burger { display: block; }
  .header-cta { gap: 0; }
  .section { padding: 84px 0; }
  .hero { padding: 110px 0 70px; }
  .cap-grid, .why-grid, .stats, .steps, .form { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .hero-emblem { opacity: .08; right: -20%; }
  .wrap { padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
