.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  transition: padding 0.3s ease;
}

.site-header.is-scrolled {
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-height) - 36px);
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.48);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.24);
}

.site-header.is-scrolled .nav-wrap {
  background: rgba(8, 17, 31, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 70px;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.is-menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a,
.header-socials a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.header-socials a:hover,
.header-socials a:focus-visible {
  color: var(--text);
}

.header-side,
.header-socials {
  display: flex;
  align-items: center;
}

.header-side {
  gap: 18px;
}

.header-socials {
  gap: 14px;
}

.mobile-menu {
  display: none;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 2px 14px 2px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
}

.cart-button svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -9px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 42px 0 132px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
}

.blur-one {
  top: 10%;
  left: -6%;
  width: 340px;
  height: 340px;
  background: rgba(37, 99, 235, 0.18);
}

.blur-two {
  right: -8%;
  bottom: 10%;
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.14);
}

.grid-glow {
  position: absolute;
  inset: 12% 8% 8%;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(10, 20, 36, 0.92), rgba(10, 20, 36, 0.36)),
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 48px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  justify-content: center;
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.hero .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.hero .reveal:nth-child(3) {
  transition-delay: 0.18s;
}

.hero .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 72px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 17, 31, 0.62);
  backdrop-filter: blur(14px);
}

.scroll-indicator span {
  width: 6px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  animation: float 1.8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-8px);
    opacity: 0.45;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.about,
.team,
.product,
.contact {
  padding: 110px 0;
}

.split-intro,
.section-topline {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.about-logo {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  align-self: center;
  filter: drop-shadow(0 18px 40px rgba(2, 6, 23, 0.22));
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.feature-block {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(12px);
}

.feature-index {
  display: inline-block;
  margin-bottom: 18px;
  color: rgba(37, 99, 235, 0.7);
  font-weight: 700;
}

.feature-block h3,
.team-meta h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.feature-block p,
.team-meta p,
.product-copy p,
.footer-layout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 50px;
}

.team-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
}

.team-card-featured {
  transform: translateY(-26px);
}

.team-card-featured:hover {
  transform: translateY(-26px) scale(1.01);
}

.team-card img {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.team-meta {
  padding: 22px;
}

.product-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-layout {
  align-items: stretch;
}

.product-copy p {
  max-width: 560px;
  margin: 20px 0 0;
}

.modal-trigger {
  margin-top: 28px;
}

.preview-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(10, 20, 36, 0.98), rgba(17, 24, 39, 0.9));
  box-shadow: var(--shadow-card);
}

.preview-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(8, 17, 31, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.preview-card span,
.price-box span,
.quantity-box span,
.option-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-card strong,
.price-box strong {
  font-size: 1.2rem;
}

.contact-panel {
  padding: 38px;
  border-radius: 30px;
  background: rgba(8, 17, 31, 0.74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.map-panel {
  min-height: 100%;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(8, 17, 31, 0.74);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.site-footer {
  padding: 34px 0 42px;
  background: transparent;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 138px;
  height: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.footer-links a {
    font-size: 50px;
    padding: 16px;
}

.modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal {
  z-index: 60;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  place-items: center;
}

.cart-drawer {
  z-index: 70;
}

.modal.is-open,
.cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop,
.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(12px);
}

.cart-drawer-backdrop {
  background: rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  width: min(1080px, 100%);
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 28px;
  border-radius: 32px;
  background: rgba(8, 17, 31, 0.94);
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.46);
  transform: scale(0.96) translateY(18px);
  transition: transform 0.32s ease;
  border: 1px solid rgba(148, 163, 184, 0.12);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-team {
  grid-template-columns: 0.9fr 1.1fr;
}

.modal.is-open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close,
.cart-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-gallery {
  display: grid;
  gap: 14px;
}

.modal-main-image,
.team-modal-visual {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
}

.modal-main-image img {
  width: 100%;
  object-fit: contain;
}

.team-modal-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thumbnail {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.thumbnail.is-active {
  border-color: rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.thumbnail img {
  width: 100%;
  aspect-ratio: 1.12;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-modal-role {
  margin-top: 2px;
  color: #bfdbfe;
  font-size: 1rem;
  font-weight: 600;
}

.team-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.team-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
}

.team-social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.modal-info h3 {
  margin-bottom: 16px;
}

.product-status-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: #bfdbfe;
  line-height: 1.6;
}

.option-group,
.purchase-row {
  margin-top: 24px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-button {
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.option-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.purchase-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
}

.quantity-control button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 41, 59, 1);
  color: var(--text);
  cursor: pointer;
}

[data-add-to-cart] {
  margin-top: 28px;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  padding: 28px 24px 24px;
  background: rgba(8, 17, 31, 0.96);
  border-left: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: -24px 0 60px rgba(2, 6, 23, 0.34);
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-drawer.is-open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cart-item,
.cart-empty {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.cart-item strong,
.cart-summary strong {
  display: block;
  font-size: 1.05rem;
}

.cart-item span,
.cart-empty {
  color: var(--muted);
  line-height: 1.6;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@media (max-width: 1040px) {
  .main-nav {
    gap: 18px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-layout,
  .contact-layout,
  .split-intro,
  .section-topline,
  .modal-dialog,
  .modal-dialog-team {
    grid-template-columns: 1fr;
  }

  .preview-shell {
    min-height: 420px;
  }

  .about-logo {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 100%);
    --header-height: 76px;
  }

  .site-header {
    padding: 12px 0;
  }

  .nav-wrap {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand img {
    width: 92px;
  }

  .main-nav,
  .header-socials {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-side {
    margin-left: auto;
    gap: 12px;
  }

  .mobile-menu {
    display: block;
    width: var(--container);
    margin: 10px auto 0;
    padding: 0 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.28s ease;
    z-index: 999;
      position: absolute;
      left: 2.5%;
  }

  .site-header.is-menu-open .mobile-menu {
    max-height: 320px;
    opacity: 1;
  }

  .mobile-nav {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgb(8, 17, 31);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
  }

  .mobile-nav a {
    padding: 10px 6px;
    color: var(--text);
    font-size: 1rem;
  }

  .hero {
    padding: 32px 0 112px;
  }

  .hero-title {
    font-size: clamp(3rem, 17vw, 4.3rem);
  }

  .hero-actions,
  .purchase-row,
  .footer-layout,
  .footer-links {
    flex-direction: row;
    align-items: flex-start;
  }

  .hero-actions {
    align-items: stretch;
  }

  .about,
  .team,
  .product,
  .contact {
    padding: 82px 0;
  }

  .feature-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card-featured,
  .team-card-featured:hover {
    transform: none;
  }

  .contact-panel {
    padding: 28px 20px;
  }

  .map-panel iframe {
    min-height: 360px;
  }

  .modal {
    padding: 10px;
    place-items: start center;
  }

  .modal-dialog {
    max-height: calc(100svh - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .team-modal-visual img {
    min-height: 320px;
  }

  .cart-drawer-panel {
    width: 100vw;
    padding: 24px 18px 20px;
  }

  .about-logo {
    justify-self: center;
    margin: 0 auto;
  }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}