/* ── Features Section ── */
.features {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

.section-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}
.tagline::before,
.tagline::after {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--primary);
}
.tagline-line {
  display: none;
}
@media(max-width: 600px) {
  .tagline {
    font-size: 10px;
  }
}

.section-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #fff;
}

.section-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ── Advanced Bento Grid System ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  position: relative;
  background: #0d0d0d;
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.bento-card.link-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(249, 77, 53, 0.4);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 15px 30px rgba(249, 77, 53, 0.1);
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(249, 77, 53, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}
.bento-card.link-card:hover::after {
  opacity: 1;
}

/* ── The Border System (Glowing Corner Accents) ── */
.bento-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 80px; height: 80px;
  border-top-left-radius: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  mask-image: linear-gradient(135deg, black 5%, transparent 60%);
  -webkit-mask-image: linear-gradient(135deg, black 5%, transparent 60%);
  pointer-events: none;
  z-index: 10;
}

/* ── Arrow for links ── */
.bento-arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(249, 77, 53, 0.1);
  color: #F94D35;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  z-index: 3;
}
.bento-card.link-card:hover .bento-arrow {
  opacity: 1;
  transform: translateX(0);
  background: #F94D35;
  color: #fff;
  box-shadow: 0 0 20px rgba(249, 77, 53, 0.5);
}

/* ── Card Content ── */
.bento-content {
  position: relative;
  z-index: 3;
  /* Cap line length for readability (80%) but always leave room for the
     absolutely-positioned top-right icon so the title + its dashed underline
     never run underneath it, even on narrow card widths. */
  max-width: min(80%, calc(100% - 56px));
  margin-top: 16px;
}

.bento-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.03em;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.bento-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
.bento-content p strong {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Watermarks & Icons ── */
.bento-watermark {
  position: absolute;
  bottom: -20px;
  right: 10px;
  font-size: 140px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
  z-index: 1;
  letter-spacing: -0.05em;
  font-family: monospace;
}

.bento-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(249, 77, 53, 0.05); /* Orange tint */
  border: 1px solid rgba(249, 77, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F94D35;
  z-index: 3;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1), 0 10px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.bento-icon svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card.link-card:hover .bento-icon {
  background: rgba(249, 77, 53, 0.15);
  transform: scale(1.1);
}

.bento-card.link-card:hover .bento-icon svg {
  transform: rotate(360deg);
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  .bento-card {
    padding: 24px !important;
    border-radius: 20px !important;
  }

  .bento-content {
    /* Leave room for the smaller mobile icon (44px @ right:20px) */
    max-width: calc(100% - 72px) !important;
    margin-top: 20px !important;
  }

  .bento-content h3 {
    font-size: 20px !important;
    padding-bottom: 12px !important;
    margin-bottom: 12px !important;
  }

  .bento-content p {
    font-size: 14px !important;
  }

  .bento-icon {
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
  }

  .bento-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .bento-watermark {
    font-size: 90px !important;
    bottom: -10px !important;
    right: 5px !important;
  }

  .bento-arrow {
    display: none !important;
  }
}




