:root {
  --bg: #f6f4ef;
  --bg-warm: #efe9df;
  --surface: #ffffff;
  --ink: #1a1f36;
  --ink-soft: #4a5168;
  --line: rgba(26, 31, 54, 0.1);
  --indigo: #2d3a8c;
  --indigo-deep: #1e2660;
  --coral: #e85d4c;
  --coral-hover: #d44a39;
  --danger: #c62828;
  --teal: #2a9d8f;
  --gold: #e9b44c;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(26, 31, 54, 0.1);
  --shadow-sm: 0 8px 24px rgba(26, 31, 54, 0.08);
  --max: 1200px;
  --header-h: 72px;

  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(168deg, #faf8f4 0%, var(--bg) 38%, #eef1f8 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 58% at 6% -8%, rgba(45, 58, 140, 0.12), transparent 58%),
    radial-gradient(ellipse 62% 48% at 96% 4%, rgba(232, 93, 76, 0.1), transparent 54%),
    radial-gradient(ellipse 58% 46% at 82% 72%, rgba(155, 89, 182, 0.07), transparent 56%),
    radial-gradient(ellipse 68% 52% at 4% 78%, rgba(42, 157, 143, 0.09), transparent 56%),
    radial-gradient(ellipse 48% 42% at 50% 46%, rgba(233, 180, 76, 0.06), transparent 62%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(26, 31, 54, 0.045) 0.7px, transparent 0.7px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 12px 24px;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header:has(+ main .hero) {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--indigo);
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.2;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(42, 157, 143, 0.12);
  color: var(--teal);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}

.nav a:hover {
  color: var(--indigo);
}

.header-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.header-cta:hover {
  background: var(--indigo-deep);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.3);
}

.btn-primary:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 93, 76, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border: 1.5px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--indigo);
  background: rgba(45, 58, 140, 0.04);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(45, 58, 140, 0.08);
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.word-mark {
  font-style: normal;
  font-weight: inherit;
  color: var(--indigo);
  position: relative;
}

.word-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.35em;
  min-height: 4px;
  background: rgba(232, 93, 76, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.hero-text {
  margin: 0 0 32px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  transform: rotate(2deg);
}

.hero-image-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid var(--surface);
  transition: transform 0.3s;
}

.hero-image-grid img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.hero-image-grid img:nth-child(1) {
  transform: translateY(20px) rotate(-4deg);
}
.hero-image-grid img:nth-child(2) {
  transform: translateY(-10px) rotate(3deg);
}
.hero-image-grid img:nth-child(3) {
  transform: translateY(0px) rotate(2deg);
}
.hero-image-grid img:nth-child(4) {
  transform: translateY(-30px) rotate(-2deg);
}

/* Ribbon */
.ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.ribbon > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.ribbon > div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.ribbon > div:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.ribbon strong {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  color: var(--indigo);
  line-height: 1.1;
}

.ribbon span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Section */
.section {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-warm);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.new {
  background: var(--teal);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-sku {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.product-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-family: "Fraunces", serif;
  color: var(--indigo);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.product-tags span {
  padding: 4px 8px;
  background: rgba(45, 58, 140, 0.06);
  color: var(--indigo);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-specs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex-grow: 1;
}

.product-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}

.product-specs span {
  color: var(--ink-soft);
}

.product-specs strong {
  color: var(--ink);
  font-weight: 600;
}

.product-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--indigo);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.product-action:hover {
  background: var(--indigo-deep);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(42, 157, 143, 0.1);
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  max-width: calc(var(--max) + 48px);
  margin: 40px auto 0;
  padding: 32px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--indigo);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .ribbon {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ribbon > div:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .ribbon > div:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .nav {
    display: none;
  }
}
