/* ================================
   Beadlight Base Styles
   ================================ */

:root {
  --ink: #202431;
  --muted: rgba(31, 36, 48, 0.68);
  --gold: #e7a637;
  --gold-dark: #a86423;
  --cream: #fff7e7;
  --panel: rgba(255, 255, 255, 0.62);
  --line: rgba(177, 122, 35, 0.15);
  --shadow: 0 24px 70px rgba(61, 45, 18, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f6ecd8;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 22%, rgba(231, 166, 55, 0.22), transparent 32%),
    radial-gradient(circle at 12% 8%, rgba(255, 244, 218, 0.9), transparent 38%),
    linear-gradient(135deg, #fff8ea 0%, #f3dfad 100%);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(112, 78, 29, 0.18) 1px, transparent 1px);
  background-size: 18px 18px;
}

h1,
h2,
h3,
.brand span,
.mini-roadmap strong {
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.page-glow {
  position: fixed;
  inset: auto -20% -30% auto;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(231, 166, 55, 0.18);
  filter: blur(80px);
  pointer-events: none;
}

/* ================================
   Header
   ================================ */

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.08rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(61, 45, 18, 0.18);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header nav a {
  color: rgba(31, 36, 48, 0.74);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
}

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

.nav-pill {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(61, 45, 18, 0.08);
}

/* ================================
   Buttons
   ================================ */

.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  font-weight: 950;
  font-size: 0.95rem;
  cursor: pointer;
}

.primary-button {
  background: linear-gradient(135deg, #ffd06f, var(--gold));
  color: #141922;
  box-shadow: 0 18px 40px rgba(217, 154, 40, 0.28);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ================================
   Homepage
   ================================ */

.home-hero-clean {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 90px;
  position: relative;
  z-index: 1;
}

.home-hero-inner {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero-clean h1 {
  margin: 0 0 26px;
  color: var(--ink);
  font-size: clamp(4rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.lead,
.home-hero-clean .lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

/* ================================
   Cards / Sections
   ================================ */

.feature-strip,
.content-section,
.download-section,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 80px;
}

.feature-strip article,
.content-section,
.download-section {
  border-radius: 34px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.feature-strip article {
  padding: 24px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(231, 166, 55, 0.16);
  color: var(--gold-dark);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-strip h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.feature-strip p,
.content-section p,
.download-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-section,
.download-section {
  padding: 42px;
  margin-bottom: 34px;
}

.split-section,
.roadmap-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
}

.content-section h2,
.download-section h2 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.mini-roadmap {
  display: grid;
  gap: 14px;
}

.mini-roadmap div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 252, 244, 0.82);
  border: 1px solid var(--line);
}

.mini-roadmap span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 90px;
  background: linear-gradient(135deg, rgba(255, 244, 218, 0.86), rgba(255, 255, 255, 0.54));
}

/* ================================
   Generic Page Shells
   ================================ */

.section-shell,
.support-page,
.roadmap-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 100px;
  position: relative;
  z-index: 1;
}

.roadmap-hero,
.support-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.roadmap-hero h1,
.support-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

/* ================================
   Footer
   ================================ */

.site-footer {
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(31, 36, 48, 0.56);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: rgba(31, 36, 48, 0.66);
  text-decoration: none;
  font-weight: 800;
}

/* ================================
   Forms / Support
   ================================ */

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.support-form-card,
.support-info-card,
.admin-panel,
.roadmap-filter-panel,
.roadmap-table-wrap {
  border-radius: 34px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.form-head h2,
.support-info-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.support-form-grid,
.admin-grid,
.roadmap-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-form-grid label,
.admin-grid label,
.roadmap-filters label {
  display: grid;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(31, 36, 48, 0.58);
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 244, 0.92);
  color: var(--ink);
  padding: 14px 15px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(217, 154, 40, 0.72);
  box-shadow: 0 0 0 4px rgba(217, 154, 40, 0.14);
}

.support-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.support-status,
.admin-status,
.admin-note {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.error-text {
  color: #b91c1c !important;
}

.hidden {
  display: none !important;
}

/* ================================
   Roadmap Table
   ================================ */

.current-sprint-card {
  display: inline-grid;
  gap: 4px;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(61, 45, 18, 0.1);
}

.current-sprint-card span {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
}

.current-sprint-card strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.roadmap-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 24px;
}

.roadmap-summary-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 40px rgba(61, 45, 18, 0.09);
}

.roadmap-summary-card span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.roadmap-table-wrap {
  padding: 0;
  overflow-x: auto;
}

.roadmap-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
}

.roadmap-table th {
  text-align: left;
  padding: 18px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(31, 36, 48, 0.62);
  background: rgba(255, 248, 232, 0.9);
  border-bottom: 1px solid var(--line);
}

.roadmap-table td {
  padding: 18px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: rgba(31, 36, 48, 0.76);
  font-size: 0.95rem;
  line-height: 1.5;
}

.roadmap-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.status-in-progress { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.status-planned { background: rgba(217, 154, 40, 0.18); color: #92400e; }
.status-under-consideration { background: rgba(107, 114, 128, 0.14); color: #4b5563; }
.status-released { background: rgba(22, 163, 74, 0.14); color: #15803d; }
.status-not-planned { background: rgba(180, 83, 9, 0.14); color: #92400e; }

.tag-pill,
.priority-pill {
  background: rgba(231, 166, 55, 0.15);
  color: #8a5b19;
}

.empty-state {
  border-radius: 20px;
  padding: 18px;
  color: rgba(31, 36, 48, 0.55);
  background: rgba(255, 255, 255, 0.36);
  border: 1px dashed var(--line);
  text-align: center;
}

/* ================================
   Mobile
   ================================ */

@media (max-width: 900px) {
  .feature-strip,
  .split-section,
  .roadmap-preview,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .roadmap-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    width: calc(100% - 32px);
    padding: 20px 0;
    align-items: center;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .site-header nav a:not(.nav-pill) {
    display: none;
  }

  .home-hero-clean,
  .feature-strip,
  .content-section,
  .download-section,
  .site-footer,
  .section-shell,
  .support-page,
  .roadmap-page {
    width: calc(100% - 32px);
  }

  .home-hero-clean {
    padding: 44px 0 60px;
  }

  .home-hero-clean h1,
  .roadmap-hero h1,
  .support-hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.8rem);
    line-height: 0.9;
  }

  .lead,
  .home-hero-clean .lead {
    font-size: 1.03rem;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .download-section .primary-button {
    width: 100%;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    padding-bottom: 54px;
  }

  .content-section,
  .download-section,
  .support-form-card,
  .support-info-card,
  .admin-panel,
  .roadmap-filter-panel {
    padding: 24px;
    border-radius: 28px;
  }

  .download-section,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-form-grid,
  .admin-grid,
  .roadmap-filters {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .roadmap-summary-grid {
    grid-template-columns: 1fr;
  }
}
