/* Tech G Labs — Premium Static Site (HTML + CSS only) */

:root{
  --bg0:#05040a;
  --bg1:#0a0614;
  --card: rgba(12, 10, 24, .72);
  --card2: rgba(10, 8, 18, .55);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.08);
  --text:#f5f5f7;
  --muted:#b8b8d0;
  --muted2:#8f8fb0;
  --a:#c58cff;
  --a2:#8a5bff;
  --teal: rgba(90,255,220,.14);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 0 0 1px rgba(255,255,255,.08), 0 16px 54px rgba(0,0,0,.60);
  --radius: 18px;
  --radius2: 26px;
  --max: 1160px;
  --pad: 24px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  color:var(--text);
  background: radial-gradient(1100px 700px at 20% 10%, rgba(197,140,255,.16), transparent 60%),
              radial-gradient(900px 600px at 82% 22%, rgba(138,91,255,.13), transparent 56%),
              radial-gradient(800px 600px at 50% 92%, rgba(90,255,220,.06), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial;
  letter-spacing: .2px;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--text); }
p{ color: var(--muted); line-height:1.65; margin:0; }
h1,h2,h3{ margin:0; line-height:1.1; letter-spacing: -.6px; }
img{ max-width:100%; display:block; }

.container{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-9999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  position:fixed; left:16px; top:16px;
  width:auto; height:auto; padding:10px 12px;
  background: rgba(0,0,0,.8);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  z-index: 9999;
}

/* IMPORTANT: allow vertical scrolling */
.bg-tech{
  position:relative;
  overflow-x:hidden;
}

/* Fixed grid + vignette layers */
.bg-tech::before{
  content:"";
  position:fixed;
  inset:-2px;
  z-index:1;
  background:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity:.35;
  pointer-events:none;
  mask-image: radial-gradient(closest-side at 50% 30%, black 45%, transparent 76%);
}
.bg-tech::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:1;
  background: radial-gradient(1200px 700px at 50% 18%, transparent 35%, rgba(0,0,0,.70) 80%);
  pointer-events:none;
}

/* Background animation layer: behind UI/dialogs */
.cycles{
  position: fixed;
  inset: 0;
  z-index:0;
  pointer-events: none;
  overflow: hidden;
}

/* All site content above background effects */
.page{
  position: relative;
  z-index: 2;
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(5,4,10,.78), rgba(5,4,10,.36));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex; align-items:center; gap:12px;
}
/* Header brand mark: no bubble, slightly larger */
.brand-mark{
  width:60px;
  height:60px;
  border:none;
  background: transparent;
  box-shadow:none;
  border-radius: 0;
  overflow: visible;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.brand-logo{
  width: 60px;
  height: 60px;
  object-fit: contain;
  padding: 0;
  opacity: 1;
}

.brand b{ font-weight:650; letter-spacing:-.3px; }
.brand span{ color:var(--muted2); font-size:12.8px; display:block; margin-top:2px; }

.nav{
  display:flex; align-items:center; gap: 12px;
}
.nav a{
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.actions{ display:flex; gap: 10px; align-items:center; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
}
.btn.primary{
  background: linear-gradient(135deg, rgba(197,140,255,.95), rgba(138,91,255,.95));
  border-color: rgba(255,255,255,.18);
}
.btn.primary:hover{
  background: linear-gradient(135deg, rgba(197,140,255,.98), rgba(138,91,255,.98));
}
.btn.ghost{
  background: transparent;
  box-shadow:none;
}
.btn.small{ padding: 8px 12px; border-radius: 12px; }

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 13px;
}

.hero{
  padding: 80px 0 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
}
.kicker{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom: 16px;
}
.hero h1{
  font-size: clamp(34px, 5.4vw, 56px);
}
.hero h1 .grad{
  background: linear-gradient(135deg, var(--a), var(--a2));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.hero p{
  margin-top: 14px;
  font-size: 16.5px;
  max-width: 68ch;
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 22px;
}

.panel{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(420px 220px at 20% 12%, rgba(197,140,255,.22), transparent 60%),
              radial-gradient(380px 200px at 80% 30%, rgba(90,255,220,.08), transparent 62%);
  opacity:.9;
  pointer-events:none;
}
.panel > *{ position:relative; }

.statgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.stat{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,8,18,.55);
  padding: 14px;
}
.stat b{ display:block; font-size: 16.5px; letter-spacing:-.4px; }
.stat span{ display:block; margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height:1.4; }

.deliver-bar{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.deliver-item{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,10,24,.45);
  padding: 12px 14px;
}
.deliver-item b{
  display:block;
  letter-spacing:-.3px;
}
.deliver-item span{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.4px;
  line-height: 1.45;
}

.section{
  padding: 34px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head h2{
  font-size: clamp(24px, 3.2vw, 34px);
}
.section-head p{
  max-width: 68ch;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,10,24,.62);
  box-shadow: var(--shadow2);
  padding: 16px;
  position:relative;
  overflow:hidden;
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: rgba(12,10,24,.72);
}
.card h3{
  font-size: 18px;
  margin-bottom: 8px;
}

.muted{ color: var(--muted); }

.meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 12.5px;
}

.card .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 12px;
}
.card .row a{ color: var(--text); }
.card .row a.sub{ color: var(--muted); }

.hr{
  height:1px;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}

.callout{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(197,140,255,.14), rgba(138,91,255,.10), rgba(10,8,18,.60));
  box-shadow: var(--shadow2);
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.footer{
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 0 34px;
  color: var(--muted2);
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); }

.note{
  color: var(--muted2);
  font-size: 13px;
  line-height:1.5;
}

/* Apps: large image above title (no bubble) */
.apps-grid{ align-items: stretch; }

/* NEW: Apps carousel (left-to-right scroll) */
.apps-scroll{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.apps-scroll .app-card{
  flex: 0 0 360px;
  scroll-snap-align: start;
}

/* Existing scrollbar styling (will be hidden below) */
.apps-scroll::-webkit-scrollbar{ height: 10px; }
.apps-scroll::-webkit-scrollbar-track{ background: rgba(255,255,255,.05); border-radius: 999px; }
.apps-scroll::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius: 999px; }
.apps-scroll::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.22); }

/* NEW: Wrapper + centered arrow controls */
.apps-wrap{
  position: relative;
}

/* Hide the horizontal scrollbar (no dragging bar at bottom) */
.apps-scroll{
  scrollbar-width: none; /* Firefox */
}
.apps-scroll::-webkit-scrollbar{
  display: none;         /* Chrome/Safari */
  height: 0;
}

/* Left/right buttons centered vertically */
.apps-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10, 8, 18, .62);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(0,0,0,.55);
  transition: transform .15s ease, background .2s ease, opacity .2s ease, border-color .2s ease;
}
.apps-arrow:hover{
  transform: translateY(-50%) translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}
.apps-arrow:disabled{
  opacity: .25;
  cursor: default;
}
.apps-arrow.left{ left: -10px; }
.apps-arrow.right{ right: -10px; }

.app-image{
  width: 100%;
  height: 160px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(360px 180px at 22% 18%, rgba(197,140,255,.12), transparent 60%),
    radial-gradient(360px 180px at 80% 40%, rgba(90,255,220,.06), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 14px 44px rgba(0,0,0,.45);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
}
.app-image img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Store links */
.store-row{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.store{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.store:hover{
  color: var(--text);
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}

/* Contact helpers */
.contact-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-label{
  color: var(--muted2);
  font-size: 12.5px;
}
.contact-value{
  margin-top: 4px;
  font-weight: 650;
  letter-spacing: -.2px;
}

/* Bullets */
.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.bullets li{ margin: 6px 0; }

/* Mobile */
.mobile-toggle{ display:none; }
.mobile-btn{ display:none; }

/* Pure CSS mobile menu (checkbox hack) */
@media (max-width: 920px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .section-head{ align-items:flex-start; flex-direction:column; }
  .actions{ display:none; }

  .mobile-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
  }
  .nav{
    position: absolute;
    left: 0; right: 0;
    top: 64px;
    margin: 0 auto;
    width: min(var(--max), calc(100% - (var(--pad) * 2)));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(6, 5, 12, .86);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow2);
  }
  .nav a{ padding: 12px 12px; }
  .mobile-toggle:checked ~ .nav{ display:flex; }

  .app-image{ height: 150px; }
  .apps-scroll .app-card{ flex: 0 0 86vw; }

  .apps-arrow.left{ left: 6px; }
  .apps-arrow.right{ right: 6px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; scroll-behavior:auto !important; }
}

/* -------------------------------------------------------------------------- */
/* MODALS (CSS-only via :target)                                               */
/* -------------------------------------------------------------------------- */

.modal{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: 18px;
}
.modal:target{ display: grid; place-items: center; }

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(8px);
}

.modal-card{
  position: relative;
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 42px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,8,18,.78);
  box-shadow: 0 24px 90px rgba(0,0,0,.72);
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.modal-head-left{
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.modal-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
}
.modal-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.modal-close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}
.modal-close:hover{
  background: rgba(255,255,255,.10);
}

.modal-body{
  padding: 14px 16px 16px;
}

.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 820px){
  .modal-grid{ grid-template-columns: 1fr; }
}

.modal-block{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,10,24,.55);
  padding: 14px;
}
.modal-block h4{
  margin: 0 0 8px 0;
  font-size: 15px;
  letter-spacing: -.2px;
}

.modal-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/* TRON-style "light cycle" streaks (slower + behind UI/dialogs)              */
/* -------------------------------------------------------------------------- */

.cycle{
  position: absolute;
  height: 4px;
  width: 70vw;
  opacity: 0;
  border-radius: 999px;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  filter:
    drop-shadow(0 0 10px rgba(197,140,255,.45))
    drop-shadow(0 0 18px rgba(138, 91,255,.24));
}

.cycle::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(197,140,255,0) 0%,
    rgba(197,140,255,0.06) 18%,
    rgba(197,140,255,0.66) 52%,
    rgba(138, 91,255,0.72) 62%,
    rgba(197,140,255,0.08) 80%,
    rgba(197,140,255,0) 100%
  );
}

.cycle::after{
  content:"";
  position:absolute;
  right:-14px;
  top:50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,255,255,.86) 0%,
    rgba(197,140,255,.70) 30%,
    rgba(138, 91,255,.54) 56%,
    rgba(197,140,255,0) 78%
  );
  box-shadow:
    0 0 16px rgba(197,140,255,.40),
    0 0 28px rgba(138, 91,255,.22);
}

/* Slower timings */
.c1{ width: 74vw; animation: cycle_bl_tr 18.0s cubic-bezier(.15,.9,.2,1) infinite; }
.c2{ width: 56vw; animation: cycle_tl_br 22.0s cubic-bezier(.15,.9,.2,1) infinite; animation-delay: -7.0s; }
.c3{ width: 72vw; animation: cycle_tr_bl 26.0s cubic-bezier(.15,.9,.2,1) infinite; animation-delay: -14.0s; }
.c4{ width: 54vw; animation: cycle_br_tl 21.0s cubic-bezier(.15,.9,.2,1) infinite; animation-delay: -10.0s; }
.c5{ width: 78vw; animation: cycle_bl_tr_2 30.0s cubic-bezier(.15,.9,.2,1) infinite; animation-delay: -19.0s; }
.c6{ width: 50vw; animation: cycle_tl_br_2 24.0s cubic-bezier(.15,.9,.2,1) infinite; animation-delay: -12.0s; }

@keyframes cycle_bl_tr{
  0%   { opacity: 0;    transform: translate3d(-55vw, 125vh, 0) rotate(-32deg) scale(.72); }
  8%   { opacity: .50; }
  42%  { opacity: .24; }
  64%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(145vw, -60vh, 0) rotate(-32deg) scale(1.18); }
}

@keyframes cycle_tl_br{
  0%   { opacity: 0;    transform: translate3d(-60vw, -60vh, 0) rotate(34deg) scale(.72); }
  9%   { opacity: .48; }
  44%  { opacity: .22; }
  66%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(145vw, 145vh, 0) rotate(34deg) scale(1.16); }
}

@keyframes cycle_tr_bl{
  0%   { opacity: 0;    transform: translate3d(145vw, -60vh, 0) rotate(148deg) scale(.72); }
  9%   { opacity: .48; }
  46%  { opacity: .21; }
  68%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(-65vw, 145vh, 0) rotate(148deg) scale(1.18); }
}

@keyframes cycle_br_tl{
  0%   { opacity: 0;    transform: translate3d(145vw, 145vh, 0) rotate(-148deg) scale(.72); }
  9%   { opacity: .48; }
  46%  { opacity: .21; }
  70%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(-65vw, -60vh, 0) rotate(-148deg) scale(1.16); }
}

@keyframes cycle_bl_tr_2{
  0%   { opacity: 0;    transform: translate3d(-65vw, 145vh, 0) rotate(-26deg) scale(.66); }
  8%   { opacity: .44; }
  40%  { opacity: .20; }
  62%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(155vw, -65vh, 0) rotate(-26deg) scale(1.22); }
}

@keyframes cycle_tl_br_2{
  0%   { opacity: 0;    transform: translate3d(-65vw, -65vh, 0) rotate(28deg) scale(.66); }
  8%   { opacity: .44; }
  40%  { opacity: .20; }
  62%  { opacity: 0; }
  100% { opacity: 0;    transform: translate3d(155vw, 155vh, 0) rotate(28deg) scale(1.20); }
}
