/* 5thN Active ETF Design - custom website styling */

:root {
  --fifthn-navy: #071421;
  --fifthn-blue: #113a5f;
  --fifthn-steel: #46637d;
  --fifthn-gold: #d8aa46;
  --fifthn-gold-light: #f4d58d;
  --fifthn-cream: #f7f2e8;
  --fifthn-ink: #17202a;
  --fifthn-muted: #5d6b78;
  --fifthn-card: rgba(255, 255, 255, 0.92);
  --fifthn-shadow: 0 24px 70px rgba(7, 20, 33, 0.18);
  --fifthn-radius: 24px;
}

body {
  color: var(--fifthn-ink);
  background:
    radial-gradient(circle at top left, rgba(216, 170, 70, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(17, 58, 95, 0.18), transparent 30rem),
    linear-gradient(180deg, #fbfaf7 0%, #eef3f8 100%);
}

.navbar {
  backdrop-filter: blur(18px);
  background: rgba(7, 20, 33, 0.94) !important;
  box-shadow: 0 12px 30px rgba(7, 20, 33, 0.16);
}

.navbar-brand, .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--fifthn-gold-light) !important;
}

.navbar-logo {
  max-height: 34px;
}

.quarto-title-block {
  display: none;
}

main.content,
.page-columns .content {
  max-width: 1180px;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 1.2rem auto 2.2rem auto;
  padding: clamp(3rem, 7vw, 6rem);
  border-radius: 34px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 20, 33, 0.94), rgba(17, 58, 95, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(216, 170, 70, 0.42), transparent 26rem);
  box-shadow: var(--fifthn-shadow);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, black 16%, black 84%, transparent);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  right: -7rem;
  bottom: -9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,170,70,0.42), rgba(216,170,70,0.02) 62%, transparent 65%);
  z-index: -1;
}

.hero-home {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 940px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.95;
  margin-bottom: 1.2rem;
  letter-spacing: -0.06em;
  font-weight: 850;
}

.hero p {
  max-width: 780px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: rgba(255,255,255,0.88);
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1.2rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(244, 213, 141, 0.48);
  border-radius: 999px;
  color: var(--fifthn-gold-light);
  background: rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
a.btn:hover {
  transform: translateY(-2px) scale(1.03);
  text-decoration: none !important;
}

.btn-gold {
  color: #241a05 !important;
  background: linear-gradient(180deg, #ffe3a4, var(--fifthn-gold));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), 0 14px 34px rgba(216, 170, 70, 0.32);
}

.btn-gold:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 44px rgba(216, 170, 70, 0.46);
}

.btn-ghost {
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 14px 34px rgba(0,0,0,0.12);
}

.btn-xl {
  min-height: 4.25rem;
  padding: 1.1rem 2rem;
  font-size: 1.25rem;
}

.section-intro {
  max-width: 980px;
  margin: 0 auto 2rem auto;
  color: var(--fifthn-steel);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  text-align: center;
}

.feature-grid,
.etf-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

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

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.etf-card,
.process-card,
.statement-card,
.launch-panel,
.pricing-card,
.timeline-item,
.panel-main,
.panel-side {
  border: 1px solid rgba(17, 58, 95, 0.11);
  border-radius: var(--fifthn-radius);
  background: var(--fifthn-card);
  box-shadow: 0 18px 48px rgba(7, 20, 33, 0.09);
}

.feature-card,
.etf-card,
.process-card,
.timeline-item,
.panel-main,
.panel-side,
.launch-panel {
  padding: 1.5rem;
}

.feature-card h2,
.feature-card h3,
.etf-card h2,
.etf-card h3,
.process-card h3,
.timeline-item h3 {
  color: var(--fifthn-navy);
  letter-spacing: -0.03em;
}

.feature-card p,
.etf-card p,
.process-card p,
.timeline-item p,
.panel-main p,
.panel-side p {
  color: var(--fifthn-muted);
}

.text-link {
  color: var(--fifthn-blue) !important;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--fifthn-gold) !important;
  text-decoration: underline;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem 0;
}

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::before,
.process-card::before,
.feature-card::before,
.etf-card::before {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fifthn-gold), rgba(216,170,70,0.12));
}

.statement-card {
  padding: 2rem;
  margin: 1.5rem 0;
  border-left: 8px solid var(--fifthn-gold);
  color: var(--fifthn-navy);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.4;
  font-weight: 800;
}

.split-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

.panel-side {
  color: #ffffff;
  background: linear-gradient(135deg, var(--fifthn-navy), var(--fifthn-blue));
}

.panel-side h3,
.panel-side p {
  color: #ffffff;
}

.pricing-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 2.5rem 0;
}

.pricing-card {
  width: min(760px, 100%);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(216,170,70,0.24), transparent 18rem),
    linear-gradient(180deg, #ffffff, #f6f1e7);
}

.pricing-card h2 {
  margin: 0.3rem 0 0.4rem 0;
  color: var(--fifthn-navy);
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  letter-spacing: -0.07em;
}

.pricing-label {
  color: var(--fifthn-blue);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-minimum {
  display: inline-flex;
  margin: 1rem auto 1.4rem auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--fifthn-navy);
  background: rgba(216,170,70,0.18);
  font-weight: 850;
}

.pricing-fee-details {
  display: grid;
  gap: 0.35rem;
  width: min(560px, 100%);
  margin: -0.25rem auto 1.5rem auto;
  padding: 0.95rem 1.15rem;
  border: 1px solid rgba(17, 58, 95, 0.12);
  border-radius: 18px;
  color: var(--fifthn-navy);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 10px 26px rgba(7, 20, 33, 0.07);
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.35;
}

.software-license-note {
  width: min(600px, 100%);
  margin: 1.35rem auto 0 auto;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(216, 170, 70, 0.78);
  border-radius: 16px;
  color: var(--fifthn-navy);
  background: linear-gradient(135deg, rgba(255, 248, 226, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 28px rgba(7, 20, 33, 0.09);
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.45;
}

.software-license-note p {
  margin: 0;
}

.fee-table table {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(7, 20, 33, 0.08);
}

.fee-table th {
  color: #ffffff;
  background: var(--fifthn-navy);
}

.etf-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--fifthn-blue);
  background: rgba(216,170,70,0.16);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.launch-panel {
  margin: 2rem 0;
  padding: 2rem;
}

.callout {
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(7, 20, 33, 0.06);
}

pre, code {
  border-radius: 12px;
}

@media (max-width: 980px) {
  .feature-grid,
  .timeline,
  .process-grid,
  .etf-grid,
  .split-panel {
    grid-template-columns: 1fr;
  }
  .hero-home {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 2.2rem 1.3rem;
    border-radius: 22px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn,
  a.btn {
    width: 100%;
  }
}


.verification-warning {
  position: relative;
  overflow: hidden;
  margin: 2.6rem 0 1.8rem 0;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 2px solid rgba(216, 170, 70, 0.72);
  border-left: 12px solid var(--fifthn-gold);
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 8%, rgba(244, 213, 141, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--fifthn-navy), var(--fifthn-blue));
  box-shadow: 0 28px 72px rgba(7, 20, 33, 0.24);
}

.verification-warning::before {
  content: "Verification Required";
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(244, 213, 141, 0.55);
  border-radius: 999px;
  color: var(--fifthn-gold-light);
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.verification-warning h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.verification-warning p {
  max-width: 980px;
  color: rgba(255,255,255,0.9);
  font-size: 1.08rem;
  line-height: 1.65;
}

.verification-warning strong {
  color: var(--fifthn-gold-light);
}

/* App launch pages */
.hero-app {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem 0;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 1.35rem;
  border: 1px solid rgba(17, 58, 95, 0.11);
  border-radius: var(--fifthn-radius);
  background:
    radial-gradient(circle at 80% 0%, rgba(216,170,70,0.18), transparent 9rem),
    var(--fifthn-card);
  box-shadow: 0 18px 48px rgba(7, 20, 33, 0.09);
}

.app-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--fifthn-gold), rgba(216,170,70,0.12));
}

.app-card h3 {
  color: var(--fifthn-navy);
  letter-spacing: -0.03em;
}

.app-card p {
  color: var(--fifthn-muted);
}

@media (max-width: 1180px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* Version 0.3.9 - clearer navigation hover treatment */
.navbar-brand {
  font-size: 1.08rem;
}

.navbar-nav .nav-link {
  font-size: 1.06rem;
  padding: 0.65rem 0.95rem !important;
  margin: 0 0.12rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.navbar-nav .show > .nav-link {
  color: var(--fifthn-gold-light) !important;
  background: rgba(244, 213, 141, 0.16);
  box-shadow: inset 0 0 0 1px rgba(244, 213, 141, 0.22);
  transform: translateY(-1px);
}

.navbar .dropdown-menu {
  border: 1px solid rgba(244, 213, 141, 0.18);
  border-radius: 18px;
  padding: 0.45rem;
  background: rgba(7, 20, 33, 0.97);
  box-shadow: 0 18px 44px rgba(7, 20, 33, 0.24);
}

.navbar .dropdown-item {
  color: #ffffff !important;
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active {
  color: var(--fifthn-gold-light) !important;
  background: rgba(244, 213, 141, 0.16);
  transform: translateX(2px);
}

/* Version 0.3.10 - open Apps dropdown on mouse hover for desktop users */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu,
  .navbar .dropdown:focus-within > .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    margin-top: 0.15rem;
  }

  .navbar .dropdown:hover > .nav-link,
  .navbar .dropdown:focus-within > .nav-link {
    color: var(--fifthn-gold-light) !important;
    background: rgba(244, 213, 141, 0.16);
    box-shadow: inset 0 0 0 1px rgba(244, 213, 141, 0.22);
    transform: translateY(-1px);
  }
}


/* Version 0.3.12 - responsive Schedule calendar page */
.calendar-panel {
  overflow: hidden;
}

.calendar-embed {
  width: 100%;
  margin-top: 1.35rem;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(17, 58, 95, 0.08), 0 18px 46px rgba(7, 20, 33, 0.10);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0 !important;
}

@media (max-width: 720px) {
  .calendar-embed iframe {
    min-height: 560px;
  }
}

/* Version 0.3.14 - Schedule page CE pricing note */
.ce-pricing-note {
  margin: 1.4rem 0 1.8rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(216, 170, 70, 0.42);
  border-left: 7px solid var(--fifthn-gold);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216,170,70,0.22), transparent 12rem),
    linear-gradient(180deg, #ffffff, #fbf7ee);
  box-shadow: 0 16px 36px rgba(7, 20, 33, 0.08);
}

.ce-pricing-note h3 {
  margin-top: 0;
  color: var(--fifthn-navy);
  letter-spacing: -0.03em;
}

.ce-pricing-note p {
  margin-bottom: 0;
  color: var(--fifthn-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}


/* Version 0.3.22: remove right-side TOC space and center page content */
#TOC,
.toc-active,
.sidebar.toc-left,
.sidebar.toc-right,
.margin-sidebar,
.quarto-margin-sidebar {
  display: none !important;
}

body .page-columns {
  display: block;
}

main.content,
.page-columns .content {
  width: min(1180px, calc(100% - 2rem));
  max-width: 1180px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 992px) {
  main.content,
  .page-columns .content {
    width: min(1180px, calc(100% - 4rem));
  }
}

/* Version 0.3.37 - high-attention animated app launch buttons */
@keyframes fifthn-app-button-attract {
  0% {
    background: linear-gradient(135deg, #fff8c9 0%, #ffd447 35%, #ff7a18 100%);
    box-shadow: 0 0 0 0 rgba(255, 212, 71, 0.72), 0 18px 44px rgba(255, 122, 24, 0.42), inset 0 1px 0 rgba(255,255,255,0.82);
    transform: translateY(0) scale(1);
  }
  18% {
    background: linear-gradient(135deg, #ffffff 0%, #ffe45e 30%, #d81b60 100%);
    box-shadow: 0 0 0 8px rgba(216, 27, 96, 0.12), 0 22px 58px rgba(216, 27, 96, 0.48), inset 0 1px 0 rgba(255,255,255,0.88);
    transform: translateY(-2px) scale(1.045);
  }
  36% {
    background: linear-gradient(135deg, #fffbeb 0%, #2dd4bf 35%, #2563eb 100%);
    box-shadow: 0 0 0 12px rgba(45, 212, 191, 0.10), 0 24px 62px rgba(37, 99, 235, 0.46), inset 0 1px 0 rgba(255,255,255,0.88);
    transform: translateY(0) scale(1.015);
  }
  54% {
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 28%, #7c3aed 100%);
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.11), 0 24px 66px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255,255,255,0.88);
    transform: translateY(-2px) scale(1.055);
  }
  72% {
    background: linear-gradient(135deg, #fff7ed 0%, #fb7185 35%, #f97316 100%);
    box-shadow: 0 0 0 14px rgba(249, 115, 22, 0.10), 0 24px 64px rgba(249, 115, 22, 0.50), inset 0 1px 0 rgba(255,255,255,0.88);
    transform: translateY(0) scale(1.02);
  }
  100% {
    background: linear-gradient(135deg, #fff8c9 0%, #ffd447 35%, #ff7a18 100%);
    box-shadow: 0 0 0 0 rgba(255, 212, 71, 0.72), 0 18px 44px rgba(255, 122, 24, 0.42), inset 0 1px 0 rgba(255,255,255,0.82);
    transform: translateY(0) scale(1);
  }
}

@keyframes fifthn-app-button-halo {
  0% {
    opacity: 0.48;
    transform: scale(0.95);
    filter: blur(6px);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.16);
    filter: blur(10px);
  }
  100% {
    opacity: 0.48;
    transform: scale(0.95);
    filter: blur(6px);
  }
}

@keyframes fifthn-app-button-shine {
  0% { left: -85%; opacity: 0; }
  18% { opacity: 0.95; }
  42% { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}

.app-launch-btn,
a.app-launch-btn {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
  transform-origin: center center;
  color: #170f02 !important;
  border: 0 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  animation: fifthn-app-button-attract 1.35s ease-in-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, filter 220ms ease;
}

.app-launch-btn::before,
a.app-launch-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #ffd447, #ff7a18, #d81b60, #2563eb, #2dd4bf, #ffd447);
  z-index: -2;
  animation: fifthn-app-button-halo 1.35s ease-in-out infinite;
  pointer-events: none;
}

.app-launch-btn::after,
a.app-launch-btn::after {
  content: "";
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: -85%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.88), transparent);
  transform: skewX(-20deg);
  animation: fifthn-app-button-shine 1.35s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.app-launch-btn:hover,
a.app-launch-btn:hover,
.app-launch-btn:focus,
a.app-launch-btn:focus {
  animation: none;
  transform: scale(1.35) !important;
  color: #160e02 !important;
  background: linear-gradient(135deg, #ffffff 0%, #ffe45e 38%, #ffb703 100%) !important;
  box-shadow: 0 0 0 10px rgba(255, 183, 3, 0.16), 0 30px 78px rgba(255, 122, 24, 0.62), inset 0 1px 0 rgba(255,255,255,0.92) !important;
  filter: saturate(1.18) brightness(1.04);
}

.app-launch-btn:hover::before,
a.app-launch-btn:hover::before,
.app-launch-btn:focus::before,
a.app-launch-btn:focus::before,
.app-launch-btn:hover::after,
a.app-launch-btn:hover::after,
.app-launch-btn:focus::after,
a.app-launch-btn:focus::after {
  animation: none;
  opacity: 0;
}

.hero-actions:has(.app-launch-btn) {
  overflow: visible;
}
