/* ═══════════════════════════════════════════
   KHFEER — Cryptox-Inspired Dark System
   Primary: Neon Orange  |  Secondary: Purple
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

/* ── THE SIGNATURE ORANGE GLOW ─────────────────────────── */
.bg-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 900px;
  background: radial-gradient(ellipse at center,
    rgba(220,60,0,0.38) 0%,
    rgba(255,80,0,0.18) 28%,
    rgba(180,40,0,0.07) 55%,
    transparent 72%
  );
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

:root {
  --bg:   #000000;
  --bg-2: #060606;
  --bg-3: #0c0c0c;

  --glass:    rgba(255,255,255,0.040);
  --glass-md: rgba(255,255,255,0.07);
  --glass-lg: rgba(255,255,255,0.11);
  --border:   rgba(255,255,255,0.08);
  --border-md:rgba(255,255,255,0.14);

  /* PRIMARY — neon orange */
  --primary:        #ff5500;
  --primary-light:  #ff7733;
  --primary-dim:    rgba(255,85,0,0.12);
  --primary-mid:    rgba(255,85,0,0.24);
  --primary-border: rgba(255,85,0,0.50);
  --primary-glow:   0 0 28px rgba(255,85,0,0.65);

  /* Aliases */
  --neon:        #9900ff;
  --neon-dim:    rgba(153,0,255,0.10);
  --neon-mid:    rgba(153,0,255,0.22);
  --neon-border: rgba(153,0,255,0.50);
  --neon-glow:   0 0 26px rgba(153,0,255,0.65);

  --amber:        #ff5500;
  --amber-dim:    rgba(255,85,0,0.12);
  --amber-mid:    rgba(255,85,0,0.24);
  --amber-border: rgba(255,85,0,0.50);
  --amber-glow:   0 0 28px rgba(255,85,0,0.65);

  --violet:        #9900ff;
  --violet-dim:    rgba(153,0,255,0.10);
  --violet-border: rgba(153,0,255,0.50);
  --violet-glow:   0 0 26px rgba(153,0,255,0.65);

  --plum:        #9900ff;
  --plum-dim:    rgba(153,0,255,0.10);
  --plum-mid:    rgba(153,0,255,0.22);
  --plum-border: rgba(153,0,255,0.50);
  --plum-glow:   0 0 26px rgba(153,0,255,0.65);

  --rust:        #ff1744;
  --rust-dim:    rgba(255,23,68,0.10);
  --rust-mid:    rgba(255,23,68,0.22);
  --rust-border: rgba(255,23,68,0.50);
  --rust-glow:   0 0 26px rgba(255,23,68,0.65);

  --forest:        #00e676;
  --forest-dim:    rgba(0,230,118,0.10);
  --forest-mid:    rgba(0,230,118,0.22);
  --forest-border: rgba(0,230,118,0.50);
  --forest-glow:   0 0 26px rgba(0,230,118,0.65);

  --navy:        #2979ff;
  --navy-dim:    rgba(41,121,255,0.10);
  --navy-mid:    rgba(41,121,255,0.22);
  --navy-border: rgba(41,121,255,0.50);
  --navy-glow:   0 0 26px rgba(41,121,255,0.65);

  --pink:        #ff0080;
  --pink-dim:    rgba(255,0,128,0.10);
  --pink-mid:    rgba(255,0,128,0.22);
  --pink-border: rgba(255,0,128,0.50);
  --pink-glow:   0 0 26px rgba(255,0,128,0.65);

  --orange:        #ff5500;
  --orange-dim:    rgba(255,85,0,0.12);
  --orange-mid:    rgba(255,85,0,0.24);
  --orange-border: rgba(255,85,0,0.50);
  --orange-glow:   0 0 28px rgba(255,85,0,0.65);

  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,0.10);
  --cyan-mid:    rgba(0,229,255,0.22);
  --cyan-border: rgba(0,229,255,0.50);
  --cyan-glow:   0 0 26px rgba(0,229,255,0.65);

  --lime:        #76ff03;
  --lime-dim:    rgba(118,255,3,0.10);
  --lime-mid:    rgba(118,255,3,0.22);
  --lime-border: rgba(118,255,3,0.50);
  --lime-glow:   0 0 26px rgba(118,255,3,0.65);

  --indigo:        #651fff;
  --indigo-dim:    rgba(101,31,255,0.10);
  --indigo-mid:    rgba(101,31,255,0.22);
  --indigo-border: rgba(101,31,255,0.50);
  --indigo-glow:   0 0 26px rgba(101,31,255,0.65);

  --text-1: #ffffff;
  --text-2: rgba(255,255,255,0.60);
  --text-3: rgba(255,255,255,0.30);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 64px rgba(0,0,0,0.7);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ── PATENT STAMP ─────────────────────────────────── */
.patent-stamp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  z-index: 9999;
  transform: rotate(15deg);
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.patent-stamp svg { width: 100px; height: 100px; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0 2.5rem;
}
nav .container { max-width: 100%; padding: 0; margin: 0; }
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
  position: relative;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 36px; width: auto; }
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.logo-text .logo-accent { color: var(--primary); text-shadow: 0 0 16px rgba(255,85,0,0.7); }

.nav-links {
  display: flex; align-items: center; gap: 0.15rem; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 7px 16px; border-radius: 99px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.nav-links a:hover  { color: #fff; }
.nav-links a.active {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-dim);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.nav-cta {
  background: var(--primary); color: #fff;
  border: none;
  padding: 9px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--primary-glow);
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--primary-light);
  box-shadow: 0 0 44px rgba(255,85,0,0.8);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  justify-self: end;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; }

/* ══════════════════════════════
   SECTION COMMON
══════════════════════════════ */
.section { padding: 6rem 0; position: relative; }

.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 22px; height: 1.5px;
  background: var(--primary); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700;
  color: #fff; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.8rem;
}
.section-sub {
  font-size: 16px; color: var(--text-2); max-width: 540px;
  line-height: 1.7; margin-bottom: 3rem;
}

/* ══════════════════════════════
   PAGE HEADER (inner pages)
══════════════════════════════ */
.page-header {
  background: transparent;
  padding: 5rem 0 4rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  color: #fff; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1rem;
}
.page-header p { font-size: 17px; color: var(--text-2); line-height: 1.7; }

/* ══════════════════════════════
   PILL / BADGE
══════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 99px;
  letter-spacing: 0.04em; backdrop-filter: blur(10px);
}
.pill-teal   { background: var(--primary-dim);  color: var(--primary);  border: 1px solid var(--primary-border); }
.pill-amber  { background: var(--primary-dim);  color: var(--primary);  border: 1px solid var(--primary-border); }
.pill-rust   { background: var(--rust-dim);    color: var(--rust);    border: 1px solid var(--rust-border); }
.pill-plum   { background: var(--plum-dim);    color: var(--plum);    border: 1px solid var(--plum-border); }
.pill-navy   { background: var(--navy-dim);    color: var(--navy);    border: 1px solid var(--navy-border); }
.pill-forest { background: var(--forest-dim);  color: var(--forest);  border: 1px solid var(--forest-border); }
.pill-pink   { background: var(--pink-dim);    color: var(--pink);    border: 1px solid var(--pink-border); }
.pill-orange { background: var(--primary-dim); color: var(--primary); border: 1px solid var(--primary-border); }
.pill-cyan   { background: var(--cyan-dim);    color: var(--cyan);    border: 1px solid var(--cyan-border); }
.pill-lime   { background: var(--lime-dim);    color: var(--lime);    border: 1px solid var(--lime-border); }
.pill-indigo { background: var(--indigo-dim);  color: var(--indigo);  border: 1px solid var(--indigo-border); }
.pill-brown  { background: var(--glass);       color: var(--text-2);  border: 1px solid var(--border-md); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.65)} }

/* ══════════════════════════════
   BUTTONS
══════════════════════════════ */

/* Solid orange — primary action */
.btn-primary, .btn-dark {
  background: var(--primary); color: #fff;
  border: none;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: var(--primary-glow);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.25s;
}
.btn-primary:hover, .btn-dark:hover {
  background: var(--primary-light);
  box-shadow: 0 0 48px rgba(255,85,0,0.8);
  transform: translateY(-2px);
}

/* Ghost — secondary */
.btn-outline, .btn-glass, .btn-ghost {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
  transition: all 0.25s;
}
.btn-outline:hover, .btn-glass:hover, .btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  color: #fff; transform: translateY(-2px);
}

/* Orange glass — alternate */
.btn-light, .btn-amber {
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid var(--primary-border);
  padding: 14px 32px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  backdrop-filter: blur(12px);
  box-shadow: var(--primary-glow);
  transition: all 0.25s;
}
.btn-light:hover, .btn-amber:hover {
  background: var(--primary-mid);
  box-shadow: 0 0 48px rgba(255,85,0,0.8);
  transform: translateY(-2px);
}

/* Icon button arrow */
.btn-arrow { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.2); border-radius: 50%; flex-shrink: 0; }
.btn-arrow svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════
   PATENT BANNER
══════════════════════════════ */
.patent-banner {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-dim); border: 1px solid var(--primary-border);
  border-radius: var(--radius-md); padding: 10px 18px; font-size: 13px;
  color: var(--primary); font-weight: 500; backdrop-filter: blur(10px);
}
.patent-banner svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: #050505; padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo img { height: 36px; filter: brightness(0) invert(1) opacity(0.6); }
.footer-logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.footer-logo-text span { color: var(--primary); text-shadow: 0 0 14px rgba(255,85,0,0.6); }
.footer-tagline { font-size: 13px; color: var(--text-3); margin-top: 8px; }
.footer-links-group h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 0.8rem;
}
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links-group a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-links-group a:hover { color: var(--primary); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy, .footer-patent { font-size: 12px; color: var(--text-3); }

/* ══════════════════════════════
   FORM FIELDS
══════════════════════════════ */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  color: #fff; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px var(--primary-dim);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field select { color: var(--text-2); }
.form-field select option { background: #0c0c0c; color: #fff; }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem; gap: 0.5rem;
    backdrop-filter: blur(24px);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 10px 16px; border-radius: var(--radius-sm); }
  .section { padding: 4rem 0; }
}
