@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/Sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/Sora.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --nav: #1c1c1c;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --hover: #2e2e2e;
  --font: "Sora", "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* —— Nav —— */
.site-header {
  background: var(--nav);
  border-bottom: 1px solid #252525;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* —— Main —— */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-main--flush {
  padding-top: 1.25rem;
}

/* —— Home —— */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 2.5rem;
  padding: 0;
}

/* logo.png is a 2048×2048 square; the wordmark is a centered band
   (~13% of the height), so we crop the dead space via object-fit. */
.home-logo {
  width: min(300px, 76vw);
  height: 60px;
  object-fit: cover;
  object-position: center;
}

.home-tagline {
  margin: -1rem 0 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--hover);
  border-color: #3a3a3a;
}

.btn--primary {
  background: var(--surface);
}

.home-store {
  width: min(160px, 45vw);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-store:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* —— Featured (home) —— */
.featured {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-heading {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.featured-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.featured-logo {
  width: min(320px, 80%);
  height: 70px;
  object-fit: cover;
  object-position: center;
}

.featured-text {
  margin: 1.25rem 0 1.75rem;
  color: #c4c4c4;
  font-size: 0.925rem;
  line-height: 1.65;
  max-width: 30rem;
}

.featured-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.featured-more {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.featured-more:hover {
  color: var(--text);
}

/* —— Product page (/crownless) —— */
.product-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.product-page-logo {
  width: min(400px, 86vw);
  height: 88px;
  object-fit: cover;
  object-position: center;
}

/* —— App/support page (crownless) —— */
.app-page {
  max-width: 44rem;
}

.app-tagline {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-badge {
  display: block;
  margin-top: 1.5rem;
}

.store-badge img {
  width: min(160px, 45vw);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.7rem 1.3rem;
  background: #5865f2;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.discord-button:hover {
  background: #6c78f6;
  transform: translateY(-2px);
}

.discord-button svg {
  width: 20px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.support {
  margin-top: 3rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.contact-mail {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #3a3a3a;
  transition: text-decoration-color 0.2s ease;
}

.contact-mail:hover {
  text-decoration-color: var(--text);
}

.privacy-link {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.privacy-link a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.privacy-link a:hover {
  color: var(--text);
}

.about {
  margin-top: 3.5rem;
}

.about p {
  color: #c4c4c4;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  color: #c4c4c4;
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a4a4a;
}

.feature-list strong {
  color: var(--text);
  font-weight: 500;
}

.coming-soon {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

.faq {
  margin-top: 3.5rem;
}

.faq details {
  border-bottom: 1px solid #1e1e1e;
}

.faq details:first-of-type {
  border-top: 1px solid #1e1e1e;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.75rem 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #d6d6d6;
  position: relative;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary:hover {
  color: var(--text);
}

.faq details p,
.faq details ul {
  margin: 0 0 1rem;
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.faq details ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.faq details strong {
  color: #d6d6d6;
  font-weight: 500;
}

.faq details a {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq details a:hover {
  color: var(--text);
}

/* —— Products —— */
.page-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.page-lead {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.product-tile {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
}

a.product-tile:hover {
  background: var(--hover);
  border-color: #3a3a3a;
}

.product-tile-logo {
  width: 100%;
  height: 44px;
  object-fit: cover;
  object-position: center;
}

.product-tile--empty {
  pointer-events: none;
  opacity: 0.35;
}

/* —— Contact (empty) —— */
.contact-empty {
  min-height: 40vh;
}

/* —— Legal pages —— */
.legal {
  max-width: 40rem;
}

.legal h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 1.5rem;
}

.legal h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  color: #c4c4c4;
  font-size: 0.925rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal .placeholder {
  color: #f0c674;
  font-style: italic;
}

.legal a {
  color: #c8c8c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* —— Footer —— */
.site-footer {
  background: var(--nav);
  border-top: 1px solid #252525;
  padding: 1.75rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .nav-inner {
    height: 52px;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .site-main {
    padding: 2rem 1.25rem 3rem;
  }

  .home {
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
