/* WP Certificates - landing page styles
   Material Design 3 Expressive: light, vibrant, rounded, soft shadows */

:root {
  --indigo: #6366F1;
  --violet: #7C3AED;
  --pink: #DB2777;
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --grad: linear-gradient(120deg, #6366F1 0%, #7C3AED 55%, #DB2777 100%);

  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;

  --bg: #FBFBFE;
  --bg-tint: #F4F3FF;
  --surface: #FFFFFF;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05), 0 4px 12px rgba(17, 24, 39, 0.05);
  --shadow: 0 6px 18px rgba(79, 70, 229, 0.08), 0 18px 40px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 34px rgba(79, 70, 229, 0.16), 0 30px 70px rgba(17, 24, 39, 0.14);

  --maxw: 1140px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; text-decoration: none; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-outline {
  background: var(--surface);
  color: var(--primary);
  border-color: #D8D5FB;
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); }

.btn-ghost {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
}
.btn-ghost:hover { background: rgba(79, 70, 229, 0.16); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 254, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { filter: drop-shadow(0 3px 8px rgba(124, 58, 237, 0.28)); border-radius: 10px; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.96rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.site-nav a.btn { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.08);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--primary); border-radius: 2px; }

.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 16px; gap: 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mobile-nav a { padding: 12px 8px; color: var(--ink-soft); font-weight: 500; border-radius: 10px; }
.mobile-nav a:hover { background: var(--bg-tint); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(1100px 520px at 8% -10%, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(219, 39, 119, 0.12), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-mark { margin-bottom: 22px; }
.hero-mark svg { filter: drop-shadow(0 10px 24px rgba(124, 58, 237, 0.32)); border-radius: 22px; }
.hero-sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.center-cta { justify-content: center; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.badge-row li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(79, 70, 229, 0.09);
  border: 1px solid rgba(79, 70, 229, 0.18);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Mock certificate */
.hero-visual { display: flex; justify-content: center; }
.cert-mock {
  width: 100%;
  max-width: 460px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.4deg);
  transition: transform 0.3s ease;
}
.cert-mock:hover { transform: rotate(0deg) translateY(-4px); }
.cert-mock-alt { transform: rotate(1.4deg); max-width: 440px; }
.cert-inner {
  background: #fffdf9;
  border: 2px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius);
  padding: 30px 30px 24px;
  text-align: center;
  position: relative;
}
.cert-eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); font-weight: 600; }
.cert-title { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-top: 4px; }
.cert-presented { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }
.cert-name { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-top: 2px; letter-spacing: -0.01em; }
.cert-rule { width: 180px; height: 2px; background: var(--grad); margin: 6px auto 0; border-radius: 2px; }
.cert-body { font-size: 0.82rem; color: var(--ink-soft); margin: 12px auto 0; max-width: 30ch; }
.cert-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 24px; gap: 10px; }
.cert-sign { text-align: center; flex: 0 0 auto; }
.cert-sign-line { width: 92px; height: 2px; background: #9CA3AF; margin-bottom: 6px; }
.cert-sign span { font-size: 0.72rem; color: var(--muted); }
.cert-seal { flex: 0 0 auto; }
.cert-seal svg { filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4)); }
.cert-qr { text-align: center; flex: 0 0 auto; }
.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 7px);
  grid-auto-rows: 7px;
  gap: 1px;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.qr-grid span { background: #fff; }
.qr-grid span:nth-child(3n), .qr-grid span:nth-child(4n), .qr-grid span:nth-child(7n) { background: var(--ink); }
.qr-grid span:nth-child(1), .qr-grid span:nth-child(5), .qr-grid span:nth-child(21), .qr-grid span:nth-child(25) { background: var(--ink); }
.cert-qr small { display: block; font-size: 0.6rem; color: var(--muted); margin-top: 3px; }
.cert-id { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--violet); font-weight: 600; margin-top: 16px; }

/* Sections */
.section { padding: 76px 0; }
.section-tint { background: var(--bg-tint); }
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 10px;
}
.section-intro { font-size: 1.08rem; color: var(--ink-soft); max-width: 44em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8D5FB; }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-copy p { color: var(--ink-soft); }
.split-visual { display: flex; justify-content: center; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Integrations */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.logo-chip {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.logo-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.logo-chip-muted { color: var(--muted); background: transparent; box-shadow: none; }

/* Verification card */
.verify-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.verify-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.verify-valid { color: #047857; background: #ECFDF5; border: 1px solid #A7F3D0; }
.verify-rows { margin: 0; }
.verify-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.verify-rows > div:last-child { border-bottom: none; }
.verify-rows dt { color: var(--muted); font-size: 0.9rem; margin: 0; }
.verify-rows dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; font-size: 0.92rem; }

/* Developer */
.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.dev-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.dev-block h3 { margin-bottom: 14px; }
.code-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.code-chips code, .dev-note code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.84rem;
  background: #F3F0FF;
  color: var(--primary-dark);
  border: 1px solid #E4DEFB;
  padding: 5px 10px;
  border-radius: 8px;
}
.dev-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.dev-note code { padding: 2px 6px; }

/* Roadmap */
.roadmap-grid {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.roadmap-grid li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 44px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.roadmap-grid li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--grad);
}

/* FAQ */
.faq { margin-top: 28px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 54px 20px 22px;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--primary); }
.faq-body { padding: 0 22px 20px; }
.faq-body p { margin: 0; color: var(--ink-soft); }

/* CTA band */
.cta-band {
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(124, 58, 237, 0.14), transparent 65%),
    var(--bg-tint);
}

/* Footer */
.site-footer { background: #0F1020; color: #C7C9D9; padding: 56px 0 32px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; max-width: 360px; }
.footer-brand strong { display: block; color: #fff; font-size: 1.05rem; }
.footer-brand span { font-size: 0.9rem; color: #9CA0B5; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #C7C9D9; font-size: 0.94rem; }
.footer-links a:hover { color: #fff; }
.footer-fine { margin-top: 22px; }
.footer-fine p { margin: 0; font-size: 0.84rem; color: #80849A; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .dev-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 48px 0; }
  .container { padding: 0 18px; }
  .btn { width: 100%; }
  .hero-cta, .center-cta { flex-direction: column; }
  .cert-mock, .cert-mock-alt { transform: none; }
  .footer-inner { flex-direction: column; }
}
