/* Nexilir — Professional Single-Page Website
   ------------------------------------------------------------
   - No frameworks (pure HTML/CSS/JS)
   - Responsive + mobile-friendly
   - Accessible navigation + focus states
*/

:root{
  --bg: #0b1220;
  --bg2: #0e172b;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --border: rgba(255,255,255,.12);

  --brand1:#7c3aed; /* purple */
  --brand2:#06b6d4; /* cyan */
  --brand3:#22c55e; /* green */

  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --radius: 18px;

  --container: 1120px;
  --header-h: 76px;
}

:root[data-theme="light"]{
  --bg: #f6f7fb;
  --bg2:#ffffff;
  --card: rgba(10,12,20,.05);
  --card2: rgba(10,12,20,.08);
  --text: rgba(17,24,39,.92);
  --muted: rgba(17,24,39,.70);
  --border: rgba(17,24,39,.12);
  --shadow: 0 18px 40px rgba(17,24,39,.15);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,58,237,.25), transparent 55%),
              radial-gradient(1000px 700px at 85% 20%, rgba(6,182,212,.22), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.6;
  overflow-x:hidden;
}

/* Basic */
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
p{ margin: 0 0 14px; }
h1,h2,h3{ line-height:1.15; margin:0 0 12px; }
ul{ margin:0; padding-left: 18px; }
.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section{
  padding: 72px 0;
  position:relative;
}
.section-alt{
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.03), transparent);
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap:wrap;
}
.section-title{
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
}
.section-subtitle{
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* Background accents */
.bg-accents{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.accent{
  position:absolute;
  filter: blur(46px);
  opacity:.55;
  transform: translate3d(0,0,0);
}
.accent.a1{ width:380px; height:380px; left:-120px; top: 8%; background: rgba(124,58,237,.35); }
.accent.a2{ width:420px; height:420px; right:-160px; top: 18%; background: rgba(6,182,212,.30); }
.accent.a3{ width:340px; height:340px; left: 45%; bottom:-140px; background: rgba(34,197,94,.22); }

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg2) 55%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
}
.brand:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand2) 60%, transparent);
  outline-offset: 2px;
}
.brand-logo{ width: 40px; height: 40px; object-fit: contain; }
.brand-name{ font-weight:800; letter-spacing:-0.03em; }

.nav-toggle{
  display:none;
  width:44px; height:44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(0,0,0,.14);
}
.hamburger{
  width: 20px;
  height: 2px;
  background: currentColor;
  display:inline-block;
  position:relative;
}
.hamburger::before,
.hamburger::after{
  content:"";
  position:absolute;
  left:0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease;
}
.hamburger::before{ top:-7px; }
.hamburger::after{ top: 7px; }

.nav-menu{
  display:flex;
  align-items:center;
  gap: 18px;
}
.nav-list{
  list-style:none;
  display:flex;
  gap: 14px;
  padding:0; margin:0;
}
.nav-link{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover{ color: var(--text); background: var(--card); }
.nav-link:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand1) 55%, transparent);
  outline-offset: 2px;
}

.nav-cta{
  display:flex;
  gap: 10px;
  align-items:center;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor:pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); background: var(--card2); }
.btn:active{ transform: translateY(0px); }
.btn:focus-visible{
  outline: 3px solid color-mix(in oklab, var(--brand2) 60%, transparent);
  outline-offset: 2px;
}
.btn-primary{
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand1) 90%, #000 0%), color-mix(in oklab, var(--brand2) 90%, #000 0%));
  border-color: color-mix(in oklab, var(--brand1) 35%, var(--border));
  box-shadow: 0 18px 35px rgba(0,0,0,.28);
}
.btn-secondary{ background: color-mix(in oklab, var(--bg2) 75%, transparent); }
.btn-ghost{ background: transparent; }
.w-full{ width:100%; }

.link{
  color: color-mix(in oklab, var(--brand2) 80%, var(--text));
  text-decoration: none;
}
.link:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero{ padding-top: 64px; }
.careers-hero .container{
  width: min(100% - 32px, 980px);
}
.careers-hero-inner{
  display:grid;
  gap: 18px;
  justify-items:center;
  text-align:center;
}
.careers-hero-media{
  width: min(100%, 980px);
  border-radius: calc(var(--radius) + 2px);
  overflow:hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}
.careers-hero-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.careers-hero .section-title,
.careers-hero .section-subtitle{
  margin-left:auto;
  margin-right:auto;
}
.careers-hero .section-subtitle{ max-width: 60ch; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items:center;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  border-radius: 999px;
  color: var(--muted);
  width: fit-content;
  margin-bottom: 18px;
}
.pill .dot{
  width:10px; height:10px;
  border-radius:50%;
  background: linear-gradient(120deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 6px rgba(124,58,237,.10);
}
.hero-title{
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.gradient-text{
  background: linear-gradient(90deg, var(--brand1), var(--brand2), var(--brand3));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
}
.hero-subtitle{
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 60ch;
  margin-bottom: 18px;
}
.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.trust-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-item{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  min-width: 160px;
}
.trust-number{ font-weight: 800; }
.trust-label{ display:block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Cards */
.card{
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg2) 85%, transparent), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-card .card{ padding: 18px; }
.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.badge{
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--brand1) 25%, transparent);
}
.muted{ color: var(--muted); }
.card-title{ font-size: 22px; letter-spacing: -0.02em; }
.card-text{ color: var(--muted); }
.checklist{ list-style:none; padding:0; margin: 14px 0 0; }
.checklist li{
  padding-left: 26px;
  position:relative;
  margin: 10px 0;
  color: var(--muted);
}
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0; top:0;
  color: color-mix(in oklab, var(--brand3) 85%, var(--text));
  font-weight: 800;
}
.card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap:wrap;
}
.status{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.pulse{
  width:10px; height:10px;
  border-radius:50%;
  background: var(--brand3);
  box-shadow: 0 0 0 0 rgba(34,197,94,.35);
  animation: pulse 1.6s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(34,197,94,.35); }
  70%{ box-shadow: 0 0 0 14px rgba(34,197,94,0); }
  100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Feature cards */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  min-height: 240px;
  transition: transform .14s ease, background .18s ease, border-color .18s ease;
}
.feature-card:hover{
  transform: translateY(-2px);
  background: var(--card2);
  border-color: color-mix(in oklab, var(--brand2) 28%, var(--border));
}
.feature-icon{ font-size: 22px; margin-bottom: 10px; }
.feature-card h3{ font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feature-card p{ color: var(--muted); margin-bottom: 10px; }
.mini-list{ color: var(--muted); padding-left: 18px; }
.mini-list li{ margin: 6px 0; }

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.step{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  display:flex;
  gap: 14px;
}
.step-index{
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 20px;
  color: color-mix(in oklab, var(--brand2) 80%, var(--text));
}
.step-body p{ color: var(--muted); margin: 0; }

/* About */
.about-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}
.about-highlights{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-item{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
}
.about-item p{ color: var(--muted); margin:0; }

.panel{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card2), var(--card));
  padding: 18px;
}
.facts{
  list-style:none;
  padding:0;
  margin: 14px 0 16px;
}
.facts li{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.facts li:last-child{ border-bottom: 0; }
.facts span:first-child{ color: var(--muted); }
.facts span:last-child{ font-weight: 650; }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  align-items:start;
}
.contact-cards{
  display:grid;
  gap: 12px;
  margin-top: 14px;
}
.contact-card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 16px;
  display:flex;
  align-items:center;
  gap: 12px;
}
.contact-icon{ font-size: 20px; }
.contact-label{ color: var(--muted); font-size: 13px; }
.contact-value{ font-weight: 650; }

.form{
  display:grid;
  gap: 14px;
}
label span{
  display:block;
  font-weight: 650;
  margin-bottom: 8px;
}
input, textarea, select{
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 75%, transparent);
  color: var(--text);
  padding: 12px 12px;
  font: inherit;
  outline: none;
}
input:focus, textarea:focus, select:focus{
  border-color: color-mix(in oklab, var(--brand2) 45%, var(--border));
  box-shadow: 0 0 0 4px rgba(6,182,212,.14);
}

input[type="file"]{
  padding: 10px 12px;
}
input[type="file"]::file-selector-button{
  margin-right: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover{
  background: var(--card2);
}
.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.form-note{ font-size: 13px; margin: 0; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 30px 0 18px;
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer-brand{ padding: 0; }
.footer-note{ max-width: 44ch; }
.footer-right{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.footer-link{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.footer-link:hover{
  color: var(--text);
  background: var(--card);
  border-color: var(--border);
}
.footer-bottom{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.to-top{
  border:0;
  background: transparent;
  cursor:pointer;
  padding: 8px 10px;
  border-radius: 12px;
}

/* Reveal animation */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero{ padding-top: 44px; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  :root{ --header-h: 70px; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav-menu{
    position: absolute;
    right: 16px;
    top: calc(var(--header-h) + 10px);
    width: min(92vw, 420px);
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 12px;
    padding: 14px;
    background: color-mix(in oklab, var(--bg2) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open{ display:flex; }
  .nav-list{
    flex-direction:column;
    gap: 6px;
  }
  .nav-cta{
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    justify-content:space-between;
  }
  .form-row{ grid-template-columns: 1fr; }
  .trust-item{ min-width: 140px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition:none; }
  .pulse{ animation:none; }
  .btn{ transition:none; }
  .feature-card{ transition:none; }
}


/* Formspree status + honeypot */
.hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.form-status{
  min-height: 20px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg2) 70%, transparent);
  color: var(--muted);
}
.form-status[data-type="success"]{
  border-color: color-mix(in oklab, var(--brand3) 35%, var(--border));
  color: color-mix(in oklab, var(--brand3) 70%, var(--text));
}
.form-status[data-type="error"]{
  border-color: color-mix(in oklab, #ef4444 35%, var(--border));
  color: color-mix(in oklab, #ef4444 70%, var(--text));
}
