:root {
  --bg: #050506;
  --bg-soft: #0b0b0d;
  --panel: rgba(15, 15, 17, 0.82);
  --panel-strong: rgba(5, 5, 6, 0.94);
  --glass: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #c6c7ca;
  --dim: #85878c;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.36);
  --accent: #f1f1f1;
  --accent-dark: #9a9ca2;
  --shadow: rgba(0, 0, 0, 0.55);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    linear-gradient(120deg, rgba(255,255,255,.045), transparent 24%),
    linear-gradient(180deg, #09090a 0%, #030304 54%, #111113 100%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.1));
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  right: -120px;
  top: 92px;
  z-index: -2;
  width: min(440px, 44vw);
  height: 760px;
  opacity: .23;
  filter: grayscale(1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.035)),
    linear-gradient(90deg, transparent 0 30%, rgba(255,255,255,.12) 31% 64%, transparent 65% 100%);
  clip-path: polygon(49% 0, 66% 12%, 76% 26%, 63% 39%, 70% 63%, 58% 100%, 42% 100%, 30% 63%, 37% 39%, 24% 26%, 34% 12%);
  pointer-events: none;
}

h1, h2, h3, h4 { font-family: "Outfit", sans-serif; line-height: 1.12; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.34); border-radius: 999px; }

.container { width: min(var(--container), calc(100% - 34px)); margin: 0 auto; }
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 0.72rem 0;
  background: rgba(5,5,6,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.navbar-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  gap: 1.6rem;
}
.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.logo img {
  width: 76px;
  height: 48px;
  object-fit: contain;
  padding: 3px;
  border-radius: 12px;
  background: #f2f2f2;
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 0 26px rgba(255,255,255,.08);
}
.nav-links { display: contents; }
.nav-menu { grid-column: 2; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .75rem; }
.nav-link {
  position: relative;
  padding: .62rem 0;
  color: var(--muted);
  font-weight: 700;
  font-size: .93rem;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #fff;
  border-radius: 10px;
  transition: transform .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  background: var(--glass);
  border: 1px solid var(--line);
}

.btn-primary, .btn-card, .btn-glass {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: var(--radius-sm);
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-primary {
  padding: .8rem 1.2rem;
  color: #08080a;
  background: linear-gradient(135deg, #ffffff, #b9bbc1);
  box-shadow: 0 12px 30px rgba(255,255,255,.08);
}
.btn-primary:hover, .btn-card:hover, .btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(255,255,255,.08);
}
.btn-glass, .btn-card {
  padding: .75rem 1rem;
  color: #fff;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}
.btn-card:hover {
  border-color: var(--line-strong);
  background: rgba(255,255,255,.1);
}

.hero { padding: 132px 0 84px; position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  left: -9vw;
  bottom: -120px;
  width: min(460px, 44vw);
  height: 620px;
  opacity: .12;
  background:
    linear-gradient(180deg, #fff, transparent),
    linear-gradient(90deg, transparent 0 42%, #fff 43% 57%, transparent 58% 100%);
  clip-path: polygon(50% 0, 68% 13%, 78% 33%, 62% 43%, 66% 68%, 55% 100%, 45% 100%, 34% 68%, 38% 43%, 22% 33%, 32% 13%);
  pointer-events: none;
}
.hero-layout {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .58rem 1rem;
  border-radius: 999px;
  color: #f4f4f5;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.22);
}
.hero-title {
  max-width: 680px;
  font-size: clamp(3.1rem, 6.6vw, 6rem);
  font-weight: 900;
  letter-spacing: -.045em;
  margin-bottom: 1rem;
  background: linear-gradient(100deg, #fff 5%, #cacbd0 45%, #66686e 92%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255,255,255,.12));
}
.hero-desc {
  max-width: 620px;
  color: #d8d9dd;
  font-size: 1.06rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  justify-self: end;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.3);
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), #060607 46%, rgba(255,255,255,.08));
  box-shadow: 0 30px 75px var(--shadow), 0 0 58px rgba(255,255,255,.08);
  overflow: hidden;
}
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(115deg, transparent 24%, rgba(255,255,255,.18) 42%, transparent 58%);
  animation: shineSweep 5s linear infinite;
}
.hero-logo::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  box-shadow: inset 0 0 58px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.hero-logo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
}
.hero-logo-fallback {
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  overflow: hidden;
}
.logo-3d-card {
  width: min(72%, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: url("gregg-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(255,255,255,.28));
  animation: logoPulse 5s ease-in-out infinite;
}
.hero-logo.is-animated .hero-logo-fallback {
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-logo.is-animated::before {
  opacity: .35;
}
@keyframes shineSweep {
  from { transform: translateX(-24%) rotate(0deg); }
  to { transform: translateX(24%) rotate(360deg); }
}
@keyframes logoPulse {
  0%, 100% { transform: rotateY(-16deg) rotateX(5deg) scale(1); }
  50% { transform: rotateY(16deg) rotateX(-5deg) scale(1.04); }
}

.section { padding: 74px 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -.03em;
}
.section-subtitle {
  max-width: 700px;
  margin: .8rem auto 0;
  color: var(--muted);
}
.text-gradient {
  background: linear-gradient(90deg, #fff, #9a9ca2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: flex;
  min-height: 455px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.05), rgba(5,5,6,.88) 46%, rgba(255,255,255,.03));
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 22px 52px rgba(0,0,0,.44), 0 0 35px rgba(255,255,255,.08);
}
.product-img-wrapper {
  position: relative;
  min-height: 180px;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.product-img-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-visual {
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(3,3,4,.96));
  background-size: 28px 28px, 28px 28px, auto;
}
.product-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  transform: skewX(-7deg);
}
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .35rem .78rem;
  border-radius: 999px;
  color: #fff;
  font-size: .76rem;
  font-weight: 900;
  background: rgba(5,5,6,.78);
  border: 1px solid rgba(255,255,255,.16);
}
.visual-ring {
  position: absolute;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  animation: ringSpin 7s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.product-visual i {
  font-size: 2.4rem;
  color: #ededee;
  text-shadow: 0 0 22px rgba(255,255,255,.22);
}
.product-visual strong {
  margin-top: .3rem;
  font: 900 3.7rem Outfit, sans-serif;
  line-height: 1;
  color: #fff;
  letter-spacing: -.08em;
}
.product-visual span:not(.product-badge):not(.visual-ring) {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.product-visual.accounts {
  background:
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(145deg, rgba(190,192,198,.13), rgba(4,4,5,.97));
  background-size: 34px 34px, 34px 34px, auto;
}
.product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
}
.product-title {
  margin-bottom: .7rem;
  font-size: 1.32rem;
  font-weight: 900;
}
.product-desc {
  flex: 1;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: .95rem;
}
.product-option {
  min-width: 0;
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.product-option label {
  color: #f1f1f1;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.product-option select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 .8rem;
  color: #fff;
  background: rgba(0,0,0,.36);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-option select option { background: #111113; color: #fff; }
.option-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .72rem .82rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.32));
}
.option-summary span {
  min-width: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.option-summary strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.product-price {
  font: 900 1.18rem Outfit, sans-serif;
  color: #fff;
}
.product-price s {
  display: block;
  color: var(--dim);
  font-size: .8rem;
}
.empty-products {
  grid-column: 1 / -1;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.split-band {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.feature i { color: #fff; margin-bottom: .8rem; }
.feature p { color: var(--muted); }

.team-grid, .reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.team-card, .review-card, .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.team-card {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  text-align: center;
}
.team-logo {
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: 50%;
  background: #f2f2f2;
  border: 1px solid rgba(255,255,255,.42);
}
.team-card p { color: var(--muted); }
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.review-card { padding: 1.35rem; }
.stars { color: #fff; letter-spacing: 2px; margin-bottom: .8rem; }
.review-card p { color: var(--muted); }

.faq-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  color: #fff;
  background: transparent;
  text-align: left;
  font-weight: 900;
}
.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
}
.faq-item.active .faq-answer { display: block; }

footer {
  margin-top: 50px;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #020203;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p, .footer-col li, .footer-bottom { color: var(--muted); }
.footer-col h4 { margin-bottom: .8rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .9rem;
}
.toast-notification {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.1rem;
  color: #fff;
  background: rgba(5,5,6,.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  transform: translate(-50%, 20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast-notification.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

@media (max-width: 940px) {
  body::after { opacity: .12; width: 55vw; }
  .navbar-content { display: flex; justify-content: space-between; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 1rem;
    background: rgba(5,5,6,.98);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.active { display: grid; gap: .75rem; }
  .nav-menu, .nav-actions {
    display: grid;
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
    gap: .4rem;
  }
  .nav-link, .nav-actions a { width: 100%; justify-content: center; text-align: center; }
  .mobile-menu-btn { display: inline-grid; place-items: center; }
  .hero { padding-top: 118px; }
  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 2.4rem;
    text-align: center;
  }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { width: min(430px, 92vw); justify-self: center; }
  .feature-grid, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 420px; }
}
