/* Trending section initial dim state and smooth reveal */
.community-section {
  transition: opacity 0.3s ease;
}
.community-section.is-dim {
  opacity: 0.7;
}
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Arial, sans-serif;
  color: #e7e7ea;
  background: #020207;
}

.glass-header {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 95vw;
  padding: 24px 48px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0);
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
}

.glass-header.scrolled {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: none;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  width: 80%;
  border-radius: 16px;
  top: 20px;
  padding: 16.8px 48px;
}

.branding {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.header-links {
  display: flex;
  gap: 50px;
}

.header-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.header-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hamburger (hidden by default; shown on tablet/mobile) */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hamburger-box {
  width: 24px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  top: 7px;
}

/* Active (X) state */
.hamburger.is-active .hamburger-inner {
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
  transform: rotate(90deg) translateX(-7px);
}

.hamburger.is-active .hamburger-inner::after {
  opacity: 0;
  transform: translateY(-7px);
}

/* Tablet/Mobile header layout */
@media (max-width: 1024px) {
  .glass-header {
    width: 80vw;
    padding: 18px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hamburger {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  /* Ensure logo stays on the left on tablet/mobile */
  .branding {
    margin-left: 0;
    order: 1;
  }

  /* Mobile menu panel hidden by default */
  .header-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  .glass-header.nav-open .header-links {
    display: flex;
    /* Double the opacity when menu is open on tablet/mobile */
    background: rgba(255, 255, 255, 0.16);
  }

  .header-links a {
    display: block;
    text-align: left;
  }

  /* Hide-on-scroll behavior: header slides away by moving top */
  .glass-header.header-hidden {
    top: -120px;
  }
}

/* Mobile-specific: no moving effects, always glass at top */
@media (max-width: 640px) {
  .glass-header {
    /* allow top to animate for hide/reveal */
    transition: top 0.3s ease;
    justify-content: space-between; /* logo left, hamburger right */
    gap: 10px; /* minor spacing still fine */
    border-radius: 0; /* no radius on mobile */
  }
  .branding {
    margin-left: 0; /* keep logo at extreme left */
  }
  .glass-header.scrolled {
    top: 0; /* keep header at the very top on mobile */
    border-radius: 0; /* enforce square corners even when scrolled */
  }
  /* Ensure hidden state wins over scrolled on mobile */
  .glass-header.header-hidden,
  .glass-header.header-hidden.scrolled {
    top: -120px;
  }
  /* Center align nav links when menu is open on mobile */
  .glass-header.nav-open .header-links a {
    text-align: center;
  }

  /* Hero: mobile typography and spacing adjustments */
  .hero {
    padding: 96px 0 36px;
  }
  .hero-inner {
    gap: 6px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 2.6rem) !important;
    line-height: 1.1;
    margin: 10px 0;
  }
  .hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.5;
    padding: 0 4px;
  }
  .hero-ctas {
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 12px;
  }
  .btn-primary,
  .btn-secondary {
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
  }
  .hero-stats {
    grid-template-columns: 1fr !important;
    margin-top: 28px;
  }
  .hero-stats .stat-box {
    padding: 16px 10px;
  }
  .hero-stats .stat-number {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
  }
  .hero-stats .stat-label {
    font-size: 12px !important;
  }
  /* Hide the 4th stat card on mobile */
  .hero-stats .stat-box:nth-child(4) {
    display: none;
  }
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  overflow: hidden;
  background: #000; /* base background */
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%; /* only top 40% of the section */
  background: radial-gradient(
    ellipse at 50% -30%,
    rgba(93, 0, 204, 0.5) 0%,
    rgba(46, 0, 122, 0.5) 40%,
    transparent 80%
  );

  pointer-events: none;
  z-index: 0;
}

/* overlay effect */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(180, 180, 180, 0.3),
    rgba(100, 100, 100, 0.2)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #cfd3ff;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.5s forwards;
}

.hero-title {
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 20px 0;
}

.hero-content {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
  color: #b8bdd1;
  max-width: 800px;
  line-height: 1.6;
  font-size: 1.5rem;
}

/* New smaller subtext under hero heading */
.hero-subtext {
  color: #b8bdd1;
  max-width: 800px;
  margin: 4px auto 0;
  line-height: 1.6;
  font-size: 16px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a88bff;
  box-shadow: 0 0 0 4px rgba(168, 139, 255, 0.2);
}

.pill-badge {
  font-size: 1rem;
  opacity: 0.8;
}

.hero-subtitle {
  color: #b8bdd1;
  max-width: 800px;
  line-height: 1.6;
  font-size: 1.5rem;
}

.hero-subtitle-highlight {
  background-color: rgb(252, 223, 0);
  color: #000000;
  padding: 0 8px;
  border-radius: 0;
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-subtitle-highlight-purple {
  background-color: rgba(140, 82, 255, 0.5);
  color: #ffffff;
  padding: 0 8px;
  border-radius: 0;
  display: inline-block;
  transform: rotate(-1deg);
  margin-top: 10px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.hero-ctas .btn {
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.hero-ctas .btn-primary {
  animation-delay: 0.3s;
}

.hero-ctas .btn-secondary {
  animation-delay: 0.4s;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px;
  margin-top: 120px;
  width: 100%;
  max-width: 1100px;
}

.hero-stats .stat-box {
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-stats .stat-box:nth-child(1) {
  animation-delay: 0.4s;
}

.hero-stats .stat-box:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-stats .stat-box:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-stats .stat-box:nth-child(4) {
  animation-delay: 0.7s;
}

.hero-stats .stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #e7e7ea;
  margin-bottom: 8px;
}

.hero-stats .stat-label {
  color: #b8bdd1;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  color: #fff;
  padding: 12px 32px;
  border-radius: 16px;
  font-size: 16px;
  background: linear-gradient(
    rgb(128, 107, 255) 40.2304%,
    rgb(127, 86, 217) 100%
  );
  box-shadow: 0 8px 24px rgba(127, 86, 217, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  color: #fff;
  padding: 12px 32px;
  border-radius: 16px;
  font-size: 16px;
  background: transparent;
  border: 1px solid #fff;
  transition: box-shadow 0.3s ease;
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1px #fff;
}

/* hero animation */
.hero-animation {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-animation iframe {
  display: block;
}

/* ===== Waitlist Modal ===== */
body.modal-open {
  overflow: hidden;
}

/* In the waitlist modal, the badge (hero-pill) should not animate */
#waitlist-modal .hero-pill {
  opacity: 1;
  animation: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(8px) scale(0.98);
  width: min(640px, 92vw);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color: #e7e7ea;
  opacity: 0;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0) scale(1);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-dialog {
    transition: none !important;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #e7e7ea;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.modal-title {
  margin: 8px 0 6px 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.modal-text {
  margin: 0 0 18px 0;
  color: #a6abc3;
  font-size: 0.98rem;
}

.modal-cta {
  display: inline-block;
}

/* Modal form */
.modal-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e7e7ea;
  outline: none;
  font-size: 0.98rem;
}

.modal-input::placeholder {
  color: #9aa1b8;
}

.modal-input:focus {
  border-color: rgba(127, 86, 217, 0.8);
  box-shadow: 0 0 0 3px rgba(127, 86, 217, 0.25);
}

.modal-submit.btn-primary {
  padding: 12px 20px;
}

.modal-feedback {
  margin-top: 10px;
  min-height: 20px;
  font-size: 0.95rem;
}

.modal-feedback.error {
  color: #ff9494;
}

.modal-feedback.success {
  color: #7fffd4;
}

/* Hide-only utility for labels */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

@media (max-width: 560px) {
  .modal-form {
    grid-template-columns: 1fr;
  }
}

/* hero stats: 3 columns */
.hero-stats {
  width: 100%;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 16px 12px;
}

.stat-number {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
}

.stat-text {
  color: #a6abc3;
  font-size: 0.98rem;
  margin-top: 6px;
}

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

/* spacing: header is fixed; provide top/bottom padding but let height fit content */
.hero {
  padding: 120px 0 48px;
}

@media (max-width: 860px) {
  .hero-brands {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-stat {
    text-align: center;
  }
}

/* resources section removed */

/* ===== FAQ Section (Accordion) ===== */
.faq {
  margin-top: 100px;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 60px 0 40px 0;
}

.faq-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-header {
  text-align: center;
}

.faq-content {
  max-width: 1200px;
  margin: 0 auto;
  width: min(1200px, 92vw);
}

.faq-left .faq-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cfd3ff;
}

.faq-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 14px 0 24px;
}

.faq-right .accordion,
.accordion {
  display: grid;
  gap: 16px;
}

.acc-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem; /* match answer size */
  font-weight: 400; /* match answer weight */
  border: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-toggle .pm-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}
.accordion-toggle .pm-icon::before,
.accordion-toggle .pm-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 300ms ease, opacity 300ms ease;
}
.accordion-toggle .pm-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.acc-item.open .accordion-toggle .pm-icon::after {
  opacity: 0;
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: #b8bdd1;
  transition: max-height 400ms ease, padding 400ms ease, opacity 300ms ease,
    transform 300ms ease;
  opacity: 0.6;
  transform: translateY(-6px);
}

.acc-item.open .acc-panel {
  max-height: 260px; /* large enough for content */
  padding: 0 20px 18px;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .faq-inner {
    grid-template-columns: 1fr;
  }
}
/* cards grid removed */

/* ===== Resources Section ===== */
.resources-section {
  padding: 60px 20px 80px;
}

.resources-container {
  max-width: 1200px;
  margin: 0 auto;
}

.resources-header {
  text-align: center;
  margin-bottom: 40px;
}

.resources-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e7e7ea;
  margin-top: 16px;
}

/* Resource Cards Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resource-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.resource-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #806bff, #7f56d9);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 28px;
  color: #fff;
}

.resource-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e7e7ea;
  margin: 0 0 12px 0;
}

.resource-card-description {
  font-size: 0.95rem;
  color: #b8bdd1;
  line-height: 1.5;
  margin: 0;
}

/* Mobile responsiveness for resource cards */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .resource-card {
    padding: 24px 16px;
  }

  .resource-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .resource-card-title {
    font-size: 1.1rem;
  }

  .resource-card-description {
    font-size: 0.9rem;
  }
}

/* ===== Bento Grid Section ===== */
.bento-section {
  padding: 80px 20px;
}

.bento-container {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-header {
  text-align: center;
  margin-bottom: 60px;
}

.bento-title-main {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e7e7ea;
  margin-top: 16px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  grid-template-areas:
    "card1 card1 card2 card2 card3 card3"
    "card4 card4 card4 card5 card5 card5";
}

.bento-card {
  position: relative;
  padding: 32px 0 0 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  height: 250px;
  display: flex;
  flex-direction: column;
  /* prepare for lazy animation */
  opacity: 0;
  transform: translateY(20px);
}

.bento-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  z-index: 1;
  padding: 0 32px;
}

.bento-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  margin-top: -100px;
  z-index: 0;
  position: relative;
}
.bento-image-bottom {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 8px;
  margin-top: -100px;
  z-index: 0;
  position: relative;
}

#bento-image-bottom {
  margin-top: 0;
}

.bento-card-reversed .bento-image {
  margin-top: 0;
  margin-bottom: auto;
}

.bento-card-1 {
  grid-area: card1;
}

.bento-card-2 {
  grid-area: card2;
}

.bento-card-3 {
  grid-area: card3;
}

/* Lazy reveal for bento cards (similar to promo gating) */
.bento-grid.loaded .bento-card {
  animation: fadeInUp 0.7s ease-out forwards;
}
.bento-grid.loaded .bento-card:nth-child(1) {
  animation-delay: 0.15s;
}
.bento-grid.loaded .bento-card:nth-child(2) {
  animation-delay: 0.2s;
}
.bento-grid.loaded .bento-card:nth-child(3) {
  animation-delay: 0.25s;
}
.bento-grid.loaded .bento-card:nth-child(4) {
  animation-delay: 0.3s;
}
.bento-grid.loaded .bento-card:nth-child(5) {
  animation-delay: 0.35s;
}

.bento-card-4 {
  grid-area: card4;
  padding: 0 32px 32px 32px;
}

.bento-card-5 {
  grid-area: card5;
  padding: 0 32px 32px 32px;
}

/* Ensure inner content in cards 4 and 5 has 32px bottom padding */
.bento-card-4 .bento-content,
.bento-card-5 .bento-content {
  padding-bottom: 32px;
}

.bento-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 6px;
  color: #ffb3b3;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  width: fit-content;
}

.bento-star {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1rem;
  opacity: 0.6;
}

/* ===== Community Section ===== */
.community-section {
  padding: 64px 20px 40px;
}

/* On larger desktops, tighten the gap below the hero */
@media (min-width: 1280px) {
  .community-section {
    padding-top: 24px;
  }
}

.community-container {
  max-width: 1200px;
  margin: 0 auto;
}

.community-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.community-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #e7e7ea;
  margin: 0 0 4px 0;
}

.community-subtitle {
  margin: 0;
  color: #a6abc3;
  font-size: 0.95rem;
}

.community-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e7e7ea;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.community-browse:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.community-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.community-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.community-thumb {
  position: relative;
  height: 220px;
  background: #0b0f1a;
}
.community-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-thumb.dark {
  background: #0b0e14;
}

/* Hover overlay on community cards */
.community-overlay {
  position: absolute;
  inset: 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.75) 100%
  );
  color: #ffffff;
  text-align: center;
  gap: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.community-overlay p {
  margin: 0;
}

.overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #ffffff; /* whiter bg */
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0b0e14; /* blackish text */
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.overlay-btn:hover {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.12);
}

.community-card:hover .community-overlay,
.community-card:focus-within .community-overlay {
  opacity: 1;
  transform: translateY(0);
}

.community-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.community-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.community-avatar.initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b0e14;
  background: #e7e7ea;
}

.community-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.community-card-title {
  margin: 0;
  font-size: 1rem;
  color: #e7e7ea;
}

.community-stats {
  display: flex;
  gap: 14px;
  color: #a6abc3;
  font-size: 0.9rem;
}
.community-stats i {
  opacity: 0.9;
}

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

@media (max-width: 640px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
  .community-thumb {
    height: 180px;
  }
}

/* ===== Hero Agent Builder (input + chips) ===== */
.hero-agent {
  max-width: 960px;
  margin: 18px auto 0 auto;
  padding: 0 16px;
}

.agent-box {
  position: relative;
  background: rgba(255, 255, 255, 0.03); /* match site card background */
  max-width: 750px;
  color: #e7e7ea;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: left;
  margin: 0 auto; /* center the prompt box */
  padding: 22px 64px 54px 24px; /* extra bottom for inside chip */
  box-shadow: none;
  /* Match agent tags / badge appear animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.5s forwards;
}

.agent-placeholder {
  margin: 0;
  font-size: 16px;
  color: #b8bdd1; /* subtle on dark */
}

/* Textarea input inside the prompt box */
.agent-input {
  width: 100%;
  height: auto; /* allow auto-grow via JS */
  min-height: 68px; /* comfortable starting height */
  background: transparent;
  color: #e7e7ea;
  border: none;
  outline: none;
  resize: none; /* user cannot manually resize */
  overflow: hidden; /* hide inner scrollbars; container grows instead */
  font-size: 16px;
  line-height: 1.6;
  caret-color: #e7e7ea;
  padding: 0;
  margin: 0;
}

.agent-input::placeholder {
  color: #9aa1b8; /* lighter placeholder */
  opacity: 0.95;
}

.agent-build-chip {
  position: absolute;
  left: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0b0e14;
  background: #f3f4f6;
  border: 1px solid rgba(2, 6, 23, 0.08);
  border-radius: 999px;
  cursor: pointer;
}

.agent-build-chip i {
  color: #7f56d9;
}

/* Plus icon button (replaces build chip) */
.agent-plus {
  position: absolute;
  left: 16px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent; /* no bg by default */
  color: #e7e7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agent-plus:hover,
.agent-plus:focus-visible {
  background: rgba(255, 255, 255, 0.1); /* same hover as header nav links */
  border-radius: 8px;
}

/* Tooltip below the plus icon (hover and keyboard focus) */
.agent-plus::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.agent-plus:hover::after,
.agent-plus:focus::after {
  opacity: 1;
  visibility: visible;
}

.agent-plus:hover::after,
.agent-plus:focus::after {
  transform: translateX(-50%) translateY(0);
}

/* No tooltip when a file is attached */
.agent-plus.has-file::after {
  display: none !important;
  content: none !important;
}

/* When a file is attached, show a pill with filename */
.agent-plus.has-file {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px; /* match hover radius of plus icon */
  padding: 6px 8px 6px 10px;
  height: auto;
  width: auto;
  gap: 8px;
}

.agent-plus.has-file i {
  color: #ff4d4d; /* PDF accent */
}

.agent-file-name {
  font-size: 12px;
  color: #e7e7ea;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  color: #a6abc3;
  border-radius: 6px; /* close to 8px feel on small touch target */
}

.agent-plus.has-file:hover .agent-file-remove,
.agent-plus.has-file:focus-visible .agent-file-remove {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.agent-file-remove i {
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 640px) {
  .agent-plus.has-file .agent-file-name {
    max-width: 160px;
  }
}

.agent-send {
  position: absolute;
  right: 16px;
  bottom: 12px; /* align with plus button */
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.1); /* default like plus hover */
  border-radius: 8px; /* square-like with small radius by default */
  color: #e7e7ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.agent-send i {
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.agent-send:hover,
.agent-send:focus-visible {
  background: rgba(255, 255, 255, 0.1); /* keep same on hover */
  border-radius: 8px;
}

/* When the input has text, highlight the send button */
.agent-box.has-text .agent-send,
.agent-box.has-text .agent-send:hover,
.agent-box.has-text .agent-send:focus-visible {
  background: #ffffff;
}

.agent-box.has-text .agent-send i {
  opacity: 1;
  color: #0b0e14;
}

/* Disabled state for send button */
.agent-send[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
}

/* Ensure disabled styling wins even when has-text class is present */
.agent-box.has-text .agent-send[disabled] {
  background: rgba(255, 255, 255, 0.08);
}

.agent-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  /* Match hero badge appear animation */
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.5s forwards;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px; /* slightly tighter to suit 14px text */
  font-size: 14px;
  color: #e7e7ea;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.agent-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.agent-tag i {
  opacity: 0.9;
  font-size: 16px; /* bump icon size slightly to match 14px text */
}

@media (max-width: 640px) {
  .agent-box {
    padding: 18px 56px 52px 16px;
    min-height: 110px; /* allow growth instead of fixed height */
  }
  .agent-placeholder {
    font-size: 12px;
  }
  .agent-send {
    width: 28px;
    height: 28px;
  }
}

.bento-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 8px 0 4px 0;
  letter-spacing: -0.01em;
}

.bento-description {
  color: #a6abc3;
  font-size: 0.85rem;
  line-height: 1.4;
  flex: 1;
}

.bento-rating {
  font-size: 1rem;
  margin-bottom: 8px;
}

.bento-stats {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px 0;
  letter-spacing: -0.02em;
}

.bento-stats-text {
  color: #a6abc3;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (min-width: 1920px) {
  /* Keep hero content height-driven on ultra-wide screens to avoid extra gap */
  .hero {
    min-height: unset;
  }

  .hero-stats {
    margin-top: 80px;
  }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "card1 card1 card2"
      "card3 card4 card4"
      "card5 card5 card5";
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "card1"
      "card2"
      "card3"
      "card4"
      "card5";
  }

  .bento-card {
    min-height: auto;
  }

  .bento-stats {
    font-size: 2.5rem;
  }
}

/* ===== Courses Grid ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main.courses {
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: 40px;
  min-height: auto;
}
main.courses:first-of-type {
  padding-top: clamp(120px, 18vh, 220px);
}
main.courses:not(:first-of-type) {
  padding-top: 20px;
}
.courses-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.courses-heading {
  text-align: center;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 18px;
}
.courses-heading {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Ebooks reveal: stagger in like hero content */
.courses-grid .course-card {
  opacity: 0;
  transform: translateY(20px);
}
.courses-grid.loaded .course-card {
  animation: fadeInUp 0.7s ease-out forwards;
}
.courses-grid.loaded .course-card:nth-child(1) {
  animation-delay: 0.1s;
}
.courses-grid.loaded .course-card:nth-child(2) {
  animation-delay: 0.14s;
}
.courses-grid.loaded .course-card:nth-child(3) {
  animation-delay: 0.18s;
}
.courses-grid.loaded .course-card:nth-child(4) {
  animation-delay: 0.22s;
}
.courses-grid.loaded .course-card:nth-child(5) {
  animation-delay: 0.26s;
}
.courses-grid.loaded .course-card:nth-child(6) {
  animation-delay: 0.3s;
}
.courses-grid.loaded .course-card:nth-child(7) {
  animation-delay: 0.34s;
}
.courses-grid.loaded .course-card:nth-child(8) {
  animation-delay: 0.38s;
}
.courses-grid.loaded .course-card:nth-child(9) {
  animation-delay: 0.42s;
}
.courses-grid.loaded .course-card:nth-child(10) {
  animation-delay: 0.46s;
}
.courses-grid.loaded .course-card:nth-child(11) {
  animation-delay: 0.5s;
}
.courses-grid.loaded .course-card:nth-child(12) {
  animation-delay: 0.54s;
}

@media (max-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .courses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background: #13161b;
  color: #e7e7ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
}
.course-card .card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: #111418;
}
.course-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Socials Section ===== */
.socials-section {
  padding: 80px 20px;
}
.socials-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
.socials-header {
  text-align: center;
  margin-bottom: 24px;
}
.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  border-radius: 14px;
  color: #e7e7ea;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-card i {
  font-size: 28px;
  line-height: 1;
  color: #e7e7ea;
}
.social-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(167, 139, 250, 0.55);
}
.social-name {
  font-size: clamp(1rem, 2.6vw, 1.25rem);
}

/* Brand-accent hover borders (kept minimal) */
.social-youtube:hover {
  border-color: rgba(255, 0, 0, 0.6);
}
.social-youtube:hover i {
  color: #ff0000;
}
.social-instagram:hover {
  border-color: rgba(225, 48, 108, 0.6);
}
.social-instagram:hover i {
  color: #e1306c;
}
.social-linkedin:hover {
  border-color: rgba(10, 102, 194, 0.6);
}
.social-linkedin:hover i {
  color: #0a66c2;
}
.social-telegram:hover {
  border-color: rgba(38, 164, 227, 0.6);
}
.social-telegram:hover i {
  color: #26a4e3;
}

@media (max-width: 1200px) {
  .socials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .socials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .socials-grid {
    grid-template-columns: 1fr;
  }
}

.course-card .logo-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.course-card .g-logo {
  font-weight: 800;
  color: #1a73e8;
}

.course-card .badge-row {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
}
.course-card .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #e7e7ea;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.course-card .ribbon {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.4);
}

.course-card .card-body {
  padding: 16px 16px 18px;
}
.course-card .provider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8bdd1;
  font-weight: 600;
}
.course-card .provider-logo {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(
    #4285f4 0 25%,
    #34a853 25% 50%,
    #fbbc05 50% 75%,
    #ea4335 75% 100%
  );
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.course-card .course-title {
  margin: 10px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  color: #ffffff;
}
.course-card .build-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.course-card .build-link .ico {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #dbeafe;
  position: relative;
}
.course-card .build-link .ico::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #2563eb;
  border-top-left-radius: 2px;
  border-bottom-right-radius: 2px;
}
.course-card .cert {
  margin-top: 10px;
  color: #b8bdd1;
  font-size: 14px;
}
.course-card .price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.course-card .old-price {
  color: #a6abc3;
  text-decoration: line-through;
  font-weight: 700;
}
.course-card .new-price {
  color: #34d399;
  font-weight: 800;
  font-size: 16px;
}
.course-card .enroll-btn {
  margin-left: auto;
  background: linear-gradient(
    rgb(128, 107, 255) 40.2304%,
    rgb(127, 86, 217) 100%
  );
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 24px rgba(127, 86, 217, 0.4);
  font-size: 14px;
}
.course-card .enroll-btn:hover {
  filter: brightness(1.05);
}

/* Contact Form Styles */
.contact-section {
  padding: 150px 20px 60px;
  min-height: 100vh;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #e7e7ea;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.contact-header p {
  color: #b8bdd1;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #e7e7ea;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #e7e7ea;
  font-family: inherit;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8a8f9f;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(128, 107, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(128, 107, 255, 0.1);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #0b0e14;
  color: #e7e7ea;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, #806bff, #7f56d9 60%, #9b8cff);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(127, 86, 217, 0.35);
}

.submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(127, 86, 217, 0.45);
}

.submit-btn:active {
  transform: translateY(0);
}

.success-message {
  text-align: center;
  padding: 40px 24px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.success-message h3 {
  color: #34d399;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.success-message p {
  color: #b8bdd1;
  font-size: 14px;
  margin: 0;
}

/* About Page Styles */
.about-section {
  padding: 0;
}

.about-hero {
  padding: 150px 20px 80px;
  text-align: center;
  background: #0b0e14;
}

.about-hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  color: #e7e7ea;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.about-hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #b8bdd1;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.about-card {
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-card-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #e7e7ea;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}

.about-card-content p {
  color: #b8bdd1;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* Founder Section */
.founder-section {
  background: linear-gradient(
    135deg,
    rgba(128, 107, 255, 0.1),
    rgba(127, 86, 217, 0.05)
  );
  border: 1px solid rgba(128, 107, 255, 0.2);
}

.founder-info {
  margin-top: 20px;
}

.founder-details h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #806bff;
  margin: 0 0 4px 0;
}

.founder-title {
  color: #9b8cff;
  font-weight: 600;
  margin: 0 0 12px 0 !important;
}

.founder-bio {
  color: #b8bdd1;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 !important;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.value-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.value-item:hover {
  background: rgba(128, 107, 255, 0.08);
  border-color: rgba(128, 107, 255, 0.3);
  transform: translateY(-4px);
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e7e7ea;
  margin: 0 0 8px 0;
}

.value-item p {
  color: #b8bdd1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Offerings List */
.offerings-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}

.offerings-list li {
  color: #b8bdd1;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.offerings-list li:last-child {
  margin-bottom: 0;
}

.offerings-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 800;
}

.offerings-list strong {
  color: #e7e7ea;
}

/* Impact Section */
.impact-section {
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.1),
    rgba(52, 211, 153, 0.05)
  );
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.stat-box {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #e7e7ea;
  margin-bottom: 8px;
}

.stat-label {
  color: #b8bdd1;
  font-size: 13px;
  font-weight: 600;
}

/* Join Section */
.join-section {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(128, 107, 255, 0.15),
    rgba(127, 86, 217, 0.08)
  );
  border: 1px solid rgba(128, 107, 255, 0.25);
}

.cta-button {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 32px;
  background: linear-gradient(
    rgb(128, 107, 255) 40.2304%,
    rgb(127, 86, 217) 100%
  );
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 8px 24px rgba(127, 86, 217, 0.4);
  transition: all 0.3s ease;
}

.cta-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(127, 86, 217, 0.45);
}

@media (max-width: 900px) {
  .about-card {
    padding: 30px 24px;
    margin-bottom: 32px;
  }

  .about-container {
    padding: 40px 16px;
  }

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

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

/* CodeHype Footer Styles */
.codehype-footer {
  background: linear-gradient(180deg, #0b0e14 0%, #0a0d12 50%, #000000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 20px 40px;
  margin-top: 80px;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.footer-left h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #e7e7ea;
  margin: 0;
  letter-spacing: -0.01em;
}

.footer-left p {
  color: #b8bdd1;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer-left-button {
  display: inline-block;
  width: fit-content;
  padding: 12px 28px;
  background: linear-gradient(135deg, #806bff, #7f56d9 60%, #9b8cff);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(127, 86, 217, 0.35);
  transition: all 0.3s ease;
  margin-top: 8px;
}

.footer-left-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(127, 86, 217, 0.45);
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #e7e7ea;
  margin: 0 0 8px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li {
  margin: 0;
}

.footer-list a {
  color: #b8bdd1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: #806bff;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #e7e7ea;
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .codehype-footer {
    padding: 40px 16px 30px;
    margin-top: 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }

  .footer-right {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-heading {
    font-size: 13px;
  }

  .footer-list a {
    font-size: 13px;
  }

  .footer-logo-img {
    height: 28px;
  }

  .footer-logo-text {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-left h2 {
    font-size: 1.4rem;
  }

  .footer-left p {
    font-size: 14px;
  }
}

/* Final mobile overrides for hero stats to ensure equal widths and readable text */
@media (max-width: 640px) {
  .hero-stats {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 22px !important;
  }
  .hero-stats .stat-box {
    padding: 12px 8px !important;
    text-align: center !important;
  }
  .hero-stats .stat-number {
    font-size: clamp(1rem, 4.2vw, 1.3rem) !important;
  }
  .hero-stats .stat-label {
    font-size: 11px !important;
  }
  /* Keep the 4th hidden on mobile */
  .hero-stats .stat-box:nth-child(4) {
    display: none !important;
  }
}

/* ===== Learn Chat (ChatGPT-like) ===== */
.learn-chat-root {
  padding-top: 140px; /* fixed header space */
}
.chat {
  display: flex;
  justify-content: center;
  padding: 10px 16px 40px;
}
.chat-main {
  width: min(900px, 92vw);
}
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-message {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: flex-start;
}
.chat-message .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 16px;
}
.chat-message .bubble {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.chat-message.user .bubble {
  background: rgba(255, 255, 255, 0.02);
}
.chat-message.assistant .bubble {
  background: rgba(255, 255, 255, 0.06);
}
.chat-message .content {
  font-size: 15px; /* base */
  line-height: 1.7;
  color: #e7e7ea;
}
.chat-message.assistant .content {
  font-size: 16px; /* requested larger answer font */
}

/* Thinking indicator */
.thinking {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a6abc3;
  margin-bottom: 10px;
}
.dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6abc3;
  opacity: 0.4;
  display: inline-block;
  margin-left: 4px;
  animation: dotPulse 1.2s infinite ease-in-out;
}
.dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Skeleton loading */
.skeleton {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}
.skeleton-line {
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  background-size: 200% 100%;
  animation: shimmer 1.1s ease-in-out infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsive video embed for Learn page */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0e14;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.video-actions a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.video-actions a:hover {
  text-decoration: underline;
}

/* Fallback card when embed fails */
.video-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #e7e7ea;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  gap: 8px;
}
.video-fallback .pf-icon {
  font-size: 28px;
  opacity: 0.9;
}
.video-fallback .pf-text {
  font-weight: 700;
  font-size: 14px;
}
