/* Layer8 Technologies - Styles */
:root{
  --bg:#0b0f14;
  --panel:#0f1621;
  --panel-2:#111827;
  --text:#e6f1ff;
  --muted:#9fb1c7;
  --brand:#00e5ff;
  --brand-2:#8a2be2;
  --accent:#00ffd5;
  --danger:#ff3b3b;
  --ok:#29d398;
  --shadow:0 10px 30px rgba(0,0,0,.5);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{
  background:radial-gradient(1200px 600px at 120% -10%, rgba(138,43,226,.15), transparent 60%),
             radial-gradient(1000px 600px at -20% 120%, rgba(0,229,255,.14), transparent 60%),
             var(--bg);
}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:transparent;
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

main{flex:1 0 auto}
img{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:72px 0}
.section-sm{padding:40px 0}

/* Header */
.header{position:sticky;top:0;z-index:1000;background:rgba(11,15,20,.55);backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 6px 24px rgba(0,0,0,.35)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:16px 0}
.logo{display:flex;gap:12px;align-items:center;font-weight:700;letter-spacing:.3px;height:25%}
.logo-badge{width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,var(--brand),var(--brand-2));box-shadow:0 0 22px rgba(0,229,255,.4), inset 0 0 12px rgba(255,255,255,.15)}
.logo span{font-weight:700}
.logo small{display:block;color:var(--muted);font-weight:500;letter-spacing:.5px;margin-top:-6px}
/* Header logo image sizing */
.header .logo img{height:32px;width:auto;display:block}

.nav-links{display:flex;gap:20px;align-items:center}
.nav-links a{color:var(--text);padding:8px 12px;border-radius:8px}
.nav-links a:hover{background:rgba(255,255,255,.06)}
.btn{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));color:var(--text);box-shadow:var(--shadow);cursor:pointer}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border:none;color:#001018;font-weight:700}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,.16)}
.btn.small{padding:8px 12px;border-radius:8px}

.menu-btn{display:none}

/* Hero */
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.kicker{display:inline-flex;gap:10px;align-items:center;padding:6px 10px;border-radius:14px;background:rgba(0,229,255,.08);border:1px solid rgba(0,229,255,.2);color:#aef6ff;font-weight:600}
.kicker .dot{width:6px;height:6px;border-radius:50%;background:var(--brand)}
.hero h1{font-size:56px;line-height:1.06;margin:14px 0 12px}
.hero p{color:var(--muted);font-size:18px}
.hero-card{padding:20px;border-radius:16px;background:rgba(17,24,39,.35);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%);box-shadow:var(--shadow)}
.hero-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}
.hero-metric{padding:14px;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(17,24,39,.28);backdrop-filter:blur(10px) saturate(140%);-webkit-backdrop-filter:blur(10px) saturate(140%);text-align:center}
.hero-metric b{font-size:22px}
.hero-metric span{display:block;color:var(--muted);font-size:12px}

/* Grid */
.grid{display:grid;gap:20px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}

.card{padding:18px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(17,24,39,.28);backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);box-shadow:var(--shadow)}
.card h3{margin:0 0 6px}
.card p{margin:0;color:var(--muted)}

/* Services */
.service-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg, rgba(0,229,255,.18), rgba(138,43,226,.18));border:1px solid rgba(255,255,255,.1);margin-bottom:10px}

/* Products */
.product{display:flex;flex-direction:column;gap:10px}
/* Ensure the chips+price group sits right above the button at the bottom */
.product .bottom-meta{margin-top:auto}
.price{font-weight:800;font-size:20px;color:#afffff}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;background:rgba(138,43,226,.2);border:1px solid rgba(138,43,226,.5);color:#e9d7ff;font-size:12px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.tag{font-size:12px;color:#b7c8de;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);padding:4px 8px;border-radius:999px}

/* Testimonials */
.testimonial p{color:#cfe4ff}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-2))}

/* About */
.list{display:grid;gap:8px}
.list li{list-style:none;padding-left:26px;position:relative}
.list li:before{content:"";position:absolute;left:0;top:8px;width:14px;height:14px;border-radius:4px;background:linear-gradient(135deg,var(--brand),var(--brand-2))}

/* Contact */
.form{display:grid;gap:12px}
.input, textarea{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(17,24,39,.22);backdrop-filter:blur(8px) saturate(140%);-webkit-backdrop-filter:blur(8px) saturate(140%);color:var(--text)}
.input:focus, textarea:focus{outline:2px solid rgba(0,229,255,.35)}

/* Footer */
.footer{border-top:1px solid rgba(255,255,255,.06);padding:32px 0;color:var(--muted)}
.footer .space-between{flex-wrap:wrap;gap:16px}
.footer .links{display:flex;flex-wrap:wrap;gap:14px}
.footer .footer-right{display:flex;align-items:center;gap:22px;flex-wrap:wrap;justify-content:flex-end}
.footer .footer-right a{color:var(--muted)}
.footer .footer-right a:hover{color:var(--text)}
.footer .footer-right .social{margin-top:0}
.footer .footer-right .social a{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14)}
.footer .footer-right .social a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.24)}
.footer .footer-right .social svg,.footer .footer-right .social img{fill:currentColor}
.footer .footer-right .social svg{width:18px;height:18px}
.footer .footer-right .social img{width:16px;height:16px}
.footer .logo img{height:80px;width:auto;display:block}
.footer .social{display:flex;align-items:center;gap:10px}
.footer .social a{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:var(--text)}
.footer .social a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.24)}
.footer .social svg,.footer .social img{width:18px;height:18px;fill:currentColor}


/* Ensure social icons remain visible in dark mode when SVGs are dark by default */
.social img {
    filter: invert(1) brightness(1.3) contrast(1.1);
}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none;align-items:center;justify-content:center;padding:20px;z-index:2000}
.modal.active{display:flex}
.modal-card{width:min(640px,100%);background:rgba(17,24,39,.36);border:1px solid rgba(255,255,255,.16);border-radius:16px;box-shadow:var(--shadow);padding:20px;backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%)}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.close{background:transparent;border:1px solid rgba(255,255,255,.14);color:var(--text);border-radius:8px;padding:6px 10px;cursor:pointer}

/* Utilities */
.muted{color:var(--muted)}
.center{display:grid;place-items:center}
.space-between{display:flex;justify-content:space-between;align-items:center}
.stack-6>*{margin-top:6px}
.stack-10>*{margin-top:10px}
.stack-16>*{margin-top:16px}
.stack-20>*{margin-top:20px}

hr.sep{border:0;border-top:1px solid rgba(255,255,255,.08);margin:24px 0}

/* Background video */
#bg-video{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-1;
  background:var(--bg);
  filter:brightness(.5);
}

/* Responsive */
@media (max-width: 960px){
  .hero{grid-template-columns:1fr}
  .grid.cols-3{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 640px){
  /* Make header wrap so we can place nav below logo+menu */
  .header .nav{display:flex;flex-wrap:wrap;align-items:center;row-gap:8px}
  /* Top row: logo at start, menu button at end */
  .header .logo{order:0;min-width:0}
  .header .logo span{display:none} /* Hide long title/tagline on small screens to keep hamburger on same row */
  .header .menu-btn{display:inline-flex;order:2;margin-left:auto}
  /* Second row: nav links full-width below */
  .header .nav-links{display:none;order:3;width:100%;justify-content:flex-start}

  .grid.cols-3,.grid.cols-4,.grid.cols-2{grid-template-columns:1fr}
  .hero h1{font-size:36px}

  /* Footer: mobile layout — logo far left, socials far right on top row */
  .footer .space-between{flex-direction:column;align-items:stretch;gap:12px}
  /* Top row container inside footer-right */
  .footer .footer-right{order:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;flex-direction:row}
  /* Inject the logo on the far left of the top row */
  .footer .footer-right::before{content:"";display:inline-block;width:140px;height:40px;background:url('Media/Layer8-Full.png') no-repeat left center/contain;flex:0 0 auto}
  /* Socials on the far right */
  .footer .social{order:1;margin-left:auto;justify-content:flex-end}
  /* Links occupy full row below, centered */
  .footer .links{order:2;flex:1 0 100%;display:flex;justify-content:center;text-align:center}
  /* Copyright row at the bottom */
  .footer .footer-left{order:3;justify-content:center;text-align:center}
  /* Hide the original footer-left logo to avoid duplication */
  .footer .footer-left .logo{display:none}
  /* Remove any previous injected logo before socials */
  .footer .social::before{content:none}
  .footer .logo img{height:56px}
}


/* Glass utility */
.glass{background:rgba(17,24,39,.3);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(12px) saturate(160%);-webkit-backdrop-filter:blur(12px) saturate(160%);box-shadow:var(--shadow)}


/* Footer left inline layout */
.footer-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.footer-left .muted{margin:0}
