/* ============================================================
   CDN 頁面 · 暗色風格
   ============================================================ */

/* ===== Hero Banner ===== */
.cdnHero {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(50, 240, 140, .1), transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 100%, rgba(16, 185, 129, .06), transparent 60%),
    #0a0d0b;
  overflow: hidden;
}
.cdnHero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.cdnHero .sectionInner {
  padding-block: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cdnHeroTag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(50, 240, 140, .35);
  border-radius: 2px;
  color: #32f08c;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.cdnHeroTitle {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.02em;
}
.cdnHeroTitle .accent {
  background: linear-gradient(120deg, #a0fde7 0%, #32f08c 50%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cdnHeroDesc {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}
.cdnHeroStats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: center;
  margin-top: 32px;
}
.cdnHeroStat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
}
.cdnHeroStat i {
  color: #32f08c;
  font-size: 14px;
}

/* ===== Pricing Section ===== */
.cdnPricingSection {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #0a0b0d;
}
.cdnPricingSection .sectionInner {
  padding-block: 72px;
}
.cdnSectionHead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.cdnSectionTag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(50, 240, 140, .35);
  border-radius: 2px;
  color: #32f08c;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cdnSectionTitle {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.cdnSectionDesc {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
  line-height: 1.7;
}

.cdnPricingGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}
.cdnPriceCard {
  position: relative;
  padding: 28px 26px 26px;
  background:
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 10px 10px,
    #0f1114;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.cdnPriceCard::before {
  content: none;
}
.cdnPriceCard:hover {
  border-color: rgba(50, 240, 140, .4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(50, 240, 140, .2);
}
.cdnPriceCard.isPopular {
  border-color: #32f08c;
  background:
    radial-gradient(rgba(50, 240, 140, .06) 1px, transparent 1px) 0 0 / 10px 10px,
    #0f1114;
  box-shadow: 0 0 0 1px rgba(50, 240, 140, .15);
  transform: none;
}
.cdnPriceCard.isPopular:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px #32f08c,
    0 24px 48px -20px rgba(50, 240, 140, .3);
}
.cdnPriceBadge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 10px;
  background: transparent;
  color: #32f08c;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  border: 1px solid #32f08c;
  border-radius: 2px;
  text-transform: none;
  box-shadow: none;
  z-index: 1;
}
.cdnPriceName {
  margin: 0 0 20px;
  color: #32f08c;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
}
.cdnPriceTagline {
  display: none;
}
.cdnPriceValue {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}
.cdnPriceValue .curr {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 8px;
}
.cdnPriceValue .num {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
}
.cdnPriceCard.isPopular .cdnPriceValue .num {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #fff;
}
.cdnPricePer {
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cdnPriceValue .per {
  display: none;
}
.cdnPriceFeatures {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cdnPriceFeatures li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  line-height: 1.5;
}
.cdnPriceFeatures li i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: #32f08c;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.cdnPriceFeatures li.isDisabled {
  color: rgba(255, 255, 255, .35);
}
.cdnPriceFeatures li.isDisabled i {
  background: transparent;
  color: rgba(255, 255, 255, .35);
}
.cdnPriceCTA {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.cdnPriceCTA:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: transparent;
  transform: none;
}
.cdnPriceCard.isPopular .cdnPriceCTA {
  background: #32f08c;
  color: #0a0d0b;
  border-color: transparent;
  box-shadow: none;
}
.cdnPriceCard.isPopular .cdnPriceCTA:hover {
  background: #4af79f;
  transform: none;
  box-shadow: 0 6px 20px -6px rgba(50, 240, 140, .5);
}

.cdnDetailsWrap {
  text-align: center;
  margin-top: 32px;
}
.cdnDetailsBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(50, 240, 140, .08);
  color: #32f08c;
  border: 1px solid rgba(50, 240, 140, .3);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease;
}
.cdnDetailsBtn:hover {
  background: rgba(50, 240, 140, .16);
}

/* ===== Features Section ===== */
.cdnFeaturesSection {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #0a0b0d;
}
.cdnFeaturesSection .sectionInner {
  padding-block: 72px;
}
.cdnFeaturesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.cdnFeatureCard {
  padding: 24px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}
.cdnFeatureCard:hover {
  border-color: rgba(50, 240, 140, .3);
  background: rgba(50, 240, 140, .02);
  transform: translateY(-2px);
}
.cdnFeatureIco {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 240, 140, .1);
  color: #32f08c;
  border-radius: 8px;
  font-size: 18px;
  margin-bottom: 16px;
}
.cdnFeatureTitle {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.cdnFeatureDesc {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  line-height: 1.7;
}

/* ===== Security Detail Section ===== */
.cdnSecuritySection {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(50, 240, 140, .07), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(16, 185, 129, .05), transparent 60%),
    #0a0d0b;
}
.cdnSecuritySection .sectionInner {
  padding-block: 72px;
}
.cdnSecurityGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.cdnSecurityItem {
  padding: 28px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  transition: border-color .25s ease, background-color .25s ease;
}
.cdnSecurityItem:hover {
  border-color: rgba(50, 240, 140, .3);
  background: rgba(255, 255, 255, .05);
}
.cdnSecurityHead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.cdnSecurityHead i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 240, 140, .12);
  color: #32f08c;
  border-radius: 6px;
  font-size: 15px;
}
.cdnSecurityTitle {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.cdnSecurityDesc {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== CTA Section ===== */
.cdnCTASection {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: #0a0b0d;
}
.cdnCTASection .sectionInner {
  padding-block: 56px;
  text-align: center;
}
.cdnCTATitle {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
}
.cdnCTADesc {
  margin: 0 auto 24px;
  max-width: 640px;
  color: rgba(255, 255, 255, .6);
  font-size: 15px;
  line-height: 1.7;
}
.cdnCTABtns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cdnCTAPrimary,
.cdnCTAGhost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.cdnCTAPrimary {
  background: #32f08c;
  color: #0a0d0b;
  border: 1px solid #32f08c;
}
.cdnCTAPrimary:hover {
  background: #2ad07a;
  border-color: #2ad07a;
}
.cdnCTAGhost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}
.cdnCTAGhost:hover {
  border-color: #32f08c;
  color: #32f08c;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cdnFeaturesGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .cdnHero .sectionInner { padding-block: 56px; }
  .cdnPricingSection .sectionInner,
  .cdnFeaturesSection .sectionInner,
  .cdnSecuritySection .sectionInner { padding-block: 48px; }
  .cdnCTASection .sectionInner { padding-block: 40px; }
  .cdnHeroStats { gap: 10px 20px; margin-top: 24px; }
  .cdnPricingGrid,
  .cdnFeaturesGrid,
  .cdnSecurityGrid { grid-template-columns: 1fr; }
}
