:root {
  --bg: #f4efe7;
  --bg-strong: #efe3d2;
  --surface: rgba(255, 248, 240, 0.86);
  --surface-strong: #fff8f0;
  --ink: #221c17;
  --muted: #65584d;
  --accent: #d6633d;
  --accent-dark: #a34628;
  --line: rgba(34, 28, 23, 0.1);
  --shadow: 0 24px 60px rgba(78, 48, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(214, 99, 61, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(112, 144, 116, 0.18), transparent 24%),
    linear-gradient(180deg, #f9f3ec 0%, var(--bg) 100%);
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar,
.hero,
.section,
.footer {
  backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 28px;
  background: rgba(255, 248, 240, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #efb56b);
  color: white;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--muted);
}

.brand-text strong {
  color: var(--ink);
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 12px 24px rgba(214, 99, 61, 0.28);
}

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

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero,
.section,
.footer {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  padding: 42px;
  border-radius: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.section h2,
.footer h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.hero-text,
.section-heading p,
.custom-form,
.faq-list p,
.process-grid p,
.hero-stats span {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.hero-stats strong,
.product-card h3,
.process-grid h3,
.faq-list summary {
  display: block;
  margin-bottom: 8px;
}

.hero-art {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 248, 240, 0.32)),
    linear-gradient(135deg, rgba(214, 99, 61, 0.12), rgba(112, 144, 116, 0.15));
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.printer-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 28, 23, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 28, 23, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 28%, rgba(0, 0, 0, 0.9) 100%);
}

.art-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 220px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 248, 240, 0.8);
  border: 1px solid rgba(34, 28, 23, 0.08);
  box-shadow: var(--shadow);
  animation: floatCard 5.5s ease-in-out infinite;
}

.art-card strong {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.art-card-a {
  top: 52px;
  left: 36px;
}

.art-card-b {
  top: 185px;
  right: 28px;
  animation-delay: 0.8s;
}

.art-card-c {
  bottom: 38px;
  left: 76px;
  animation-delay: 1.4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  margin-top: 28px;
  padding: 34px;
  border-radius: 30px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 24px;
}

.section h2,
.footer h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.product-visual {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 220px;
  padding: 20px;
  color: white;
  overflow: hidden;
}

.product-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.price-row strong {
  font-size: 1.4rem;
  font-family: "Syne", sans-serif;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.compact {
  margin-bottom: 0;
}

.custom-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.custom-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}

.custom-form input,
.custom-form textarea,
.custom-form select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 248, 240, 0.92);
  border: 1px solid rgba(34, 28, 23, 0.12);
  border-radius: 16px;
}

.custom-form textarea {
  resize: vertical;
}

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

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.form-note.is-success {
  color: #24593b;
}

.form-note.is-error {
  color: #9a3219;
}

.field-hidden {
  display: none !important;
}

.empty-state {
  margin: 0;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(34, 28, 23, 0.08);
  color: var(--muted);
}

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

.process-grid article {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
}

.testimonial-strip {
  padding: 24px 34px;
  text-align: center;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: 28px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-hero h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: end;
}

.admin-visitor-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.admin-visitor-card strong {
  display: block;
  margin: 6px 0 4px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.95;
}

.admin-visitor-card span,
.admin-visitor-card p {
  color: var(--muted);
}

.admin-auth {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.admin-auth-form {
  max-width: 480px;
}

.payments-shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  min-height: 760px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(250, 246, 240, 0.6)),
    linear-gradient(135deg, rgba(197, 204, 255, 0.18), rgba(255, 233, 210, 0.12));
}

.payments-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 10px 18px 0;
  border-right: 1px solid rgba(34, 28, 23, 0.08);
}

.payments-logo {
  padding: 14px 18px;
  font-family: "Syne", sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

.payments-nav {
  display: grid;
  gap: 20px;
  padding: 0 24px 18px 18px;
}

.payments-nav span {
  display: block;
  height: 6px;
  width: 62px;
  border-radius: 999px;
  background: rgba(82, 78, 112, 0.2);
}

.payments-nav span.is-active {
  width: 74px;
  background: #29253d;
}

.payments-board {
  position: relative;
  padding: 12px 4px 8px;
}

.payments-floating-card {
  position: absolute;
  top: -8px;
  left: 0;
  z-index: 2;
  width: min(340px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: #eaebff;
  border: 1px solid rgba(34, 28, 23, 0.06);
  box-shadow: 0 24px 50px rgba(41, 37, 61, 0.12);
}

.payments-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.payments-card-head h2,
.payments-card-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.payments-card-head span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(34, 28, 23, 0.2);
  font-size: 0.8rem;
  color: var(--muted);
}

.payments-big-number {
  font-family: "Syne", sans-serif;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.payments-subcopy,
.payments-micro,
.payments-footnote {
  color: var(--muted);
}

.payments-inline-stats {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.payments-inline-stats strong,
.payments-stat {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  line-height: 1;
}

.payments-inline-stats span {
  color: var(--muted);
}

.payments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 74px;
  padding-left: 280px;
}

.payments-card {
  min-height: 180px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 28, 23, 0.08);
  box-shadow: 0 14px 28px rgba(41, 37, 61, 0.08);
}

.payments-card-soft-green {
  background: #eef8e7;
}

.payments-card-soft-pink {
  background: #ffe2dd;
}

.payments-card-soft-yellow {
  background: #fff2db;
}

.ring-metric {
  display: grid;
  place-items: center;
  min-height: 118px;
}

.ring-chart {
  --ring-fill: 64%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.92) 58%, transparent 59%),
    conic-gradient(#202034 var(--ring-fill), rgba(32, 32, 52, 0.12) 0);
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
}

.ring-chart-light {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.88) 58%, transparent 59%),
    conic-gradient(#f6fbf4 var(--ring-fill), rgba(255, 255, 255, 0.5) 0);
}

.payments-card-chart {
  grid-column: span 2;
  min-height: 220px;
}

.payments-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 160px;
  padding-top: 10px;
}

.payments-bar-group {
  flex: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.payments-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #89adff 0%, #3878ff 100%);
  box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.2);
}

.payments-bar-group span {
  font-size: 0.78rem;
  color: var(--muted);
}

.payments-card-table {
  min-height: 220px;
}

.payments-table {
  display: grid;
  gap: 10px;
}

.payments-table-head,
.payments-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
}

.payments-table-head {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(34, 28, 23, 0.08);
}

.payments-table-row strong {
  font-weight: 700;
}

.payments-footnote {
  margin: 14px 0 0;
}

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

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
}

.admin-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.admin-product-list {
  display: grid;
  gap: 14px;
}

.admin-product-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 248, 240, 0.84);
  border: 1px solid rgba(34, 28, 23, 0.08);
}

.admin-product-swatch {
  overflow: hidden;
  min-height: 88px;
  border-radius: 16px;
}

.admin-product-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-product-copy h3,
.admin-product-header strong {
  margin: 0;
}

.admin-product-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.admin-product-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-product-tag {
  margin-bottom: 8px !important;
  color: var(--accent-dark) !important;
  font-weight: 700;
}

.admin-image-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(34, 28, 23, 0.08);
  color: var(--muted);
  overflow: hidden;
}

.admin-image-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .footer,
  .process-grid,
  .product-grid,
  .hero-stats,
  .admin-grid,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

  .hero-art {
    min-height: 360px;
  }

  .admin-product-item {
    grid-template-columns: 1fr;
  }

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

  .payments-shell {
    grid-template-columns: 1fr;
  }

  .payments-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(34, 28, 23, 0.08);
  }

  .payments-grid {
    padding-left: 0;
    padding-top: 300px;
    grid-template-columns: 1fr;
  }

  .payments-card-chart {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    position: static;
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.95rem;
  }

  .section,
  .footer {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .art-card {
    width: 180px;
    padding: 16px;
  }

  .art-card-a {
    top: 28px;
    left: 18px;
  }

  .art-card-b {
    top: 136px;
    right: 18px;
  }

  .art-card-c {
    bottom: 22px;
    left: 40px;
  }
}
