/* ── CCF Global Styles ──────────────────────────────── */
:root {
  --bg:          #070B10;
  --surface:     #0D1520;
  --surface2:    #111D2E;
  --border:      #1A2C42;
  --border2:     #243650;
  --text:        #E8EDF5;
  --muted:       #6B7A90;
  --faint:       #3A4D63;

  /* Foundation = gold */
  --gold:        #C9A84C;
  --gold-dim:    #A8863A;
  --gold-glow:   rgba(201,168,76,0.15);
  --gold-subtle: rgba(201,168,76,0.08);

  /* Cert arm = teal */
  --teal:        #00C2A8;
  --teal-dim:    #00A38D;
  --teal-glow:   rgba(0,194,168,0.15);
  --teal-subtle: rgba(0,194,168,0.08);

  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-teal { color: var(--teal); }

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1160px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #070B10;
  font-weight: 900;
}

.nav-logo .logo-icon.teal-icon {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-gold {
  background: var(--gold);
  color: #070B10;
}

.btn-gold:hover { background: #dbb84f; transform: translateY(-1px); }

.btn-teal {
  background: var(--teal);
  color: #070B10;
}

.btn-teal:hover { background: #00d4b8; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-teal:hover { border-color: var(--teal); color: var(--teal); }

.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }

.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 8px; }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-hover {
  transition: border-color 0.2s, transform 0.2s;
}

.card-hover:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-teal::before {
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 65%);
}

.hero-content {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
}

.hero h1 span { color: var(--gold); }
.hero h1 span.teal { color: var(--teal); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Stats bar ───────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-num.teal { color: var(--teal); }

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ── Section headers ─────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}

.section-header p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ── Grid layouts ────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Service cards ───────────────────────────────────── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.service-card:hover {
  border-color: var(--gold);
  background: var(--surface2);
}

.service-card.teal-card:hover {
  border-color: var(--teal);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.service-icon.teal-icon { background: var(--teal-subtle); }

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.service-price {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.service-price.teal { color: var(--teal); }

/* ── Steps ───────────────────────────────────────────── */
.steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(10% + 22px);
  right: calc(10% + 22px);
  height: 1px;
  background: linear-gradient(90deg, var(--border), var(--border2), var(--border));
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.step-num.teal {
  border-color: var(--teal);
  color: var(--teal);
}

.step h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── License table ───────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tbody tr { background: var(--surface); transition: background 0.15s; }
tbody tr:hover { background: var(--surface2); }

/* ── Status badges ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active {
  background: rgba(0,194,168,0.12);
  color: var(--teal);
  border: 1px solid rgba(0,194,168,0.25);
}

.badge-expired {
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.2);
}

.badge-pending {
  background: rgba(201,168,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Verify widget ───────────────────────────────────── */
.verify-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.verify-box h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.verify-box p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-field {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus { border-color: var(--gold); }
.input-field.teal-focus:focus { border-color: var(--teal); }

.input-field::placeholder { color: var(--faint); }

/* ── Verify result ───────────────────────────────────── */
.verify-result {
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 20px;
  display: none;
}

.verify-result.valid {
  background: rgba(0,194,168,0.08);
  border: 1px solid rgba(0,194,168,0.25);
}

.verify-result.invalid {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}

.result-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.result-title.valid { color: var(--teal); }
.result-title.invalid { color: #f87171; }

.result-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.result-row:last-child { border-bottom: none; }
.result-row span:last-child { color: var(--text); font-weight: 500; }

/* ── Form ────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group select option { background: var(--surface); }

.form-group textarea { resize: vertical; min-height: 100px; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-card.featured {
  border-color: var(--teal);
  background: var(--surface2);
  position: relative;
}

.pricing-card.featured-gold { border-color: var(--gold); }

.featured-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #070B10;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-tag.gold { background: var(--gold); }

.pricing-card h3 { font-size: 1rem; }

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin: 8px 0;
}

.pricing-price span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }

.pricing-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.pricing-features li {
  font-size: 0.87rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.pricing-features.gold li::before { color: var(--gold); }

/* ── Cert banner ─────────────────────────────────────── */
.cert-banner {
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cert-banner-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cert-banner-content p { color: var(--muted); max-width: 440px; }

/* ── Certificate page ────────────────────────────────── */
.cert-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}

.cert-document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.cert-header-bar {
  background: linear-gradient(135deg, #0D1A28, #111D2E);
  border-bottom: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-id {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cert-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.cert-num.teal { color: var(--teal); }

.cert-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-align: center;
  line-height: 1.4;
}

.cert-seal.teal { border-color: var(--teal); color: var(--teal); }

.cert-body { padding: 40px; }

.cert-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.cert-field-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.cert-field-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.cert-footer-bar {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Search / filter bar ─────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-bar .input-field {
  max-width: 320px;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 0.87rem;
  color: var(--faint);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--faint); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cert-banner { flex-direction: column; text-align: center; }
  .steps::before { display: none; }
  .steps { flex-direction: column; gap: 24px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-header-bar { flex-direction: column; gap: 16px; }
}
