:root {
  --bg: #070509;
  --bg-subtle: #0d0a12;
  --bg-card: rgba(22, 16, 30, 0.65);
  --bg-card-hover: rgba(30, 22, 42, 0.85);
  --bg-card-solid: #130e1c;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  
  --brand-primary: #e05368;
  --brand-gradient: linear-gradient(135deg, #fa706e 0%, #e05368 45%, #9b47d6 100%);
  --brand-glow: rgba(224, 83, 104, 0.35);
  --brand-purple: #9b47d6;
  --brand-gold: #d8b36e;
  --brand-cyan: #38bdf8;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(240, 113, 103, 0.4);
  --border-highlight: rgba(255, 255, 255, 0.2);

  --text-primary: #fbf9fa;
  --text-secondary: rgba(248, 244, 248, 0.78);
  --text-muted: rgba(248, 244, 248, 0.52);
  --text-faint: rgba(248, 244, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 45px rgba(224, 83, 104, 0.22);
  --shadow-purple-glow: 0 0 50px rgba(155, 71, 214, 0.22);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow backgrounds */
body::before {
  content: "";
  position: fixed;
  top: -15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100vw;
  height: 650px;
  background: radial-gradient(circle, rgba(224, 83, 104, 0.16) 0%, rgba(155, 71, 214, 0.11) 40%, rgba(7, 5, 9, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  right: -10vw;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 71, 214, 0.08) 0%, rgba(7, 5, 9, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(1140px, calc(100% - 3rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(14, 10, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 750;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(224, 83, 104, 0.35);
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.brand:hover .brand-icon {
  transform: scale(1.05) rotate(-2deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header {
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 16px var(--brand-glow);
  transition: all var(--transition-fast);
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224, 83, 104, 0.45);
}

/* Hero Section */
.hero {
  padding: 3rem 0 5rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.hero-pill:hover {
  border-color: var(--border-hover);
}

.hero-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero-pill-badge {
  background: linear-gradient(135deg, #fa706e, #e05368);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1.hero-title {
  margin: 0 auto 1.25rem;
  font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 22ch;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #fa706e 60%, #c471ed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff2db 10%, #d8b36e 70%, #b89e6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  margin: 0 auto 2.2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 38rem;
  font-weight: 400;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 26px var(--brand-glow), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(224, 83, 104, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-appstore:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.appstore-icon {
  flex-shrink: 0;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.appstore-eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.appstore-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(14px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0.5rem auto 0;
}

.hero-note strong {
  color: var(--text-secondary);
}

/* Feature Showcase Deck / Mockup Cards */
.showcase-wrapper {
  margin: 3.5rem auto 0;
  max-width: 1040px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.mockup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.mockup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.mockup-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.mockup-card.main-feature {
  grid-column: span 7;
}

.mockup-card.side-feature {
  grid-column: span 5;
}

.mockup-card.full-feature {
  grid-column: span 12;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.85rem;
}

.card-badge.gold {
  color: var(--brand-gold);
}

.card-badge.purple {
  color: #bf82f5;
}

.mockup-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.mockup-card p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Mini UI Widget Previews */
.ui-widget {
  background: rgba(10, 7, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wishlist-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  transition: background var(--transition-fast);
}

.wishlist-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wishlist-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2a1b38, #1a1224);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.wishlist-info {
  flex: 1;
  min-width: 0;
}

.wishlist-title {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wishlist-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.tag-claimed {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(224, 83, 104, 0.15);
  color: #fa706e;
  border: 1px solid rgba(224, 83, 104, 0.3);
}

.tag-fund {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(216, 179, 110, 0.15);
  color: #e5c589;
  border: 1px solid rgba(216, 179, 110, 0.3);
}

/* DNA Matrix Pills */
.dna-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dna-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-secondary);
}

.dna-pill span {
  font-size: 1rem;
}

/* Event Timeline item */
.event-widget {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-details h4 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 650;
}

.event-details p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.event-rsvp {
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Section Common Styling */
.section-header {
  text-align: center;
  margin: 5rem auto 3rem;
  max-width: 36rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.65rem;
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-desc {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 5rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 83, 104, 0.15), rgba(155, 71, 214, 0.15));
  border: 1px solid rgba(224, 83, 104, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.feature-box h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.feature-box p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Banner / Callout */
.cta-banner {
  margin: 4rem auto;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(224, 83, 104, 0.35) 0%, rgba(155, 71, 214, 0.2) 50%, rgba(7, 5, 9, 0.9) 100%),
    #130e1d;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(224, 83, 104, 0.4);
  margin-bottom: 1.5rem;
}

.cta-banner h2 {
  margin: 0 auto 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.cta-banner p {
  margin: 0 auto 2rem;
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

/* Legal & Document Layout */
.legal-wrapper {
  max-width: 46rem;
  margin: 2rem auto 5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
}

.legal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  margin: 0 0 0.4rem;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.legal-content h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin: 0.8rem 0 1.2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #ff8597;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand .brand {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-columns {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .mockup-card.main-feature,
  .mockup-card.side-feature {
    grid-column: span 12;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 2rem);
  }
  .header-container {
    padding: 0.6rem 1rem;
  }
  .nav {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    gap: 2rem;
  }
  .cta-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
