:root {
  --bg: #050505;
  --graphite: #10100f;
  --graphite-2: #171614;
  --line: rgba(255, 255, 255, .095);
  --line-strong: rgba(218, 191, 128, .34);
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, .68);
  --soft: rgba(247, 242, 232, .08);
  --gold: #c9a86a;
  --gold-2: #e4cf9c;
  --silver: #b8b7b1;
  --ink: #050505;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 260px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 120px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, .76);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}
.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: #f6f0e5;
}
.brand-mark img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: grid; gap: 2px; }
.brand-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.92);
}
.brand-sub { font-size: 12px; color: rgba(228,207,156,.78); }
.top-links { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.top-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.top-link:hover { border-color: var(--line-strong); color: var(--text); background: rgba(201,168,106,.08); }

.flash-stack { padding-top: 18px; display: grid; gap: 10px; }
.flash {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding: 14px 16px;
  color: var(--text);
}
.flash-success { border-color: rgba(132, 210, 164, .35); }
.flash-error { border-color: rgba(255, 120, 120, .42); }

.hero { padding: 36px 0 18px; }
.hero-grid {
  min-height: calc(100svh - 136px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 30px;
  align-items: center;
}
.hero-copy { padding: 34px 0; }
.eyebrow {
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: .92;
  margin-bottom: 22px;
  font-weight: 670;
}
h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  margin-bottom: 14px;
  font-weight: 650;
}
.hero-lead, .lead {
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
  max-width: 760px;
}
.hero-actions, .section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions { justify-content: flex-start; margin-top: 28px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn-primary {
  border-color: rgba(228,207,156,.42);
  background: linear-gradient(180deg, rgba(228,207,156,.22), rgba(201,168,106,.08));
}
.btn-ghost { color: rgba(255,255,255,.76); }
.btn-wide { width: 100%; margin-top: 18px; }
.btn:disabled { opacity: .62; cursor: wait; }

.hero-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 640px;
  transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .2s ease;
}
.metal-plate {
  position: absolute;
  inset: 38px 70px 46px 70px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    linear-gradient(110deg, rgba(255,255,255,.26), rgba(255,255,255,.03) 28%, rgba(228,207,156,.18) 53%, rgba(255,255,255,.06)),
    linear-gradient(180deg, #bbb6a9, #706d66);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.metal-plate::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(5,5,5,.38);
}
.plate-hole {
  position: absolute;
  top: 42px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 10px solid rgba(30,27,22,.42);
  background: var(--bg);
  z-index: 3;
}
.map-lines span {
  position: absolute;
  height: 3px;
  background: rgba(8,8,8,.74);
  transform-origin: left center;
}
.map-lines span:nth-child(1) { width: 78%; left: 8%; top: 28%; transform: rotate(12deg); }
.map-lines span:nth-child(2) { width: 68%; left: 18%; top: 40%; transform: rotate(-18deg); }
.map-lines span:nth-child(3) { width: 70%; left: 13%; top: 58%; transform: rotate(7deg); }
.map-lines span:nth-child(4) { width: 54%; left: 28%; top: 72%; transform: rotate(-11deg); }
.map-lines span:nth-child(5) { width: 72%; left: 14%; top: 50%; transform: rotate(82deg); }
.map-lines span:nth-child(6) { width: 46%; left: 50%; top: 32%; transform: rotate(74deg); }
.plate-marker {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(8,8,8,.82);
  border-radius: 50%;
}
.plate-marker::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: rgba(8,8,8,.9);
  border-radius: 50%;
}
.plate-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  text-align: center;
  color: rgba(8,8,8,.78);
  font-size: 14px;
  letter-spacing: .18em;
}
.qr-chip {
  position: absolute;
  right: 20px;
  bottom: 42px;
  width: 190px;
  border: 1px solid rgba(228,207,156,.34);
  background: rgba(8,8,8,.88);
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.36);
}
.qr-chip span {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 12px;
  background:
    linear-gradient(90deg, #f6f0e5 8px, transparent 8px) 0 0 / 16px 16px,
    linear-gradient(#f6f0e5 8px, transparent 8px) 0 0 / 16px 16px,
    #050505;
}
.qr-chip strong { font-size: 14px; color: var(--gold-2); }

.section { padding: 54px 0; }
.section-tight { padding: 18px 0 42px; }
.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip-item {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.strip-item:last-child { border-right: 0; }
.strip-item span { color: var(--gold); font-size: 13px; }
.strip-item strong { font-size: 20px; }
.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 38px;
  align-items: start;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 12px;
}
.style-swatch {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #0a0a0a;
}
.style-swatch::before, .style-art::before {
  content: "";
  position: absolute;
  inset: 22px -30px;
  background:
    linear-gradient(18deg, transparent 43%, currentColor 44%, currentColor 46%, transparent 47%),
    linear-gradient(96deg, transparent 52%, currentColor 53%, currentColor 55%, transparent 56%),
    linear-gradient(154deg, transparent 38%, currentColor 39%, currentColor 42%, transparent 43%);
  opacity: .88;
}
.style-swatch span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: inherit;
  font-size: 14px;
}
.style-swatch.dark { color: #f7f2e8; background: #050505; }
.style-swatch.minimal { color: #050505; background: #f4f0e7; }
.style-swatch.skeleton { color: #050505; background: #fff; }
.style-swatch.coordinate { color: #d6bd83; background: #070707; }
.style-swatch.love { color: #f7ead5; background: #090606; }

.product-band { background: rgba(255,255,255,.018); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.product-tile {
  min-height: 260px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.025));
  overflow: hidden;
}
.product-tile::before, .product-art::before {
  content: "";
  width: 46%;
  aspect-ratio: .72 / 1;
  background: linear-gradient(140deg, #d9d2c1, #77736b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.36), inset 0 -32px 70px rgba(0,0,0,.2);
}
.tag-round::before, .product-round_tag::before { border-radius: 50%; aspect-ratio: 1; }
.tag-keychain::before, .product-keychain::before { width: 62%; aspect-ratio: 1.42; border-radius: 24px; }
.tag-pendant::before, .product-pendant::before { clip-path: polygon(50% 0, 98% 40%, 74% 100%, 26% 100%, 2% 40%); }
.tag-army::before, .product-army_tag::before { border-radius: 38px; }
.product-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: rgba(255,255,255,.82);
}

.footer {
  margin-top: 68px;
  padding: 30px 0 38px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #050505;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.7fr .8fr;
  gap: 24px;
  align-items: start;
}
.footer-left { display: flex; align-items: flex-start; gap: 14px; }
.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: invert(1) brightness(1.12);
}
.footer-brand { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.86); margin-bottom: 6px; }
.footer-sub, .footer-label { color: rgba(255,255,255,.55); font-size: 13px; }
.footer-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding-top: 4px; }
.footer-center a, .footer-mail { color: rgba(255,255,255,.66); font-size: 14px; }
.footer-center a:hover, .footer-mail:hover { color: var(--gold-2); }
.footer-right { text-align: right; }
.footer-label { margin-bottom: 6px; }

.generator-shell { padding: 34px 0 28px; }
.generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 24px;
  align-items: start;
}
.generator-form, .generator-preview, .memory-story, .memory-assets {
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: var(--shadow);
}
.generator-form { padding: clamp(22px, 4vw, 42px); }
.form-header h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 14px; }
.form-header p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 24px;
}
.field { display: grid; gap: 8px; color: rgba(255,255,255,.68); font-size: 13px; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(228,207,156,.45); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.34); }
.field input[type="file"] { padding: 14px; color: rgba(255,255,255,.68); }
.location-picker {
  height: 300px;
  border: 1px solid rgba(255,255,255,.1);
  background: #080808;
  overflow: hidden;
}
.location-picker .leaflet-tile {
  filter: grayscale(1) contrast(1.2) brightness(.72);
}
.location-picker .leaflet-container,
.location-picker .leaflet-control-container { font-family: inherit; }
.location-picker .leaflet-control-zoom a,
.location-picker .leaflet-control-attribution {
  background: rgba(5,5,5,.84);
  color: rgba(247,242,232,.78);
  border-color: rgba(255,255,255,.12);
}
.location-picker .leaflet-marker-icon {
  filter: grayscale(1) contrast(1.2) drop-shadow(0 8px 18px rgba(0,0,0,.6));
}
.errorlist {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ffc0b8;
  font-size: 13px;
}
.form-errors {
  border: 1px solid rgba(255,120,120,.35);
  background: rgba(255,80,80,.09);
  padding: 12px 14px;
  margin: 14px 0;
}
.choice-block { margin-top: 28px; }
.choice-title {
  color: var(--gold-2);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 12px;
}
.radio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.radio-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.choice-card {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.026);
  cursor: pointer;
}
.choice-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice-card:has(input:checked) {
  border-color: rgba(228,207,156,.62);
  background: rgba(201,168,106,.08);
}
.choice-card strong { position: relative; z-index: 1; font-size: 13px; line-height: 1.25; }
.choice-art {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(255,255,255,.07);
}
.style-minimal, .style-skeleton { background: #f7f3e8; color: #050505; }
.style-premium_dark, .style-coordinate, .style-love { background: #050505; color: #f6f0e5; }
.style-coordinate { color: var(--gold); }
.product-art {
  display: grid;
  place-items: center;
}
.product-art::before { width: 52px; }
.consent-line {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  color: rgba(255,255,255,.64);
  font-size: 13px;
  line-height: 1.5;
}
.consent-line a { color: var(--gold-2); }

.generator-preview {
  position: sticky;
  top: 100px;
  padding: 20px;
}
.preview-device {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  min-height: 620px;
  position: relative;
  background: #080808;
  border: 1px solid rgba(228,207,156,.2);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .2s ease;
}
.preview-map {
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(228,207,156,.32);
}
.preview-map span {
  position: absolute;
  height: 3px;
  background: rgba(247,242,232,.72);
  transform-origin: left center;
}
.preview-map span:nth-child(1) { width: 74%; left: 7%; top: 24%; transform: rotate(14deg); }
.preview-map span:nth-child(2) { width: 62%; left: 24%; top: 38%; transform: rotate(-20deg); }
.preview-map span:nth-child(3) { width: 80%; left: 9%; top: 56%; transform: rotate(9deg); }
.preview-map span:nth-child(4) { width: 50%; left: 42%; top: 32%; transform: rotate(82deg); }
.preview-map span:nth-child(5) { width: 66%; left: 20%; top: 74%; transform: rotate(-13deg); }
.preview-map i {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 4px solid var(--gold);
  border-radius: 50%;
}
.preview-caption {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 44px;
  display: grid;
  gap: 8px;
}
.preview-caption small { color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; }
.preview-caption strong { font-size: 30px; line-height: 1.05; }
.preview-caption em { font-style: normal; color: var(--muted); }
.export-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.export-list div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
}
.export-list span { display: block; color: var(--gold); font-size: 12px; margin-bottom: 5px; }
.export-list strong { font-size: 14px; }

.memory-page { padding: 34px 0 24px; }
.memory-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  gap: 24px;
  align-items: start;
}
.memory-story, .memory-assets { padding: clamp(22px, 4vw, 38px); }
.memory-story h1 { font-size: clamp(42px, 6vw, 74px); }
.memory-story time { display: block; color: var(--gold-2); margin-bottom: 18px; }
.story-text { color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.65; }
.memory-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.memory-meta div {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
  padding: 13px;
}
.memory-meta span { display: block; color: rgba(255,255,255,.52); font-size: 12px; margin-bottom: 7px; }
.memory-meta strong { font-size: 14px; }
.memory-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.1);
}
.memory-assets { display: grid; gap: 14px; }
.mockup-image {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: 100%;
  border: 1px solid rgba(255,255,255,.1);
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .2s ease;
}
.asset-panel {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: stretch;
}
.asset-preview, .asset-qr {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.1);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.download-grid a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228,207,156,.25);
  background: rgba(201,168,106,.06);
  color: var(--text);
  font-size: 14px;
}
.download-grid a:hover { border-color: rgba(228,207,156,.55); }

@media (max-width: 1040px) {
  .hero-grid, .generator-grid, .memory-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { min-height: unset; }
  .hero-stage { min-height: 560px; }
  .generator-preview { position: static; }
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar-inner { min-height: 72px; align-items: flex-start; padding: 12px 0; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-mark img { width: 34px; height: 34px; }
  .top-links { gap: 7px; }
  .top-link { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .hero { padding-top: 18px; }
  .hero-stage { min-height: 460px; }
  .metal-plate { inset: 28px 28px 42px; }
  .qr-chip { right: 0; bottom: 18px; }
  .intro-strip, .field-grid, .radio-grid, .radio-grid-five, .memory-meta, .asset-panel, .download-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
  .style-grid, .product-grid { grid-template-columns: 1fr; }
  .footer-center { justify-content: flex-start; }
  .footer-right { text-align: left; }
}
