/* =========================================
   RISE UNTOLD — GLOBAL BASELINE
========================================= */

:root {
  --black: #070707;
  --charcoal: #111214;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);

  --gold: #d6a84f;
  --gold-soft: #f3d58a;
  --text: #f5f5f5;
  --muted: #b7b7b7;

  --partner-bar-height: 34px;
  --site-header-height: 75px;

  --page-padding: 6%;
  --radius-lg: 28px;
  --radius-md: 22px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(
    var(--partner-bar-height) + var(--site-header-height) + 16px
  );
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: calc(
    var(--partner-bar-height) + var(--site-header-height)
  );
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(214, 168, 79, 0.18), transparent 35%),
    linear-gradient(180deg, #050505, #111214 55%, #050505);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* =========================================
   PARTNER BAR
========================================= */

.top-partner-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 6px 15px;
  color: #080808;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(90deg, #d6a84f, #8c6b2f);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.top-partner-bar span {
  font-weight: 800;
}

.top-partner-bar a:hover {
  opacity: 0.78;
}

/* =========================================
   HEADER + NAV
========================================= */

.site-header {
  position: fixed;
  top: var(--partner-bar-height);
  left: 0;
  z-index: 2999;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 7, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--site-header-height);
  padding: 14px var(--page-padding);
}

.logo {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.logo span {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--gold-soft);
  font-size: 21px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
  min-width: 0;
  margin-left: auto;
}

.main-nav > a {
  flex: 0 0 auto;
  color: #d7d4cd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.25px;
  white-space: nowrap;
}

.main-nav > a:hover {
  color: var(--gold-soft);
}

/* =========================================
   NAV SEARCH
========================================= */

.nav-search {
  position: relative;
  flex: 1 1 190px;
  min-width: 155px;
  max-width: 215px;
}

.nav-search input {
  width: 100%;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid rgba(243, 213, 138, 0.35);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
}

.nav-search input::placeholder {
  color: var(--muted);
}

.nav-search input:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.15);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 4000;
  display: none;
  width: 310px;
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #111214;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.50);
}

.site-search-results.open {
  display: block;
}

.site-search-result {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-search-result:last-child {
  border-bottom: 0;
}

.site-search-result:hover {
  background: rgba(214, 168, 79, 0.10);
}

.site-search-result strong,
.site-search-result span {
  display: block;
}

.site-search-result strong {
  color: var(--gold-soft);
  font-size: 14px;
}

.site-search-result span,
.site-search-message {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.site-search-message {
  padding: 14px 15px;
}

/* =========================================
   TYPOGRAPHY + BUTTONS
========================================= */

.eyebrow,
.category-kicker,
.tool-label {
  margin: 0;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #070707;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

.btn.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   HOMEPAGE
========================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: center;
  min-height: 78vh;
  padding: 90px var(--page-padding) 70px;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card,
.tool-card,
.category-box,
.glass-list,
.youtube-section,
.tool-panel,
.result-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card {
  padding: 32px;
  border-radius: var(--radius-lg);
}

.hero-card h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 38px);
}

.hero-card > p:not(.eyebrow) {
  color: var(--gold-soft);
  font-size: 22px;
  font-weight: 700;
}

.hero-card button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  color: #080808;
  font-weight: 900;
  background: var(--gold);
}

.ad-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px var(--page-padding);
}

.section,
.split-section {
  padding: 80px var(--page-padding);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading > p:last-child,
.split-section > div > p:last-child,
.youtube-section > p:not(.eyebrow) {
  color: var(--muted);
}

/* Older category layout support */

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-box {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.category-box h3 {
  margin-top: 8px;
  color: var(--gold-soft);
  font-size: 28px;
}

.category-box > p:not(.category-kicker) {
  color: var(--muted);
}

.category-links {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-links a span {
  flex: 0 0 auto;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.category-links a:hover {
  border-color: rgba(214, 168, 79, 0.55);
  background: rgba(214, 168, 79, 0.08);
  transform: translateX(3px);
}

/* Full tools growth-plan index */

.tool-category-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.tool-category-section + .tool-category-section {
  padding-top: 58px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

a.tool-card:hover {
  border-color: rgba(214, 168, 79, 0.55);
  transform: translateY(-5px);
}

.tool-card h3 {
  margin-top: 8px;
  color: var(--gold-soft);
}

.tool-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.planned-tool {
  opacity: 0.72;
  cursor: default;
}

.planned-tool::after {
  content: "In development";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(243, 213, 138, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: rgba(214, 168, 79, 0.10);
}

.planned-tool .tool-label {
  padding-right: 105px;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
}

.glass-list {
  padding: 24px;
  border-radius: 24px;
}

.glass-list p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
}

.glass-list p:last-child {
  border-bottom: 0;
}

.youtube-section {
  margin: 70px var(--page-padding);
  padding: 70px var(--page-padding);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* =========================================
   FOOTER
========================================= */

footer,
.site-footer {
  padding: 60px var(--page-padding) 30px;
  border-top: 1px solid var(--border);
  background: #050505;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

footer p,
footer a {
  color: var(--muted);
}

footer a {
  display: block;
  margin: 8px 0;
}

footer a:hover {
  color: var(--gold-soft);
}

footer h3,
footer h4 {
  color: var(--gold-soft);
}

.copyright {
  margin-top: 30px;
  font-size: 14px;
}

/* =========================================
   SHARE MENU
========================================= */

.share-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
}

.share-btn {
  position: static;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  color: #070707;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.40);
}

.share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: none;
  width: 190px;
  overflow: hidden;
  border: 1px solid rgba(243, 213, 138, 0.30);
  border-radius: 18px;
  background: #111214;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.55);
}

.share-menu.open {
  display: block;
}

.share-menu a,
.share-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  background: transparent;
}

.share-menu a:last-child,
.share-menu button:last-child {
  border-bottom: 0;
}

.share-menu a:hover,
.share-menu button:hover {
  color: var(--gold-soft);
  background: rgba(214, 168, 79, 0.14);
}

/* =========================================
   REUSABLE TOOL PAGE BASELINE
========================================= */

.tool-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding: 70px var(--page-padding) 40px;
}

.tool-panel,
.result-card {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.result-card {
  margin: 20px var(--page-padding) 50px;
}

.tool-panel label {
  display: block;
  margin-top: 10px;
  color: var(--gold-soft);
  font-weight: 800;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
}

.tool-panel select option {
  color: var(--text);
  background: var(--charcoal);
}

.generated-box {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
}

.result-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(214, 168, 79, 0.12);
}

.lesson-output {
  margin-bottom: 24px;
}

.lesson-output h2 {
  margin-top: 0;
  color: #ffffff;
}

.lesson-output p {
  color: var(--gold-soft);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 980px) {
  :root {
    --site-header-height: 62px;
    --page-padding: 5%;
  }

  .site-header-inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: var(--site-header-height);
    padding: 12px var(--page-padding);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin: 0;
    padding-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-search {
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  .nav-search input {
    min-height: 42px;
    font-size: 14px;
  }

  .site-search-results {
    position: static;
    width: 100%;
    max-height: 280px;
    margin-top: 8px;
  }

  .hero,
  .split-section,
  .tool-hero {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .youtube-section {
    margin: 50px var(--page-padding);
    padding: 52px var(--page-padding);
  }
}

@media (max-width: 520px) {
  .top-partner-bar {
    gap: 8px;
    padding: 7px 10px;
    font-size: 14px;
    line-height: 1.4;
  }

  h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 17px;
  }

  .section,
  .split-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .tool-category-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .category-box,
  .hero-card,
  .tool-panel,
  .result-card,
  .tool-card {
    padding: 24px;
  }

  .category-links a {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-links a span {
    text-align: left;
  }

  .result-card {
    margin-left: var(--page-padding);
    margin-right: var(--page-padding);
  }

  .share-wrap {
    right: 14px;
    bottom: 14px;
  }

  .share-menu {
    width: 180px;
  }

  .planned-tool::after {
    top: 14px;
    right: 14px;
  }
}