:root {
  --bg: #06101d;
  --bg-soft: #0b1c31;
  --panel: rgba(10, 22, 40, 0.74);
  --panel-strong: rgba(12, 26, 47, 0.92);
  --line: rgba(130, 190, 255, 0.14);
  --text: #eaf3ff;
  --muted: #a9b8cf;
  --accent: #4cc9f0;
  --accent-2: #8bf5ff;
  --accent-3: #7cdaff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(76, 201, 240, 0.2), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(124, 218, 255, 0.15), transparent 18%),
    linear-gradient(160deg, #040b14 0%, #07101d 40%, #0a1525 100%);
  min-height: 100vh;
}

h1, h2, h3, .brand-text {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.02em;
}

a {
  text-decoration: none;
}

.glass-nav {
  background: rgba(4, 11, 20, 0.65);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  min-height: 80px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #05111d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(76, 201, 240, 0.4);
}

.brand-text {
  font-size: 1rem;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 0.35rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #06101d;
  background: linear-gradient(135deg, #9ef5ff, #4cc9f0);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  background:
    linear-gradient(135deg, rgba(76, 201, 240, 0.16), transparent 40%),
    radial-gradient(circle at 20% 20%, rgba(141, 245, 255, 0.16), transparent 18%);
}

.hero-bg::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.hero .container {
  z-index: 1;
}

.display-title {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 1.04;
  margin-bottom: 1rem;
}

.eyebrow,
.section-kicker {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

.hero-copy,
.info-card p,
.summary-row span,
.section-heading p {
  color: var(--muted);
}

.btn-glow {
  border: 0;
  color: #04111c;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 14px 35px rgba(76, 201, 240, 0.34);
}

.btn-glow:hover {
  color: #04111c;
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats div,
.info-card,
.summary-card,
.cart-item,
.hero-panel,
.chat-widget,
.chat-launcher {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 1rem;
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 1.2rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-panel {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.panel-orbit {
  position: absolute;
  inset: 10% auto auto 8%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(124, 218, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-device {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: min(78%, 440px);
  filter: drop-shadow(0 26px 56px rgba(0, 0, 0, 0.6));
}

.floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(14px);
  animation: float 6s ease-in-out infinite;
}

.card-a {
  left: 8%;
  top: 18%;
}

.card-b {
  right: 8%;
  top: 30%;
  animation-delay: 1.5s;
}

.section-wrap {
  padding: 5rem 0;
}

.alt-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2,
.section-heading h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.product-card,
.info-card,
.summary-card,
.cart-item {
  border-radius: 24px;
}

.product-card {
  padding: 1rem;
  height: 100%;
  background: linear-gradient(180deg, rgba(14, 29, 50, 0.95), rgba(7, 17, 29, 0.96));
  border: 1px solid rgba(130, 190, 255, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 218, 255, 0.45);
}

.product-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(76, 201, 240, 0.14);
  color: var(--accent-2);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.price {
  font-weight: 800;
  font-size: 1.2rem;
}

.info-card,
.summary-card,
.cart-item {
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.info-card i {
  font-size: 1.4rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.page-shell {
  padding: 120px 0 5rem;
}

.detail-shell {
  min-height: 100vh;
}

.detail-media {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(130, 190, 255, 0.12);
  box-shadow: var(--shadow);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 218, 255, 0.12);
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.summary-card hr {
  border-color: rgba(255, 255, 255, 0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.summary-row.total strong {
  font-size: 1.35rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cart-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 18px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(130, 190, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  z-index: 1050;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.chat-launcher img {
  width: 46px;
  height: 46px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 108px;
  width: min(360px, calc(100vw - 32px));
  border-radius: 26px;
  overflow: hidden;
  z-index: 1050;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
}

.chat-widget.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(8, 19, 34, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-header small {
  display: block;
  color: var(--muted);
}

.chat-body {
  max-height: 280px;
  padding: 1rem;
  background: rgba(7, 17, 29, 0.95);
  overflow-y: auto;
}

.chat-message {
  max-width: 85%;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  margin-bottom: 0.7rem;
}

.chat-message.bot {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.18), rgba(124, 218, 255, 0.1));
  border: 1px solid rgba(124, 218, 255, 0.14);
}

.chat-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(8, 19, 34, 0.98);
}

.chat-close {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 991.98px) {
  .hero-panel {
    min-height: 500px;
  }

  .hero-device {
    width: min(82%, 380px);
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 82px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .panel-orbit {
    width: 280px;
    height: 280px;
  }

  .chat-widget {
    right: 14px;
    bottom: 98px;
  }
}
