:root{--accent:#814AC8;--bg:#000;--panel:rgba(255,255,255,.04);--border:rgba(255,255,255,.12);}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:#fff;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial}
a{color:inherit}
.container{max-width:1120px;margin:0 auto;padding:0 1rem}
.header{position:sticky;top:0;z-index:50;background:rgba(0,0,0,.55);backdrop-filter:blur(10px) saturate(140%);border-bottom:1px solid rgba(255,255,255,.08)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0}
.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none}
.brand img{height:64px;width:auto}
.brand .wordmark{font-weight:700;letter-spacing:.06em}
.nav{display:none;align-items:center;gap:.5rem}
@media (min-width:900px){.nav{display:flex}}
.chip{padding:.55rem .9rem;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.02);text-decoration:none;color:rgba(255,255,255,.82);transition:.2s}
.chip:hover{background:var(--accent);border-color:var(--accent);color:#fff;transform:translateY(-1px)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1.15rem;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.03);text-decoration:none;color:#fff;cursor:pointer;transition:transform .18s, background .18s, border-color .18s, box-shadow .18s}
.btn-primary{box-shadow:0 10px 30px -14px rgba(129,74,200,.55), inset 0 0 0 1px rgba(129,74,200,.25);}
.btn:hover{background:var(--accent);border-color:var(--accent);transform:translateY(-2px) scale(1.01)}
.btn:active{transform:translateY(-1px) scale(.99)}
.menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;border:1px solid var(--border);background:rgba(255,255,255,.03)}
@media (min-width:900px){.menu-btn{display:none}}
.menu-ico{width:22px;height:2px;background:#fff;position:relative}
.menu-ico:before,.menu-ico:after{content:"";position:absolute;left:0;width:22px;height:2px;background:#fff}
.menu-ico:before{top:-6px} .menu-ico:after{top:6px}
.mobile{display:none;padding:.6rem 0 1rem;border-top:1px solid rgba(255,255,255,.08)}
.mobile.open{display:grid;gap:.5rem}
.hero{padding:4.5rem 0 2.5rem}
@media(min-width:900px){.hero{padding:6rem 0 3rem}}
.h1{font-size:2.4rem;line-height:1.05;margin:0;font-weight:800}
@media(min-width:900px){.h1{font-size:3.6rem}}
.sub{margin-top:1.1rem;color:rgba(255,255,255,.78);max-width:58ch}
.accent{color:var(--accent)}
.pills{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;margin-top:1.4rem}
@media(min-width:900px){.pills{grid-template-columns:repeat(4,1fr)}}
.pill{border:1px solid var(--border);border-radius:14px;background:var(--panel);padding:.75rem .9rem;color:rgba(255,255,255,.8);font-size:.85rem}
.section{padding:3rem 0}
.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.h2{font-size:1.7rem;margin:0;font-weight:700}
.muted{color:rgba(255,255,255,.6)}
.grid{display:grid;gap:1rem}
@media(min-width:900px){.grid.cols3{grid-template-columns:repeat(3,1fr)} .grid.cols2{grid-template-columns:repeat(2,1fr)}}
.card{border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));padding:1.25rem;transition:.2s}
.card:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.2)}
.icon{font-size:1.3rem}
.card h3{margin:.5rem 0 .25rem;font-size:1.1rem}
.card p{margin:.35rem 0 0;color:rgba(255,255,255,.75)}
.list{margin:.8rem 0 1rem;padding-left:1.1rem;color:rgba(255,255,255,.85)}
.list li{margin:.25rem 0}
.work{overflow:hidden}
.work img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:#111}
.tag{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.cta{border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.03));padding:1.35rem}
.form{border:1px solid var(--border);border-radius:18px;background:var(--panel);padding:1.25rem}
.label{font-size:.85rem;color:rgba(255,255,255,.7)}
.input{width:100%;margin-top:.35rem;background:#000;border:1px solid rgba(255,255,255,.16);color:#fff;padding:.72rem;border-radius:12px;outline:none;transition:.15s}
.input:focus{border-color:rgba(255,255,255,.28)}
.consent{margin-top:.7rem}
.consent label{display:flex;gap:.6rem;align-items:flex-start;color:rgba(255,255,255,.75);font-size:.9rem}
.footer{border-top:1px solid rgba(255,255,255,.1);padding:2rem 0;color:rgba(255,255,255,.6);font-size:.9rem}
.footer a{text-decoration:none;color:rgba(255,255,255,.7)}
.footer a:hover{color:#fff}
.glows{position:fixed;inset:0;pointer-events:none;z-index:-1}
.glow{position:absolute;filter:blur(70px);opacity:.42}
.glow.a{width:760px;height:380px;left:4%;top:-12%;background:radial-gradient(ellipse at center, rgba(129,74,200,.35), transparent 60%)}
.glow.b{width:720px;height:360px;right:8%;top:-8%;background:radial-gradient(ellipse at center, rgba(129,74,200,.28), transparent 60%)}



/* ---- Language switch ---- */
.xn-lang{display:flex;gap:.25rem;border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:.2rem;background:rgba(255,255,255,.03);}
.xn-lang-btn{padding:.35rem .5rem;border-radius:10px;border:0;background:transparent;color:rgba(255,255,255,.82);font-size:.8rem;cursor:pointer;transition:.18s;}
.xn-lang-btn:hover{background:#814AC8;color:#fff;}
.xn-lang-btn.active{background:#814AC8;color:#fff;}
@media (max-width:899px){.xn-lang{margin-left:auto;}}


/* reveal animation */
[data-reveal]{
  opacity:0;
  transform: translateY(14px) scale(.985);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
[data-reveal].in-view{
  opacity:1;
  transform: translateY(0) scale(1);
}


/* =========================================================
   XNomaD Aesthetic v1: "Apple meets high‑end cybersecurity"
   Controlled color, premium glass, subtle grain, elegant motion
   ========================================================= */

/* Background: nearly-black base + very subtle ambient light */
:root{
  --bg0:#0b0d12;
  --bg1:#0f121a;
  --card1:rgba(255,255,255,.055);
  --card2:rgba(255,255,255,.02);
  --stroke:rgba(255,255,255,.08);
  --stroke2:rgba(255,255,255,.06);
  --text2:rgba(255,255,255,.78);
  --accent:#814AC8;
  --accent2:#00bfff;
}

body{
  background: var(--bg0);
}

/* hero image derived from logo stays, but toned down */
body:after{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background-image:url("assets/hero-bg.jpg");
  background-size:cover;
  background-position:center;
  opacity:.22;                 /* was too loud */
  filter:saturate(0.95) contrast(1.02) blur(0px);
  transform: scale(1.02);
}

/* Ambient light, extremely subtle */
body:before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(900px 650px at 18% 18%, rgba(129,74,200,.10), transparent 62%),
    radial-gradient(850px 600px at 86% 14%, rgba(0,191,255,.07), transparent 62%),
    radial-gradient(900px 700px at 55% 92%, rgba(129,74,200,.06), transparent 64%),
    linear-gradient(180deg, rgba(0,0,0,.70), rgba(0,0,0,.86));
  pointer-events:none;
}

/* Ultra-light film grain (premium, not crunchy) */
.xn-grain{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url("assets/grain.png");
  background-size:320px 320px;
  opacity:.045;                /* reduced */
  mix-blend-mode:overlay;
}

/* Keep app content above grain */
.header, main, footer{position:relative; z-index:1;}

/* Typography polish (slightly tighter and cleaner) */
.h1{letter-spacing:-.02em;}
.h2{letter-spacing:-.01em;}
.muted, .sub{color:var(--text2);}

/* Premium glass cards */
.card, .cta, .form{
  position:relative;
  background: linear-gradient(180deg, var(--card1), var(--card2));
  border: 1px solid var(--stroke2);
  box-shadow:
    0 18px 60px -45px rgba(0,0,0,.92),
    inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Subtle specular highlight (tactile, not neon) */
.card::before, .cta::before, .form::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(255,255,255,.085), transparent 58%),
    radial-gradient(520px 220px at 82% 0%, rgba(255,255,255,.045), transparent 60%);
  opacity:.55;
  pointer-events:none;
}
.card:hover::before, .cta:hover::before, .form:hover::before{opacity:.78;}

/* Work cards: clickable, elegant lift */
.work-link, .service-tile{
  text-decoration:none;
  color:inherit;
  display:block;
}
.work-link, .service-tile, .btn{
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, filter .22s ease;
}
.work-link:hover, .service-tile:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 22px 70px -55px rgba(0,0,0,.95);
}

/* Images: keep DSLR vibe but controlled */
.work img{
  filter: contrast(1.03) saturate(1.02);
}

/* Buttons: calm by default, decisive on hover */
.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.btn:hover{
  background: rgba(129,74,200,.20);
  border-color: rgba(129,74,200,.55);
  box-shadow: 0 14px 40px -28px rgba(129,74,200,.65);
}
.btn-primary{
  background: rgba(129,74,200,.18);
  border-color: rgba(129,74,200,.45);
}
.btn-primary:hover{
  background: rgba(129,74,200,.30);
  border-color: rgba(129,74,200,.70);
}

/* Header: slightly more premium separation */
.header{
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(120%);
}

/* Reveal animation: subtle and smooth */
[data-reveal]{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
[data-reveal].in-view{
  opacity:1;
  transform: translateY(0);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}



/* ---- Work hover highlight ---- */
.work-link{
  border: 1px solid rgba(255,255,255,.08);
  transform: translateY(0);
}
.work-link:hover{
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(129,74,200,.45);
  box-shadow: 0 26px 90px -70px rgba(0,0,0,.95), 0 18px 55px -48px rgba(129,74,200,.55);
}
.work-link:hover img{
  filter: contrast(1.06) saturate(1.05);
  transform: scale(1.02);
}
.work img{
  transition: transform .35s ease, filter .35s ease;
}

/* ---- Social links ---- */
.footer .socials{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.footer .social{
  padding:.45rem .7rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color: rgba(255,255,255,.85);
  transition: .18s;
  font-size:.9rem;
}
.footer .social:hover{
  background: rgba(129,74,200,.22);
  border-color: rgba(129,74,200,.55);
  color:#fff;
}
@media (max-width:720px){
  .footer .container{justify-content:center !important}
  .footer .socials{justify-content:center}
}






/* ---- Floating actions: bottom-right stack ---- */
.xn-wa-fab,
.xn-cta-fab{
  position:fixed;
  right:18px;
  z-index:220;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  padding:.82rem 1rem;
  border-radius:999px;
  text-decoration:none;
  color:#fff;
  backdrop-filter:blur(14px) saturate(120%);
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,opacity .2s ease;
  font-weight:700;
  box-shadow:0 18px 60px -45px rgba(0,0,0,.92);
}
.xn-wa-fab{
  bottom:18px;
  background:rgba(37,211,102,.16);
  border:1px solid rgba(37,211,102,.45);
  box-shadow:0 18px 60px -45px rgba(0,0,0,.92), 0 14px 40px -30px rgba(37,211,102,.45);
}
.xn-wa-fab:hover{
  transform:translateY(-3px);
  background:rgba(37,211,102,.24);
  border-color:rgba(37,211,102,.72);
}
.xn-cta-fab{
  bottom:76px;
  background:rgba(129,74,200,.20);
  border:1px solid rgba(129,74,200,.50);
  box-shadow:0 18px 60px -45px rgba(0,0,0,.92), 0 14px 40px -30px rgba(129,74,200,.55);
}
.xn-cta-fab:hover{
  transform:translateY(-3px);
  background:rgba(129,74,200,.32);
  border-color:rgba(129,74,200,.75);
}
.xn-wa-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#25D366;
  color:#fff;
  font-size:.95rem;
  line-height:1;
  box-shadow:0 0 0 4px rgba(37,211,102,.14);
}
.xn-wa-label{letter-spacing:.01em;font-size:.95rem;}

@media (max-width:520px){
  .xn-wa-fab,.xn-cta-fab{
    right:14px;
    padding:.8rem .92rem;
  }
  .xn-cta-fab{bottom:76px;}
  .xn-wa-fab{bottom:14px;}
  .xn-wa-label{display:none;}
}

/* ---- Footer cleanup ---- */
.footer, footer.footer{
  position:relative;
  z-index:2;
}
.footer .container{
  display:flex !important;
  gap:1rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.footer a{text-decoration:none;}


/* Responsive project images */
.case-card {
  overflow: hidden;
}

.case-card .media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

.case-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 700px) {
  .case-card .media {
    aspect-ratio: 4 / 3;
  }
}
