/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  --primary: #528bf1;
  --secondary: hsl(from var(--primary) h s 95);
  --background: #fff;
  --foreground: #222;
  --muted: #777;
  --border: #f1f1f1;
  --card: #fff;

  --blue: #2563eb;
  --green: #16a34a;
  --purple: #9333ea;
  --orange: #f97316;
  --congo: #0284c7;
  --red: #ef4444;

  --radius: 0.625rem;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ===================================
   CSS Reset
   =================================== */

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

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font: inherit;
  border: none;
  background: none;
}

/* ===================================
   Base
   =================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ===================================
   Typography
   =================================== */

h1 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ===================================
   Layout / Container
   =================================== */

.container {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===================================
   Navigation
   =================================== */

.navbar {
  background: var(--background);
  color: var(--foreground);
  padding: 0.75rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-link {
  color: var(--muted);
  font-weight: 600;
  transition:
    text-decoration-inset 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-globe-btn {
  color: var(--muted);
}

.nav-globe-btn:hover {
  color: var(--primary);
}

@media (max-width: 767px) {
  .nav-globe-btn {
    display: none;
  }
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-dropdown-trigger svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  background: var(--background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  padding: 0.375rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.825rem;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background-color: var(--secondary);
  color: var(--primary);
}

/* ── Mobile hamburger toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.nav-toggle:hover span {
  background: var(--primary);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Responsive navbar (mobile) ── */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .navbar .container {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: transfrom 0.2s;
  }

  .nav-links.open {
    display: flex;
    transform: scaleY(1);
  }

  .nav-link {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--secondary);
    width: 100%;
    display: block;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* Disable hover/focus-within dropdown on mobile */
  .nav-dropdown:hover .nav-dropdown-trigger svg,
  .nav-dropdown:focus-within .nav-dropdown-trigger svg {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-trigger svg {
    transform: rotate(180deg);
  }

  /* Override hover/focus-within to keep menu hidden on mobile */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    display: none;
  }

  /* Mobile dropdown revealed via JS .open class */
  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    box-shadow: none;
    background: hsl(from var(--secondary) h s l / 25%);
    z-index: auto;
  }
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer h4 {
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===================================
   Hero Section (Home Page)
   =================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(to left, #fff 2.5%, transparent 10%), url(./images/hero.avif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
}

.hero .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
}

.hero-inner {
  max-width: 40rem;
}

.hero-eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background-color: var(--secondary);
  display: inline-block;
  padding-inline: 0.5rem;
  padding-block: 0.25rem;
  border-radius: 1rem;
}

.hero h2 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .hero h2 {
    font-size: 2.5rem;
  }
}

.hero-description {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-btn {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  transition:
    background 0.2s,
    color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.hero-btn:hover {
  background: transparent;
  color: var(--primary);
}

/* ===================================
   About Section (Home)
   =================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.about-card h2 {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.about-card--primary {
  background: var(--primary);
  color: white;
}

.about-card--primary h2 {
  color: white;
}

.about-card--primary p {
  color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Services Section (Home)
   =================================== */

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  display: block;
  color: var(--foreground);
  text-decoration: none;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-size: 0.875rem;
}

/* ===================================
   Page Header (Colored Banner)
   =================================== */

.page-header {
  padding: 4rem 0;
  margin-top: 4.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.platform-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.page-header-primary {
  background: var(--primary);
}
.page-header-instapay {
  background: #4c086e;
  background:
    linear-gradient(to right, #4c086e 30%, transparent 35%, transparent 65%, #4c086e 70%), url(./images/instapay.avif);
  background-position: center;
  background-size: contain;
}
.page-header-fawry {
  background: #ffd501;
  background:
    linear-gradient(to right, #ffd501 30%, transparent 35%, transparent 65%, #ffd501 70%), url(./images/fawry.avif);
  background-position: center;
  background-size: contain;
}
.page-header-vfcash {
  background: #ef1e28;
  background:
    linear-gradient(to right, #ef1e28 30%, transparent 35%, transparent 65%, #ef1e28 70%),
    url(./images/vodafone-cash.avif);
  background-position: center;
  background-size: contain;
}
.page-header-meeza {
  background: #fff;
  background: linear-gradient(to right, #fff 30%, transparent 35%, transparent 65%, #fff 70%), url(./images/meeza.avif);
  background-position: center;
  background-size: contain;
}
.page-header-thndr {
  background: #ffff01;
  background:
    linear-gradient(to right, #ffff01 30%, transparent 35%, transparent 65%, #ffff01 70%), url(./images/thndr.avif);
  background-position: center;
  background-size: contain;
}
.page-header-bm {
  background: #8b192f;
  background:
    linear-gradient(to right, #8b192f 30%, transparent 35%, transparent 65%, #8b192f 70%),
    url(./images/banque-misr.avif);
  background-position: center;
  background-size: contain;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: white;
}

.page-header-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  backdrop-filter: blur(4px);
}

.page-header-icon--sm {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.page-header h1 {
  color: white;
  font-size: 2.75rem;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 2rem;
  }
}

.page-header-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 42rem;
  margin-top: 0.5rem;
}

/* ===================================
   Sections
   =================================== */
.section {
  padding: 5rem 0;
}

.section--sm {
  padding: 3rem 0;
}

.section--secondary {
  background: var(--secondary);
}

.section--muted {
  background: var(--muted);
}

.section--white {
  background: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   Grid Layouts
   =================================== */

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-md2-lg3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-md2-lg3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-md2-lg3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #3a80d2;
  border-color: #3a80d2;
}

.btn-primary-full {
  background: var(--primary);
  color: white;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-primary-full:hover {
  background: #3a80d2;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-white {
  background: white;
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-white-outline {
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Tool Cards (Investment Tools Page)
   =================================== */
.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
}

.tool-card-header {
  background: rgba(74, 144, 226, 0.05);
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.tool-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: white;
}

.tool-card-header h3 {
  color: var(--primary);
}

.tool-card-body {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-card-body p {
  color: var(--muted);
  line-height: 1.7;
}

.tool-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.tool-feature-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===================================
   Detail Sections (Investment Tools)
   =================================== */
.detail-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 5rem;
  scroll-margin-top: 5rem;
}

@media (min-width: 768px) {
  .detail-section {
    padding: 3rem;
  }
}

.detail-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-section-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.detail-section-header h2 {
  color: var(--primary);
}

.detail-intro {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Budget guidance */
.budget-card {
  background: rgba(235, 244, 252, 0.55);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.budget-range {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.budget-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Bullet list */
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.bullet-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.bullet-strong {
  color: var(--foreground);
  font-weight: 500;
}

.bullet-muted {
  color: var(--muted);
}

/* Sub section title */
.sub-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.sub-title svg {
  color: var(--primary);
}

/* Mini cards for tips/notes */
.mini-card {
  background: rgba(235, 244, 252, 0.55);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.mini-card-title {
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.mini-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Alternative investment sub-sections */
.alt-invest-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alt-invest-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.alt-invest-box {
  background: rgba(235, 244, 252, 0.55);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.alt-invest-box p:not(:last-child) {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.alt-invest-box p:not(:last-child) {
  margin-bottom: 1rem;
}

.alt-invest-when {
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.alt-invest-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

.alt-invest-key {
  font-size: 0.875rem;
  color: var(--muted);
}

.alt-invest-key strong {
  color: var(--foreground);
}

/* ===================================
   Check List
   =================================== */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.check-item svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--primary);
}

/* ===================================
   Platform Cards (Digital Platforms)
   =================================== */
.platform-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
  color: var(--foreground);
}

.platform-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.platform-card-img {
  position: relative;
  aspect-ratio: 1/1;
  height: 20rem;
  overflow: hidden;
  background: #f1f5f9;
}

.platform-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.platform-card:hover .platform-card-img img {
  transform: scale(1.1);
}

.platform-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.platform-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: white;
}

.platform-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.platform-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.platform-card-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.platform-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.platform-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.platform-card-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.platform-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.platform-card-cta-text {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ===================================
   Benefits Trio (Digital Platforms)
   =================================== */
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  background: #dbeafe;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===================================
   Info Highlight Box
   =================================== */
.info-highlight-box {
  background: linear-gradient(to right, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 1rem;
  padding: 2rem;
}

.info-highlight-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-highlight-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

.info-highlight-box h2 {
  color: var(--primary);
  font-size: 1.5rem;
}

.info-highlight-body {
  color: var(--muted);
  line-height: 1.7;
  max-width: 48rem;
  margin-left: 3.5rem;
}

/* ===================================
   CTA Sections (bottom of pages)
   =================================== */
.cta-section {
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section--primary {
  background: var(--primary);
}

.cta-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.cta-section h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Investment Tips Page
   =================================== */
.tips-nav {
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 52px;
  z-index: 40;
}

.tips-nav .container {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}

.tips-nav .container::-webkit-scrollbar {
  display: none;
}

.tips-cat-btn {
  flex-shrink: 0;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--muted);
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.tips-cat-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tip-section {
  scroll-margin-top: 7rem;
  margin-bottom: 5rem;
}

.tip-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tip-section-header h2 {
  font-size: 1.75rem;
}

.tip-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.tip-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.tip-card:hover {
  box-shadow: var(--shadow-md);
}

.tip-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.tip-number {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.tip-card h3 {
  font-size: 1rem;
  line-height: 1.4;
}

.tip-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 2.5rem;
}

/* Quick Stats Bar */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .quick-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-stat {
  text-align: center;
}

.quick-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: #dbeafe;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  color: var(--primary);
}

.quick-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.quick-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ===================================
   Team Page
   =================================== */
.team-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.team-hero .container {
  position: relative;
  z-index: 1;
}

.team-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.team-hero-img {
  position: absolute;
  inset: 0;
}

.team-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.team-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

.team-members {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 5rem 2rem;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member-photo {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  color: var(--foreground);
}

/* ===================================
   Platform Detail Pages
   =================================== */
.content-max {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .content-max {
    padding: 3rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .content-max {
    padding: 3rem 2rem;
  }
}

.content-section {
  margin-bottom: 3rem;
}

/* Overview box */
.overview-box {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.overview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.overview-header h2 {
  font-size: 1.375rem;
}

.overview-box p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.overview-box p:last-child {
  margin-bottom: 0;
}

/* Feature cards */
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.feature-icon--blue {
  background: #dbeafe;
  color: #2563eb;
}
.feature-icon--red {
  background: #fee2e2;
  color: #dc2626;
}
.feature-icon--orange {
  background: #ffedd5;
  color: #ea580c;
}
.feature-icon--green {
  background: #dcfce7;
  color: #16a34a;
}
.feature-icon--purple {
  background: #f3e8ff;
  color: #9333ea;
}
.feature-icon--sky {
  background: #e0f2fe;
  color: #0369a1;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Step-by-step guide */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.step-num {
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.step-content p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.step-content p.tip-note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

.step-content ul {
  list-style: none;
  margin: 0.25rem 0 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-content ul li {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Pro Tips box */
.pro-tips-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.pro-tips-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pro-tips-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.pro-tips-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pro-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.pro-tip-dot {
  color: var(--primary);
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* Warning box */
.warning-box {
  position: relative;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 0.75rem;
  padding: 1.5rem;
  padding-left: 3.75rem;
}

.warning-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.warning-box svg {
  position: absolute;
  left: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.warning-box h3 {
  color: #7c2d12;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.warning-box p {
  color: #9a3412;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

/* How It Works description */
.how-it-works p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ===================================
   Colour Helpers
   =================================== */

.bg-blue-600 {
  background: #2563eb;
}
.bg-red-500 {
  background: #ef4444;
}
.bg-red-600 {
  background: #dc2626;
}
.bg-orange-500 {
  background: #f97316;
}
.bg-green-600 {
  background: #16a34a;
}
.bg-purple-600 {
  background: #9333ea;
}
.bg-sky-600 {
  background: #0284c7;
}
.bg-sky-700 {
  background: #0369a1;
}

.text-blue-600 {
  color: #2563eb;
}
.text-red-600 {
  color: #dc2626;
}
.text-orange-500 {
  color: #f97316;
}
.text-green-600 {
  color: #16a34a;
}
.text-purple-600 {
  color: #9333ea;
}
.text-sky-700 {
  color: #0369a1;
}

/* ===================================
   Misc Utilities
   =================================== */

.text-primary {
  color: var(--primary);
}
.text-muted {
  color: var(--muted);
}
.text-white {
  color: white;
}

.leading-relaxed {
  line-height: 1.7;
}

.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mt-auto {
  margin-top: auto;
}
.pt-4 {
  padding-top: 1rem;
}

.border-t {
  border-top: 1px solid var(--border);
}

.fw-bold {
  font-weight: 700;
}
.fw-semi {
  font-weight: 600;
}
.fw-medium {
  font-weight: 500;
}

.text-sm {
  font-size: 0.875rem;
}
.text-xs {
  font-size: 0.75rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
