:root {
  color-scheme: light;
  --ink: #0d1117;
  --muted: #667085;
  --paper: #fffdfa;
  --soft: #f4f7fb;
  --blue: #cdddf0;
  --line: #e4e8ef;
  --coral: #f26b4f;
  --sage: #829779;
  --gold: #c99a47;
  --dark: #111318;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #c9d8ea;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    #c9d8ea;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

a,
button,
input {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-frame {
  width: min(100% - 48px, 1128px);
  margin: 34px auto 58px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 26px 70px rgba(50, 68, 96, 0.18);
}

.hero {
  padding: 18px 38px 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(205, 221, 240, 0.55), transparent 30rem),
    linear-gradient(180deg, #fffdfa 0%, #fbfcff 84%, #fffdfa 100%);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 46px;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.brand,
.nav-actions,
.nav-links,
.avatar-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  width: fit-content;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 18px;
  border-radius: 6px;
  background: var(--ink);
}

.brand-mark::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 10px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  content: "";
}

.brand-mark::after {
  position: absolute;
  bottom: 3px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 8px 0 #fff;
  content: "";
}

.nav-links {
  justify-content: center;
  gap: 35px;
  color: #1f2937;
  font-size: 12px;
}

.nav-links a,
.ghost-button {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--coral);
}

.nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.ghost-button,
.dark-button {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 7px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 800;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.dark-button {
  border: 1px solid #050505;
  background: #050505;
  color: #fff;
  box-shadow: 0 7px 18px rgba(17, 19, 24, 0.14);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms ease;
}

.dark-button:hover,
.signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 23px rgba(17, 19, 24, 0.18);
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 730px;
  margin: 72px auto 45px;
  text-align: center;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  border: 1px solid rgba(228, 232, 239, 0.9);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(58, 73, 99, 0.08);
  font-size: 11px;
}

.rating-pill span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.rating-pill em {
  color: var(--muted);
  font-style: normal;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 20px auto 18px;
  font-size: clamp(44px, 6.6vw, 76px);
  font-weight: 900;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 615px;
  margin-bottom: 31px;
  color: #3f4856;
  font-size: 16px;
  line-height: 1.55;
}

.signup-form {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  width: min(100%, 418px);
  min-height: 52px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: 0 16px 36px rgba(72, 89, 119, 0.12);
}

.signup-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 15px;
  color: var(--ink);
  font-size: 13px;
}

.signup-form button {
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms ease,
    background 180ms ease;
}

.micro-note {
  margin: 13px 0 0;
  color: #7a8493;
  font-size: 12px;
}

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 1.9fr) 1fr;
  align-items: stretch;
  gap: 14px;
  max-width: 1010px;
  margin: 0 auto;
}

.hero-window,
.prompt-card {
  border: 1px solid rgba(188, 205, 226, 0.76);
  border-radius: 8px;
  background: #dfeaf7;
  box-shadow: 0 18px 42px rgba(59, 78, 107, 0.12);
}

.hero-window {
  position: relative;
  min-height: 278px;
  margin: 0;
  overflow: hidden;
}

.hero-window img {
  width: 100%;
  height: 100%;
  min-height: 278px;
  object-fit: cover;
  object-position: center;
}

.hero-window figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 11px 13px;
  box-shadow: 0 12px 26px rgba(36, 48, 68, 0.12);
  backdrop-filter: blur(14px);
  font-size: 12px;
}

.hero-window figcaption span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.prompt-card {
  align-self: center;
  min-height: 190px;
  padding: 24px;
}

.left-card {
  display: grid;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(233, 241, 250, 0.75)),
    #dbe9f7;
}

.mini-product {
  width: 56px;
  height: 45px;
  border-radius: 8px;
  background: url("assets/cartwise-hero.webp") 12% 45% / 380px auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.prompt-card p {
  margin-bottom: 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.38;
}

.left-card span {
  display: inline-grid;
  width: fit-content;
  min-height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #f3dfd1;
  color: #b8512f;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
}

.right-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(224, 237, 250, 0.18), rgba(224, 237, 250, 0.88)),
    url("assets/cartwise-hero.webp") 48% 45% / 520px auto;
}

.right-card::before {
  position: absolute;
  top: 28px;
  right: 30px;
  display: grid;
  min-width: 98px;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: #477cc6;
  color: #fff;
  content: "93% fit";
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 13px 28px rgba(71, 124, 198, 0.22);
}

.right-card strong,
.right-card p,
.avatar-row {
  position: relative;
  z-index: 1;
}

.right-card strong {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 7px 10px;
  font-size: 11px;
}

.avatar-row {
  gap: 0;
}

.avatar-row span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.avatar-row span + span {
  margin-left: -7px;
  background: var(--gold);
}

.logo-strip {
  padding: 52px 0 28px;
  text-align: center;
}

.logo-strip p {
  margin-bottom: 28px;
  color: #3f4856;
  font-size: 14px;
}

.logo-strip div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.logo-strip span {
  color: #1d242e;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-frame {
    width: min(100% - 24px, 1128px);
    margin-block: 18px 38px;
  }

  .hero {
    padding-inline: 22px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .showcase,
  .logo-strip div {
    grid-template-columns: 1fr 1fr;
  }

  .hero-window {
    grid-column: 1 / -1;
    grid-row: 1;
  }

}

@media (max-width: 620px) {
  .site-frame {
    width: 100%;
    margin: 0;
  }

  .hero {
    padding: 14px 14px 0;
  }

  .topbar {
    gap: 14px;
  }

  .brand {
    font-size: 16px;
  }

  .ghost-button {
    display: none;
  }

  .dark-button {
    min-height: 32px;
    padding-inline: 12px;
  }

  .hero-copy {
    margin-top: 54px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .signup-form input,
  .signup-form button {
    min-height: 42px;
  }

  .showcase,
  .logo-strip div {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    min-height: 150px;
  }

  .hero-window img,
  .hero-window {
    min-height: 245px;
  }

  .logo-strip {
    padding-top: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
