/**
 * DigiPestControl — Features Page Design System
 * Theme aligned with Phase 6 Cybernetic Night & Modern Bento Design
 */

body.pco-page--features,
body.pco-page--ozellikler {
  overflow-x: hidden;
}

body.pco-page--features .dpc-page-content,
body.pco-page--ozellikler .dpc-page-content {
  overflow: clip;
}

.features-page {
  color: #001f28;
  background: #f7f9fb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.features-page :is(h1, h2, h3, h4) {
  font-family: Manrope, Inter, sans-serif;
  color: #001f28;
}

/* =========================================================================
   1. HERO SECTION (Cybernetic Night / Features Command Center)
   ========================================================================= */
.features-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 10vw, 130px) 0 clamp(72px, 8vw, 112px);
  background: #001115;
  color: #fff;
}

.features-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 213, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 213, 245, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.features-hero__glow {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 104, 124, 0.38) 0%, rgba(93, 213, 245, 0.08) 45%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.features-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.features-hero__copy-column {
  min-width: 0;
}

.features-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(93, 213, 245, 0.12);
  border: 1px solid rgba(93, 213, 245, 0.28);
  color: #5dd5f5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.features-hero h1,
.features-hero .features-hero__title {
  margin: 0 0 20px;
  color: #ffffff !important;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.features-hero__title-accent {
  background: linear-gradient(135deg, #8ae9ff 0%, #38bdf8 50%, #2ab1d0 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #5dd5f5 !important;
}

.features-hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 28px;
  max-width: 580px;
}

.features-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.features-hero__cta .btn--fullblack {
  background: #26AAC3;
  color: #fff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(38, 170, 195, 0.35);
}

.features-hero__cta .btn--fullblack:hover {
  background: #1e8a9e;
  transform: translateY(-2px);
}

.features-hero__cta .btn--fullwhite {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.features-hero__cta .btn--fullwhite:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.features-hero__capabilities {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Hero Visual: Operations Panel Card */
.features-hero__visual {
  position: relative;
}

.features-ops-panel {
  background: linear-gradient(145deg, rgba(14, 47, 55, 0.85) 0%, rgba(5, 26, 31, 0.95) 100%);
  border: 1px solid rgba(93, 213, 245, 0.22);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(38, 170, 195, 0.12);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.features-ops-panel__topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.features-ops-panel__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ffc2;
  box-shadow: 0 0 10px #00ffc2;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.features-ops-panel__status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5dd5f5;
  text-transform: uppercase;
}

.features-ops-panel__intro h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.features-ops-panel__intro p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px;
  line-height: 1.55;
}

.features-ops-panel__highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.features-ops-panel__item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s ease;
}

.features-ops-panel__item:hover {
  background: rgba(93, 213, 245, 0.08);
  border-color: rgba(93, 213, 245, 0.25);
  transform: translateY(-2px);
}

.features-ops-panel__item-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #5dd5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.features-ops-panel__item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* =========================================================================
   2. CORE FEATURES SECTION (Bento Grid / 6 Core Pillars)
   ========================================================================= */
.features-section {
  padding: clamp(72px, 8vw, 100px) 0;
  position: relative;
}

.features-section--core {
  background: #ffffff;
}

.features-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 60px);
}

.features-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #26AAC3;
  margin-bottom: 10px;
}

.features-heading h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.features-heading__accent {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #26AAC3, #5dd5f5);
  border-radius: 999px;
  margin: 0 auto 16px;
}

.features-heading p {
  font-size: 16px;
  line-height: 1.6;
  color: #556970;
  margin: 0;
}

.features-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.features-bento-card {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 40, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 31, 40, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.features-bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #26AAC3, transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.features-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 31, 40, 0.09);
  border-color: rgba(38, 170, 195, 0.35);
}

.features-bento-card:hover::before {
  opacity: 1;
}

.features-bento-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(38, 170, 195, 0.12) 0%, rgba(93, 213, 245, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(38, 170, 195, 0.18);
  transition: all 0.28s ease;
}

.features-bento-card:hover .features-bento-card__icon-wrap {
  background: linear-gradient(135deg, #26AAC3 0%, #1e8a9e 100%);
  transform: scale(1.05);
}

.features-bento-card__icon-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: filter 0.28s ease;
}

.features-bento-card:hover .features-bento-card__icon-wrap img {
  filter: brightness(0) invert(1);
}

.features-bento-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #001f28;
  margin: 0 0 12px;
  line-height: 1.35;
}

.features-bento-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #556970;
  margin: 0;
  flex: 1;
}

/* =========================================================================
   3. SAAS PLATFORM & ARCHITECTURE SECTION
   ========================================================================= */
.features-section--platform {
  background: #f0f4f7;
  border-top: 1px solid rgba(0, 31, 40, 0.06);
  border-bottom: 1px solid rgba(0, 31, 40, 0.06);
}

.features-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.features-shortcuts a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 31, 40, 0.1);
  color: #002d38;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.features-shortcuts a:hover {
  background: #26AAC3;
  color: #ffffff !important;
  border-color: #26AAC3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 170, 195, 0.25);
}

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

.features-arch-card {
  background: #ffffff;
  border: 1px solid rgba(0, 31, 40, 0.08);
  border-radius: 16px;
  padding: 30px 26px;
  box-shadow: 0 2px 14px rgba(0, 31, 40, 0.04);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.features-arch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 31, 40, 0.08);
  border-color: rgba(38, 170, 195, 0.35);
}

.features-arch-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #26AAC3;
  background: rgba(38, 170, 195, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.features-arch-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #001f28;
  margin: 0 0 12px;
  line-height: 1.35;
}

.features-arch-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: #556970;
  margin: 0;
  flex: 1;
}

/* =========================================================================
   4. BOTTOM ACTION & CONVERSION BANNER
   ========================================================================= */
.features-cta-strip {
  background: linear-gradient(135deg, #001f28 0%, #033946 100%);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  margin-top: 56px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 16px 40px rgba(0, 31, 40, 0.2);
}

.features-cta-strip__content {
  max-width: 600px;
}

.features-cta-strip__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 10px;
  line-height: 1.25;
}

.features-cta-strip__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.features-cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features-cta-strip__actions .btn--fullwhite {
  background: #ffffff;
  color: #001f28 !important;
  border: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.features-cta-strip__actions .btn--fullwhite:hover {
  background: #5dd5f5;
  transform: translateY(-2px);
}

.features-cta-strip__actions .btn--outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.features-cta-strip__actions .btn--outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* =========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 991px) {
  .features-hero__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-card-grid,
  .features-arch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-cta-strip {
    flex-direction: column;
    text-align: center;
  }
  .features-cta-strip__content {
    max-width: 100%;
  }
  .features-cta-strip__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .features-card-grid,
  .features-arch-grid {
    grid-template-columns: 1fr;
  }
  .features-ops-panel__highlights {
    grid-template-columns: 1fr;
  }
}
