/* ============================================================
   PartyFirst™ — styles.css
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ── Tokens ── */
:root {
  --primary:        #2563eb;
  --primary-dark:   #1d4ed8;
  --primary-light:  #eff6ff;
  --primary-text:   #ffffff;

  --surface:        #ffffff;
  --surface-muted:  #f8fafc;
  --surface-alt:    #f1f5f9;

  --border:         #e2e8f0;
  --text:           #0f172a;
  --text-muted:     #64748b;
  --text-subtle:    #94a3b8;

  --dark-bg:        #020617;
  --dark-surface:   #0f172a;
  --dark-border:    #1e293b;
  --dark-text:      #f1f5f9;
  --dark-muted:     #94a3b8;

  --green:          #10b981;
  --green-light:    #d1fae5;
  --yellow:         #f59e0b;
  --purple:         #7c3aed;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'Menlo', 'Monaco', 'Courier New', monospace;

  --radius-sm:  0.375rem;
  --radius:     0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow:     0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);

  --nav-h: 64px;
  --container-max: 1200px;
}

/* ── Base ── */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}

/* ── Pages (SPA routing) ── */
.page { display: none; }
.page.active { display: block; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Grid utilities ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Scroll-reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgb(255 255 255 / .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: .375rem;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: .625rem .75rem;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.nav-mobile a:hover { background: var(--surface-alt); color: var(--text); }
.nav-mobile .nav-mobile-actions {
  display: flex;
  gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-hamburger { display: block; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1.125rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-alt); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: transparent;
  font-weight: 700;
}
.btn-secondary:hover { background: var(--surface-alt); }
.btn-lg {
  padding: .875rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}
.btn-sm {
  padding: .375rem .875rem;
  font-size: .8125rem;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}
.badge-blue { background: var(--primary-light); color: var(--primary); border: 1px solid rgb(37 99 235 / .2); }
.badge-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.badge-dark { background: var(--dark-surface); color: var(--dark-text); }
.badge-gray { background: var(--surface-alt); color: var(--text-muted); }
.badge-purple { background: #ede9fe; color: var(--purple); }
.badge-vip { background: #ede9fe; color: var(--purple); }
.badge-ultravip { background: var(--primary); color: #fff; }
.badge-ga { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.card-hover { transition: border-color .2s, box-shadow .2s; }
.card-hover:hover { border-color: rgb(37 99 235 / .4); box-shadow: var(--shadow); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.5rem 1.5rem 0; }
.card-footer { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.25rem; }

/* ── Sections ── */
.section { padding-block: 5rem; }
.section-sm { padding-block: 3rem; }
.section-lg { padding-block: 7rem; }
.section-muted { background: var(--surface-muted); border-block: 1px solid var(--border); }
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
.section-primary {
  background: var(--primary);
  color: #fff;
}

.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-inline: auto; }

/* ── Hero ── */
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--surface) 0%, rgb(255 255 255 / .9) 50%, var(--surface) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin-inline: auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgb(37 99 235 / .2);
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 38rem;
  margin-inline: auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-fine {
  font-size: .8125rem;
  color: var(--text-subtle);
  font-style: italic;
}

/* ── Logo wall ── */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: .45;
  filter: grayscale(1) contrast(2);
}
.logo-wall-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: -.04em;
}
.logo-wall-icon {
  width: 22px; height: 22px;
  background: var(--text);
  border-radius: 4px;
  opacity: .5;
}
.logo-wall-caption {
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Feature cards ── */
.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 1rem;
}
.feature-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card-desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Security section ── */
.security-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.security-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .35;
  mix-blend-mode: luminosity;
}
.security-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark-bg) 30%, transparent);
}
.security-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .15);
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
}
.security-check-list { display: flex; flex-direction: column; gap: 1rem; }
.security-check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--dark-muted);
  font-size: .9375rem;
}
.check-icon {
  width: 24px; height: 24px;
  background: rgb(16 185 129 / .15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .125rem;
  font-size: .75rem;
  color: var(--green);
}

/* ── Roadmap ── */
.roadmap-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: box-shadow .2s;
}
.roadmap-item:hover { box-shadow: var(--shadow); }
.roadmap-date { flex-shrink: 0; font-weight: 700; color: var(--primary); min-width: 6rem; padding-top: .125rem; }
.roadmap-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .375rem; }
.roadmap-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.6; margin-bottom: .75rem; }
.roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: var(--surface-alt);
  border-radius: var(--radius-full);
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Testimonial ── */
.testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.testimonial-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), #6366f1, #7c3aed);
}
.testimonial-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 4rem;
}
.testimonial-avatar {
  width: 140px; height: 140px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { display: flex; gap: .25rem; margin-bottom: 1.25rem; }
.star { color: var(--yellow); font-size: 1.25rem; }
.testimonial-quote {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}
.testimonial-author { font-weight: 700; font-size: 1rem; }
.testimonial-role { color: var(--text-muted); font-size: .9375rem; }

@media (max-width: 768px) {
  .testimonial-inner { flex-direction: column; padding: 2rem; text-align: center; }
  .stars { justify-content: center; }
}

/* ── Pricing ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.pricing-card-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-tier { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .25rem;
}
.pricing-period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9375rem; margin-top: 1rem; margin-bottom: 1.5rem; }
.pricing-features { flex: 1; display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.5rem; }
.pricing-feature { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; color: var(--text-muted); }
.pricing-feature-check { color: var(--primary); font-size: .875rem; flex-shrink: 0; }

/* ── CTA Box ── */
.cta-box {
  background: var(--primary);
  border-radius: var(--radius-2xl);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-box-glow-1 {
  position: absolute;
  top: -5rem; right: -5rem;
  width: 16rem; height: 16rem;
  background: rgb(255 255 255 / .08);
  border-radius: var(--radius-full);
  filter: blur(40px);
}
.cta-box-glow-2 {
  position: absolute;
  bottom: -5rem; left: -5rem;
  width: 16rem; height: 16rem;
  background: rgb(0 0 0 / .08);
  border-radius: var(--radius-full);
  filter: blur(40px);
}
.cta-box-content { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.cta-box p { font-size: 1.125rem; opacity: .9; margin-bottom: 2.5rem; max-width: 36rem; margin-inline: auto; margin-bottom: 2.5rem; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: .375rem; margin-bottom: 1rem; }
.form-label { font-size: .875rem; font-weight: 500; color: rgba(255 255 255 / .9); }
.form-input {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255 255 255 / .2);
  background: rgba(255 255 255 / .1);
  color: #fff;
  font: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .15s;
}
.form-input::placeholder { color: rgba(255 255 255 / .5); }
.form-input:focus { border-color: rgba(255 255 255 / .5); }
.form-input-dark {
  background: rgb(15 23 42 / .8);
  border: 1.5px solid var(--dark-border);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font: inherit;
  font-size: .9375rem;
  outline: none;
  transition: border-color .15s;
}
.form-input-dark::placeholder { color: var(--dark-muted); }
.form-input-dark:focus { border-color: var(--primary); }
.form-fine {
  font-size: .75rem;
  text-align: center;
  opacity: .7;
  margin-top: .75rem;
}

/* ── Success states ── */
.success-box {
  background: rgba(255 255 255 / .1);
  border: 1px solid rgba(255 255 255 / .2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
}
.success-icon {
  width: 3rem; height: 3rem;
  background: rgb(16 185 129 / .2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #6ee7b7;
  margin: 0 auto 1.25rem;
}
.success-box h3 { font-size: 1.375rem; font-weight: 700; margin-bottom: .75rem; }
.success-box p { opacity: .85; line-height: 1.65; font-size: .9375rem; }
.success-steps {
  background: rgba(255 255 255 / .08);
  border-top: 1px solid rgba(255 255 255 / .15);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  font-size: .875rem;
  opacity: .8;
  text-align: left;
}
.success-fine { font-size: .6875rem; opacity: .5; font-style: italic; margin-top: 1rem; }

/* ── Footer ── */
.footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding-block: 3rem;
  border-top: 1px solid var(--dark-border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: .5rem; }
.footer-logo-icon {
  width: 24px; height: 24px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-text);
  font-weight: 700;
  font-size: .875rem;
}
.footer-logo-name { color: var(--dark-text); font-weight: 700; }
.footer-copy { font-size: .875rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: .875rem; }
.footer-links a:hover { color: var(--dark-text); }
.footer-fine {
  border-top: 1px solid var(--dark-border);
  margin-top: 2rem;
  padding-top: 2rem;
  font-size: .75rem;
  text-align: center;
  color: rgb(255 255 255 / .25);
  line-height: 1.8;
}

/* ── About page ── */
.prose-section {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.0625rem;
}
.prose-section p + p { margin-top: 1.25rem; }

.stat-big { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .375rem; }
.stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

.exec-card { display: flex; gap: 1.5rem; align-items: flex-start; }
.exec-img {
  width: 160px; height: 160px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.exec-name { font-size: 1.125rem; font-weight: 700; margin-bottom: .25rem; }
.exec-title { color: var(--primary); font-weight: 600; font-size: .9375rem; margin-bottom: .75rem; }
.exec-bio { color: var(--text-muted); line-height: 1.65; font-size: .9375rem; }

.press-quote { font-size: 1.125rem; font-style: italic; font-weight: 500; margin-bottom: .5rem; line-height: 1.55; }
.press-source { font-weight: 700; color: var(--text-muted); font-size: .875rem; }

/* ── Product page ── */
.product-tour-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.product-tour-row.flip { flex-direction: row-reverse; }
.product-img-wrap {
  flex: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.product-img-wrap img { width: 100%; display: block; }
.product-tour-text { flex: 1; }
.product-tour-text h3 { margin-bottom: 1rem; }
.product-tour-text p { color: var(--text-muted); line-height: 1.7; font-size: 1.0625rem; }

.platform-component-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
}
.platform-check { color: var(--primary); font-size: 1.125rem; }

@media (max-width: 768px) {
  .product-tour-row,
  .product-tour-row.flip { flex-direction: column; gap: 2rem; }
}

/* ── Blog ── */
.featured-post-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color .2s;
}
.featured-post-card:hover { border-color: rgb(37 99 235 / .5); }
.featured-post-img {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.featured-post-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.featured-post-card:hover .featured-post-img img { transform: scale(1.05); }
.featured-post-body { flex: 1; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.post-category {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.post-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
  transition: color .15s;
}
.featured-post-card:hover .post-title,
.post-card:hover .post-title { color: var(--primary); }
.post-excerpt { color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; font-size: .9375rem; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--text-muted); gap: 1rem; flex-wrap: wrap; }
.post-meta-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color .2s;
}
.post-card:hover { border-color: rgb(37 99 235 / .5); }
.post-card-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.post-card-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; }
.post-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--text-muted); display: flex; justify-content: space-between; }

@media (max-width: 768px) {
  .featured-post-card { flex-direction: column; }
  .featured-post-img { flex: none; min-height: 240px; }
  .featured-post-body { padding: 1.5rem; }
}

.newsletter-section {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-block: 5rem;
  text-align: center;
}
.newsletter-form { display: flex; gap: .75rem; max-width: 28rem; margin-inline: auto; flex-wrap: wrap; }
.newsletter-form .form-input-dark { flex: 1; min-width: 0; }
.newsletter-subscribed {
  display: inline-block;
  background: rgba(37 99 235 / .15);
  border: 1px solid rgba(37 99 235 / .3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 2rem;
}
.newsletter-subscribed strong { display: block; font-size: 1.0625rem; margin-bottom: .25rem; }
.newsletter-fine { font-size: .75rem; color: var(--dark-muted); margin-top: 1.25rem; font-style: italic; }

/* ── Blog post ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color .15s;
}
.back-link:hover { color: var(--primary); }

.post-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  margin-block: 2.5rem;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Prose ── */
.prose {
  line-height: 1.8;
  color: var(--text);
  font-size: 1.0625rem;
}
.prose p { margin-bottom: 1.25rem; }
.prose h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin-top: 2rem; margin-bottom: .75rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 1.25rem; }
.prose li > p { margin-bottom: .375rem; }
.prose li strong { display: block; font-size: 1rem; margin-bottom: .25rem; }
.prose hr { border: none; border-top: 1px solid var(--border); margin-block: 2rem; }
.prose .prose-fine { font-size: .875rem; color: var(--text-muted); font-style: italic; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-block: 1.5rem;
  font-style: italic;
}
.prose blockquote p { margin-bottom: 0; }
.stats-grid {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-block: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stats-grid-item .num { font-size: 2rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .25rem; }
.stats-grid-item .lbl { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Developers page ── */
.dev-hero {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark-border);
}
.dev-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgb(255 255 255 / .06);
  border: 1px solid var(--dark-border);
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark-muted);
  margin-bottom: 1.25rem;
}
.dev-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }
.dev-hero p { font-size: 1.125rem; color: var(--dark-muted); max-width: 36rem; }

.dev-layout { display: flex; gap: 3rem; padding-block: 3rem; }
.dev-sidebar { width: 220px; flex-shrink: 0; }
.dev-sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.dev-sidebar-title {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding: 0 .75rem;
}
.tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .875rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: left;
  margin-bottom: .125rem;
}
.tab-btn:hover { background: var(--surface-alt); color: var(--text); }
.tab-btn.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.tab-icon { font-size: 1rem; }

.dev-content { flex: 1; min-width: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.tab-panel p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; font-size: .9375rem; }

.step-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.step-num {
  width: 32px; height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: .375rem; }
.step-desc { color: var(--text-muted); font-size: .9375rem; }

.auth-box {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.auth-factor { display: flex; align-items: flex-start; gap: .75rem; }
.auth-icon { color: var(--primary); font-size: 1.125rem; flex-shrink: 0; margin-top: .125rem; }
.auth-factor strong { display: block; font-size: .9375rem; margin-bottom: .25rem; }
.auth-factor span { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }

.api-endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.api-endpoint-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}
.method-badge {
  background: rgb(16 185 129 / .15);
  color: #059669;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: .25rem .625rem;
  border-radius: var(--radius-sm);
}
.api-endpoint-path { font-family: var(--font-mono); font-size: .9375rem; font-weight: 600; }
.api-endpoint-body { padding: 1.5rem; }
.api-endpoint-body p { margin-bottom: 1rem; }
.code-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }

.code-block {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.65;
  overflow-x: auto;
}

.sdk-list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.sdk-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 600;
}
.coming-soon-badge {
  font-size: .6875rem;
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: .25rem .625rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.api-note {
  background: var(--primary-light);
  border: 1px solid rgb(37 99 235 / .2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: .875rem;
  color: var(--text);
}

.rate-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rate-table th { background: var(--surface-muted); padding: .75rem 1rem; font-size: .8125rem; font-weight: 600; text-align: left; border-bottom: 1px solid var(--border); }
.rate-table td { padding: 1rem; font-size: .9375rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.rate-table td:last-child { font-weight: 600; color: var(--text); }
.rate-table td.primary-val { color: var(--primary); }
.rate-table tr:last-child td { border-bottom: none; }

.changelog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.changelog-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.changelog-dot {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.changelog-dot.latest { border-color: var(--primary); background: var(--primary-light); }
.changelog-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  background: var(--surface);
}
.changelog-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.changelog-version { font-weight: 700; font-size: 1.0625rem; }
.changelog-date { font-size: .8125rem; color: var(--text-muted); }
.changelog-desc { font-size: .9375rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .dev-layout { flex-direction: column; }
  .dev-sidebar { width: 100%; }
  .dev-sidebar-sticky { position: static; }
  .dev-tab-scroll { display: flex; overflow-x: auto; gap: .5rem; padding-bottom: .5rem; }
  .tab-btn { white-space: nowrap; width: auto; }
  .sdk-list { grid-template-columns: 1fr; }
}

/* ── Drink menu ── */
.drink-hero-info {
  background: rgb(255 255 255 / .85);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: left;
}
.drink-info-icon { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; margin-top: .125rem; }
.drink-info-text { color: var(--text-muted); font-size: .9375rem; line-height: 1.7; }

.drink-section { margin-bottom: 5rem; }
.drink-section-header { margin-bottom: 2rem; }
.drink-section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .5rem; }
.drink-section-header p { color: var(--text-muted); font-style: italic; font-size: 1rem; }

.drink-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color .2s;
}
.drink-card:hover { border-color: rgb(37 99 235 / .3); }
.drink-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .75rem; }
.drink-name { font-size: 1.125rem; font-weight: 700; }
.drink-desc { font-size: .9375rem; color: var(--text-muted); line-height: 1.65; }

.drink-cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding-block: 5rem;
  position: relative;
  overflow: hidden;
}
.drink-cta-glow-1 {
  position: absolute; top: -5rem; right: -5rem;
  width: 16rem; height: 16rem;
  background: rgba(255 255 255 / .08);
  border-radius: var(--radius-full);
  filter: blur(40px);
}
.drink-cta-glow-2 {
  position: absolute; bottom: -5rem; left: -5rem;
  width: 16rem; height: 16rem;
  background: rgba(0 0 0 / .08);
  border-radius: var(--radius-full);
  filter: blur(40px);
}
.drink-cta-content { position: relative; z-index: 1; }
.drink-cta h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1rem; }
.drink-cta p { font-size: 1.125rem; opacity: .9; margin-bottom: 2.5rem; }
.drink-footer-fine {
  font-size: .6875rem;
  text-align: center;
  color: rgb(255 255 255 / .25);
  line-height: 1.9;
  max-width: 60rem;
  margin-inline: auto;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
}

/* ── Utility ── */
.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.italic { font-style: italic; }
.font-mono { font-family: var(--font-mono); }
