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

:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #18181b;
  background: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Demo */

.demo-warning {
  padding: 8px 20px;

  background: #18181b;
  color: #d4d4d8;

  text-align: center;

  font-size: 12px;
}

.demo-warning strong {
  color: #ffffff;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid #e4e4e7;

  backdrop-filter: blur(12px);
}

.header-content {
  width: min(100% - 40px, 1200px);
  min-height: 76px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: auto minmax(300px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.logo {
  flex-shrink: 0;

  font-size: 30px;
  font-weight: 800;

  letter-spacing: -0.06em;
}

.logo span {
  color: #6366f1;
}

.search {
  width: 100%;
  height: 44px;

  display: flex;

  border: 1px solid #d4d4d8;
  border-radius: 10px;

  overflow: hidden;

  background: #fafafa;
}

.search:focus-within {
  border-color: #6366f1;

  outline: 3px solid rgba(99, 102, 241, 0.12);
}

.search input {
  flex: 1;

  min-width: 0;

  padding: 0 16px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #18181b;
}

.search input::placeholder {
  color: #a1a1aa;
}

.search button {
  padding: 0 22px;

  border: 0;

  background: #18181b;
  color: #ffffff;

  font-weight: 600;
}

.user-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;

  white-space: nowrap;

  color: #52525b;

  font-size: 14px;
  font-weight: 500;
}

.user-navigation a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-navigation a:hover {
  color: #18181b;
}

.user-navigation span {
  min-width: 21px;
  height: 21px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border-radius: 999px;

  background: #18181b;
  color: #ffffff;

  font-size: 11px;
}

.categories {
  border-top: 1px solid #f4f4f5;
}

.categories-content {
  width: min(100% - 40px, 1200px);
  height: 46px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 30px;

  overflow-x: auto;

  color: #52525b;

  font-size: 14px;
}

.categories-content a {
  flex-shrink: 0;
}

.categories-content a:hover {
  color: #6366f1;
}

/* Hero */

.hero {
  background: #f4f4f5;
}

.hero-content {
  width: min(100% - 40px, 1200px);
  min-height: 430px;

  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: block;

  margin-bottom: 12px;

  color: #6366f1;

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  color: #18181b;

  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero-title > div {
  color: #6366f1;

  font-weight: 800;
}

.hero-description {
  max-width: 560px;

  margin-top: 24px;

  color: #71717a;

  font-size: 18px;
  line-height: 1.7;
}

.primary-button {
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 30px;
  padding: 0 24px;

  border-radius: 10px;

  background: #18181b;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);

  background: #27272a;
}

.hero-visual {
  position: relative;

  width: 320px;

  aspect-ratio: 1;

  justify-self: end;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 40px;

  transform: rotate(6deg);

  background: linear-gradient(145deg, #6366f1, #4338ca);

  box-shadow: 0 30px 80px rgba(67, 56, 202, 0.28);
}

.hero-visual::before {
  content: "";

  position: absolute;

  width: 190px;
  height: 190px;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;

  transform: rotate(-18deg);
}

.hero-visual span {
  position: relative;

  color: rgba(255, 255, 255, 0.95);

  font-size: 55px;
  font-weight: 900;

  letter-spacing: -0.08em;
}

/* Products */

.products-section {
  width: min(100% - 40px, 1200px);

  margin: 0 auto;

  padding: 90px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 32px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;

  letter-spacing: -0.04em;
}

.section-heading > a {
  color: #6366f1;

  font-size: 14px;
  font-weight: 700;
}

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

.product-card {
  overflow: hidden;

  border: 1px solid #e4e4e7;
  border-radius: 16px;

  background: #ffffff;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);

  box-shadow: 0 16px 35px rgba(24, 24, 27, 0.08);
}

.product-image {
  position: relative;

  display: block;

  aspect-ratio: 1;

  padding: 16px;

  background: #f4f4f5;
}

.discount {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;

  padding: 5px 8px;

  border-radius: 6px;

  background: #18181b;
  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
}

.product-placeholder {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: radial-gradient(circle, #ffffff 0%, #e4e4e7 100%);
}

.product-placeholder span {
  font-size: 70px;
}

.product-content {
  padding: 20px;
}

.product-category {
  color: #a1a1aa;

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-title {
  margin-top: 8px;

  color: #27272a;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.product-title a:hover {
  color: #6366f1;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 12px;
}

.rating span {
  color: #f59e0b;

  font-size: 12px;

  letter-spacing: -1px;
}

.rating small {
  color: #a1a1aa;

  font-size: 11px;
}

.old-price {
  margin-top: 18px;

  color: #a1a1aa;

  font-size: 12px;

  text-decoration: line-through;
}

.price {
  margin-top: 3px;

  color: #18181b;

  font-size: 22px;
  font-weight: 800;
}

.price small {
  color: #71717a;

  font-size: 11px;
  font-weight: 500;
}

.buy-button {
  width: 100%;
  height: 42px;

  margin-top: 18px;

  border: 1px solid #18181b;
  border-radius: 9px;

  background: #18181b;
  color: #ffffff;

  font-size: 13px;
  font-weight: 700;
}

.buy-button:hover {
  background: #ffffff;
  color: #18181b;
}

/* Benefits */

.benefits {
  border-top: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;

  background: #fafafa;
}

.benefits-content {
  width: min(100% - 40px, 1200px);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  padding: 42px 24px;
}

.benefit + .benefit {
  border-left: 1px solid #e4e4e7;
}

.benefit-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #e4e4e7;

  font-size: 20px;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
}

.benefit-description {
  margin-top: 4px;

  color: #71717a;

  font-size: 13px;
}

/* Newsletter */

.newsletter {
  width: min(100% - 40px, 1200px);

  margin: 90px auto;
  padding: 54px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;

  border-radius: 20px;

  background: #18181b;
  color: #ffffff;
}

.newsletter-title {
  font-size: 32px;
  font-weight: 700;

  letter-spacing: -0.04em;
}

.newsletter-description {
  margin-top: 8px;

  color: #a1a1aa;
}

.newsletter-form {
  width: min(100%, 440px);
  height: 48px;

  display: flex;
}

.newsletter-form input {
  flex: 1;

  min-width: 0;

  padding: 0 16px;

  border: 1px solid #3f3f46;
  border-radius: 9px 0 0 9px;

  outline: 0;

  background: #27272a;
  color: #ffffff;
}

.newsletter-form input:focus {
  border-color: #6366f1;
}

.newsletter-form button {
  padding: 0 22px;

  border: 0;
  border-radius: 0 9px 9px 0;

  background: #6366f1;
  color: #ffffff;

  font-weight: 700;
}

/* Footer */

.footer {
  border-top: 1px solid #e4e4e7;

  background: #fafafa;
}

.footer-content {
  width: min(100% - 40px, 1200px);

  margin: 0 auto;
  padding: 64px 0;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

.footer-brand {
  max-width: 340px;
}

.footer-description {
  margin-top: 18px;

  color: #71717a;

  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-title {
  margin-bottom: 6px;

  font-size: 13px;
  font-weight: 700;
}

.footer-links a {
  color: #71717a;

  font-size: 13px;
}

.footer-links a:hover {
  color: #18181b;
}

.footer-bottom {
  width: min(100% - 40px, 1200px);

  margin: 0 auto;
  padding: 24px 0;

  border-top: 1px solid #e4e4e7;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #a1a1aa;

  font-size: 12px;
}

.footer-bottom a {
  color: #6366f1;

  font-weight: 700;
}

/* Responsive */

@media (max-width: 1000px) {
  .header-content {
    grid-template-columns: auto minmax(260px, 1fr) auto;

    gap: 24px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;

    gap: 40px;

    padding: 70px 0;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 800px) {
  .header-content {
    grid-template-columns: auto 1fr;

    gap: 16px 24px;

    padding: 16px 0;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .user-navigation {
    justify-self: end;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;

    padding: 38px 30px;
  }

  .newsletter-form {
    width: 100%;
    max-width: none;
  }

  .benefits-content {
    grid-template-columns: 1fr;
  }

  .benefit {
    justify-content: flex-start;
  }

  .benefit + .benefit {
    border-top: 1px solid #e4e4e7;
    border-left: 0;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .demo-warning {
    padding-inline: 14px;

    font-size: 11px;
    line-height: 1.5;
  }

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

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .user-navigation a:first-child {
    display: none;
  }

  .categories-content {
    gap: 20px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-description {
    font-size: 16px;
  }

  .products-section {
    padding: 64px 0;
  }

  .newsletter {
    margin: 64px auto;
  }

  .newsletter-form {
    height: auto;

    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    height: 48px;

    border-radius: 9px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}