/* Homepage (cph-*) */
.cph-page {
  --cph-primary: #1a73e8;
  --cph-primary-dark: #1557b0;
  --cph-primary-light: #e8f0fe;
  --cph-secondary: #ff6b35;
  --cph-ink: #212529;
  --cph-gray-700: #495057;
  --cph-gray-500: #6c757d;
  --cph-gray-300: #dee2e6;
  --cph-gray-100: #f8f9fa;
  --cph-success: #28a745;
  --cph-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --cph-gradient-primary: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  --cph-gradient-hero: linear-gradient(135deg, #0d1b3e 0%, #1a2d5a 50%, #1a73e8 100%);
  --cph-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --cph-shadow-md: 0 4px 20px rgba(0, 0, 0, .1);
  color: var(--cph-ink);
  background: #fff;
}
.cph-container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.cph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border: 0; border-radius: 50px;
  font-family: var(--cp-font-display); font-size: 14px; font-weight: 600; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: transform .3s, box-shadow .3s, background .3s;
}
.cph-btn:hover { transform: translateY(-2px); text-decoration: none; }
.cph-btn--lg { padding: 14px 32px; font-size: 16px; }
.cph-btn--primary { color: #fff; background: var(--cph-gradient-primary); box-shadow: 0 4px 15px rgba(26, 115, 232, .3); }
.cph-btn--primary:hover { color: #fff; box-shadow: 0 6px 25px rgba(26, 115, 232, .4); }
.cph-btn--secondary { color: #fff; background: var(--cph-secondary); box-shadow: 0 4px 15px rgba(255, 107, 53, .3); }
.cph-btn--secondary:hover { color: #fff; background: #e55a2b; }

/* Hero */
.cph-hero { position: relative; overflow: hidden; padding: 80px 0 100px; background: var(--cph-gradient-hero); }
.cph-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cph-hero__particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cph-hero__particles span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); animation: cph-float 6s ease-in-out infinite; }
.cph-hero__particles span:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; }
.cph-hero__particles span:nth-child(2) { width: 60px; height: 60px; top: 60%; left: 80%; animation-delay: 2s; }
.cph-hero__particles span:nth-child(3) { width: 40px; height: 40px; top: 40%; left: 50%; animation-delay: 4s; }
.cph-hero__particles span:nth-child(4) { width: 100px; height: 100px; top: 70%; left: 20%; animation-delay: 1s; }
.cph-hero__particles span:nth-child(5) { width: 50px; height: 50px; top: 10%; left: 70%; animation-delay: 3s; }
@keyframes cph-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .1; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: .2; }
}
.cph-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cph-hero__eyebrow {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px;
  font-family: var(--cph-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .65);
}
.cph-hero__eyebrow span { color: var(--cph-secondary); }
.cph-hero__title { margin: 0 0 20px; font-size: 48px; font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -.5px; }
.cph-highlight {
  background: linear-gradient(135deg, #ff6b35, #ffc107);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cph-hero__lead { margin: 0 0 32px; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
.cph-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.cph-hero__card {
  padding: 22px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 24px;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.cph-hero__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cph-hero__point {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; column-gap: 14px;
  padding: 18px; border-radius: 16px; background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .16); animation: cph-bounce 3s ease-in-out infinite;
}
.cph-hero__point:nth-child(2n) { animation-delay: 1.5s; }
.cph-hero__point-icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--cph-primary-light); color: var(--cph-primary);
}
.cph-hero__point:nth-child(2) .cph-hero__point-icon { background: #fff3e0; color: var(--cph-secondary); }
.cph-hero__point:nth-child(3) .cph-hero__point-icon { background: #e8f5e9; color: var(--cph-success); }
.cph-hero__point:nth-child(4) .cph-hero__point-icon { background: #fff8e1; color: #e6a100; }
.cph-hero__point-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cph-hero__point strong { font-family: var(--cp-font-display); font-size: 15px; color: var(--cph-ink); }
@keyframes cph-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Sections */
.cph-section { padding: 88px 0; }
.cph-head { margin-bottom: 48px; }
.cph-rule { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cph-rule__line { flex: 1; height: 1px; background: var(--cph-gray-300); }
.cph-rule__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cph-primary); white-space: nowrap; }
.cph-rule__link:hover { color: var(--cph-primary); text-decoration: underline; }
.cph-head h2 { margin: 0 0 12px; font-size: 34px; font-weight: 800; letter-spacing: -.5px; color: var(--cph-ink); }
.cph-sub { max-width: 560px; margin: 0; font-size: 16px; color: var(--cph-gray-500); }

/* Who we are */
.cph-who__intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; margin-bottom: 52px; }
.cph-who__lead { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.65; color: var(--cph-ink); }
.cph-who__support { margin: 0; padding: 6px 0 0 20px; border-left: 3px solid var(--cph-gray-300); font-size: 15.5px; line-height: 1.75; color: var(--cph-gray-500); }
.cph-who__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cph-card {
  padding: 26px 24px; border: 1px solid var(--cph-gray-300); border-radius: 14px; background: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cph-card:hover { border-color: var(--cph-primary); transform: translateY(-3px); box-shadow: var(--cph-shadow-sm); }
.cph-card__icon {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 10px; background: var(--cph-primary-light); color: var(--cph-primary);
}
.cph-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cph-card h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: var(--cph-ink); }
.cph-card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--cph-gray-500); }

/* Why */
.cph-why { padding-top: 24px; }
.cph-why__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 46px 48px;
  border: 1px solid var(--cph-gray-300); border-left: 4px solid var(--cph-secondary); border-radius: 14px; background: #fff;
}
.cph-why__panel p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--cph-gray-700); }
.cph-why__cta { margin-top: 36px; }

/* Latest updates */
.cph-latest { background: var(--cph-gray-100); }
.cph-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cph-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 13px;
  border: 1px solid var(--cph-gray-300); border-radius: 999px; background: #fff; text-decoration: none;
  transition: border-color .25s;
}
.cph-chip:hover { border-color: var(--cph-primary); text-decoration: none; }
.cph-chip__dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cph-success); }
.cph-chip__code { font-family: var(--cph-mono); font-size: 12.5px; font-weight: 600; color: var(--cph-ink); transition: color .25s; }
.cph-chip:hover .cph-chip__code { color: var(--cph-primary); }
.cph-chip__vendor { font-size: 12px; color: var(--cph-gray-500); }

/* Most demanded */
.cph-rank {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--cph-rank-rows, 10), auto);
  grid-auto-columns: minmax(0, 1fr); column-gap: 56px;
}
.cph-rank__item { display: flex; align-items: center; gap: 14px; padding: 11px 4px; border-bottom: 1px solid #eef0f3; text-decoration: none; }
.cph-rank__item:hover { text-decoration: none; }
.cph-rank__num { min-width: 22px; font-family: var(--cph-mono); font-size: 12px; font-weight: 600; color: var(--cph-secondary); }
.cph-rank__main { flex: 1; min-width: 0; }
.cph-rank__code { display: block; font-family: var(--cph-mono); font-size: 13.5px; font-weight: 700; color: var(--cph-ink); transition: color .25s; }
.cph-rank__item:hover .cph-rank__code { color: var(--cph-primary); }
.cph-rank__title { display: block; overflow: hidden; font-size: 12.5px; color: var(--cph-gray-500); white-space: nowrap; text-overflow: ellipsis; }
.cph-rank__vendor {
  flex-shrink: 0; padding: 3px 10px; border: 1px solid var(--cph-gray-100); border-radius: 999px;
  background: var(--cph-gray-100); font-size: 11px; color: var(--cph-gray-500); white-space: nowrap;
}

/* Popular vendors */
.cph-vendors { background: var(--cph-gray-100); }
.cph-vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cph-vendor {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border: 1px solid var(--cph-gray-300); border-radius: 14px; background: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cph-vendor:hover { border-color: var(--cph-primary); transform: translateY(-3px); box-shadow: var(--cph-shadow-md); }
.cph-vendor__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cph-vendor__top h3 { margin: 0; font-size: 17px; font-weight: 700; }
.cph-vendor__top h3 a { color: var(--cph-ink); text-decoration: none; }
.cph-vendor__top h3 a:hover { color: var(--cph-primary); }
.cph-vendor__counts { font-family: var(--cph-mono); font-size: 11.5px; color: var(--cph-gray-500); white-space: nowrap; }
.cph-vendor__latest { margin-top: auto; padding-top: 13px; border-top: 1px dashed var(--cph-gray-300); }
.cph-vendor__label {
  display: block; margin-bottom: 5px;
  font-family: var(--cph-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--cph-secondary);
}
.cph-vendor__exam { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--cph-primary); text-decoration: none; }
.cph-vendor__exam span { display: inline-block; margin-left: 4px; transition: margin-left .25s; }
.cph-vendor:hover .cph-vendor__exam span { margin-left: 8px; }

@media (max-width: 1024px) {
  .cph-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .cph-hero__title { font-size: 38px; }
  .cph-who__intro { grid-template-columns: 1fr; gap: 24px; }
  .cph-who__grid { grid-template-columns: repeat(2, 1fr); }
  .cph-why__panel { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
  .cph-rank { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .cph-vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cph-section { padding: 60px 0; }
  .cph-head { margin-bottom: 34px; }
  .cph-head h2 { font-size: 27px; }
  .cph-hero { padding: 50px 0 70px; }
  .cph-hero__title { font-size: 30px; }
  .cph-who__grid, .cph-rank, .cph-vendor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .cph-hero__actions { flex-direction: column; }
  .cph-hero__points { grid-template-columns: 1fr; }
  .cph-why__panel { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cph-hero__particles span, .cph-hero__point { animation: none; }
}
