:root {
  --bg1: #f6f3ee;
  --bg2: #ffffff;
  --ink: #101723;
  --muted: #4b5565;
  --line: rgba(16, 23, 35, 0.1);
  --gold: #c9a24a;
  --gold2: #e5cf8a;
  --ember: #f05a28;
  --teal: #06a8b8;
  --sage: #5fa69a;
  --coral: #ff6b5b;
}

body {
  background: radial-gradient(1200px 700px at 50% -10%, rgba(201, 162, 74, 0.22), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(240, 90, 40, 0.12), transparent 55%),
    radial-gradient(1000px 700px at 10% 80%, rgba(6, 168, 184, 0.08), transparent 65%),
    radial-gradient(800px 600px at 85% 70%, rgba(95, 166, 154, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg1) 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.soft-shadow {
  box-shadow: 0 18px 40px rgba(16, 23, 35, 0.12);
}

.text-muted {
  color: var(--muted);
}

.borderline {
  border-color: var(--line) !important;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.card-lite {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.badge-gold {
  background: rgba(201, 162, 74, 0.16);
  border: 1px solid rgba(201, 162, 74, 0.35);
  color: #6b4e00;
}

.launch-highlight {
  background: linear-gradient(135deg, rgba(6, 168, 184, 0.15), rgba(201, 162, 74, 0.12));
  border: 1px solid rgba(6, 168, 184, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  display: inline-block;
  color: #06a8b8;
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-primary {
  background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
  border: 1px solid rgba(16, 23, 35, 0.12);
  color: #fff !important;
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-gold {
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.2), rgba(229, 207, 138, 0.18));
  border: 1px solid rgba(201, 162, 74, 0.35);
  color: #111827;
}

.btn-gold:hover {
  filter: brightness(1.02);
}

gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.55), transparent);
}

.wave {
  background-image: radial-gradient(circle at 0 0, rgba(16, 23, 35, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 0 0, rgba(16, 23, 35, 0.06) 0 2px, transparent 3px);
  background-size: 70px 70px, 110px 110px;
  background-position: 0 0, 35px 35px;
  opacity: 0.1;
  mask-image: radial-gradient(900px 520px at 20% 10%, black 35%, transparent 75%);
}

/* Tier highlight (clear but still premium) */
.tier-highlight{
  box-shadow:
    0 0 0 3px rgba(201,162,74,.85),
    0 10px 30px rgba(201,162,74,.25),
    0 18px 40px rgba(16,23,35,.12);
  border-color: rgba(201,162,74,.85) !important;
}

/* Tooltip (desktop hover) for asterisk links — keeps anchor behavior */
.tipwrap{ position: relative; display: inline-flex; align-items: baseline; z-index: 200; }
.tiplink{ text-decoration: none; border-bottom: 1px solid rgba(201,162,74,.75); padding-bottom: 1px; margin-left: 2px; }
.tipbubble{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  max-width: min(340px, 85vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(17,24,39,.96);
  color: rgba(255,255,255,.95);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  box-shadow: 0 18px 40px rgba(16,23,35,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
  z-index: 9999;
}
.tipbubble::after{
  content:"";
  position:absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: rgba(17,24,39,.96);
}
@media (hover:hover) and (pointer:fine){
  .tipwrap:hover .tipbubble,
  .tipwrap:focus-within .tipbubble{
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
  }
}

/* Ensure tooltips can rise above neighboring tier cards */
.tier-card{ 
  position: relative; 
  z-index: 0; 
  overflow: visible;
  transition: all 0.2s ease;
}
@media (hover:hover) and (pointer:fine){
  .tier-card:hover{ z-index: 100; }
}

/* Align tooltip wrapper items with list items */
.tipwrap{
  display: inline-flex;
  align-items: baseline;
}

/* Better scroll positioning for FAQ anchors */
#faq-archival, #faq-uv{ scroll-margin-top: 140px; }

/* Intent card selection UI */
.intent-card {
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 23, 35, 0.08);
  transition: all 0.2s ease;
}

.intent-card:hover {
  box-shadow: 0 8px 16px rgba(16, 23, 35, 0.12);
}

.intent-card.selected {
  border-color: #c9a24a !important;
  border-width: 2px !important;
  background: rgba(229, 207, 138, 0.2) !important;
  box-shadow: 0 8px 16px rgba(201, 162, 74, 0.15);
}

.intent-card.selected > div:first-child {
  color: #c9a24a;
}

/* Tier highlight for recommended cards */
.tier-highlight {
  border-color: #c9a24a !important;
  background: rgba(229, 207, 138, 0.2) !important;
  box-shadow: 0 12px 24px rgba(201, 162, 74, 0.2);
  transform: scale(1.02);
}

section:nth-child(2) {
  background: linear-gradient(135deg, rgba(6, 168, 184, 0.03), rgba(201, 162, 74, 0.04));
}

section:nth-child(4) {
  background: linear-gradient(135deg, rgba(95, 166, 154, 0.04), rgba(255, 107, 91, 0.03));
}
