/* =========================================
   SG Fundasy — Global Styles (site.css)
   Shared across ALL pages
   ========================================= */

/* ---------- Theme Variables ---------- */
:root {
  --bg-main: #05060a;
  --bg-elevated: #0c1019;
  --bg-soft: #111624;
  --border-subtle: #262c3d;

  --accent: #3bb7a9;
  --accent-soft: rgba(59, 183, 169, 0.16);

  --text-main: #f5f7ff;
  --text-muted: #a3a8c1;
  --text-soft: #7f849a;

  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.7);

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* ---------- Base Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Base Page ---------- */
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, #161b30 0, transparent 45%),
    radial-gradient(circle at bottom, #05060a 0, #020309 50%, #000 100%);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;

  /* Important because footer is fixed */
  padding-bottom: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =========================================
   Header / Nav (shared)
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 12, 0.94),
    rgba(4, 6, 12, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(21, 26, 45, 0.9);
}

.top-bar {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

.tagline-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 57, 87, 0.85);
  background: rgba(10, 13, 24, 0.95);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--text-soft);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .divider {
  color: var(--text-soft);
}

/* Active link (for later PHP "current page" highlight) */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* =========================================
   Layout / Typography (shared)
   ========================================= */
.wrapper {
  /* Use homepage width by default */
  max-width: 960px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 3.2rem;
}
 .wrapper-wide {
  max-width: 100%;
  padding: 2.4rem 1rem 3rem;
}

section {
  margin-bottom: 2.6rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 3.3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

p {
  font-size: 0.98rem;
  color: var(--text-main);
}

p + p {
  margin-top: 0.75rem;
}

.muted {
  color: var(--text-muted);
}

/* =========================================
   Shared Components (cards, shells, buttons)
   ========================================= */
   /* Auth forms */
.form-shell {
  max-width: 460px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(49, 57, 87, 0.85);
  background: rgba(10, 13, 24, 0.95);
  color: var(--text-main);
  outline: none;
}

.input:focus {
  border-color: rgba(59, 183, 169, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 183, 169, 0.12);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.linkish {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18rem;
}
.section-shell {
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 22, 40, 0.98),
    rgba(10, 13, 24, 0.98)
  );
  border: 1px solid rgba(38, 42, 66, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
}

.section-shell + .section-shell {
  margin-top: 1.2rem;
}

.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.card {
  background: linear-gradient(145deg, #121829, #090c16);
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(49, 58, 90, 0.95);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.card p {
  font-size: 0.94rem;
}

.card p + p {
  margin-top: 0.45rem;
}

hr {
  border: none;
  border-top: 1px dashed rgba(60, 68, 104, 0.9);
  margin: 1.9rem 0 1.7rem;
}

/* Lists (homepage + price targets explanation cards) */
ul {
  list-style: none;
  margin-top: 0.9rem;
}

ul li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-main);
}

ul li + li {
  margin-top: 0.35rem;
}

.bullet {
  width: 1.2rem;
  display: inline-block;
  text-align: center;
  color: var(--text-soft);
}

/* If you use <ul> inside .card on PriceTargets page */
.card ul {
  margin-top: 0.5rem;
  margin-left: 0;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    background-color 0.14s ease-out,
    border-color 0.14s ease-out;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6ce3d5);
  color: #041012;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(59, 183, 169, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(59, 183, 169, 0.7);
}

.btn-ghost {
  border-color: rgba(54, 64, 94, 0.9);
  background: rgba(10, 13, 24, 0.95);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  background: rgba(16, 21, 38, 0.98);
  transform: translateY(-1px);
}

/* Homepage specific helper classes (still reusable) */
.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

.discord-cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.discord-note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: rgba(7, 10, 20, 0.95);
  border-radius: 0.7rem;
  border: 1px dashed rgba(52, 60, 92, 0.9);
  padding: 0.55rem 0.7rem;
}

/* Homepage hero (you can keep it here; doesn't hurt) */
section[aria-labelledby="intro-heading"] {
  display: flex;
  justify-content: center;
}

.hero-shell {
  padding: 2.4rem 2.1rem 2.5rem;
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at top center, rgba(59, 183, 169, 0.25) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(26, 33, 61, 0.95) 0, #05060a 75%);
  border: 1px solid rgba(132, 199, 192, 0.65);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.9),
    0 0 110px rgba(59, 183, 169, 0.28);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-shell-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.1rem;
}

.hero-body {
  max-width: 40rem;
  margin: 0 auto;
}

.hero-body p {
  font-size: 0.98rem;
}

/* Disclaimer box (shared component) */
.disclaimer-box {
  background: linear-gradient(130deg, #0c1019, #05060a);
  border-radius: 1rem;
  border: 1px dashed rgba(76, 84, 118, 0.95);
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.disclaimer-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.disclaimer-box p + p {
  margin-top: 0.65rem;
}

/* =========================================
   Footer (shared)
   ========================================= */
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(25, 30, 48, 0.95);
  padding: 1.3rem 1.5rem 1.8rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: radial-gradient(circle at top, rgba(22, 28, 52, 0.6) 0, transparent 52%);
  z-index: 5;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18rem;
}

/* =========================================
   PriceTargets Table (page component, but ok to keep global for now)
   ========================================= */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(255, 255, 255, 0.04);
}

th {
  padding: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

th a {
  color: var(--text-soft);
}

th a:hover {
  color: var(--accent);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(59, 183, 169, 0.08);
  transition: 0.15s;
}

.ticker {
  font-weight: 650;
  color: var(--text-main);
}

.tier-badge {
  background: rgba(132, 199, 192, 0.18);
  border: 1px solid rgba(132, 199, 192, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
}

.risk-badge {
  background: rgba(255, 180, 60, 0.16);
  border: 1px solid rgba(255, 180, 60, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #ffb63c;
}

.price {
  font-weight: 650;
  color: #6ce3d5;
}

.price-error {
  color: var(--text-muted);
}

.upside {
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.upside.positive {
  background: rgba(37, 199, 110, 0.18);
  color: #22c55e;
}

.upside.negative {
  background: rgba(255, 86, 86, 0.18);
  color: #ef4444;
}

.no-data {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}
/* =========================================
   Blog 
   ========================================= */
.blog-hero {
  position: relative;
  margin-bottom: 2rem;
}

.blog-hero::after {
  content: "";
  display: block;
  width: 75%;
  height: 2px;
  margin-top: 14px;
  background: #D4AF37;
}
.blog-title {
  background: linear-gradient(90deg, #E7C873, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero .section-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.blog-hero h1 {
  margin: 0;
  line-height: 1.05;
}

.blog-hero .section-copy {
  margin-top: 1rem;
  max-width: 680px;
  line-height: 1.6;
  color: var(--text-soft);
}
/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  .wrapper,
  .wrapper-wide {
    padding-inline: 1.25rem;
    padding-top: 1.7rem;
  }

  .top-bar {
    padding-inline: 1.25rem;
  }

  .tagline-pill {
    display: none;
  }

  .hero-shell {
    padding: 2rem 1.5rem 2.2rem;
  }

  .section-shell {
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .cta-row,
  .discord-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-caption {
    text-align: center;
  }
}



@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}

