/* ===== RESET ===== */
:root{
  --top-height: 10px;
  --header-height: 10px; /* approx */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, Arial, sans-serif;
  background: #0e1317;
  color: #fff;
  padding-top: calc(var(--top-height) + var(--header-height));

}
body.menu-open{
  overflow: hidden;
}


a {
  text-decoration: none;
  color: inherit;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  padding: 0 24px;
}

/* ===== TOP BAR ===== */
.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg,#26363c,#1f4039);
  font-size: 13px;
  z-index: 50;
}

.top .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.top .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top .divider {
  opacity: 0.6;
}

/* ===== TOP SOCIAL ICONS ===== */
.TOP-socials {
  display: flex;
  gap: 6px;
}

.TOP-socials a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f2b31;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.TOP-socials svg {
  width: 12px;
  height: 12px;
}

/* ===== HEADER ===== */
.header {
  position: sticky sticky ;
  top: var(--top-height);
  padding-top: 20px;
  background: rgba(14,19,23,.7);
  backdrop-filter: blur(6px);
  z-index: 30;
}

.head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px 0;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  gap: 8px;
  justify-self: center;
  align-items: center;
}

/* ===== PILLS ===== */
.pill {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pill:hover {
  border-color: rgba(52,211,153,.7);
}

/* ===== BRAND PILL ===== */
.pill.brand {
  background:
    linear-gradient(#0e1317,#0e1317) padding-box,
    linear-gradient(135deg,#a3f6bf,#2b3741) border-box;
  border: 1px solid transparent;
}

/* ===== DROPDOWN ===== */
.dropdown {
  position: relative;
}

.dropdown > a::after {
  content: "";
  margin-left: 6px;
  display: inline-block;
  width: 7px;
  height: 5px;
  background: #fff;
  clip-path: polygon(0 0,100% 0,50% 100%);
}

/* DROPDOWN MENU */
.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #10161b;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  min-width: 240px;
  padding: 8px;
  display: none;
  z-index: 100;
}

.menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px;
}

.menu a:hover {
  background: rgba(255,255,255,.08);
  color: #bbf7d0;
}

/* SHOW MENU */
.dropdown:hover .menu,
.dropdown:focus-within .menu {
  display: block;
}

/* ===== RIGHT NAV ===== */
.nav-right {
  display: flex;
  position: relative;
  gap: 10px;
}

.quick-menu{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #10161b;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 10px;
  display: none;
  z-index: 200;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.quick-menu a{
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.quick-menu a.primary{
  margin-top: 6px;
  background: rgba(16,185,129,.18);
  border: 1px solid rgba(52,211,153,.35);
  color: #bbf7d0;
  text-align: center;
}

/* show menu */
.quick-menu.is-open{
  display: block;
}



.nav-right .pill {
  background: rgba(255,255,255,.06);
}

/* ===== GRID ICON ===== */
.icon-table {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(3,1fr);
  gap: 3px;
  padding: 4px;
  cursor: pointer;
}

.icon-table span{
  /* same styles you used for div */
}
.icon-table span {
  background: #000000;
  border-radius: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
 :root{
    --top-height: 56px;
    --header-height: 72px;
  }
    .top .right {
    display: none;
  }

  .head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav,
  .nav-right {
    justify-self: center;
  }
}
/* ===== MOBILE FULLSCREEN QUICK MENU ===== */
@media (max-width: 768px){

  .quick-menu{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #0b1116;
    padding: 80px 20px 20px;
    border-radius: 0;
    display: block;
    transform: translateY(-100%);
    transition: transform .35s ease;
    z-index: 9999;
  }

  .quick-menu.is-open{
    transform: translateY(0);
  }

  .quick-menu a{
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
  }

  .quick-menu a.primary{
    font-size: 16px;
    padding: 18px;
    margin-top: 20px;
  }
}

@media (max-width: 768px){

  /* hide desktop nav alignment */
  .header .head{
    display: block;
    text-align: center;
  }

  .brand{
    display: none;
  }

}
@media (max-width: 768px){

  .nav{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 25px auto 15px;
  }

  .nav .pill{
    padding: 12px 18px;
    font-size: 13px;
    border-radius: 14px;
  }

}
@media (max-width: 768px){

  .dropdown{
    position: relative;
  }

  .dropdown > .pill::after{
    content: "▾";
    display: block;
    font-size: 10px;
    margin-top: 4px;
    opacity: .8;
  }

}

@media (max-width: 768px){

  .nav-right{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
  }

  .nav-right .pill{
    padding: 10px 20px;
    font-size: 13px;
  }

  .icon-table{
    width: 38px;
    height: 38px;
  }

}
@media (max-width: 768px){

  header{
    padding-bottom: 25px;
  }

}


/* Brand left buttons */
.brand-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Company */
.company-btn {
  font-weight: 700;
  opacity: 0.85;
}

/* Home highlight */
.home-btn {
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  color: #1f2937;
  font-weight: 800;
}

.home-btn:hover {
  background: #ffffff;
  color: #111827;
}
