:root {
  --accent: #7c3aed;
  --ink: #141417;
  --muted: #5b5b66;
  --bg: #ffffff;
  --alt: #f6f5f8;
  --line: rgba(20, 20, 23, 0.1);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(20, 20, 23, 0.08);
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.08rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--muted);
}

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

/* header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* hero -------------------------------------------------------------------- */

.hero {
  padding: clamp(72px, 10vw, 128px) 0;
  text-align: center;
  background: radial-gradient(
    1200px 620px at 50% -10%,
    color-mix(in srgb, var(--accent) 16%, transparent),
    transparent 62%
  );
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

/* sections ---------------------------------------------------------------- */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-alt {
  background: var(--alt);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.about {
  max-width: 820px;
  text-align: center;
}

.about-body {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 16px;
}

/* contact ----------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid > div {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-grid a {
  text-decoration: none;
  color: var(--accent);
}

/* cta --------------------------------------------------------------------- */

.cta {
  text-align: center;
}

.cta .lead {
  margin-bottom: 28px;
}

/* forms ------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 1px;
}

/* footer ------------------------------------------------------------------ */

.site-footer {
  padding: 64px 0 24px;
  background: #111114;
  color: #e8e8ee;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 8px;
  color: #9b9ba6;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
}

.footer-cols h4 {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #fff;
}

.footer-cols a {
  display: block;
  margin-bottom: 8px;
  color: #9b9ba6;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-cols a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  color: #70707a;
  font-size: 0.8rem;
}

/* motion ------------------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 8px 0;
    width: 100%;
  }

  .split,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* site additions ---------------------------------------------------------- */
/* Append small, site-specific rules below. Do not restructure the system. */

/* cart in header */
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.cart-link:hover {
  color: var(--ink);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* product collection */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: -26px -24px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--accent) 12%, var(--alt));
  color: var(--accent);
}

.product-thumb svg {
  width: 96px;
  height: 96px;
}

.product-card h3 {
  margin-bottom: 6px;
}

.product-card p {
  flex: 1 1 auto;
}

.product-price {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 700;
}

.product-card .btn {
  margin-top: 16px;
  align-self: flex-start;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translateX(-50%);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.toast[hidden] {
  display: none;
}

.btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

/* checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.checkout-panel {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.checkout-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.checkout-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.checkout-empty p {
  margin-bottom: 20px;
  color: var(--muted);
}

.cart-item {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--alt);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.qty-btn:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--alt));
}

.qty-input {
  width: 46px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-line-total {
  font-weight: 700;
}

.remove-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  cursor: pointer;
}

.remove-btn:hover {
  color: var(--ink);
}

.summary {
  margin-top: 18px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.summary-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.checkout-form .form {
  max-width: none;
  margin: 0;
}

.checkout-form fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.checkout-form legend {
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
}

.radio-row input {
  accent-color: var(--accent);
}

.checkout-form .btn {
  margin-top: 8px;
}

.confirm-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.confirm-box .eyebrow {
  margin-bottom: 14px;
}

.confirm-box p {
  margin-top: 10px;
  color: var(--muted);
}

.confirm-box .btn {
  margin-top: 22px;
}

.small {
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
