/* ─── SECTIONS ─── */
section { padding: 80px 24px; }
.section-label {
  font-family: "Syne", sans-serif; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; max-width: 600px; }
.section-sub { color: var(--gray); max-width: 540px; margin-top: 0.8rem; line-height: 1.8; font-size: 1.1rem; }
.t-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── HERO ─── */
#home {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden; min-height: 680px;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(30,111,255,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(0,212,224,0.1); border: 1px solid rgba(0,212,224,0.25);
  color: var(--cyan); border-radius: 100px; padding: 0.3rem 1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 1.5rem; font-family: "Syne", sans-serif;
  animation: fadeUp .6s ease both;
}
.badge::before { content: "🔒"; font-size: 0.85rem; }
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -1.5px; max-width: 720px; animation: fadeUp .7s ease .1s both;
}
h1 em { font-style: normal; color: var(--cyan); }
.hero-sub {
  color: var(--gray); font-size: 1.2rem; max-width: 520px;
  margin: 1.4rem auto 2.2rem; line-height: 1.75; animation: fadeUp .7s ease .2s both;
}
.hero-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .7s ease .3s both;
}
.btn-primary {
  background: var(--blue); color: #fff; border: none; padding: 0.85rem 1.8rem;
  border-radius: 10px; font-family: "Syne", sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(30,111,255,0.35); display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 40px rgba(30,111,255,0.5); }
.btn-outline {
  background: transparent; color: var(--white); border: 1.5px solid var(--border);
  padding: 0.85rem 1.8rem; border-radius: 10px; font-family: "Syne", sans-serif;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--blue); background: rgba(30,111,255,0.07); }
.trust-strip {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-top: 3rem; color: var(--gray); font-size: 0.85rem;
  animation: fadeUp .7s ease .4s both;
}
.trust-strip span { display: flex; align-items: center; gap: 0.4rem; }
.t1::before { content: "✅"; }
.t2::before { content: "⚡"; }
.t3::before { content: "🔄"; }
.t4::before { content: "📞"; }

/* ─── HOW IT WORKS ─── */
#how-it-works { background: #0d1525; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem 1.8rem; transition: transform .25s, border-color .25s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(30,111,255,0.4); }
.step-num { font-family: "Syne", sans-serif; font-weight: 800; font-size: 2.8rem; color: rgba(30,111,255,0.15); line-height: 1; margin-bottom: 0.7rem; }
.step-icon { font-size: 1.8rem; margin-bottom: 0.7rem; display: block; }
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-card p { color: var(--gray); font-size: 1rem; line-height: 1.7; }

/* ─── CERTIFICATES ─── */
#certificates { background: var(--navy); }
.cert-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 2.5rem 0 0; }
.cf-btn {
  background: var(--card-bg); border: 1.5px solid var(--border); color: var(--gray);
  font-family: "DM Sans", sans-serif; font-size: 0.88rem; font-weight: 500;
  padding: 0.5rem 1.1rem; border-radius: 100px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.cf-btn:hover { border-color: var(--blue); color: var(--white); }
.cf-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.cert-help-strip {
  text-align: center; margin: 1rem 0 2rem; color: var(--gray); font-size: 0.84rem;
  display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.cert-help-strip a { color: var(--cyan); font-weight: 600; }
.cert-help-strip a:hover { text-decoration: none; }

.cert-grid { display: flex; flex-direction: column; gap: 1.2rem; }
.cert-grid-main { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cert-grid-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.cert-grid-services .cert-card { width: 280px; flex-shrink: 0; flex-grow: 0; }
.cert-grid.filtered .cert-grid-main,
.cert-grid.filtered .cert-grid-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.cert-grid.filtered .cert-grid-main .cert-card,
.cert-grid.filtered .cert-grid-services .cert-card { width: 280px; flex-shrink: 0; flex-grow: 0; }

.cert-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 1.5rem 1.4rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  position: relative; min-width: 0; transition: transform .22s, border-color .22s, box-shadow .22s;
}
.cert-card:hover { transform: translateY(-5px); border-color: rgba(30,111,255,0.5); box-shadow: 0 12px 40px rgba(0,0,0,0.25); }
.cert-card.popular {
  border-color: var(--blue); background: linear-gradient(160deg, #131c30 0%, #0e1e40 100%);
  box-shadow: 0 0 0 1px rgba(30,111,255,0.25), 0 8px 30px rgba(30,111,255,0.12);
}
.cert-card.hidden { display: none; }
.cert-popular-badge {
  position: absolute; top: 0; right: 0; background: var(--blue); color: #fff;
  font-family: "Syne", sans-serif; font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.5px; padding: 0.3rem 0.8rem; border-radius: 0 16px 0 10px;
}
.cert-ca { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--gray); font-family: "Syne", sans-serif; }
.cert-name { font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: var(--white); overflow-wrap: break-word; }
.cert-desc { color: var(--gray); font-size: 0.97rem; line-height: 1.7; flex: 1; min-height: 0; }

.cert-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { font-size: 0.78rem; font-weight: 700; font-family: "Syne", sans-serif; padding: 0.22rem 0.65rem; border-radius: 6px; letter-spacing: 0.3px; color: #fff; }
.tag-dv  { background: rgba(255,212,59,0.2); }
.tag-ov  { background: rgba(77,148,255,0.25); }
.tag-ev  { background: rgba(0,196,114,0.2); }
.tag-wildcard { background: rgba(0,212,224,0.2); }
.tag-multi    { background: rgba(200,150,255,0.2); }
.tag-single   { background: rgba(255,255,255,0.1); color: var(--gray); }
.tag-speed    { background: rgba(255,255,255,0.08); color: var(--gray); }
.tag-service  { background: rgba(0,196,114,0.2); }

.cert-service { border-color: rgba(0,196,114,0.25); background: linear-gradient(160deg, #131c30 0%, #0e1f1a 100%); }
.cert-service:hover { border-color: rgba(0,196,114,0.5); }
.cert-buy-service { background: rgba(0,196,114,0.12) !important; border-color: rgba(0,196,114,0.3) !important; color: var(--green) !important; }
.cert-buy-service:hover { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }

.cert-price-row { display: flex; flex-direction: column; gap: 0.6rem; margin-top: auto; padding-top: 0.8rem; }
.cert-price { font-family: "Syne", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--white); }
.cert-price sup { font-size: 1rem; vertical-align: top; margin-top: 0.25rem; }
.cert-price .cents { font-size: 1.2rem; }
.cert-price .per { font-size: 0.82rem; color: var(--gray); font-weight: 500; margin-left: 0.1rem; }

.cert-buy-btn {
  background: rgba(30,111,255,0.12); color: var(--blue-light);
  border: 1.5px solid rgba(30,111,255,0.3); padding: 0.75rem 1rem; border-radius: 9px;
  font-family: "Syne", sans-serif; font-weight: 700; font-size: 0.95rem;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  display: block; text-align: center; width: 100%; margin-top: 0.2rem;
}
.cert-buy-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-1px); }
.cert-buy-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 18px rgba(30,111,255,0.35); }
.cert-buy-primary:hover { background: var(--blue-light); border-color: var(--blue-light); }

.cert-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 0.7rem; margin-top: 0.1rem; }
.cert-meta span { color: var(--gray); font-size: 0.85rem; }

.cert-trust-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center;
  margin-top: 2.5rem; padding: 1.1rem 1.5rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px;
  color: var(--gray); font-size: 0.95rem;
}
.cert-trust-bar span { display: flex; align-items: center; gap: 0.4rem; }

/* ─── WHY US ─── */
#why-us { background: #0d1525; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3rem; }
.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem; transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(0,212,224,0.3); }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 0.9rem; background: rgba(30,111,255,0.12); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { color: var(--gray); font-size: 0.97rem; line-height: 1.7; }

/* ─── COMPATIBILITY ─── */
#compatibility { background: var(--navy); }
.compat-logos { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.5rem; }
.compat-pill {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.55rem 1.2rem;
  font-size: 0.95rem; font-weight: 500; color: var(--gray); transition: border-color .2s, color .2s;
}
.compat-pill:hover { border-color: var(--blue); color: var(--white); }

/* ─── COMPARE ─── */
#compare { background: var(--navy); }
.compare-table-wrap { overflow-x: auto; margin-top: 3rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1.1rem; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-family: "Syne", sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px; color: var(--gray); text-transform: uppercase; background: var(--card-bg); }
.compare-table thead th:first-child { text-align: left; border-radius: 12px 0 0 0; }
.compare-table thead th:last-child { border-radius: 0 12px 0 0; }
.compare-table thead th.col-highlight { background: rgba(30,111,255,0.18); color: #fff; }
.compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table td:first-child { text-align: left; color: var(--white); font-weight: 500; }
.compare-table td { color: var(--gray); }
.compare-table td.col-highlight { background: rgba(30,111,255,0.06); color: #fff; }
.compare-table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.compare-table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.check { color: var(--green); font-size: 1rem; }
.cross { color: #ff4d6d; font-size: 1rem; }
.type-badge { display: inline-block; font-family: "Syne", sans-serif; font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.6rem; border-radius: 6px; margin-bottom: 0.2rem; }
.badge-dv { background: rgba(0,196,114,0.15); color: var(--green); }
.badge-ov { background: rgba(30,111,255,0.25); color: #fff; }
.badge-ev { background: rgba(255,204,0,0.12); color: #ffd43b; }

/* ─── HOW SSL WORKS ─── */
#how-ssl { background: #0d1525; }
.ssl-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3.5rem; position: relative; align-items: start; }
.ssl-flow::before {
  content: ""; position: absolute; top: 36px; left: calc(10% + 16px); right: calc(10% + 16px);
  height: 2px; background: linear-gradient(to right, var(--blue), var(--cyan)); z-index: 0;
}
.ssl-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0.5rem; position: relative; z-index: 1; }
.ssl-node {
  width: 72px; height: 72px; border-radius: 50%; background: var(--card-bg);
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem; transition: border-color .3s, transform .3s;
}
.ssl-step:hover .ssl-node { border-color: var(--cyan); transform: scale(1.08); }
.ssl-step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.ssl-step p { color: var(--gray); font-size: 0.78rem; line-height: 1.55; }

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--navy); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.review-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 18px; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem; transition: transform .25s, border-color .25s;
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(30,111,255,0.35); }
.stars { color: #ffd43b; font-size: 0.9rem; letter-spacing: 1px; }
.review-text { color: var(--gray); font-size: 1rem; line-height: 1.75; flex: 1; font-style: italic; }
.review-text::before { content: '"'; color: var(--blue-light); font-size: 2rem; line-height: 0; vertical-align: -0.6rem; margin-right: 0.15rem; font-style: normal; }
.reviewer { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; font-family: "Syne", sans-serif; flex-shrink: 0; }
.reviewer-name { font-size: 0.9rem; font-weight: 600; }
.reviewer-role { color: var(--gray); font-size: 0.78rem; margin-top: 0.1rem; }

/* ─── FAQ ─── */
#faq { background: #0d1525; }
.faq-list { max-width: 720px; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: "DM Sans", sans-serif; font-size: 1.05rem; font-weight: 500;
  text-align: left; padding: 1.2rem 1.4rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(30,111,255,0.15); display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.1rem; font-style: normal;
  transition: transform .3s, background .2s; pointer-events: none;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(30,111,255,0.3); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--gray); font-size: 1rem; line-height: 1.8; padding: 0 1.4rem; }
.faq-item.open .faq-a { max-height: 400px; padding: 0 1.4rem 1.2rem; }

/* ─── CTA ─── */
#get-started {
  background: linear-gradient(135deg, #0d1e45 0%, #0b1120 100%);
  border-top: 1px solid var(--border); text-align: center; padding: 80px 24px;
  position: relative; overflow: hidden;
}
#get-started::before {
  content: ""; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,212,224,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#get-started h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.5px; }
#get-started p { color: var(--gray); margin: 1rem auto 2rem; max-width: 480px; font-size: 0.97rem; line-height: 1.7; }

/* ─── SCROLL FADE-IN (CSS-based, not JS inline — avoids CLS) ─── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ssl-flow { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .ssl-flow::before { display: none; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid-main { grid-template-columns: repeat(2, 1fr); }
  .cert-grid-services .cert-card { width: 240px; }
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .ssl-flow { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .cert-grid-main { grid-template-columns: 1fr 1fr; }
  .cert-grid-services { flex-direction: column; align-items: stretch; }
  .cert-grid-services .cert-card { width: auto; }
  .cert-grid.filtered .cert-grid-main,
  .cert-grid.filtered .cert-grid-services { justify-content: center; }
  .cert-grid.filtered .cert-grid-main .cert-card,
  .cert-grid.filtered .cert-grid-services .cert-card { width: 100%; max-width: 340px; flex-grow: 0; }
  .cert-filters { gap: 0.4rem; }
  .cf-btn { font-size: 0.85rem; padding: 0.45rem 0.9rem; }

  /* ── Bigger fonts on mobile ── */
  .cert-desc { font-size: 0.97rem; line-height: 1.7; }
  .cert-name { font-size: 1.08rem; }
  .cert-price { font-size: 1.8rem; }
  .cert-meta span { font-size: 0.85rem; }
  .tag { font-size: 0.78rem; padding: 0.22rem 0.6rem; }
  .step-card p { font-size: 1rem; }
  .feature-card p { font-size: 0.95rem; }
  .section-sub { font-size: 1.02rem; }
  .review-text { font-size: 0.97rem; }
  .faq-a { font-size: 0.97rem; }
  .trust-strip { font-size: 0.92rem; }
  .cert-buy-btn { font-size: 0.95rem; padding: 0.75rem; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .ssl-flow { grid-template-columns: 1fr; }
  .cert-grid-main { grid-template-columns: 1fr; }
  .cert-grid-services { flex-direction: column; align-items: stretch; }
  .cert-grid-services .cert-card { width: auto; }
  .cert-grid.filtered .cert-grid-main .cert-card,
  .cert-grid.filtered .cert-grid-services .cert-card { width: 100%; max-width: 100%; }
  .cf-btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }

  /* ── Even bigger on small phones ── */
  .cert-desc { font-size: 1rem; }
  .cert-name { font-size: 1.1rem; }
  .cert-price { font-size: 1.9rem; }
  .step-card p { font-size: 1rem; }
  .section-sub { font-size: 1rem; }
}
