/* democrify.css */

/* Base layout & typography */

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #050816;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #4fd1c5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Legacy generic header (for other pages if needed) */

header {
  text-align: center;
  padding: 32px 8px 16px;
}

.tagline {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 12px;
}

h1 {
  font-size: 2.2rem;
  margin: 0 0 8px;
}

.subhead {
  font-size: 1.05rem;
  color: #cbd5e0;
  max-width: 720px;
  margin: 0.75rem auto 0;
}

.pill {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #4fd1c5;
  font-size: 0.85rem;
  color: #a0aec0;
}

/* Sections */

section {
  margin-top: 40px;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

h2 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 8px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  margin-top: 20px;
}

p {
  margin: 0.25rem 0 0.5rem;
}

ul {
  margin: 0.5rem 0 0.5rem 1.1rem;
  padding: 0;
}

li {
  margin: 0.25rem 0;
}

/* Grid & cards (for other pages / future use) */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  padding: 12px 10px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.card-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

/* Call-to-action block (generic) */

.cta {
  text-align: center;
  margin-top: 40px;
  padding: 24px 20px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a365d, #234e52);
  border: 1px solid rgba(56, 189, 248, 0.6);
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  max-width: 640px;
  margin: 0.25rem auto 0.75rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.1);
  color: #edf2f7;
}

.btn.primary {
  background: #4fd1c5;
  color: #1a202c;
  border-color: #4fd1c5;
}

/* Form */

.form {
  margin-top: 12px;
  text-align: left;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.field {
  margin-bottom: 10px;
}

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cbd5e0;
  margin-bottom: 3px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #4a5568;
  background: rgba(15, 23, 42, 0.9);
  color: #edf2f7;
  font-size: 0.9rem;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Small text & footer */

.small {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-top: 12px;
}

footer {
  margin-top: 36px;
  font-size: 0.75rem;
  color: #718096;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive tweaks (generic) */

@media (min-width: 760px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* ============================= */
/* Home page specific layout     */
/* ============================= */

/* Site header (home) */

.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(circle at 25% 0%, #4fd1c5, #3182ce);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2), 0 10px 25px rgba(15, 23, 42, 0.8);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.8);
  border-top-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-12deg);
  opacity: 0.8;
}

.brand-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-text-sub {
  font-size: 0.8rem;
  color: #a0aec0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: #a0aec0;
}

.site-nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: rgba(160, 174, 192, 0.8);
  color: #edf2f7;
  text-decoration: none;
}

/* Hero */

.hero-section {
  margin-top: 24px;
  padding: 24px 20px 28px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a0aec0;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #cbd5e0;
  margin: 0 0 18px;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #4fd1c5, #3182ce);
  color: #1a202c;
  font-weight: 600;
  border-color: #4fd1c5;
  box-shadow: 0 12px 30px rgba(79, 209, 197, 0.35);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  color: #edf2f7;
  border-color: rgba(226, 232, 240, 0.5);
}

.btn-primary .icon {
  font-size: 1.05rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #a0aec0;
}

.hero-note strong {
  color: #edf2f7;
  font-weight: 500;
}

/* Hero card */

.hero-card {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.hero-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  margin-bottom: 8px;
}

.hero-card-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48bb78;
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.3);
}

.hero-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero-card-text {
  font-size: 0.8rem;
  color: #a0aec0;
  margin-bottom: 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.hero-mini {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(75, 85, 99, 0.9);
  font-size: 0.78rem;
}

.hero-mini-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a0aec0;
}

.hero-mini-main {
  font-size: 0.83rem;
  margin-top: 2px;
}

/* Section headers & helpers */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
}

.section-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a0aec0;
}

.muted {
  color: #a0aec0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* Responsive layout for home */

@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }
}
