/*
 * Premium gold-and-white styling for the XPN Growth landing page.
 * Designed to highlight automated quantitative trading instances and user management flows.
 */

:root {
  --gold-900: #7c5414;
  --gold-800: #916a1f;
  --gold-700: #b28331;
  --gold-600: #c7983f;
  --gold-500: #dab25e;
  --gold-200: #eedebe;
  --gold-100: #f5ebd8;
  --gold-50: #fbf6ec;
  --ink: #1e1812;
  --ink-soft: #5a5145;
  --sand: #fdfaf5;
  --border: #e8dcc4;
  --shadow: 0 30px 80px rgba(30, 24, 18, 0.08);
  --font-display: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

main {
  display: block;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 108px;
  height: 108px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(156, 118, 40, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.link {
  font-weight: 700;
  color: var(--ink);
}

.link.subtle {
  color: var(--ink-soft);
}

.cta {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.solid {
  background: var(--gold-700);
  color: #fff;
  border-color: var(--gold-700);
  box-shadow: 0 14px 30px rgba(199, 152, 63, 0.35);
}

.cta.solid:hover {
  transform: translateY(-2px);
  background: var(--gold-800);
}

.cta.ghost {
  background: transparent;
  border-color: var(--gold-600);
  color: var(--ink);
}

.cta.ghost:hover {
  background: var(--gold-50);
}

.link:hover {
  color: var(--gold-800);
}

.hero {
  padding: 6rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3vw + 1rem, 3.6rem);
  margin: 0 0 1rem;
  line-height: 1.05;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-50);
  color: var(--ink);
  border: 1px solid var(--border);
  font-weight: 600;
}

.home-brokers {
  margin-top: 1.15rem;
}

.home-brokers-label {
  margin: 0 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-brokers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.home-broker-link {
  display: grid;
  place-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(30, 24, 18, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-broker-link:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 131, 49, 0.55);
  box-shadow: 0 22px 60px rgba(30, 24, 18, 0.1);
}

.home-broker-link img {
  height: 34px;
  width: auto;
  max-width: 180px;
  display: block;
}

.hero-accent {
  position: relative;
  display: grid;
  place-items: center;
}

.accent-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(199, 152, 63, 0.3), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(248, 224, 177, 0.5), transparent 60%);
  filter: blur(6px);
  opacity: 0.6;
}

.accent-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 360px;
}

.accent-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}

.accent-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0;
}

.bot-section {
  padding: 3rem 0 2rem;
}

.bot-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.bot-header h2 {
  margin: 0.1rem 0 0.5rem;
  font-family: var(--font-display);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.bot-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.label {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.muted {
  color: var(--ink-soft);
  margin: 0;
}

.bot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-dot {
  background: var(--gold-50);
  color: var(--gold-800);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.sparkline {
  height: 90px;
  width: 100%;
}

.sparkline svg {
  width: 100%;
  height: 100%;
}

.bot-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.metric {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0.1rem 0 0;
}

.profit-panel {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(120deg, var(--gold-50), #fff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profit-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-800);
  margin: 0;
}

.profit-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profit-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.workflow {
  padding: 3rem 0;
}

.workflow h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.expectations,
.risk,
.advantages {
  padding: 3rem 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold-700);
  font-size: 1.1rem;
  line-height: 1;
}

.risk .warning-box {
  border: 1px solid var(--gold-600);
  background: #fffaf0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.65rem;
}

.risk h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
}

.advantages h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.perk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.subscribe {
  padding: 3rem 0 4rem;
}

.subscribe-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.subscribe-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--gold-50);
}

.success {
  color: #2f7a3b;
  font-weight: 700;
  margin-top: 0.5rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  text-align: center;
  background: #fff;
}

.footer p {
  margin: 0.15rem 0;
}

.footer .muted {
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .navbar-inner {
    padding: 0.85rem 0;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .link {
    font-size: 0.9rem;
  }

  .cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }

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

  .hero {
    padding-top: 4rem;
  }

  .accent-card {
    position: relative;
    margin-top: -4rem;
  }
}

/* Plans page */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-card.featured {
  border-color: var(--gold-700);
  box-shadow: 0 18px 40px rgba(178, 131, 49, 0.2);
}

.plan-price {
  margin: 0;
  font-family: var(--font-display);
}

.plan-list {
  padding-left: 1.2rem;
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  display: grid;
  gap: 0.25rem;
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-700);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .navbar-inner {
    flex-wrap: nowrap;
    padding: 0.4rem 0;
    gap: 0.45rem;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .nav-actions {
    width: auto;
    gap: 0.3rem;
    flex-wrap: nowrap;
  }

  .link {
    font-size: 0.74rem;
  }

  .cta {
    padding: 0.3rem 0.5rem;
    font-size: 0.74rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 3.1rem;
  }

  .profit-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .navbar-inner {
    padding: 0.32rem 0 !important;
    gap: 0.35rem !important;
  }

  .brand {
    gap: 0.4rem !important;
  }

  .brand-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }

  .brand-name {
    font-size: 0.76rem !important;
    line-height: 1.1 !important;
  }

  .nav-actions {
    gap: 0.25rem !important;
  }

  .link {
    font-size: 0.7rem !important;
  }

  .cta {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.7rem !important;
  }

  .hero {
    padding-top: 2.9rem;
  }

  body.home .navbar-inner {
    padding: 0.2rem 0 !important;
    gap: 0.3rem !important;
  }

  body.home .brand-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
  }

  body.home .brand-name {
    font-size: 0.7rem !important;
    letter-spacing: 0 !important;
  }

  body.home .nav-actions {
    gap: 0.2rem !important;
  }

  body.home .link {
    font-size: 0.66rem !important;
  }

  body.home .cta {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.66rem !important;
  }

  body.home .hero {
    padding-top: 2.3rem;
  }
}

@media (max-width: 420px) {
  body.home .navbar-inner {
    padding: 0.18rem 0 !important;
  }

  body.home .brand-icon {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
  }

  body.home .brand-name {
    font-size: 0.66rem !important;
  }

  body.home .cta {
    padding: 0.18rem 0.36rem !important;
    font-size: 0.62rem !important;
  }
}

/* ---------------- Home (interactive) ---------------- */

body.home {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background: radial-gradient(120% 120% at 20% 10%, rgba(218, 178, 94, 0.22) 0%, var(--sand) 45%, #ffffff 100%);
}

body.home::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  filter: blur(70px);
  background:
    radial-gradient(circle at 18% 12%, rgba(178, 131, 49, 0.35), transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(218, 178, 94, 0.22), transparent 52%),
    radial-gradient(circle at 55% 86%, rgba(199, 152, 63, 0.18), transparent 58%);
  animation: homeGlow 18s ease-in-out infinite;
}

@keyframes homeGlow {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.03);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
}

.home .navbar {
  background: rgba(255, 255, 255, 0.92);
}

.home .nav-links a {
  position: relative;
}

.home .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-700), transparent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home .nav-links a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.home .cta.solid {
  background: linear-gradient(135deg, var(--gold-700), var(--gold-800));
  border-color: var(--gold-700);
}

.home .cta.solid::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0.0;
  pointer-events: none;
}

.home .cta.solid:hover::after {
  opacity: 0.75;
  transition: transform 0.65s ease, opacity 0.2s ease;
  transform: translateX(120%);
}

.home .cta {
  position: relative;
  overflow: hidden;
}

.home .hero-accent {
  --mx: 0;
  --my: 0;
}

.home .accent-ring {
  animation: heroFloat 10s ease-in-out infinite;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px), 0) rotate(6deg);
  transition: transform 0.08s ease-out;
}

.home .accent-card {
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--my) * -5px), 0);
  transition: transform 0.08s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home .accent-card:hover {
  border-color: rgba(178, 131, 49, 0.45);
  box-shadow: 0 24px 70px rgba(30, 24, 18, 0.12);
}

@keyframes heroFloat {
  0%,
  100% {
    filter: blur(6px);
    opacity: 0.55;
  }
  50% {
    filter: blur(7px);
    opacity: 0.7;
  }
}

.home .bot-card,
.home .perk-card,
.home .step-card,
.home .plan-card,
.home .subscribe-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.home .bot-card:hover,
.home .perk-card:hover,
.home .step-card:hover,
.home .plan-card:hover,
.home .subscribe-card:hover {
  transform: translateY(-6px);
  border-color: rgba(178, 131, 49, 0.35);
  box-shadow: 0 24px 64px rgba(30, 24, 18, 0.12);
}

.home .sparkline svg {
  filter: drop-shadow(0 10px 14px rgba(178, 131, 49, 0.12));
}

.home .reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}

.home .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  body.home::before {
    animation: none;
  }
  .home .accent-ring {
    animation: none;
    transition: none;
  }
  .home .accent-card {
    transition: none;
  }
  .home .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .home .cta {
    transition: none;
  }
  .home .cta.solid::after {
    display: none;
  }
}
