:root{
  --bg:#0B1220;
  --bg2:#0F172A;
  --text:#EAF0FF;
  --muted:#B7C2E3;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --primary:#7C3AED;
  --cyan:#22D3EE;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  /* Performance-tuned (lighter than before) */
  --shadow2: 0 24px 70px rgba(0,0,0,.45);
  --radius:22px;
}

*{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: var(--bg);
  color: var(--text);
  overflow-x:hidden;

  /* Premium text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{color:inherit; text-decoration:none}
.container{width:min(1120px, 92%); margin:0 auto}

/* =========================
   ACCESSIBILITY — Focus states (10/10)
========================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Disabled UI (matches JS disable button) */
button:disabled,
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none !important;
  box-shadow:none !important;
}

/* =========================
   BACKGROUND
========================= */
.bg{position:fixed; inset:0; z-index:-2}
#particles{position:absolute; inset:0; width:100%; height:100%}

.grid-overlay{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity:.12;
  mask-image: radial-gradient(circle at 25% 10%, black 0%, transparent 60%);
}

.glow{
  position:absolute; width:720px; height:720px; filter: blur(48px);
  opacity:.38;
  background: radial-gradient(circle, rgba(124,58,237,.62), transparent 60%);
  will-change: transform;
}
.glow.a{left:-220px; top:-200px}
.glow.b{
  right:-260px; top:60px;
  background: radial-gradient(circle, rgba(34,211,238,.50), transparent 60%);
}

.noise{
  position:absolute; inset:0;
  opacity:.06;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events:none;
}

/* =========================
   HEADER
========================= */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(11,18,32,.70);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px}
.brand-mark{
  width:14px; height:14px; border-radius:6px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 0 22px rgba(124,58,237,.40);
}
.brand-text{font-weight:800; letter-spacing:.2px}
.brand-text b{color:var(--primary)}

.nav-links{display:flex; align-items:center; gap:18px}
.nav-links a{
  color:rgba(255,255,255,.78);
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
  transition:.18s ease;
}
.nav-links a:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
}

.nav-toggle{
  display:none;
  background:transparent; border:0; cursor:pointer;
}
.nav-toggle span{
  display:block; width:26px; height:2px; margin:6px 0;
  background: rgba(255,255,255,.82);
  border-radius:2px;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  font-size:14px;
  border:1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  user-select:none;
}
.btn.small{padding:10px 14px; border-radius:14px}
.btn.primary{
  background: linear-gradient(135deg, var(--primary), rgba(34,211,238,.40));
  color:#081022;
}
.btn.primary:hover{transform: translateY(-1px); box-shadow: 0 14px 42px rgba(124,58,237,.26)}
.btn.ghost{
  border-color: rgba(34,211,238,.35);
  background: rgba(34,211,238,.08);
  color: var(--cyan);
}
.btn.ghost:hover{transform: translateY(-1px); background: rgba(34,211,238,.14)}
.btn:active{transform: translateY(0) scale(.99)}

/* =========================
   HERO
========================= */
.hero{padding: 64px 0 46px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 28px;
  align-items:center;
  padding: 34px 0 10px;
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-size:13px;
}
.dot{width:8px;height:8px;border-radius:50%;background: var(--cyan); box-shadow:0 0 18px rgba(34,211,238,.55)}
h1{
  margin:14px 0 12px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height:1.05;
}
.grad{
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{color: rgba(255,255,255,.74); font-size:16px; max-width: 62ch}
.hero-cta{margin-top:20px; display:flex; gap:12px; flex-wrap:wrap}
.hero-trust{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}
.hero-trust span{
  font-size:13px;
  color: rgba(255,255,255,.86);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding:8px 10px;
  border-radius:999px;
}

/* =========================
   MOCK (legacy - safe)
========================= */
.mock{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.mock-top{
  display:flex; gap:8px;
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.mock-top span{width:10px;height:10px;border-radius:50%; background: rgba(255,255,255,.20)}
.mock-body{padding:18px}
.mock-kpi{display:flex; gap:12px}
.kpi{
  flex:1;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius:18px;
  padding:14px;
}
.kpi-num{font-weight:900; font-size:18px}
.kpi-label{color:rgba(255,255,255,.72); font-size:12px; margin-top:4px}
.mock-lines{margin-top:14px}
.line{height:10px;border-radius:999px;background: rgba(255,255,255,.12); margin:10px 0}
.w-70{width:70%}.w-55{width:55%}.w-85{width:85%}
.mock-cards{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}
.mini{
  height:86px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(34,211,238,.10));
}
.mock-cta{
  height:40px;
  margin-top:16px;
  border-radius:14px;
  border:1px solid rgba(34,211,238,.24);
  background: rgba(34,211,238,.10);
}

/* =========================
   SECTIONS
========================= */
.section{padding: 88px 0}
.section-head{text-align:center; max-width: 840px; margin:0 auto 34px}
.section-head h2{margin:0 0 10px; font-size: clamp(26px, 3vw, 38px)}
.section-head p{margin:0; color: rgba(255,255,255,.72); line-height:1.7}

.section.darkglass{
  background: radial-gradient(900px 700px at 12% 10%, rgba(124,58,237,.14), transparent 55%),
              radial-gradient(900px 700px at 90% 20%, rgba(34,211,238,.10), transparent 55%),
              rgba(15,23,42,.86);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.section.darktech{
  background: radial-gradient(900px 700px at 12% 10%, rgba(124,58,237,.10), transparent 58%),
              radial-gradient(900px 700px at 90% 20%, rgba(34,211,238,.08), transparent 58%),
              var(--bg2);
  border-top: 1px solid rgba(255,255,255,.06);
}

/* =========================
   CARDS
========================= */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.card{
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.dark{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(34,211,238,.22);
}

.icon{
  width:46px; height:46px; border-radius:16px;
  display:grid; place-items:center;
  background: rgba(124,58,237,.14);
  border: 1px solid rgba(124,58,237,.22);
  margin-bottom:10px;
}
.card h3{margin:10px 0 8px}
.card p{margin:0; color: rgba(255,255,255,.72); line-height:1.7}
.card ul{margin:14px 0 0; padding-left:18px; color: rgba(255,255,255,.72)}
.card li{margin:8px 0}

/* =========================
   PRICING
========================= */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.price-card{
  position:relative;
  border-radius: var(--radius);
  padding:20px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.price-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(34,211,238,.22);
}

.price-card.featured{
  border-color: rgba(124,58,237,.40);
  background: linear-gradient(180deg, rgba(124,58,237,.16), rgba(255,255,255,.05));
}
.price-pill{
  position:absolute;
  top:14px; right:14px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
}
.price-top{padding-top:4px}
.price-name{font-weight:900; font-size:16px}
.price-value{font-weight:900; font-size:26px; margin-top:6px}
.price-note{color: rgba(255,255,255,.70); font-size:13px; margin-top:6px}
.price-list{
  margin:14px 0 16px;
  padding-left:18px;
  color: rgba(255,255,255,.74);
  line-height:1.7;
}
.price-list li{margin:8px 0}

/* =========================
   SPLIT / STEPS / PANEL
========================= */
.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
}
.split p{color: rgba(255,255,255,.74); line-height:1.75}

.steps{margin-top:16px; display:grid; gap:12px}
.step{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding:14px;
  border-radius:18px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}
.step-num{
  font-weight:900;
  width:44px; height:44px;
  border-radius:16px;
  display:grid; place-items:center;
  border:1px solid rgba(34,211,238,.22);
  background: rgba(34,211,238,.10);
  color: rgba(255,255,255,.92);
}
.step-title{font-weight:900}
.step-text{color: rgba(255,255,255,.74); font-size:13px; margin-top:4px; line-height:1.6}

.panel{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.panel-title{font-weight:900; margin-bottom:12px}
.stack{display:flex; flex-wrap:wrap; gap:10px}
.chip{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  color: rgba(255,255,255,.88);
}
.panel-foot{
  margin-top:14px;
  display:flex; align-items:center; gap:10px;
  color: rgba(255,255,255,.76);
  font-size:13px;
}
.status-dot{
  width:8px; height:8px; border-radius:50%;
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34,197,94,.45);
}

.cta-row{margin-top:16px; display:flex; gap:12px; flex-wrap:wrap}

/* =========================
   WORK (FIX + PREMIUM)
========================= */
.work-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
}

.workcard{
  position:relative;
  border-radius: var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:16px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}
.workcard:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow2);
  border-color: rgba(34,211,238,.22);
}
.workcard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 240px at 10% 0%, rgba(124,58,237,.18), transparent 55%);
  opacity:.9;
}

.workcard .work-open{
  all: unset;
  display:block;
  cursor:pointer;
  position:relative;
  z-index:1;
}

.thumb{
  height:170px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  position:relative;
  overflow:hidden;
  background: rgba(0,0,0,.15);
}
.thumb.image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1);
  transition: transform .25s ease, filter .25s ease;
}
.workcard:hover .thumb.image img{
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

.tag{
  position:absolute; left:12px; top:12px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background: rgba(0,0,0,.38);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  z-index:2;
}

.workcard h3{margin:12px 0 6px; font-weight:900}
.workcard p{margin:0; color: rgba(255,255,255,.72); line-height:1.65}

.meta{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.meta span{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
}

/* =========================
   ABOUT
========================= */
.about{max-width: 860px}
.about p{color: rgba(255,255,255,.74); line-height:1.8}
.about-badges{margin-top:16px; display:flex; gap:10px; flex-wrap:wrap}
.ab{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.88);
  padding:10px 12px;
  border-radius:16px;
  font-size:13px;
}

/* =========================
   CONTACT
========================= */
.contact{
  max-width: 820px;
  margin: 0 auto;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.contact label span{
  display:block;
  font-size:13px;
  color: rgba(255,255,255,.78);
  margin-bottom:6px;
}
.contact input, .contact textarea, .contact select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
  color: rgba(255,255,255,.92);
  outline:none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact input::placeholder,
.contact textarea::placeholder{color: rgba(255,255,255,.50)}
.contact textarea{min-height: 130px; resize:vertical}

/* Pro focus for form controls */
.contact input:focus,
.contact textarea:focus,
.contact select:focus{
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.form-status{
  margin-top:12px;
  font-size:13px;
  color: rgba(255,255,255,.76);
}
.form-status[data-type="success"]{color:#22c55e}
.form-status[data-type="error"]{color:#ef4444}
.form-status[data-type="loading"]{color:#eab308}

.contact-links{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color: rgba(255,255,255,.74);
}
.link{
  color: rgba(255,255,255,.90);
  text-decoration:underline;
  text-decoration-color: rgba(124,58,237,.45);
}
.sep{opacity:.6}

/* =========================
   FOOTER
========================= */
.footer{
  padding: 34px 0 16px;
  border-top:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.foot{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:18px; flex-wrap:wrap;
}
.foot-brand{font-weight:900}
.foot-brand b{color: var(--primary)}
.foot-sub{color: rgba(255,255,255,.74); font-size:13px; margin-top:6px}
.foot-right{display:flex; gap:14px; flex-wrap:wrap}
.foot-right a{color: rgba(255,255,255,.78); font-size:14px}
.foot-right a:hover{color: var(--text)}
.copy{margin-top:14px; color: rgba(255,255,255,.60); font-size:13px}

/* =========================
   FAB
========================= */
.fab{
  position:fixed;
  right:18px; bottom:18px;
  padding:12px 14px;
  border-radius:999px;
  font-weight:900;
  background: linear-gradient(135deg, #25D366, rgba(34,211,238,.35));
  color:#071018;
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  z-index:60;
  transition: transform .18s ease;
}
.fab:hover{transform: translateY(-1px)}
.fab:active{transform: translateY(0) scale(.99)}

/* =========================
   LIGHTBOX
========================= */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9998;
}
.lightbox.open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(12px);
}

.lightbox-dialog{
  position: relative;
  width: min(980px, 92%);
  margin: 6vh auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(11,18,32,.90);
  box-shadow: 0 30px 120px rgba(0,0,0,.55);
  overflow:hidden;
}

.lb-close{
  position:absolute;
  right:12px; top:12px;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  z-index:2;
}
.lb-close:hover{ background: rgba(255,255,255,.10); }

.lb-media{
  height: min(520px, 58vh);
  background: rgba(255,255,255,.04);
}
.lb-media img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
}

.lb-meta{
  padding:16px 18px 18px;
  border-top:1px solid rgba(255,255,255,.10);
}
.lb-title{font-weight:900; font-size:18px}
.lb-sub{margin-top:6px; color: rgba(255,255,255,.72); font-size:13px}
.lb-actions{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}

/* =========================
   LOADER
========================= */
.loader{
  position:fixed;
  inset:0;
  background: rgba(11,18,32,.92);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  transition: opacity .35s ease, visibility .35s ease;
}
.loader.hide{
  opacity:0;
  visibility:hidden;
}
.loader-inner{
  width:min(520px, 90%);
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow2);
}
.loader-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
}
.loader-logo b{color: var(--primary)}
.loader-bar{
  margin-top:14px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.20);
  overflow:hidden;
}
.loader-bar span{
  display:block;
  width:45%;
  height:100%;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(124,58,237,.9), rgba(34,211,238,.65));
  animation: loadmove 1.1s ease-in-out infinite;
}
.loader-text{
  margin-top:12px;
  color: rgba(255,255,255,.72);
  font-size:13px;
}

@keyframes loadmove{
  0%{transform: translateX(-40%)}
  50%{transform: translateX(120%)}
  100%{transform: translateX(-40%)}
}

/* =========================
   REVEAL
========================= */
.reveal{opacity:0; transform: translateY(14px); transition: .75s ease}
.reveal.show{opacity:1; transform: translateY(0)}
.delay-1{transition-delay:.08s}
.delay-2{transition-delay:.16s}
.delay-3{transition-delay:.24s}

/* =========================
   3D TILT (safe)
   IMPORTANT: No hover transform here to avoid conflict with JS tilt transforms.
========================= */
.tilt{
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt:hover{
  box-shadow: var(--shadow2);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  .work-grid{grid-template-columns:1fr}
}

@media (max-width: 760px){
  .nav-toggle{display:block}
  .nav-links{
    position:absolute;
    right:4%;
    left:4%;
    top:66px;
    display:none;
    flex-direction:column;
    gap:10px;
    padding:14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(11,18,32,.94);
    backdrop-filter: blur(14px);
  }
  .nav-links.open{display:flex}
  .two{grid-template-columns:1fr}
}

/* =========================================
   HERO — Tech Micro Animations (Premium)
========================================= */
.tech-tiles{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  padding:18px;
}

.tile{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  transform-style:preserve-3d;
  transition: transform .35s ease, box-shadow .35s ease;
  isolation:isolate;
}

.tile:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 240px at 20% 0%, rgba(124,58,237,.25), transparent 55%),
              radial-gradient(520px 240px at 90% 10%, rgba(34,211,238,.18), transparent 55%);
  opacity:.9;
  z-index:0;
}

.tile:hover{
  transform: translateY(-6px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 26px 80px rgba(0,0,0,.35);
}

.tile-top{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
}

.tile-top .dot{
  width:8px;height:8px;border-radius:50%;
  background: rgba(255,255,255,.18);
}
.tile-top .dot.a{background: rgba(34,211,238,.55)}
.tile-top .dot.b{background: rgba(124,58,237,.55)}
.tile-top .dot.c{background: rgba(255,255,255,.22)}
.tile-label{
  margin-left:auto;
  font-size:12px;
  letter-spacing:.3px;
  color: rgba(234,240,255,.82);
}

.tile-foot{
  position:relative;
  z-index:2;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:10px 12px 12px;
}

.tile-foot .pill{
  font-size:12px;
  color: rgba(234,240,255,.85);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* --- Tile 1: Chart --- */
.t-chart .chart{
  position:relative;
  z-index:2;
  height:140px;
  padding:12px;
}
.t-chart .grid{
  position:absolute; inset:12px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  border-radius:14px;
  opacity:.55;
}
.t-chart .line{
  position:absolute; left:18px; right:18px; top:18px; bottom:18px;
  border-radius:14px;
  background:
    linear-gradient(90deg, rgba(34,211,238,.0), rgba(34,211,238,.18), rgba(124,58,237,.20), rgba(34,211,238,.0));
  mask-image: radial-gradient(circle at 20% 50%, black 0%, transparent 65%);
  animation: chart-sweep 5.4s ease-in-out infinite;
}
.t-chart .glow{
  position:absolute; inset:18px;
  border-radius:14px;
  background: radial-gradient(circle at 30% 40%, rgba(34,211,238,.20), transparent 55%);
  filter: blur(10px);
  opacity:.75;
  animation: glow-drift 6.2s ease-in-out infinite;
}
.t-chart .pulse{
  position:absolute;
  width:10px;height:10px;border-radius:50%;
  left:26px; top:94px;
  background: rgba(34,211,238,.9);
  box-shadow: 0 0 22px rgba(34,211,238,.55);
  animation: dot-travel 5.4s ease-in-out infinite;
}

@keyframes chart-sweep{
  0%{transform: translateX(-10px); opacity:.55}
  50%{transform: translateX(10px); opacity:.9}
  100%{transform: translateX(-10px); opacity:.55}
}
@keyframes glow-drift{
  0%{transform: translate(0,0)}
  50%{transform: translate(10px,-6px)}
  100%{transform: translate(0,0)}
}
@keyframes dot-travel{
  0%{transform: translate(0,0) scale(.95); opacity:.8}
  30%{transform: translate(72px,-32px) scale(1.05); opacity:1}
  65%{transform: translate(150px,-6px) scale(1.02); opacity:.95}
  100%{transform: translate(0,0) scale(.95); opacity:.8}
}

/* --- Tile 2: Nodes --- */
.t-nodes .nodes{
  position:relative;
  z-index:2;
  height:140px;
  margin:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.10);
  overflow:hidden;
}
.t-nodes .n{
  position:absolute;
  width:8px;height:8px;border-radius:50%;
  background: rgba(234,240,255,.85);
  box-shadow: 0 0 18px rgba(234,240,255,.25);
  animation: node-pulse 2.6s ease-in-out infinite;
}
.t-nodes .n1{left:16%; top:22%}
.t-nodes .n2{left:46%; top:28%; animation-delay:.3s}
.t-nodes .n3{left:74%; top:18%; animation-delay:.6s}
.t-nodes .n4{left:24%; top:66%; animation-delay:.4s}
.t-nodes .n5{left:55%; top:64%; animation-delay:.7s}
.t-nodes .n6{left:82%; top:70%; animation-delay:1s}

.t-nodes .beam{
  position:absolute; inset:-40%;
  background: conic-gradient(from 180deg, rgba(34,211,238,.0), rgba(34,211,238,.18), rgba(124,58,237,.16), rgba(34,211,238,.0));
  filter: blur(12px);
  opacity:.65;
  animation: beam-rot 7s linear infinite;
}
.t-nodes .beam.b2{
  opacity:.35;
  animation-duration: 10s;
  animation-direction: reverse;
}

@keyframes node-pulse{
  0%,100%{transform: scale(.9); opacity:.75}
  50%{transform: scale(1.25); opacity:1}
}
@keyframes beam-rot{
  to{transform: rotate(360deg)}
}

/* --- Tile 3: Code typing --- */
.t-code .codebox{
  position:relative;
  z-index:2;
  height:140px;
  margin:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
  padding:14px 14px 14px;
  overflow:hidden;
}
.code-line{
  height:10px;
  border-radius:999px;
  background: rgba(234,240,255,.12);
  margin:10px 0;
  position:relative;
}
.code-line:after{
  content:"";
  position:absolute; inset:0;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(34,211,238,.0), rgba(34,211,238,.22), rgba(124,58,237,.22), rgba(34,211,238,.0));
  transform: translateX(-40%);
  animation: code-shimmer 3.2s ease-in-out infinite;
}
.code-line.w1{width:78%}
.code-line.w2{width:62%}
.code-line.w3{width:86%}

.caret{
  position:absolute;
  width:10px; height:18px;
  left:16px; bottom:18px;
  border-radius:4px;
  background: rgba(34,211,238,.9);
  box-shadow: 0 0 20px rgba(34,211,238,.45);
  animation: caret-blink 1.1s steps(2) infinite, caret-move 4.2s ease-in-out infinite;
}
.scan{
  position:absolute; left:-30%; top:0; bottom:0;
  width:40%;
  background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.08), rgba(255,255,255,.0));
  transform: skewX(-18deg);
  animation: scan 5.4s ease-in-out infinite;
  opacity:.9;
}

@keyframes code-shimmer{
  0%{transform: translateX(-40%); opacity:.35}
  50%{transform: translateX(30%); opacity:.85}
  100%{transform: translateX(-40%); opacity:.35}
}
@keyframes caret-blink{ 50%{opacity:.15} }
@keyframes caret-move{
  0%{transform: translateX(0)}
  50%{transform: translateX(120px)}
  100%{transform: translateX(0)}
}
@keyframes scan{
  0%{transform: translateX(-40%) skewX(-18deg); opacity:.0}
  20%{opacity:.9}
  50%{transform: translateX(260%) skewX(-18deg); opacity:.6}
  100%{transform: translateX(260%) skewX(-18deg); opacity:0}
}

/* --- Tile 4: AI chip --- */
.t-ai .chip{
  position:relative;
  z-index:2;
  height:140px;
  margin:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,.14), transparent 60%),
              radial-gradient(circle at 70% 20%, rgba(34,211,238,.12), transparent 60%),
              rgba(0,0,0,.10);
  overflow:hidden;
  display:grid;
  place-items:center;
}

.chip-core{
  width:52px; height:52px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.22));
  box-shadow: 0 0 30px rgba(124,58,237,.25);
  animation: core-pulse 2.8s ease-in-out infinite;
}
.ring{
  position:absolute;
  width:120px; height:120px;
  border-radius:50%;
  border:1px solid rgba(34,211,238,.18);
  box-shadow: inset 0 0 18px rgba(34,211,238,.12);
  animation: ring 3.6s ease-in-out infinite;
}
.ring.r2{
  width:170px; height:170px;
  border-color: rgba(124,58,237,.16);
  animation-delay: .6s;
  opacity:.7;
}

.spark{
  position:absolute;
  width:8px; height:8px;
  border-radius:50%;
  background: rgba(234,240,255,.85);
  box-shadow: 0 0 16px rgba(234,240,255,.25);
  opacity:.9;
  animation: spark 3.4s ease-in-out infinite;
}
.spark.s1{left:18%; top:30%}
.spark.s2{right:18%; top:46%; animation-delay:.7s}
.spark.s3{left:40%; bottom:20%; animation-delay:1.2s}

@keyframes core-pulse{
  0%,100%{transform: scale(.96); filter: saturate(1)}
  50%{transform: scale(1.08); filter: saturate(1.25)}
}
@keyframes ring{
  0%{transform: scale(.92); opacity:.25}
  50%{transform: scale(1); opacity:.75}
  100%{transform: scale(.92); opacity:.25}
}
@keyframes spark{
  0%,100%{transform: translateY(0); opacity:.55}
  50%{transform: translateY(-10px); opacity:1}
}

/* Responsive */
@media (max-width: 980px){
  .tech-tiles{grid-template-columns:1fr}
}

/* =========================
   REDUCED MOTION (Pro)
========================= */
@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}