/* =========================================================================
   Base & Variables
   ========================================================================= */
:root {
  /* Colors */
  --c-light: #f9f6ed;
  --c-dark-blue: #1d2b53;
  --c-yellow: #f8de22;
  --c-black: #0d0d0d;
  --c-white: #ffffff;
  --c-blue-accent: #2b3b7f;
  --c-cyan: #00f7ff;
  --c-grey: #999999;
  --c-dark-red: #940002;
  --c-light-blue: #c6fdff;
  --c-light-blue-border: #32f9ff;
  --c-light-yellow: #faffc6;
  --c-light-yellow-border: #f8de22;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Fraunces', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-light);
  color: var(--c-black);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================================================
   Reusable Utility Classes
   ========================================================================= */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.relative { position: relative; }

/* Spacing */
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.pb-0 { padding-bottom: 0 !important; }

/* Alignment */
.text-center { text-align: center; }
.max-w-800 { max-width: 800px; }

/* Text Utilities */
.fw-300 { font-weight: 300; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-italic { font-style: italic; }
.italic-blue { color: var(--c-blue-accent); font-style: italic; }
.bold-black { color: #000; font-weight: 600; }
.text-dark { color: #0d0d0d; }
.text-white { color: var(--c-white); }
.text-grey { color: var(--c-grey); }
.text-yellow { color: var(--c-yellow); }

.bg-light { background-color: var(--c-light); }
.bg-dark-blue { background-color: var(--c-dark-blue); }
.bg-yellow { background-color: var(--c-yellow); }
.bg-black { background-color: var(--c-black); }

/* Typography */
.display-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 400;
}

.desc-large {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.5;
}

.desc-medium {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.5;
}

.text-large { font-size: 1.25rem; }

/* =========================================================================
   Global Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 400;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.arrow { font-size: 1.4rem; font-weight: 400; line-height: 1; }
.btn-icon { width: 30px; height: 30px; }

.btn-primary {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border: 3px solid var(--c-cyan);
}

.btn-outline-dark {
  background-color: var(--c-white);
  color: var(--c-black);
  border: 2px solid var(--c-black);
}

.btn-dark-outline {
  background-color: var(--c-black);
  color: var(--c-white);
  border: 2px solid var(--c-cyan);
}

.btn-nav-contact {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border: 1px solid var(--c-cyan);
  padding: 10px 20px;
}

.btn-long {
  background-color: var(--c-white);
  color: var(--c-black);
  border: 4px solid var(--c-black);
  width: 100%;
  max-width: 800px;
  font-size: 1.5rem;
  padding: 20px;
}

/* Small Button (for Cards/Grids) */
.btn-small {
  background-color: var(--c-dark-blue);
  color: var(--c-white);
  border: 1px solid var(--c-cyan);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}

.btn-small:hover { opacity: 0.85; }
.arrow-small { font-size: 1.1rem; }

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(240, 237, 228, 0.92);
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
  z-index: 1000;
  height: 95px;
  display: flex;
  align-items: center;
    padding: 20px 40px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: 15px; }
.logo-img { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; }

.logo-text {
  display: flex;
  flex-direction: column;
  color: var(--c-black);
  font-family: 'Trebuchet MS', sans-serif;
}

.logo-textw {
  display: flex;
  flex-direction: column;
  font-family: 'Trebuchet MS', sans-serif;
}

.logo-title { font-size: 1.2rem; font-weight: 600; }
.logo-sub { font-size: 0.65rem; letter-spacing: 1px; }

/* Mobile Toggle Checkbox */
.nav-toggle, .nav-toggle-label { display: none; }

.nav-toggle-label {
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle-label span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--c-black);
  border-radius: 2px;
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 20px; font-family: var(--font-mono); font-size: 0.9rem; }
.nav-links a { color: #7e7e7e; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--c-black); }

/* =========================================================================
   Hero Section (Overlaps & Boundaries)
   ========================================================================= */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}

.dashed-box {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70px;
  right: 70px;
  border: 2px dashed #111;
  border-radius: 6px;
  z-index: 1;
}

.content-layer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-mask {
  background-color: var(--c-light);
  padding: 10px 20px;
  margin-left: 30px; 
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.25;
  font-weight: 400;
  margin: 0;
  color: #555;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.5;
  color: #222;
  margin: 0;
}

.button-group {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Base Hero overlaps */
.hero-btn-top { margin-right: 40px; }
.hero-btn-bottom { margin-right: 120px; }

/* Raise Capital / Debt Free layout overlaps */
.hero-button-bottom-right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  transform: translateY(30px);
  padding-right: 30px;
}

/* =========================================================================
   Grid Layouts & Lists
   ========================================================================= */
.split-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Bordered Lists */
.bordered-list {
  list-style: none;
  border-top: 1px solid currentColor;
}
.bordered-list li {
  padding: 25px 0;
  border-bottom: 1px solid currentColor;
  font-weight: 300;
}

.border-dark li, .border-dark { border-color: rgba(0,0,0,0.2); color: var(--c-black); }
.border-light li, .border-light { border-color: rgba(255,255,255,0.2); }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background-color: var(--c-white);
  border: 1px solid var(--c-dark-red);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Custom Grids */
.equity-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.equity-return-box h4 { font-family: var(--font-serif); font-size: 1.8rem; }
.who-content-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.dream-content-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }

.text-right-desktop { text-align: right; }
.img-responsive { max-width: 100%; height: auto; }
.chart-img { max-width: 350px; }

/* =========================================================================
   Debt-Free "Four Problems" Layout
   ========================================================================= */
.problems-container {
  display: flex;
  flex-direction: column;
}

.problem-item {
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding: 50px 0;
}

.no-border-bottom { border-bottom: none !important; }

.problem-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--c-black);
  margin-bottom: 30px;
}

.problem-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.problem-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.small-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-blue-accent);
  margin-bottom: 8px;
}

/* =========================================================================
   Legacy / Home Sections
   ========================================================================= */
.stats-banner { border-top: 1px solid var(--c-black); border-bottom: 1px solid var(--c-black); background: var(--c-white); padding: 50px 0; }
.stats-container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; }
.stat-number { font-family: var(--font-serif); font-size: 4rem; font-weight: 600; line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 300; letter-spacing: 1.5px; }

.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.eco-title, .eco-highlight { font-family: var(--font-serif); font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; }
.eco-highlight { color: #b3b1ab; }
.eco-list { border-top: 1px solid rgba(255,255,255,0.2); }
.eco-list li { font-size: 1.5rem; font-weight: 300; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.2); display: flex; gap: 20px; }
.eco-num { font-family: var(--font-mono); font-size: 1rem; opacity: 0.6; }
.eco-desc { font-size: 1.5rem; font-weight: 300; margin-bottom: 30px; }
.eco-bold-desc { font-size: 1.5rem; font-weight: 600; text-align: right; margin-bottom: 40px; }

.ways-title { font-family: var(--font-serif); font-size: 3.5rem; font-weight: 400; margin-bottom: 60px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: -2px; }
.card { border: 2px solid var(--c-dark-red); padding: 40px 20px; background-color: var(--c-white); display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }

/* =========================================================================
   Footer Section
   ========================================================================= */
.footer { padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 40px; margin-bottom: 20px; }
.footer-label { font-family: var(--font-mono); font-weight: 300; font-size: 0.9rem; margin-bottom: 20px; opacity: 0.7; }
.footer-links li { margin-bottom: 10px; font-family: var(--font-mono); }
.footer-contact { font-family: var(--font-mono); font-size: 1.1rem; margin-bottom: 10px; }
.footer-bottom { font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.6; text-align: left; }

/* =========================================================================
   Media Queries (Mobile Adjustments)
   ========================================================================= */
@media (max-width: 992px) {
  .eco-grid, .footer-grid, 
  .split-section, .equity-content-grid, .who-content-grid, .dream-content-grid,
  .problem-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-label { margin-bottom: 10px; }

  .text-right-desktop, .text-right { text-align: left !important; }
  
  .center-mobile { margin: 0 auto; display: flex; }
}

@media (max-width: 768px) {
  /* Mobile Header Menu */
  .nav-toggle-label { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(240, 237, 228, 0.98);
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-links { flex-direction: column; gap: 25px; font-size: 1.1rem; margin-bottom: 20px; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }

  /* Hero Mobile Reset */
  .hero { padding-top: 130px; padding-bottom: 50px; }
  .dashed-box { left: 20px; right: 20px; bottom: 10px;}
  .text-mask { margin-left: 0; padding: 10px 5px; }
  .hero-buttons { align-items: center; }
  .hero-button-bottom-right { justify-content: center; transform: translateY(0); padding-right: 0; margin-top: 20px;}
  .btn { width: 100%; }
  
  .hero-btn-top, .hero-btn-bottom { margin-right: 0; }

  /* Typography Reset */
  .hero-title, .eco-title, .ways-title, .display-title { font-size: 2.2rem; }
  .hero-desc, .desc-large, .desc-medium { font-size: 1.1rem; }

  /* "Four Problems" Mobile Card styling */
  .desktop-only { display: none; }

  .problem-item {
    border-bottom: none;
    padding: 30px 20px;
    margin-bottom: 20px;
  }
  
  .problem-content-grid { gap: 20px; }
  .problem-col { gap: 20px; }

  .mob-card-blue {
    background-color: var(--c-light-blue);
    border: 1px solid var(--c-light-blue-border);
  }

  .mob-card-yellow {
    background-color: var(--c-light-yellow);
    border: 1px solid var(--c-light-yellow-border);
  }
  
  /* Ensure the small button resets width */
  .problem-btn-wrapper .btn-small { width: 100%; justify-content: center; }
  .mobile-center { display: flex; justify-content: center; width: 100%; }
}