@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  --ink: #151528;
  --muted: #65657a;
  --paper: #fffaff;
  --white: #ffffff;
  --pink: #ff3d81;
  --purple: #7138ff;
  --blue: #1d9bf0;
  --cyan: #35d7ff;
  --yellow: #ffd84d;
  --border: rgba(21, 21, 40, .10);
  --shadow: 0 18px 60px rgba(58, 31, 112, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255,250,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand img { width: 76px; height: 76px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
nav a:hover { color: var(--purple); }
.cart-btn, .filter {
  border: 0;
  cursor: pointer;
}
.cart-btn {
  color: white;
  background: linear-gradient(100deg, var(--purple), var(--pink));
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 700;
}
.cart-btn span {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  margin-left: 5px;
  border-radius: 50%;
  background: white;
  color: var(--purple);
  font-size: 12px;
}

.hero {
  min-height: 670px;
  padding: 70px clamp(22px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,61,129,.28), transparent 30%),
    radial-gradient(circle at 55% 80%, rgba(53,215,255,.28), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f4efff 52%, #fff3f8 100%);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--purple);
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 800;
}
.hero h1, h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -.045em;
}
.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: .94;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.primary {
  color: #fff;
  background: linear-gradient(100deg, var(--purple), var(--pink));
  box-shadow: 0 12px 30px rgba(113,56,255,.24);
}
.secondary {
  background: white;
  border: 1px solid var(--border);
}

.hero-art { min-height: 480px; position: relative; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 300px; height: 300px; right: 10%; top: 5%; background: linear-gradient(135deg, #ff63a0, #7138ff); opacity: .9; }
.orb-two { width: 220px; height: 220px; left: 8%; bottom: 4%; background: linear-gradient(135deg, #35d7ff, #1d9bf0); opacity: .9; }
.phone-card {
  position: absolute;
  width: 210px;
  height: 390px;
  border: 7px solid #171729;
  border-radius: 38px;
  box-shadow: 0 30px 70px rgba(29, 18, 64, .25);
}
.phone-front {
  right: 24%;
  top: 11%;
  transform: rotate(7deg);
  background: #171729;
  z-index: 2;
}
.phone-back {
  left: 22%;
  bottom: 8%;
  transform: rotate(-13deg);
  background: linear-gradient(145deg, #ffd84d, #ff3d81);
}
.phone-screen {
  position: absolute;
  inset: 9px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #1c0d4d, #7138ff 48%, #35d7ff);
}
.screen-glow {
  width: 160px; height: 160px;
  position: absolute; right: -45px; top: 40px;
  border-radius: 50%;
  background: #ff4b94;
  filter: blur(25px);
}
.screen-text {
  position: absolute; left: 26px; bottom: 30px;
  font-size: 54px; font-weight: 800; color: white;
}
.cable {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: 170px; height: 95px;
  border: 13px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-15deg);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}
.case-shape {
  position: absolute;
  right: 1%;
  top: 45%;
  width: 75px; height: 110px;
  border-radius: 18px;
  background: var(--yellow);
  transform: rotate(16deg);
  box-shadow: 0 15px 30px rgba(255,216,77,.35);
}

.categories {
  padding: 28px clamp(18px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: white;
}
.category {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fff, #faf7ff);
  transition: transform .2s, box-shadow .2s;
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category span { font-size: 27px; display: block; margin-bottom: 16px; }
.category strong, .category small { display: block; }
.category small { margin-top: 6px; color: var(--muted); }

.shop-section { padding: 90px clamp(18px, 7vw, 110px); }
.section-heading {
  display: flex; justify-content: space-between; gap: 30px; align-items: end;
}
h2 { font-size: clamp(34px, 4vw, 56px); margin: 0; }
.section-heading p { max-width: 460px; color: var(--muted); line-height: 1.6; }
.filters { display: flex; gap: 8px; margin: 30px 0; flex-wrap: wrap; }
.filter {
  padding: 10px 16px; border-radius: 999px; background: white; border: 1px solid var(--border);
  color: var(--muted);
}
.filter.active { background: var(--ink); color: white; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product {
  overflow: hidden;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 10px 35px rgba(36, 18, 74, .06);
}
.product-image {
  height: 240px;
  display: grid;
  place-items: center;
  font-size: 76px;
  background: linear-gradient(135deg, #f1eaff, #e9fbff);
}
.product:nth-child(3n+2) .product-image { background: linear-gradient(135deg, #fff0f7, #fff9d9); }
.product:nth-child(3n+3) .product-image { background: linear-gradient(135deg, #eafaff, #efeaff); }
.product-info { padding: 18px; }
.product-info h3 { margin: 0 0 7px; font-size: 17px; }
.product-info p { color: var(--muted); margin: 0 0 17px; font-size: 14px; min-height: 38px; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 20px; font-weight: 800; }
.add {
  border: 0; cursor: pointer; color: white; background: var(--ink); border-radius: 11px; padding: 10px 13px; font-weight: 700;
}
.add:hover { background: var(--purple); }

.about {
  padding: 80px clamp(18px, 7vw, 110px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  background: linear-gradient(120deg, #171729, #3c206f);
  color: white;
}
.about .eyebrow { color: #74e8ff; }
.about p { margin: 0; color: #e7e2f5; font-size: 18px; line-height: 1.8; }

.contact { padding: 80px 18px; }
.contact-card {
  max-width: 950px; margin: auto; padding: 60px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff0f7, #eefaff);
  border: 1px solid var(--border);
}
.contact-card p { color: var(--muted); line-height: 1.6; max-width: 650px; }
.contact-details { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-weight: 600; }

footer {
  padding: 35px clamp(18px, 5vw, 72px);
  display: flex; align-items: center; justify-content: space-between;
  background: #121222; color: #d8d6e2;
}
.footer-logo { width: 70px; height: 70px; object-fit: contain; }
footer p { margin: 0; font-size: 14px; }

.cart-panel { display: none; position: fixed; inset: 0; z-index: 50; }
.cart-panel.open { display: block; }
.cart-overlay { position: absolute; inset: 0; background: rgba(11,10,24,.55); backdrop-filter: blur(4px); }
.cart {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(430px, 94vw); background: white; padding: 24px;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.18);
}
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.cart-header h2 { font-size: 30px; }
.cart-header button { border: 0; background: none; font-size: 34px; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 20px 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item strong { display: block; }
.cart-item small { color: var(--muted); }
.qty { display: flex; gap: 8px; align-items: center; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--border); background: white; border-radius: 8px; cursor: pointer; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 18px; }
.total { display: flex; justify-content: space-between; font-size: 20px; margin-bottom: 14px; }
.full { width: 100%; }
.checkout-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 900px) {
  nav a { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { min-height: 400px; }
  .categories, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .site-header { padding: 8px 14px; }
  .brand img { width: 62px; height: 62px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: 54px; }
  .hero-art { transform: scale(.82); transform-origin: center top; margin-bottom: -60px; }
  .categories, .product-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .contact-card { padding: 35px 24px; }
  footer { display: block; text-align: center; }
  .footer-logo { margin-bottom: 10px; }
}
