/* ==========================================================================
   1. DESIGN TOKENS ("STARLIGHT & VELLUM" + "ORBITAL MINIMAL") & BASE STYLES
   ========================================================================== */
:root {
  --bg-canvas: #12141A;
  --bg-surface: #191C24;
  --hairline: rgba(242, 237, 226, 0.11);

  --text-primary: #F2EDE2;
  --text-secondary: #ABA599;
  --text-ink: #12141A;

  --accent-amber: #D49A42;
  --accent-amber-hover: #E0A850;
  --accent-amber-border: rgba(212, 154, 66, 0.35);
  --accent-amber-tint: rgba(212, 154, 66, 0.11);
  --accent-cyan: #64A6BD;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 34% at 50% 0%, rgba(212, 154, 66, 0.06) 0%, transparent 72%),
    var(--bg-canvas);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. SINGLE-COLUMN CENTERED CONTAINER
   ========================================================================== */
.shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 44px 20px 44px;
}

@media (min-width: 640px) {
  .shell {
    padding: 64px 24px 56px;
  }
}

/* ==========================================================================
   3. HEADER & LOCKED ASTROLABE-SHIELD CREST
   ========================================================================== */
.site-header {
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

@media (min-width: 640px) {
  .brand-lockup {
    gap: 18px;
  }
}

.crest-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 640px) {
  .crest-logo {
    width: 88px;
    height: 88px;
  }
}

.brand-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .brand-stack {
    gap: 10px;
  }
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .brand-title {
    font-size: 1.85rem;
  }
}

.brand-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .brand-meta {
    font-size: 12px;
  }
}

/* Orbital Horizon SVG Curve Divider */
.orbital-horizon {
  margin: 34px 0 36px;
  width: 100%;
}

@media (min-width: 640px) {
  .orbital-horizon {
    margin: 42px 0 44px;
  }
}

.orbital-horizon svg {
  display: block;
  width: 100%;
  height: 32px;
  overflow: visible;
}

/* ==========================================================================
   4. EDITORIAL STORY ("THE STUDIO")
   ========================================================================== */
.studio-story {
  margin-bottom: 44px;
}

@media (min-width: 640px) {
  .studio-story {
    margin-bottom: 52px;
  }
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.studio-copy {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .studio-copy {
    font-size: 17px;
  }
}

/* ==========================================================================
   5. FLAGSHIP RELEASE SPOTLIGHT
   ========================================================================== */
.flagship-section {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 700px) {
  .flagship-section {
    padding: 48px 0;
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
  }
}

.screenshot-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.screenshot-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(212, 154, 66, 0.18) 0%, transparent 62%),
    radial-gradient(circle at 82% 76%, rgba(100, 166, 189, 0.12) 0%, transparent 56%),
    linear-gradient(175deg, #1A1E28 0%, #111319 100%);
}

.screenshot-fallback svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flagship-tag {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.flagship-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .flagship-title {
    font-size: 1.42rem;
  }
}

.flagship-desc {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.flagship-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  background-color: var(--accent-amber);
  color: var(--text-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px rgba(212, 154, 66, 0.22);
  transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.flagship-cta:hover {
  background-color: var(--accent-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(212, 154, 66, 0.32);
}

/* ==========================================================================
   6. PROMINENT SUPPORT / TIP JAR SECTION
   ========================================================================== */
.support-card {
  position: relative;
  margin-top: 44px;
  padding: 28px 22px 26px;
  border-radius: 14px;
  border: 1px solid var(--accent-amber-border);
  background:
    radial-gradient(ellipse 85% 70% at 50% 0%, rgba(212, 154, 66, 0.13) 0%, transparent 72%),
    var(--bg-surface);
  overflow: hidden;
}

@media (min-width: 640px) {
  .support-card {
    margin-top: 52px;
    padding: 34px 32px 30px;
  }
}

/* 2px Top Lantern-Amber Highlight Bar */
.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(212, 154, 66, 0.25), var(--accent-amber), rgba(212, 154, 66, 0.25));
}

.support-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.38rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.support-copy {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tip-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .tip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tip-btn:hover {
  transform: translateY(-2px);
}

.tip-btn-solid {
  background-color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  color: var(--text-ink);
  box-shadow: 0 6px 18px rgba(212, 154, 66, 0.24);
}

.tip-btn-solid:hover {
  background-color: var(--accent-amber-hover);
  border-color: var(--accent-amber-hover);
  box-shadow: 0 10px 24px rgba(212, 154, 66, 0.34);
}

.tip-btn-outline {
  background-color: var(--accent-amber-tint);
  border: 1px solid var(--accent-amber-border);
  color: var(--text-primary);
}

.tip-btn-outline:hover {
  background-color: rgba(212, 154, 66, 0.2);
  border-color: var(--accent-amber);
}

.support-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. MINIMAL FOOTER & PRIVACY DIALOG MODAL
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer-link {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--accent-amber);
}

.privacy-trigger {
  appearance: none;
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.privacy-trigger:hover {
  color: var(--accent-amber);
}

.site-version {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 226, 0.3);
  user-select: all;
}

/* Native HTML <dialog> Privacy Modal */
dialog.privacy-dialog {
  margin: auto;
  width: calc(100% - 32px);
  max-width: 480px;
  border: 1px solid var(--accent-amber-border);
  border-radius: 14px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  padding: 26px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

dialog.privacy-dialog::backdrop {
  background-color: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dialog-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.dialog-close {
  appearance: none;
  background-color: transparent;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dialog-close:hover {
  color: var(--text-primary);
  border-color: var(--accent-amber-border);
}

.dialog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.dialog-list li {
  position: relative;
  padding-left: 16px;
}

.dialog-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: var(--accent-amber);
}

/* Non-blocking placeholder notice if tip buttons are clicked before URLs are added */
.tip-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100vw - 32px);
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-amber-border);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  display: none;
}

.tip-notice.is-visible {
  display: block;
}
