:root {
  --bg: #0b0b14;
  --bg-elevated: #13131f;
  --ink: #f2efe9;
  --muted: #9a95ad;
  --gold: #c9a15a;
  --gold-soft: #e8d3a3;
  --violet: #6c5ce7;
  --violet-soft: #a29bfe;
  --rose: #d1467b;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap");

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #1c1a2e 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.hero {
  text-align: center;
  padding: 56px 20px 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
  margin: 0 0 12px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}

.hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---- Signature element: orbit rings behind hero, echoed on cards ---- */
.orbit-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 28px auto 8px;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid;
}
.orbit-ring.r1 { inset: 0; border-color: rgba(108,92,231,0.55); }
.orbit-ring.r2 { inset: 20px; border-color: rgba(201,161,90,0.5); }
.orbit-ring.r3 { inset: 42px; border-color: rgba(255,255,255,0.12); }
.orbit-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9b8, var(--gold) 70%);
  box-shadow: 0 0 40px rgba(201,161,90,0.55);
}
.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-soft);
}

.cards {
  max-width: 1040px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, var(--bg-elevated), #0f0f1a);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(201,161,90,0.4); }

.card .icon-orbit { width: 74px; height: 74px; margin: 0 auto; position: relative; }
.card .icon-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); }
.card .icon-orbit .ring.in { inset: 12px; border-color: var(--gold); opacity: .7; }
.card .icon-orbit .core { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(201,161,90,.7); }

.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0;
  text-align: center;
}

.card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.card .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.price { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); font-weight: 600; }
.delivery { font-size: 11.5px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  transition: filter .2s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(120deg, var(--violet), #5546d6); color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-gold { background: linear-gradient(120deg, var(--gold), #b8863f); color: #1a1408; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-block { width: 100%; }

/* ---------------- order page ---------------- */
.order-wrap {
  max-width: 560px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.order-card {
  border: 1px solid rgba(201,161,90,0.35);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, #14131f, #0e0d16);
}

.eyebrow {
  text-align: center;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin-bottom: 4px;
}

.order-price {
  text-align: center;
  font-family: var(--serif);
  font-size: 44px;
  margin: 6px 0 24px;
}
.order-price span { font-size: 16px; color: var(--muted); font-family: var(--sans); }

label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin: 16px 0 6px;
}

input, select {
  width: 100%;
  background: #0b0b13;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14.5px;
  font-family: var(--sans);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--violet-soft);
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.gender-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.gender-toggle button {
  padding: 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0b0b13;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.gender-toggle button.active { background: var(--violet); border-color: var(--violet); }

.divider-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: 16px;
  margin: 28px 0 4px;
  color: var(--gold-soft);
}

#personB { display: none; }

.status-box {
  text-align: center;
  padding: 40px 20px;
}
.status-box .spinner {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-text { color: var(--rose); font-size: 13px; margin-top: 10px; text-align: center; }

.field-error { color: var(--rose); font-size: 12px; margin-top: 4px; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 26px;
}
