:root {
  --bg: #0a0d14;
  --card: #131927;
  --card-hover: #1a2236;
  --text: #f5f7ff;
  --muted: #9aa4bd;
  --primary: #00e5ff;
  --primary-dark: #00b8d4;
  --primary-glow: rgba(0, 229, 255, 0.15);
  --secondary: #7c4dff;
  --secondary-glow: rgba(124, 77, 255, 0.15);
  --border: #2b3550;
  --success: #22c55e;
  --amber: #f59e0b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(0, 229, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(124, 77, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== TOPBAR ===== */
.topbar {
  background: rgba(10, 13, 20, 0.82);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.1rem;
}

.topbar-nav {
  display: flex;
  gap: 1.5rem;
}

.topbar-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-nav a:hover {
  color: var(--primary);
}

.topbar-cta {
  display: flex;
  gap: 0.65rem;
}

/* ===== BUTTONS ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #081018;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.2);
  font-family: inherit;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
  filter: brightness(1.08);
}

.cta-big {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  border-radius: 12px;
}

.cta-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.cta-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(0, 229, 255, 0.4);
  box-shadow: none;
}

.cta-outline:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
}

.block {
  width: 100%;
  justify-content: center;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-glow {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-popular {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.badge-new {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HERO ===== */
.hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.hero-trust {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.trust-icon {
  font-size: 1rem;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--shadow-glow);
  transition: transform 0.4s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.hero-image-glow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.15), transparent);
  filter: blur(20px);
  z-index: -1;
}

/* ===== SECTIONS ===== */
.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* ===== STEPS ===== */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.step {
  background: linear-gradient(180deg, var(--card), rgba(19, 25, 39, 0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  flex: 1;
  max-width: 230px;
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #081018;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-content: center;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.step-arrow {
  color: var(--border);
  font-size: 1.5rem;
  margin-top: 3rem;
  font-weight: 300;
}

/* ===== CARDS ===== */
.card {
  background: linear-gradient(180deg, #141c2c, #121826);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1rem 1.25rem 1.25rem;
}

.product-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-price strong {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 800;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 229, 255, 0.1);
}

.product.selected {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.2), 0 16px 40px rgba(0, 229, 255, 0.12);
}

/* ===== FORMS ===== */
.control-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #dfe7ff;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  background: rgba(14, 20, 34, 0.8);
  color: var(--text);
  font-family: inherit;
  transition: all 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #5a6580;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ===== PREVIEWER ===== */
.previewer-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.previewer-controls {
  display: flex;
  flex-direction: column;
}

.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  margin-bottom: 1rem;
  background: rgba(14, 20, 34, 0.5);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-content {
  text-align: center;
  padding: 1.5rem;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.uploaded-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.hidden {
  display: none !important;
}

/* Style Selector */
.style-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.style-btn {
  background: rgba(14, 20, 34, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.style-btn:hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--text);
}

.style-btn.active {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}

/* Color Pickers */
.color-pickers {
  display: flex;
  gap: 1rem;
}

.color-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-pick input[type="color"] {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: transparent;
}

/* Accessories */
.accessories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.acc-btn {
  background: rgba(14, 20, 34, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.acc-btn:hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--text);
}

.acc-btn.active {
  border-color: var(--secondary);
  background: var(--secondary-glow);
  color: #c9b0ff;
}

/* Preview Canvas */
.previewer-result {
  position: sticky;
  top: 5rem;
}

.preview-canvas-wrap {
  position: relative;
  background: radial-gradient(circle at top, rgba(124, 77, 255, 0.12), rgba(19, 25, 39, 0.3));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

#previewCanvas {
  display: none;
  width: 100%;
  height: auto;
}

#previewCanvas.visible {
  display: block;
}

.preview-placeholder {
  text-align: center;
  padding: 2rem;
}

.preview-placeholder-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.preview-placeholder p {
  color: var(--muted);
}

.preview-actions {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.step-icon-sm {
  font-size: 1.1rem;
}

/* ===== CHECKOUT ===== */
.checkout-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkout-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(14, 20, 34, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.checkout-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checkout-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.checkout-product h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.checkout-price-box {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.checkout-total {
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.checkout-trust {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.checkout-msg {
  text-align: center;
  color: var(--success);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer h5 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ===== MUTED ===== */
.muted {
  color: var(--muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 0.6s ease-out;
}

.hero-image-wrapper {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.step {
  animation: fadeInUp 0.5s ease-out both;
}

.step:nth-child(2) { animation-delay: 0.1s; }
.step:nth-child(4) { animation-delay: 0.2s; }
.step:nth-child(6) { animation-delay: 0.3s; }
.step:nth-child(8) { animation-delay: 0.4s; }

.product {
  animation: fadeInUp 0.4s ease-out both;
}

.product:nth-child(2) { animation-delay: 0.05s; }
.product:nth-child(3) { animation-delay: 0.1s; }
.product:nth-child(4) { animation-delay: 0.15s; }
.product:nth-child(5) { animation-delay: 0.2s; }
.product:nth-child(6) { animation-delay: 0.25s; }
.product:nth-child(7) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-sub {
    margin: 0 auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .previewer-layout {
    grid-template-columns: 1fr;
  }

  .previewer-result {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .topbar-nav {
    display: none;
  }

  .checkout-summary {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .checkout-product {
    flex-direction: column;
  }

  .checkout-price-box {
    text-align: center;
  }

  .checkout-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .style-selector {
    grid-template-columns: 1fr 1fr;
  }
}
