:root {
  --dark: #0B1020;
  --primary: #2563EB;
  --cyan: #22D3EE;
  --orange: #F97316;
  --light: #F3F4F6;
  --white: #FFFFFF;
  --text: #182033;
  --muted: #667085;
  --border: #E5E7EB;
  --shadow: 0 18px 45px rgba(11, 16, 32, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  direction: ltr;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: #30384b;
}

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

.header-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  border: 0;
  background: transparent;
  padding: 10px 15px;
  width: 230px;
  outline: none;
}

.search-box button,
.newsletter button,
.price-row button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: var(--primary);
  padding: 10px 16px;
  transition: 0.25s ease;
}

.search-box button:hover,
.newsletter button:hover,
.price-row button:hover,
.btn-primary:hover {
  background: #1d4ed8;
}

.login-link {
  font-weight: 600;
  color: var(--dark);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark);
  color: var(--white);
  padding: 9px 14px;
  border-radius: 999px;
}

.cart-btn span {
  color: var(--cyan);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--dark);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 10px;
}

.hero {
  background:
    radial-gradient(circle at 18% 28%, rgba(34, 211, 238, 0.22), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.28), transparent 34%),
    linear-gradient(135deg, #0B1020 0%, #121a35 100%);
  color: var(--white);
  padding: 82px 0 58px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 46px;
}

.eyebrow,
.section-heading span,
.promo-inner span {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1,
.section-heading h2,
.deal-section h2,
.promo-inner h2,
.newsletter h2 {
  margin: 12px 0 16px;
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  max-width: 760px;
}

.hero p {
  color: #cbd5e1;
  max-width: 680px;
  font-size: 1.08rem;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-accent {
  background: var(--orange);
  color: var(--white);
}

.btn-accent:hover {
  background: #ea580c;
}

.hero-stats div {
  min-width: 140px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 12px 16px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats span {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.hero-card {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.device-mockup {
  width: min(360px, 90%);
  height: 420px;
  border-radius: 42px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
}

.device-screen {
  height: 100%;
  border-radius: 32px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle, rgba(34,211,238,0.34), transparent 34%),
    linear-gradient(160deg, #111827, #0B1020);
}

.device-screen strong {
  color: var(--orange);
  font-size: 1.35rem;
}

.pulse {
  width: 94px;
  height: 94px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 18px rgba(34,211,238,0.09), 0 0 44px rgba(34,211,238,0.75);
}

.floating-chip {
  position: absolute;
  z-index: 2;
  background: var(--white);
  color: var(--dark);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
  direction: ltr;
}

.chip-one {
  top: 55px;
  right: 20px;
}

.chip-two {
  left: 10px;
  bottom: 85px;
}

.benefits {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.benefit-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(11, 16, 32, 0.08);
}

.section {
  padding: 72px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--dark);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  text-align: right;
}

.view-all {
  color: var(--primary);
  font-weight: 800;
}

.category-grid,
.product-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-card,
.product-card,
.testimonial-grid blockquote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(11,16,32,0.06);
  transition: 0.25s ease;
}

.category-card {
  min-height: 160px;
  padding: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  font-size: 2rem;
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  font-size: 1rem;
  color: var(--dark);
}

.category-card small {
  color: var(--muted);
  font-size: 0.85rem;
}

.category-card:hover,
.product-card:hover,
.testimonial-grid blockquote:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(37,99,235,0.28);
}

.products-section {
  background: #fff;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.badge.hot,
.badge.off {
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange);
}

.product-image {
  min-height: 170px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(34,211,238,0.24), transparent 35%),
    linear-gradient(135deg, #eff6ff, #f8fafc);
  margin-bottom: 16px;
}

.product-card h3 {
  margin: 0 0 6px;
  color: var(--dark);
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-row strong {
  color: var(--dark);
  font-size: 0.98rem;
}

.price-row button {
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}

.deal-section {
  padding: 70px 0;
  background:
    radial-gradient(circle at 12% 40%, rgba(249,115,22,0.22), transparent 32%),
    linear-gradient(135deg, #0B1020, #151f3d);
  color: var(--white);
}

.deal-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.deal-section p {
  color: #cbd5e1;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 96px);
  gap: 12px;
}

.countdown div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--orange);
  font-size: 2rem;
  line-height: 1.1;
}

.compact .product-card {
  min-height: 100%;
}

.promo-banner {
  padding: 54px 0;
}

.promo-inner {
  background:
    radial-gradient(circle at 15% 50%, rgba(34,211,238,0.24), transparent 36%),
    linear-gradient(135deg, var(--dark), #182445);
  border-radius: 32px;
  padding: 38px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.promo-inner p {
  color: #cbd5e1;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.brand-strip span {
  background: var(--white);
  border: 1px dashed rgba(37,99,235,0.32);
  color: var(--dark);
  border-radius: 18px;
  min-height: 76px;
  display: grid;
  place-items: center;
  font-weight: 900;
  direction: ltr;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 24px;
  color: #334155;
}

.testimonial-grid cite {
  display: block;
  color: var(--primary);
  font-weight: 800;
  margin-top: 14px;
  font-style: normal;
}

.newsletter {
  padding: 54px 0;
}

.newsletter-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 12px 30px rgba(11,16,32,0.07);
}

.newsletter p {
  color: var(--muted);
  margin-bottom: 0;
}

.newsletter form {
  display: flex;
  min-width: min(440px, 100%);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.newsletter input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 18px;
}

.newsletter button {
  padding-inline: 24px;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
}

.footer-logo {
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: #cbd5e1;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

.site-footer h3 {
  margin-top: 0;
}

.trust-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--cyan);
  background: rgba(255,255,255,0.06);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #94a3b8;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    order: 3;
    width: 100%;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .countdown {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
    margin-right: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-actions {
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .header-actions.is-open {
    display: flex;
  }

  .login-link,
  .cart-btn {
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-card {
    min-height: 320px;
  }

  .device-mockup {
    height: 330px;
  }

  .benefits {
    margin-top: 0;
    padding-top: 18px;
  }

  .benefits-grid,
  .category-grid,
  .product-grid,
  .testimonial-grid,
  .footer-grid,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .row-heading,
  .promo-inner,
  .newsletter-inner,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    text-align: right;
  }

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

  .newsletter form {
    border-radius: 18px;
    flex-direction: column;
  }

  .newsletter button {
    border-radius: 14px;
    margin: 8px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .floating-chip {
    display: none;
  }

  .countdown div {
    padding: 12px;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .price-row button {
    width: 100%;
  }
}
