/* ============================================
   MUSCATFOREX.COM — OCEAN TEAL / INSTITUTIONAL
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --mus-bg: #060d0d;
  --mus-surface: #0c1616;
  --mus-card: #111e1e;
  --mus-border: #1a2e2e;
  --mus-primary: #0d9488;
  --mus-primary-dark: #0a7a70;
  --mus-primary-glow: rgba(13, 148, 136, 0.1);
  --mus-secondary: #ffffff;
  --mus-accent: #2dd4bf;
  --mus-light: #5eead4;
  --text: #d4e4e4;
  --text-muted: #8aa8a8;
  --text-dim: #577070;
  --white: #f0fafa;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 6px;
  --transition: 0.25s ease;
  --font-heading: 'Geologica', sans-serif;
  --font-body: 'Atkinson Hyperlegible', sans-serif;
  --max-width: 1160px;
  --article-width: 780px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  background-color: var(--mus-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mus-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--mus-accent);
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- SUBTLE DOT GRID BACKGROUND --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.22;
  color: var(--white);
  letter-spacing: -0.3px;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

/* --- UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 13, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mus-border);
  padding: 0.7rem 0;
  transition: box-shadow var(--transition);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.header__logo span {
  color: var(--mus-primary);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--mus-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--mus-bg);
}

/* --- NAVIGATION --- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav__link {
  padding: 0.45rem 0.85rem;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.nav__link:hover,
.nav__link--active {
  color: var(--mus-primary);
  border-color: var(--mus-border);
  background: var(--mus-primary-glow);
}

.nav__cta {
  padding: 0.5rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mus-bg) !important;
  background: var(--mus-primary);
  border-radius: var(--radius);
  margin-left: 0.5rem;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--mus-accent);
  transform: translateY(-1px);
}

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* --- HERO SECTION --- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--mus-border);
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.08);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.05);
  pointer-events: none;
}

.hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mus-primary);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--mus-accent);
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: transparent;
  color: var(--mus-primary);
  border-color: var(--mus-border);
}

.btn--primary:hover {
  border-color: var(--mus-primary);
  background: var(--mus-primary-glow);
  color: var(--mus-accent);
}

.btn--accent {
  background: var(--mus-primary);
  color: var(--mus-bg);
  border-color: var(--mus-primary);
}

.btn--accent:hover {
  background: var(--mus-accent);
  border-color: var(--mus-accent);
  transform: translateY(-1px);
  color: var(--mus-bg);
}

.btn--large {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
}

/* --- SECTIONS --- */
.section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.section--alt {
  background: var(--mus-surface);
}

.section--bordered {
  border-top: 1px solid var(--mus-border);
  border-bottom: 1px solid var(--mus-border);
}

.section__header {
  max-width: 650px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mus-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* --- STATS BAR --- */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 2rem 0;
  gap: 1rem;
}

.stat {
  text-align: center;
  flex: 1;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--mus-border);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mus-accent);
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--mus-border);
  border: 1px solid var(--mus-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature {
  background: var(--mus-card);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
}

.feature:hover {
  background: rgba(13, 148, 136, 0.05);
}

.feature__icon {
  font-size: 1.5rem;
  color: var(--mus-primary);
  margin-bottom: 0.85rem;
}

.feature__title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- CARD GRID --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--mus-card);
  border: 1px solid var(--mus-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.3);
}

.card__rank {
  margin-bottom: 0.65rem;
}

.rank-badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-badge--gold {
  background: rgba(13, 148, 136, 0.12);
  color: var(--mus-accent);
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.rank-badge--silver {
  background: rgba(138, 168, 168, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(138, 168, 168, 0.15);
}

.rank-badge--blue {
  background: rgba(13, 148, 136, 0.06);
  color: var(--mus-primary);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

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

.card__title a:hover {
  color: var(--mus-accent);
}

.card__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.card__meta {
  display: flex;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  align-items: center;
}

/* --- CTA BOX --- */
.cta-box {
  background: var(--mus-card);
  border: 1px solid var(--mus-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
}

.cta-box:hover {
  border-color: rgba(13, 148, 136, 0.3);
}

.cta-box__title {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.cta-box__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin-bottom: 1.15rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--mus-surface);
  border-top: 1px solid var(--mus-border);
  padding: 3rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.footer__brand-name span {
  color: var(--mus-primary);
}

.footer__brand-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer__heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mus-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.85rem;
}

.footer__links {
  list-style: none;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.45rem;
}

.footer__links a {
  font-size: 0.87rem;
  color: var(--text-muted);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mus-border);
  margin-bottom: 1.25rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__legal {
  display: flex;
  gap: 1rem;
}

.footer__legal a {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__legal a:hover {
  color: var(--mus-primary);
}

.footer__disclaimer {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 1.15rem;
  background: rgba(17, 30, 30, 0.6);
  border: 1px solid var(--mus-border);
  border-radius: var(--radius);
}

/* --- BACK TO TOP --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  background: var(--mus-primary);
  color: var(--mus-bg);
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--mus-accent);
}

/* --- ARTICLE PAGE STYLES --- */
.article-header {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--mus-border);
}

.article-header__breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.article-header__breadcrumb a {
  color: var(--text-dim);
}

.article-header__breadcrumb a:hover {
  color: var(--mus-primary);
}

.article-header h1 {
  font-size: 2.2rem;
  max-width: var(--article-width);
  margin-bottom: 0.85rem;
}

.article-header__meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.article-body {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 0.85rem;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.65rem;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.15rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body blockquote {
  border-left: 3px solid var(--mus-primary);
  padding: 0.85rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--mus-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article-body th,
.article-body td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--mus-border);
  text-align: left;
  font-size: 0.9rem;
}

.article-body th {
  background: var(--mus-card);
  color: var(--mus-primary);
  font-weight: 600;
}

/* --- INLINE CTA --- */
.inline-cta {
  background: var(--mus-card);
  border: 1px solid var(--mus-primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.inline-cta h4 {
  margin-bottom: 0.65rem;
  color: var(--mus-accent);
}

.inline-cta p {
  margin-bottom: 0.85rem;
  color: var(--text-muted);
}

/* --- FAQ --- */
.oman-qa {
  border: 1px solid var(--mus-border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.oman-q {
  padding: 0.85rem 1.15rem;
  background: var(--mus-card);
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  font-size: 0.95rem;
}

.oman-q:hover {
  background: var(--mus-border);
}

.oman-q::after {
  content: '+';
  font-size: 1.15rem;
  color: var(--mus-primary);
}

.oman-qa.active .oman-q::after {
  content: '-';
}

.oman-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.oman-qa.active .oman-a {
  padding: 0.85rem 1.15rem;
  max-height: 500px;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mus-surface);
    border-bottom: 1px solid var(--mus-border);
    flex-direction: column;
    padding: 0.85rem;
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav__link {
    padding: 0.65rem 0.85rem;
    width: 100%;
  }

  .nav__cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .hero__title {
    font-size: 2rem;
  }

  .stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat + .stat::before {
    display: none;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 2rem;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn--large {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 2.5rem 0;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }
}