/* Certum blue color variable */
:root {
  --certum-blue: #0A78FC;
  --certum-blue-dark: #0560CC;
  --md-primary-fg-color: #0A78FC;
  --md-primary-fg-color--light: #4A9DFD;
  --md-primary-fg-color--dark: #0560CC;
  --md-accent-fg-color: #0A78FC;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0A78FC;
  --md-primary-fg-color--light: #4A9DFD;
  --md-primary-fg-color--dark: #0560CC;
  --md-accent-fg-color: #0A78FC;
}

/* Landing page hero section */
.md-typeset .hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
  margin: -1rem -0.8rem 2rem;
  background: linear-gradient(135deg, var(--certum-blue) 0%, var(--certum-blue-dark) 100%);
  color: white;
  border-radius: 0 0 2rem 2rem;
}

.md-typeset .hero .hero-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.md-typeset .hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.md-typeset .hero .tagline {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-weight: 300;
}

.md-typeset .hero .description {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.85;
  line-height: 1.6;
}

.md-typeset .hero .buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.md-typeset .hero .button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .hero .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.md-typeset .hero .button.primary {
  background: white;
  color: var(--certum-blue);
}

.md-typeset .hero .button.secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.md-typeset .hero .button.secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* Feature cards */
.md-typeset .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.md-typeset .feature {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.md-typeset .feature .icon {
  display: block;
  margin-bottom: 1.5rem;
}

.md-typeset .feature .icon svg,
.md-typeset .features .feature .icon svg,
.feature .icon svg {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  fill: #0A78FC !important;
}

.md-typeset .feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.md-typeset .feature p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* About section */
.md-typeset .about {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--md-code-bg-color);
  border-radius: 1rem;
  border-left: 4px solid var(--certum-blue);
}

.md-typeset .about h2 {
  margin-top: 0;
}

/* Status badge */
.md-typeset .status {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.md-typeset .status.development {
  background: rgba(10, 120, 252, 0.1);
  color: var(--certum-blue);
  border: 1px solid rgba(10, 120, 252, 0.3);
}

.md-typeset .status.beta {
  background: #e3f2fd;
  color: #1565c0;
}

/* Footer attribution on landing */
.md-typeset .attribution {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Hide title on homepage since we have hero */
.md-typeset h1:first-child {
  display: none;
}

/* Only hide on actual home page */
.md-content[data-md-component="content"] article > h1:first-child {
  display: block;
}

body[data-md-url=""] .md-content h1:first-child,
body[data-md-url="/"] .md-content h1:first-child {
  display: none;
}
