/* General Styles */
:root {
  --brand: #46add2;
  --accent: #ff6b6b;
  --text: #0b1020;
  --muted: #64748b;
  --border: rgba(11,16,32,.10);
  --card: rgba(255,255,255,.78);
  --shadow: 0 18px 55px rgba(0,0,0,.10);
  --radius: 18px;
  --content-max: 1240px;
}

*{ box-sizing: border-box; }

/* FIX: Removed height: 100% which causes background tiling issues */
html { 
  background-color: #f7f8fc; /* Safety color that matches bottom of gradient */
}

/* Ensure the page content stays above the background glows */
.page, 
.hero, 
.feature-grid {
  position: relative;
  z-index: 10;
}

body {
  font-family: "Source Sans Pro", Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 10% 12%, rgba(204, 111, 111, 0.4), transparent 95%),
     
    radial-gradient(900px 600px at 92% 18%, rgba(128, 139, 102, 0.35), transparent 70%),
   
    /* radial-gradient(1000px 600px at 15% 72%, rgba(253, 234, 182, 0.4), transparent 70%),  */
    radial-gradient(900px 600px at 70% 92%, rgba(171, 104, 147, 0.3), transparent 70%),
    linear-gradient(180deg, #ffffff 10%, #f7f8fc 100%);
    
  /* THE FIX FOR BACKGROUND REPEAT/TILE ISSUES */
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  
  margin: 0;
  min-height: 100vh;
  isolation: isolate; 
}

/* =========================
   Hero (centered)
   ========================= */
.hero{
  position: relative;
  overflow: hidden;
  padding: 5.2rem 0 3.2rem;
}

.hero-center-wrap{
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: 2.75em;
  font-weight: 700;
  text-align: left;
  margin: 0 0 20px 0;
  /* letter-spacing: -0.035em;  */
  line-height: 1.3;
  color: #aa1a26; /* Solid Red/Coral color */
}

.hero-subtitle{
  margin: .75rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5f636d;
  max-width: 760px;
}

.hero-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-card{
  text-align: left;
  max-width: 980px;
  margin-inline: auto;
}

.hero-card p{ line-height: 1.7; }

.logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
}



/* =========================
   Topbar (glass)
   ========================= */
.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  padding-left: 20px;
  z-index: 1400;
  background: rgba(255,255,255,.60);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner{
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand, .brand a{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  color: var(--text);
}

.brand-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.page{ padding-top: 64px; }


/* =========================
   GM Hamburger + menu
   ========================= */
.menu-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(11,16,32,.12);
  background: rgba(255,255,255,.90);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}
.menu-btn:hover{ box-shadow: 0 12px 26px rgba(0,0,0,.10); }

.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.menu-panel{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(380px, 92vw);
  z-index: 1300;
  padding: 18px;

  background: rgba(255,255,255,.86);
  border-left: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform: translateX(110%);
  transition: transform .25s ease;
  box-shadow: -24px 0 60px rgba(0,0,0,0.14);
}

.menu-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.menu-title{
  font-weight: 850;
  font-size: 1.05rem;
}

.menu-close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(11,16,32,.12);
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.menu-panel a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(11,16,32,.86);
  text-decoration: none !important;
  font-weight: 700;
}
.menu-panel a i{
  width: 18px;
  text-align: center;
  color: rgba(11,16,32,.72);
}
.menu-panel a:hover{
  background: rgba(15, 23, 42, 0.06);
}

.menu-hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.menu-social{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.icon-link{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(11,16,32,.12);
  background: rgba(255,255,255,.86);
  text-decoration: none;
  color: rgba(11,16,32,.86);
  font-weight: 700;
}
.icon-link:hover{ box-shadow: 0 12px 26px rgba(0,0,0,.10); }

/* open state */
.menu-open .menu-overlay{
  opacity: 1;
  pointer-events: auto;
}
.menu-open .menu-panel{ transform: translateX(0); }
body.menu-open{ overflow: hidden; }


/* =========================
   Feature Grid & Cards
   ========================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  /*gap: 30px;  */
  max-width: 1100px;
  margin: 1.6rem auto 40px;
  margin: 30px auto;
}

@media (min-width: 768px) {
  .feature-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Consistent gap between cards */
  }
}

.feature-card {
  position: relative;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.05);
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);  */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Glassmorphism Effect */
  background: rgba(243, 238, 238, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* border: 1px solid rgba(255, 255, 255, 0.2);  */
  z-index: 20; 

  
}

.feature-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Subtle overlay on the card background */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.03); 
  z-index: -1;
}

.feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80%;
  width: 100%;
  padding: 0px;
}



.feature-title {
  /* 1. The Centering Lock */
  transform: translate(-50%, -50%); /* Moves the title's center to the card's center */
  font-size: 1.25rem;
  font-weight: 700;
  color: #363636;
  text-transform: uppercase;
  text-align: center;
  margin: 0;  
  line-height: 1.2;
  letter-spacing: -0.02em;
  transform: translateY(25px);  /*Moves down to center visually */
  transition: transform 0.3s ease;
}

.feature-text {
  color: rgba(11,16,32,.75);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  margin-top: 0px;  
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translateY(0px);

  max-height: 0;
  opacity: 0;
  margin: 0;
}

.feature-card:hover .feature-title {
  transform: translateY(0px); /* Slides up to make room */
}

.feature-card:hover .feature-text {
  opacity: 1;
}


/* =========================
   Feature Card Color Themes
   ========================= */

/* =========================
   Feature Card Color Themes
   ========================= */

.feature-card {
  isolation: isolate;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.3s ease;
  
}


/* show color layer */
/* foundation ADT */
.feature-card.feature-card-foundation2::before {
  opacity: 1;
  background:
   /* 1) Center glow / highlight */
  radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.6), transparent 85%),

  /* 2) Top-left purple blob */
  radial-gradient(circle at 18% 20%, rgba(189, 113, 157, 0.38), transparent 58%),

  /* 3) Upper-middle mauve / pink-purple blob */
  radial-gradient(circle at 65% 18%, rgba(140, 158, 68, 0.28), transparent 62%),
  radial-gradient(circle at 15% 90%, rgba(139, 158, 61, 0.28), transparent 62%),

  /* 4) Bottom-left pink blob */
  radial-gradient(circle at 38% 82%, rgba(70, 45, 55, 0.24), transparent 44%),

  /* 5) Right-side muted grey-purple blob */
  radial-gradient(circle at 85% 30%, rgba(123, 86, 110, 0.16), transparent 38%),

  /* 6) Base card background */
  linear-gradient(135deg, 
  rgba(235, 234, 240, 0.96) 0%,  /* Top-left */
  rgba(225, 228, 230, 0.94) 52%, /* Center */
  rgba(217, 221, 210, 0.92) 100% /* Bottom-right */
  );
}

.feature-card.feature-card-foundation::before {
  opacity: 1;
  background:
     /* 1) Center glow / highlight */
     
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 90% 22%, rgba(43, 27, 20, 0.26), transparent 30%),
    radial-gradient(circle at 42% 82%, rgba(66, 65, 36, 0.22), transparent 44%),
    radial-gradient(circle at 18% 18%, rgba(26, 22, 10, 0.34), transparent 60%),
    radial-gradient(circle at 82% 82%, rgba(88, 13, 57, 0.24), transparent 64%),
    linear-gradient(135deg, rgba(232, 239, 236, 0.95) 0%, rgba(234, 228, 231, 0.92) 100%);
}

/* foundation ADT */
.feature-card.feature-card-foundation1::before {
  opacity: 1;
  background:
     /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    
    radial-gradient(circle at 90% 22%, rgba(43, 27, 20, 0.26), transparent 30%),
    radial-gradient(circle at 42% 82%, rgba(66, 65, 36, 0.22), transparent 44%),
    radial-gradient(circle at 18% 18%, rgba(43, 61, 28, 0.34), transparent 60%),
    radial-gradient(circle at 82% 82%, rgba(88, 13, 57, 0.24), transparent 64%),
    linear-gradient(135deg, rgba(232, 239, 236, 0.95) 0%, rgba(234, 228, 231, 0.92) 100%);
}

/* Sorting */
.feature-card.feature-card-sorting::before {
  opacity: 1;
  background:
   /* 1) Center glow / highlight */
    /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 54% 54%, rgba(240, 232, 232, 0.9), transparent 58%),
    radial-gradient(circle at 18% 20%, rgba(213, 166, 116, 0.38), transparent 58%),
    radial-gradient(circle at 18% 80%, rgba(97, 73, 47, 0.2), transparent 58%), /* bottom left */
     radial-gradient(circle at 80% 20%, rgba(213, 166, 116, 0.5), transparent 58%), /* top right */
    radial-gradient(circle at 82% 80%, rgba(185, 99, 142, 0.22), transparent 64%),
    linear-gradient(135deg, rgba(246, 238, 229, 0.95) 0%, rgba(236, 228, 233, 0.92) 100%);
}



/* Tree */

.feature-card.feature-card-tree2::before {
  opacity: 1;
  background:
   /* 1) Center glow / highlight */
  radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),

  /* 2) Top-left purple blob */
  radial-gradient(circle at 18% 18%, rgba(117, 69, 103, 0.34), transparent 40%),

  /* 3) Upper-middle mauve / pink-purple blob */
  radial-gradient(circle at 62% 18%, rgba(19, 12, 18, 0.28), transparent 52%),

  /* 4) Bottom-left pink blob */
  radial-gradient(circle at 38% 82%, rgba(70, 50, 58, 0.24), transparent 44%),

  /* 5) Right-side muted grey-purple blob */
  radial-gradient(circle at 85% 30%, rgba(34, 25, 31, 0.16), transparent 38%),

  /* 6) Base card background */
  linear-gradient(135deg, rgba(235, 234, 240, 0.96) 0%, rgba(225, 228, 230, 0.94) 52%, rgba(217, 221, 210, 0.92) 100%);
}

.feature-card.feature-card-tree::before {
  opacity: 1;
  background:
   /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),

    radial-gradient(circle at 54% 54%, rgba(240, 232, 232, 0.9), transparent 58%),
    radial-gradient(circle at 18% 20%, rgba(114, 29, 29, 0.28), transparent 58%),
    radial-gradient(circle at 82% 80%, rgba(102, 46, 46, 0.22), transparent 64%),
    radial-gradient(circle at 85% 30%, rgba(129, 106, 120, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(246, 238, 229, 0.95) 0%, rgba(236, 228, 233, 0.92) 100%);
}

.feature-card.feature-card-graph::before {
  opacity: 1;
  background:
  /* 1) Center glow / highlight */
  radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.5), transparent 95%),

  /* 2) Top-left purple blob */
  radial-gradient(circle at 18% 18%, rgba(85, 72, 90, 0.34), transparent 40%),

  /* 3) Upper-middle mauve / pink-purple blob */
  radial-gradient(circle at 62% 18%, rgba(92, 71, 88, 0.28), transparent 52%),

  /* 4) Bottom-left pink blob */
  radial-gradient(circle at 38% 82%, rgba(133, 95, 111, 0.24), transparent 44%),

  /* 5) Right-side muted grey-purple blob */
  radial-gradient(circle at 85% 30%, rgba(129, 106, 120, 0.16), transparent 38%),

  /* 6) Base card background */
  linear-gradient(135deg, rgba(235, 234, 240, 0.96) 0%, rgba(225, 228, 230, 0.94) 52%, rgba(217, 221, 210, 0.92) 100%);
}

.feature-card.feature-card-graph1::before {
  opacity: 1;
  background:
     /* 1) Center glow / highlight /this is more light pink*/
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 20% 20%, rgba(228, 195, 210, 0.3), transparent 30%),
    radial-gradient(circle at 72% 72%, rgba(247, 225, 241, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(230, 209, 220, 0.55) 0%, rgba(233, 227, 232, 0.52) 100%);
    
}


.feature-card.feature-card-heap::before {
  opacity: 1;
  background:
    /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 18% 18%, rgba(211, 136, 130, 0.34), transparent 40%),
    radial-gradient(circle at 62% 18%, rgba(164, 128, 157, 0.28), transparent 52%),
    radial-gradient(circle at 38% 82%, rgba(217, 134, 169, 0.24), transparent 44%),
    radial-gradient(circle at 85% 30%, rgba(152, 113, 137, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(235, 234, 240, 0.96) 0%, rgba(225, 228, 230, 0.94) 52%, rgba(217, 221, 210, 0.92) 100%);
}



/* Graph */
.feature-card.feature-card-compression::before {
  opacity: 1;
  background:
     /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 18% 20%, rgba(145, 132, 61, 0.28), transparent 50%),
    radial-gradient(circle at 72% 72%, rgba(66, 48, 61, 0.24), transparent 64%),
    radial-gradient(circle at 90% 12%, rgba(77, 80, 59, 0.22), transparent 44%),
    radial-gradient(circle at 82% 82%, rgba(148, 111, 44, 0.24), transparent 64%),
    linear-gradient(90deg, rgba(233, 239, 247, 0.95) 0%, rgba(227, 229, 240, 0.92) 100%);
}


/* Boolean */
.feature-card.feature-card-boolean::before {
  opacity: 1;
  background:
     /* 1) Center glow / highlight */
    radial-gradient(circle at 50% 50%, rgba(240, 232, 232, 0.9), transparent 95%),
    radial-gradient(circle at 18% 18%, rgba(196, 190, 214, 0.34), transparent 30%),
    radial-gradient(circle at 62% 18%, rgba(123, 131, 182, 0.28), transparent 32%),
    radial-gradient(circle at 38% 82%, rgba(183, 198, 95, 0.24), transparent 34%),
    radial-gradient(circle at 85% 30%, rgba(120, 128, 122, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(235, 234, 240, 0.96) 0%, rgba(225, 228, 230, 0.94) 52%, rgba(217, 221, 210, 0.92) 100%);
}

.feature-kicker{
  display: inline-block;
  margin-bottom: .4rem;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .95;
}

.feature-kicker-tree{ color: #b14b79; }
.feature-kicker-graph{ color: #5679c9; }
.feature-kicker-foundation{ color: #5d8d7f; }
.feature-kicker-sorting{ color: #c48745; }
.feature-kicker-boolean{ color: #7a7f58; }
.feature-kicker-heap{ color: #cca740; }
.feature-kicker-compression{ color: #be76ac; }


/* =========================
   Footer
   ========================= */
.site-footer {
  /* Use a fixed background for the footer so it doesn't "tile" */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 3rem 2rem;
  text-align: left;
  position: relative;
  width: 100%;
  margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,.06);
}

.site-footer::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent), #7c3aed);
  opacity: .75;
}

/* NEW: align footer content with cards */
.site-footer .container {
  max-width: 1100px;   /* match your card/content width */
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-bottom {
  font-size: 1.1rem;
  line-height: 1.8;
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-start;  */
  gap: .6rem;
  color: rgba(11,16,32,.68);
  font-weight: 600;
}

.footer-divider {
  margin: 0 .25rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: rgba(11,16,32,.4);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .feature-card, .feature-title, .feature-text { 
    transition: none; 
  }
}









/* =========================
   Algorithm page
   ========================= */

.algorithm-page {
    padding-bottom: 3rem;
  }

  .algorithm-hero {
    position: relative;
    padding: 3.5rem 0 2rem;
  }

  .algorithm-shell {
    max-width: 1100px;
    margin: 0 auto;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(11,16,32,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 700;
    color: #aa1a26;
    margin-bottom: 1rem;
  }

  .algorithm-lead {
    max-width: 860px;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(11,16,32,.82);
    text-align: left;
  }

  .hero-demo-wrap {
    margin-top: 1.4rem;
    margin-bottom: 1.2rem;
  }

  

  /*
  .btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  padding: .60rem 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(116, 42, 42, 0.18);
  background: linear-gradient(135deg, #a83e53 0%, #a12727 55%, #b34343 100%);
  color: #f5f1f1;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(181, 29, 72, .10);
  transition:
    transform .28s cubic-bezier(.22, 1, .36, 1),
    box-shadow .28s cubic-bezier(.22, 1, .36, 1),
    filter .28s cubic-bezier(.22, 1, .36, 1),
    background .28s ease;
  will-change: transform;
}
  */


.btn-pink {
  color: #fff;
  border: 0;
  background-image: linear-gradient(135deg, #e993bd 0%, #a74c75 100%); /* Pink gradient */
  box-shadow: 0 10px 22px rgba(139, 71, 102, 0.22);
  display: inline-flex; /* Ensures icon and text are horizontally aligned */
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.78rem; /* Adjust padding to make button more balanced */
  font-size: 1.1rem; /* Standard font size */
  font-weight: 500; /* Bold text */
  /*text-transform: uppercase;  Uppercase text */
  border-radius: 11px; /* Slightly rounded corners */
  text-decoration: none; /* Remove underline */
  transition: transform 0.3s ease, background-image 0.3s ease; /* Smooth transition */
}

.btn-pink i{
  font-size: 1.1rem; /* Icon size */
  margin-right: 0.4rem; /* Space between icon and text */
}

.btn-pink:hover {
  color: white; /* Keep text white */
  transform: translateY(-2px); /* Slight hover lift effect */
  box-shadow: 0 12px 22px rgba(181, 29, 72, 0.12); /* Shadow on hover */
  filter: brightness(1.02); /* Slight brightness boost */
}

.btn-pink:active {
  transform: translateY(0); /* No pressed effect */
  box-shadow: 0 8px 18px rgba(181, 29, 72, 0.16); /* Active shadow */
}

.btn-pink:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(225, 87, 150, .28), 0 8px 18px rgba(139, 71, 102, 0.12); /* Focus-visible effect */
}


/**** button outline  */

.btn-outline {
  color: #111; /* Text color */
  border: 1.5px solid #111; /* Border color */
  background-color: transparent; /* Transparent background */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.78rem; 
  font-size: 1rem;
  font-weight: 500;
  /* text-transform: uppercase;  */
  border-radius: 11px;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.btn-outline i {
  font-size: 1.15rem;
  margin-right: 0.5rem;
}

.btn-outline:hover {
  color: #fff; /* White text on hover */
  background-color: #111; /* Black background on hover */
  transform: translateY(-2px); /* Hover effect (slightly lifts button) */
  border-color: #fff; /* White border on hover */
}

.btn-outline:active {
  transform: translateY(0); /* No press effect */
  box-shadow: 0 8px 18px rgba(181, 29, 72, 0.16); /* Optional active shadow */
}

.btn-outline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 .25rem rgba(225, 87, 150, .28), 0 8px 18px rgba(139, 71, 102, 0.12); /* Focus-visible effect */
}









  .hero-panel {
    margin-top: 1.5rem;
    padding: 1.35rem;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 18px 55px rgba(0,0,0,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 1rem;
  }

  .meta-card,
  .lesson-card,
  .concept-card,
  .step-card,
  .faq-card,
  .video-card {
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 18px 55px rgba(0,0,0,.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .meta-card {
    padding: 1rem;
  }

  .meta-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: .35rem;
    font-weight: 700;
  }

  .meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1020;
    line-height: 1.35;
  }

  .section-block {
    margin-top: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
    font-weight: 600;
    /*color: #be4d8f; */
    color: #da6574;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
  }

  .lesson-grid,
  .concept-grid,
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .lesson-card,
  .concept-card,
  .step-card,
  .faq-card,
  .video-card {
    padding: 1.35rem;
  }

  .card-heading {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: .75rem;
    color: #0b1020;
  }

  .card-heading span {
    color: #aa1a26;
  }

  .lesson-card p,
  .concept-card p,
  .faq-card p,
  .video-card p,
  .step-card p,
  .algorithm-shell li {
    color: rgba(11,16,32,.82);
    line-height: 1.7;
  }

  .algorithm-shell ul,
  .algorithm-shell ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
  }

  .step-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    /* border: 2px solid rgba(156, 29, 29, 0.18);  */
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    color: white;
    /* background: linear-gradient(135deg, #46add2, #d13557);  
    margin-bottom: .85rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9); /* Shadow effect */
    background: linear-gradient(135deg, #9e223b 0%, #ac3636 55%, #b84343 100%);

  }

  .inline-note {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-left: 4px solid #46add2;
    background: rgba(70,173,210,.08);
    border-radius: 12px;
    color: rgba(11,16,32,.82);
  }

  .code-block {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    background: rgba(11,16,32,.92);
    color: #f8fafc;
    overflow-x: auto;
    font-size: .96rem;
    line-height: 1.65;
  }

  .video-frame {
    margin-top: 1rem;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(11,16,32,.06);
  }

  .video-frame video {
    display: block;
    width: 100%;
    height: auto;
  }

  .checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
  }

  .info-pill {
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(11,16,32,.08);
    font-weight: 700;
    color: #334155;
  }

  .cta-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(11,16,32,.1);
    font-weight: 800;
    text-decoration: none;
    color: #0b1020;
    transition: transform .2s ease, box-shadow .2s ease;
  }

  .cta-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,.10);
    color: #d13557;
  }

  @media (max-width: 991px) {
    .hero-meta,
    .steps-grid,
    .checklist-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 767px) {
    .lesson-grid,
    .concept-grid,
    .faq-grid,
    .hero-meta,
    .steps-grid,
    .checklist-grid {
      grid-template-columns: 1fr;
    }

    .algorithm-hero {
      padding-top: 2.5rem;
    }

    .hero-title {
      font-size: 2.2rem;
    }

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

  
 