:root {
  --bg: #f4ede5;
  --bg-soft: #fbf6f1;
  --surface: rgba(255, 250, 245, 0.76);
  --surface-strong: rgba(255, 252, 248, 0.92);
  --ink: #1d1714;
  --muted: #6f625b;
  --line: rgba(29, 23, 20, 0.08);
  --accent: #8d4a39;
  --accent-strong: #6e3023;
  --gold: #d0b187;
  --shadow-soft: 0 22px 56px rgba(33, 22, 18, 0.08);
  --shadow-strong: 0 36px 90px rgba(20, 14, 12, 0.16);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(141, 74, 57, 0.16), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(208, 177, 135, 0.18), transparent 24%),
    linear-gradient(180deg, #f4ede5 0%, #fbf6f1 46%, #efe4d7 100%);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.ambient-left {
  top: -140px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: rgba(141, 74, 57, 0.18);
}

.ambient-right {
  right: -120px;
  top: 340px;
  width: 420px;
  height: 420px;
  background: rgba(208, 177, 135, 0.2);
}

.site-header,
.section,
.mobile-cart-bar {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--container);
  margin: 18px auto 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 18px;
  border-radius: 999px;
  background: rgba(252, 247, 242, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 44px rgba(33, 22, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff9f4;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #6e3023 0%, #8d4a39 55%, #d0b187 100%);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.button {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: #fffaf5;
  background: linear-gradient(135deg, #6e3023 0%, #8d4a39 52%, #d0b187 100%);
  box-shadow: 0 16px 30px rgba(110, 48, 35, 0.2);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.button-full {
  width: 100%;
}

.button-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.8rem;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 94px 0 0;
}

.hero,
.checkout-section,
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
  align-items: start;
}

.hero {
  align-items: center;
  padding-top: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
}

h3 {
  font-size: 1.65rem;
}

.lead,
.section-text,
.demo-card p,
.product-card p,
.cart-summary p,
.process-card p,
.contact-card p,
.form-note {
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span,
.product-badge,
.product-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-shell {
  position: relative;
  min-height: 700px;
  padding: 24px;
  overflow: hidden;
  border-radius: 40px;
  background: linear-gradient(160deg, #1c1513 0%, #2b211d 42%, #4a3429 100%);
  box-shadow: var(--shadow-strong);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.device-card,
.demo-card,
.product-card,
.cart-panel,
.process-card,
.checkout-form,
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.device-card {
  position: absolute;
  width: min(310px, 46vw);
  padding: 12px;
  border-radius: 36px;
  background: rgba(255, 252, 248, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 78px rgba(0, 0, 0, 0.22);
}

.device-card img {
  width: 100%;
  border-radius: 28px;
}

.device-card figcaption {
  padding: 14px 8px 6px;
  color: rgba(255, 245, 236, 0.82);
  line-height: 1.55;
}

.device-primary {
  left: 18px;
  top: 42px;
  transform: rotate(-7deg);
}

.device-secondary {
  right: 28px;
  bottom: 92px;
  transform: rotate(8deg);
}

.hero-note {
  position: absolute;
  right: 24px;
  top: 28px;
  width: min(270px, 42vw);
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 248, 241, 0.92);
  box-shadow: 0 24px 50px rgba(15, 10, 9, 0.2);
}

.hero-note span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.02;
}

.demo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.demo-card,
.process-card {
  padding: 22px;
  border-radius: 26px;
}

.demo-card span,
.process-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading.stacked {
  align-items: start;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active {
  color: #fffaf5;
  background: linear-gradient(135deg, #6e3023 0%, #8d4a39 100%);
}

.products-layout {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border-radius: 28px;
}

.product-media {
  position: relative;
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 14, 13, 0.42) 100%);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  color: var(--accent-strong);
  background: rgba(255, 248, 241, 0.94);
}

.product-body {
  padding: 22px;
}

.product-topline,
.product-actions,
.cart-summary > div,
.cart-item-row,
.order-preview-head,
.mobile-cart-bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-topline span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-topline strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  line-height: 1;
}

.product-card h3 {
  margin: 10px 0 12px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.product-actions small {
  color: var(--muted);
  max-width: 15ch;
  line-height: 1.5;
}

.cart-panel {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: 30px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-empty,
.summary-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(29, 23, 20, 0.14);
  color: var(--muted);
  line-height: 1.66;
}

.cart-item {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.cart-item-title {
  font-weight: 800;
}

.cart-item-total,
.cart-summary strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
}

.cart-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button,
.remove-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.remove-item {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
}

.cart-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  margin-top: 10px;
  padding: 20px 22px;
  border-radius: 26px;
}

.contact-card span {
  display: block;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong {
  display: block;
  margin: 10px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.95rem;
  line-height: 1.02;
}

.automation-card strong {
  max-width: 12ch;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border-radius: 30px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: 2px solid rgba(110, 48, 35, 0.12);
  border-color: rgba(110, 48, 35, 0.24);
}

.full-width,
.order-preview,
.checkout-form .button,
.form-note {
  grid-column: 1 / -1;
}

.order-preview {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.order-preview-head strong,
.order-preview-head span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(29, 23, 20, 0.06);
}

.summary-line:last-child {
  border-bottom: none;
}

.confirmation-shell {
  display: grid;
  gap: 24px;
}

.confirmation-panel {
  padding: 24px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.confirmation-panel.is-empty {
  border-style: dashed;
}

.confirmation-empty {
  color: var(--muted);
  line-height: 1.72;
}

.confirmation-topline,
.confirmation-line,
.confirmation-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.confirmation-topline {
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(76, 135, 104, 0.14);
  color: #2c6a4a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-topline strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.confirmation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.confirmation-block {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.confirmation-block span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.confirmation-block strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.02;
}

.confirmation-block p,
.confirmation-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.confirmation-lines {
  display: grid;
  gap: 18px;
}

.confirmation-line-list {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.confirmation-line {
  padding: 11px 0;
  border-bottom: 1px solid rgba(29, 23, 20, 0.06);
}

.confirmation-line:last-child {
  border-bottom: none;
}

.confirmation-line strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1;
}

.confirmation-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(110, 48, 35, 0.06);
  border: 1px solid rgba(110, 48, 35, 0.08);
}

.confirmation-note strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.02;
}

.confirmation-actions {
  margin-top: 20px;
}

.mobile-cart-bar {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  color: #fff8f2;
  background: linear-gradient(140deg, rgba(29, 23, 20, 0.96), rgba(75, 52, 41, 0.96));
  box-shadow: 0 24px 60px rgba(17, 10, 9, 0.24);
  backdrop-filter: blur(18px);
}

.mobile-cart-bar span {
  color: rgba(255, 244, 236, 0.72);
  font-size: 0.88rem;
}

.mobile-cart-bar .button {
  padding: 12px 18px;
}

.mobile-cart-bar.is-empty {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero,
  .checkout-section,
  .products-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }

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

@media (max-width: 860px) {
  .site-header {
    position: relative;
    top: 0;
    flex-wrap: wrap;
    border-radius: 30px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .hero-shell {
    min-height: 620px;
  }

  .demo-strip,
  .product-grid,
  .process-grid,
  .checkout-form {
    grid-template-columns: 1fr;
  }

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

  .confirmation-grid,
  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .confirmation-topline,
  .confirmation-actions {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 24px, 100%);
  }

  body {
    padding-bottom: 96px;
  }

  .section {
    padding-top: 76px;
  }

  h1,
  h2 {
    max-width: 100%;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-shell {
    min-height: 540px;
    padding: 18px;
  }

  .device-card {
    width: min(220px, 58vw);
    padding: 10px;
  }

  .device-primary {
    left: 6px;
    top: 56px;
  }

  .device-secondary {
    right: 6px;
    bottom: 92px;
  }

  .hero-note {
    top: 16px;
    right: 12px;
    width: min(210px, 56vw);
    padding: 18px;
  }

  .mobile-cart-bar {
    display: flex;
  }
}
