/* ===============================
   GLOBAL UTILITIES & VARIABLES
   =============================== */
/* Lazy Loading States */
.lazy-load,
.lazy-loaded {
  opacity: 1;
}

/* Hide Preload Container */
.preload-critical {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ===============================
   HERO SECTION - OPTIMIZED
   =============================== */
.hero-orbit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 2rem;
  min-height: 80vh;
  background: var(--color-page-bg);
  max-width: 1900px;
  margin: 0 auto;
  position: relative;
}

.orbit-content {
  justify-self: start;
}

.hero-title {
  text-align: left;
  font-size: clamp(1.5rem, 4vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 550;
  color: var(--color-text-primary);
}

.line {
  display: block;
}

.highlight {
  color: var(--color-text-primary);
  position: relative;
}

.glow {
  background: var(--color-accent-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 90%;
}

/* Hero Image */
.orbit-visual {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.floating-img {
  width: 100%;
  height: auto;
  max-width: 2000px;
  max-height: 600px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 50px var(--shadow-medium);
}

/* Placeholder */
.floating-placeholder {
  width: 100%;
  max-width: 650px;
  height: 550px;
  background: var(--color-card-bg);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  border: 2px dashed var(--color-border);
}

/* Enhanced Responsive Design */
@media (min-width: 1920px) {
  .hero-orbit {
    padding: 8rem 10%;
    min-height: 90vh;
  }

  .orbit-content {
    max-width: 700px;
  }

  .hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .hero-orbit {
    padding: 7rem 8%;
  }

  .orbit-content {
    max-width: 650px;
  }
}

@media (max-width: 1200px) {
  .hero-orbit {
    padding: 5rem 5%;
  }

  .orbit-content {
    max-width: 500px;
  }
}

@media (max-width: 900px) {
  .hero-orbit {
    grid-template-columns: 1fr;
    text-align: center;

    padding: 4rem 5%;
    min-height: auto;
  }

  .orbit-content {
    max-width: 100%;
    justify-self: center;
  }

  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .orbit-visual {
    justify-self: center;
    max-width: 600px;
    order: -1;
  }

  .floating-img {
    max-width: 100%;
    height: 350px;
  }

  .floating-placeholder {
    max-width: 100%;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-desc {
    font-size: 1.1rem;
  }

  .floating-img {
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .hero-orbit {
    padding: 2rem 1rem;

  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .floating-img {
    border-radius: 12px;
  }
}

/* ===============================
   BBB SECTION
   =============================== */
.bbb-section {
  background: linear-gradient(to bottom, var(--color-page-bg) 30%, var(--color-accent-2) 30%);
  padding: 50px 20px;
  position: relative;
}

.bbb-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.bbb-item {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-light);
  text-align: left;
  border: none;
  padding: 0;
}

.bbb-banner {
  background-color: var(--color-accent-1);
  color: var(--color-text-light);
  padding: 15px 25px;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  text-align: center;
}

.bbb-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.bbb-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bbb-content {
  padding: 25px;
}

.bbb-content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  font-weight: 600;

}

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

@media (max-width: 992px) {
  .bbb-section {
    padding: 60px 20px;
  }

  .bbb-banner {
    font-size: 1.3rem;
    padding: 12px 20px;
  }

  .bbb-img-wrapper {
    height: 180px;
  }

  .bbb-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .bbb-section {
    padding: 50px 15px;
    background: linear-gradient(to bottom, var(--color-page-bg) 15%, var(--color-accent-2) 15%);
  }

  .bbb-container {
    gap: 25px;
  }
}

/* ===============================
   IMPACT WAVE (Stats)
   =============================== */
.impact-wave {
  padding: 6rem 5%;
  background: var(--color-page-bg);
  text-align: center;
}

.wave-container h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
}

.stats-orbit {
  display: flex;
  justify-content: center;
  gap: 7rem;
  flex-wrap: wrap;
}

.stat-orbit {
  background: var(--color-card-bg);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  min-width: 180px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
}

.count-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.count {
  font-size: 3rem;
  font-weight: 800;
  display: inline-block;
  line-height: 1;
}

.plus {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-orbit p {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 220px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .impact-wave {
    padding: 4rem 5%;
  }

  .stats-orbit {
    gap: 2rem;
  }

  .stat-orbit {
    padding: 1.5rem 1rem;
    min-width: 140px;
  }

  .count {
    font-size: 2.5rem;
  }

  .plus {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .impact-wave {
    padding: 3rem 5%;
  }

  .stats-orbit {
    gap: 1.5rem;
  }

  .stat-orbit {
    padding: 1rem 0.75rem;
    min-width: 120px;
  }

  .count {
    font-size: 2rem;
  }

  .plus {
    font-size: 1.2rem;
  }
}

/* ===============================
   FOSS PHILOSOPHY
   =============================== */
.philosophy-constellation {
  padding: 6rem 5%;
  background: var(--color-page-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.constellation-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 3rem;
  position: relative;
}

.constellation-sub-title {
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.constellation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7rem;
  max-width: 1400px;
  margin: 0 auto;
}

.star-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 2.5rem 2rem;
  width: 340px;
  display: flex;
  flex-direction: column;
}

.meta-wrapper {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.star-icon {
  font-size: 1.7rem;
  color: var(--color-accent-1);
  margin-bottom: 0.8rem;
}

.star-icon-circle {
  font-size: 2.2rem;
  color: var(--color-accent-1);
}

.star-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0.75rem 0 1rem;
  line-height: 1.4;
}

.star-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 1.2rem;
  flex-grow: 1;
}

.meta {
  font-size: 0.90rem;
  font-weight: 550;
  color: var(--color-text-primary);
  background: var(--color-border);
  padding: 8px 16px;
  border-radius: 30px;
  letter-spacing: 0.2px;
}

@media (max-width: 1024px) {
  .constellation {
    gap: 2rem;
  }

  .philosophy-constellation {
    padding: 5rem 5%;
  }

  .constellation-title {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  .constellation-title {
    font-size: 2rem;
  }

  .star-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .philosophy-constellation {
    padding: 4rem 1.2rem;
  }

  .constellation-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .star-card {
    padding: 1.8rem 1.2rem;
  }

  .star-card h3 {
    font-size: 1.25rem;
  }
}

/* ===============================
   PULSE SECTION (Newsletter)
   =============================== */
.pulse-section {
  padding: 6rem 5%;
  background: var(--color-page-bg);
}

.pulse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pulse-newsletter {
  background: var(--color-card-bg);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 28px var(--shadow-light);
}

.pulse-newsletter h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.pulse-newsletter p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.pulse-form {
  display: flex;
  gap: 0.75rem;
}

.pulse-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--color-white);
}

.pulse-form button {
  background: var(--color-button);
  color: var(--color-text-light);
  border: none;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pulse-update {
  background: var(--color-card-bg);
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 6px 28px var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-badge {
  background: var(--color-accent-1);
  color: var(--color-text-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.update-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.update-img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 3px 12px var(--shadow-light);
}

.update-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.update-text {
  flex: 1;
}

.update-text h4 a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.update-text p {
  color: var(--color-text-muted);
  margin: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  color: var(--color-accent-1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .pulse-section {
    padding: 4rem 5%;
  }

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

  .pulse-newsletter {
    padding: 1.5rem;
  }

  .pulse-form {
    flex-direction: column;
    gap: 1rem;
  }

  .update-content {
    flex-direction: column;
    gap: 15px;
  }

  .update-img {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .pulse-section {
    padding: 3rem 5%;
  }

  .pulse-newsletter {
    padding: 1.2rem;
  }

  .update-img {
    height: 180px;
  }
}

/* ===============================
   ECOSYSTEM RING (STATIC VERSION)
   =============================== */
.ecosystem-ring {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--color-accent-2);
  position: relative;
  overflow: hidden;
}

/* Quote */
.ring-quote {
  font-size: 1.5rem;
  color: var(--color-text-primary);
  font-style: italic;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
  padding: 0 2rem;
}
/* Logo Container */
.ring-logos {
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
}

/* STATIC LOGO ROW */
.ring-static {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
}

/* Logo Tiles */
.ring-logos a {
  flex-shrink: 0;
  width: 150px;
  height: 80px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-card-bg);
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 8px 25px var(--shadow-light);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.ring-logos a img {
  max-width: 90%;
  max-height: 85%;
}

@media (max-width: 768px) {
  .ecosystem-ring {
    padding: 3rem 1rem;
  }

  .ring-quote {
    font-size: 1.25rem;
    padding: 0 1rem;
  }

  .ring-logos a {
    width: 140px;
    height: 70px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .ring-quote {
    font-size: 1.1rem;
  }

  .ring-logos a {
    width: 120px;
    height: 60px;
    padding: 10px;
  }
}

/* ===============================
   IMPACT STORIES (STATIC VERSION)
   =============================== */
.redesigned-stories {
  padding: 80px 0;
  background: var(--color-page-bg);
  text-align: center;
}

.redesigned-stories h2 {
  font-size: 2.5rem;
  color: var(--color-text-primary);
  font-weight: 700;
  margin-bottom: 60px;
}

/* STATIC LAYOUT */
.impact-static {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

/* Card Styling */
.impact-card {
  position: relative;
  flex: 0 0 320px;
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  text-decoration: none;
}

.impact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.impact-overlay {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  color: var(--color-text-primary);
  padding: 10px 22px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .impact-card {
    flex: 0 0 260px;
    height: 360px;
  }

  .redesigned-stories h2 {
    font-size: 2rem;
  }
}

@media (max-width: 500px) {
  .impact-card {
    flex: 0 0 220px;
    height: 300px;
  }

  .impact-overlay {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* ==============================================
   TOOLBOX & EXPERTS SECTION (STATIC VERSION)
   ============================================== */
.toolbox {
  padding: 5rem 2rem;
  background: var(--color-page-bg);
}

.expert-tool-wrapper {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Orbit Containers */
.tools-orbit,
.experts-orbit {
  flex: 1;
  background: var(--color-card-bg);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  border: 1px solid var(--color-primary);
}

.orbit-header {
  margin-bottom: 35px;
}

.tools-orbit h3,
.experts-orbit h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

/* STATIC GRID LAYOUT */
.static-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 10px 0 20px;
}

/* Tool & Expert cards */
.tool-card,
.expert-card {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid var(--color-white);
  box-shadow: 0 5px 15px var(--shadow-light);
}

/* Image fills the circle perfectly */
.tool-card img,
.expert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text fallback (no image) */
.tool-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  padding: 5px;
}

.expert-initial {
  font-weight: 800;
  color: var(--color-accent-2);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .expert-tool-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .tools-orbit,
  .experts-orbit {
    width: 100%;
    padding: 40px 20px;
  }

  .tools-orbit h3,
  .experts-orbit h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .toolbox {
    padding: 3rem 1rem;
  }

  .tool-card,
  .expert-card {
    width: 65px;
    height: 65px;
  }
}