/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0A0F2C;
  --dark:       #1A1A2E;
  --surface:    #0f1535;
  --green:      #00FF88;
  --blue:       #1E90FF;
  --orange:     #e3742e;
  --red:        #FF4560;
  --gray:       #8892A4;
  --white:      #FFFFFF;
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

/* =====================
   LAYOUT HELPERS
   ===================== */
.section__inner,
.nav__inner,
.hero__inner,
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: var(--navy);
}

.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--small {
  padding: 8px 18px;
  font-size: 0.875rem;
  background: var(--green);
  color: var(--navy);
  border-radius: 5px;
  font-weight: 600;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 44, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px; /* Optimized height for a tight-cropped logo */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--gray);
}

.nav__links a:not(.btn) {
  transition: color 0.2s;
}

.nav__links a:not(.btn):hover {
  color: var(--white);
}

/* =====================
   HERO
   ===================== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__tagline::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--green);
  margin: 20px auto 0;
  border-radius: 2px;
}

.hero__mission {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 8px;
}

/* =====================
   BENEFITS
   ===================== */
.benefits {
  padding: 80px 0;
  background: var(--dark);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section__sub {
  color: var(--gray);
  margin-bottom: 48px;
  font-size: 1rem;
}

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

.benefit__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.benefit__card:hover {
  border-color: rgba(0, 255, 136, 0.25);
}

.benefit__icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.benefit__card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit__card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
}

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #0A0F2C 0%, #0f1840 100%);
  border-top: 1px solid rgba(0, 255, 136, 0.12);
  border-bottom: 1px solid rgba(0, 255, 136, 0.12);
}

.cta-section__badge {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 20px;
}

.cta-section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-section__text {
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.68);
  font-size: 1rem;
  line-height: 1.7;
}

/* =====================
   ALERT TYPES
   ===================== */
.alert-types {
  padding: 80px 0;
  background: var(--navy);
}

.update-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(30, 144, 255, 0.08);
  border: 1px solid rgba(30, 144, 255, 0.25);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 48px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.update-notice__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.update-notice strong {
  color: var(--white);
}

.alert-types__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.alert-type__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.alert-type__card:hover {
  transform: translateY(-3px);
}

.alert-type__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-type__icon {
  font-size: 1.6rem;
}

.alert-type__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}

.alert-type__label--value {
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.alert-type__label--rebound {
  background: rgba(30, 144, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(30, 144, 255, 0.3);
}

.alert-type__label--whale {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.alert-type__card:has(.alert-type__label--value):hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.alert-type__card:has(.alert-type__label--rebound):hover {
  border-color: rgba(30, 144, 255, 0.3);
}

.alert-type__card:has(.alert-type__label--whale):hover {
  border-color: rgba(168, 85, 247, 0.3);
}

.alert-type__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.alert-type__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  flex: 1;
}

/* =====================
   TOOLS
   ===================== */
.tools {
  padding: 80px 0;
  background: var(--dark);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tool__card {
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}

.tool__card:hover {
  transform: translateY(-2px);
}

.tool__card--featured {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.04);
}

.tool__card--featured:hover {
  border-color: rgba(0, 255, 136, 0.6);
}

.tool__card--placeholder {
  background: rgba(255,255,255,0.02);
  opacity: 0.5;
  cursor: default;
}

.tool__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(0, 255, 136, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.tool__name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.6;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #06091c;
  padding: 56px 0 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.logo-img--footer {
  height: 42px;
  opacity: 0.95;
}

.footer__mission {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer__contact {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.footer__contact:hover {
  color: var(--green);
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 32px;
}

.footer__links a {
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* =====================
   TRADE BRIEFS
   ===================== */
.trade-briefs {
  padding: 80px 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.briefs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.brief__card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: 2px solid var(--orange);
  border-radius: 10px;
  padding: 20px 22px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.brief__card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(30,144,255,0.35);
  border-top: 2px solid var(--orange);
  transform: translateY(-2px);
}

.brief__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.brief__ticker {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.brief__company {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.brief__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brief__badge--breakdown {
  background: rgba(227,116,46,0.12);
  color: var(--orange);
  border: 1px solid rgba(227,116,46,0.30);
}

.brief__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.brief__tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--gray);
  border: 1px solid rgba(255,255,255,0.07);
}

.brief__summary {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  line-height: 1.7;
  margin-bottom: 14px;
}

.brief__stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.brief__stat {
  background: rgba(0,0,0,0.20);
  border-radius: 6px;
  padding: 8px 10px;
}

.brief__stat-label {
  font-size: 10px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.brief__stat-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.brief__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}

.brief__footer-meta { font-size: 12px; color: var(--gray); }

.brief__cta { font-size: 14px; font-weight: 600; color: var(--blue); }

/* =====================
   TOOLTIPS
   ===================== */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 4px;
}

.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}

.tooltip-content {
  visibility: hidden;
  width: 220px;
  background-color: var(--dark);
  color: rgba(255,255,255,0.8);
  text-align: left;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--blue);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  
  /* Fade in */
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateY(5px);
}

.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: var(--blue) transparent transparent transparent;
}

.tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
  .nav__links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
}
