/* =============================================================================
   VeriChain Website — Shared Stylesheet
   Colors: Baby blue #89C4E1 (primary) · Teal #14A082 (accent/verified)
   Font: Inter
============================================================================= */

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

:root {
  --blue:       #89C4E1;
  --blue-mid:   #5AAECB;
  --blue-dark:  #2E8FAF;
  --teal:       #14A082;
  --teal-light: #E1F5EE;
  --teal-border:#5DCAA5;
  --text:       #1a1a1a;
  --text-mid:   #444;
  --text-soft:  #888;
  --border:     #e8e8e8;
  --soft-bg:    #f7f9fc;
  --radius:     12px;
  --radius-sm:  8px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.7; }

a { color: inherit; text-decoration: none; }
code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85em; background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.25rem; }
p { color: var(--text-mid); }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-wordmark { font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.3px; }
.nav-wordmark span { color: var(--blue-mid); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links > a { font-size: 14px; color: var(--text-mid); transition: color 0.15s; white-space: nowrap; }
.nav-links > a:hover, .nav-links > a.active { color: var(--text); font-weight: 500; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--text-mid); background: none; border: none; cursor: pointer;
  font-family: inherit; padding: 0; transition: color 0.15s; white-space: nowrap;
}
.dropdown-toggle:hover { color: var(--text); }
.dropdown-toggle svg { transition: transform 0.2s; }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 0.5rem; min-width: 220px;
  opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
  transform: translateX(-50%) translateY(-4px);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu .menu-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); padding: 6px 10px 4px; }
.dropdown-menu a { display: block; font-size: 13px; color: var(--text-mid); padding: 8px 10px; border-radius: 8px; transition: background 0.12s, color 0.12s; }
.dropdown-menu a:hover { background: var(--soft-bg); color: var(--text); }

.nav-cta { background: var(--blue); color: white !important; padding: 8px 18px; border-radius: 20px; font-size: 13px !important; font-weight: 500; transition: background 0.15s !important; white-space: nowrap; }
.nav-cta:hover { background: var(--blue-mid) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-mobile { display: none; flex-direction: column; padding: 1rem 1.5rem; gap: 0.75rem; border-top: 1px solid var(--border); background: white; }
.nav-mobile a { font-size: 15px; color: var(--text-mid); padding: 2px 0; }
.nav-mobile .mobile-section { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.nav-mobile.open { display: flex; }
@media(max-width: 900px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }

/* ─── SECTIONS ────────────────────────────────────────────────────────────── */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.centered { text-align: center; }
.section-inner.narrow { max-width: 800px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 0.75rem; }
.section-intro { font-size: 1.05rem; color: var(--text-mid); max-width: 640px; margin: 0 0 2.5rem; line-height: 1.8; }
.section-inner.centered .section-intro { margin: 0 auto 2.5rem; }
.bg-soft { background: var(--soft-bg); }
.bg-blue { background: var(--blue); }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero { min-height: 90vh; display: flex; align-items: center; max-width: 1100px; margin: 0 auto; padding: 5rem 1.5rem; gap: 4rem; }
.hero-inner { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-light); border: 1px solid var(--teal-border); border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 500; color: #0F6E56; margin-bottom: 1.5rem; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: var(--text-mid); max-width: 540px; margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media(max-width: 900px) { .hero { flex-direction: column; min-height: auto; padding-top: 3rem; } .hero-visual { width: 100%; } }

/* ─── HERO CARD ───────────────────────────────────────────────────────────── */
.hero-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 380px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.hc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; }
.hc-title { font-size: 15px; font-weight: 600; }
.hc-sub { font-size: 12px; color: var(--text-soft); }
.hc-status { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.hc-status.verified { background: var(--teal-light); color: var(--teal); }
.hc-rows { display: flex; flex-direction: column; gap: 0; }
.hc-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.hc-row:last-child { border-bottom: none; }
.hc-row span:first-child { color: var(--text-soft); }
.hc-row span:last-child { font-weight: 500; }
.mono { font-family: monospace; font-size: 12px; }
.verified-text { color: var(--teal); font-weight: 600; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn-primary { display: inline-block; background: var(--blue); color: white; padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 500; transition: background 0.15s; }
.btn-primary:hover { background: var(--blue-mid); }
.btn-secondary { display: inline-block; border: 1.5px solid var(--border); color: var(--text-mid); padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 500; transition: border-color 0.15s, color 0.15s; }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-white { display: inline-block; background: white; color: var(--blue-dark); padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 500; }
.btn-outline-white { display: inline-block; border: 1.5px solid rgba(255,255,255,0.5); color: white; padding: 12px 24px; border-radius: 24px; font-size: 14px; font-weight: 500; }
.btn-outline-white:hover { border-color: white; }

/* ─── GRID LAYOUTS ────────────────────────────────────────────────────────── */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media(max-width: 900px) { .three-col { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ─── FEATURE CARDS ───────────────────────────────────────────────────────── */
.feature-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.fc-icon { width: 44px; height: 44px; background: #EAF6FB; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-card p { font-size: 14px; line-height: 1.7; margin-top: 0.5rem; }

/* ─── STEPS ───────────────────────────────────────────────────────────────── */
.step-list { display: flex; flex-direction: column; gap: 1.75rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: white; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step h4 { color: var(--text); }
.step p { font-size: 14px; margin-top: 0.25rem; }

/* ─── CHAIN VISUAL ────────────────────────────────────────────────────────── */
.chain-visual { display: flex; flex-direction: column; align-items: center; gap: 0; }
.chain-block { width: 100%; max-width: 260px; background: white; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.875rem 1rem; }
.chain-block.genesis { border-color: var(--blue); }
.chain-block.verified-block { border-color: var(--teal); background: var(--teal-light); }
.cb-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); margin-bottom: 2px; }
.chain-block.verified-block .cb-label { color: #0F6E56; }
.cb-type { font-size: 14px; font-weight: 500; }
.cb-hash { font-size: 11px; color: var(--text-soft); font-family: monospace; margin-top: 2px; }
.chain-arrow { font-size: 18px; color: var(--border); padding: 4px 0; }

/* ─── AUDIENCE CARDS ──────────────────────────────────────────────────────── */
.audience-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.ac-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem; }
.journalists { background: linear-gradient(135deg, #EAF6FB, #C5E8F5); }
.developers  { background: linear-gradient(135deg, #E1F5EE, #9FE1CB); }
.archivists  { background: linear-gradient(135deg, #FAEEDA, #FAC775); }
.audience-card p { font-size: 14px; line-height: 1.7; margin-top: 0.5rem; }

/* ─── DIRECTORY ───────────────────────────────────────────────────────────── */
.directory-card { background: var(--soft-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-top: 1rem; }
.dir-row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.dir-step { flex: 1; min-width: 160px; max-width: 200px; text-align: center; }
.dir-num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: white; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.75rem; }
.dir-step p { font-size: 13px; line-height: 1.6; }
.dir-arrow { font-size: 20px; color: var(--border); padding-top: 10px; }
@media(max-width: 768px) { .dir-arrow { display: none; } }

/* ─── SPEC / HOW-IT-WORKS PAGES ───────────────────────────────────────────── */
.spec-hero { background: var(--soft-bg); padding: 4rem 1.5rem 3rem; border-bottom: 1px solid var(--border); }
.spec-hero-inner { max-width: 800px; margin: 0 auto; }
.spec-body { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.spec-section { margin-bottom: 3rem; }
.spec-section h2 { font-size: 1.4rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.spec-section h3 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.spec-section p { font-size: 14px; line-height: 1.8; margin-bottom: 0.75rem; }
.spec-section ul, .spec-section ol { padding-left: 1.5rem; font-size: 14px; line-height: 1.8; color: var(--text-mid); }
.spec-section li { margin-bottom: 0.25rem; }
.field-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 1rem 0; }
.field-table th { text-align: left; padding: 8px 12px; background: var(--soft-bg); font-weight: 600; border: 1px solid var(--border); }
.field-table td { padding: 8px 12px; border: 1px solid var(--border); vertical-align: top; }
.field-table td:first-child { font-family: monospace; font-size: 12px; color: var(--blue-dark); }
.field-table tr:nth-child(even) td { background: #fafafa; }
pre { background: #1a1a1a; color: #e8e8e8; padding: 1.25rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13px; line-height: 1.6; margin: 1rem 0; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* ─── HOW IT WORKS (friendly) ─────────────────────────────────────────────── */
.uc-hero { padding: 5rem 1.5rem 4rem; border-bottom: 1px solid var(--border); }
.uc-hero-inner { max-width: 700px; margin: 0 auto; }
.uc-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.uc-hero p { font-size: 1.1rem; color: var(--text-mid); line-height: 1.8; }

.hiw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media(max-width: 768px) { .hiw-grid { grid-template-columns: 1fr; } }

.hiw-card { background: var(--soft-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; position: relative; }
.hiw-card-num { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: white; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.hiw-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--text); }
.hiw-card p { font-size: 14px; line-height: 1.8; margin: 0; }

/* ─── HOW IT WORKS (technical) ────────────────────────────────────────────── */
.hiw-steps { display: flex; flex-direction: column; gap: 4rem; margin-top: 3rem; }
.hiw-step { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; align-items: start; }
.hiw-num { width: 64px; height: 64px; border-radius: 16px; background: var(--blue); color: white; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hiw-step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.hiw-step p { font-size: 15px; line-height: 1.8; }
@media(max-width: 600px) { .hiw-step { grid-template-columns: 1fr; } }

/* ─── USE CASE PAGES ──────────────────────────────────────────────────────── */
.uc-hero.accent-blue { background: var(--blue); }
.uc-hero.accent-blue .section-label { color: rgba(255,255,255,0.7); }
.uc-hero.accent-blue h1 { color: white; }
.uc-hero.accent-blue p { color: rgba(255,255,255,0.85); }

.scenario-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.75rem; background: white; }
.scenario-card + .scenario-card { margin-top: 1.25rem; }
.scenario-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-mid); margin-bottom: 0.5rem; }
.scenario-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.scenario-card p { font-size: 14px; line-height: 1.75; margin: 0; }

/* ─── VERILENS PAGE ───────────────────────────────────────────────────────── */
.vl-hero { background: var(--blue); padding: 5rem 1.5rem; text-align: center; }
.vl-hero h1 { color: white; margin-bottom: 1rem; }
.vl-hero p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }
.vl-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 6px 16px; font-size: 13px; font-weight: 500; color: white; margin-bottom: 1.5rem; }

/* ─── CONTACT PAGE ────────────────────────────────────────────────────────── */
.contact-form { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem; max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--text); background: white;
  transition: border-color 0.15s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: var(--teal-light); border: 1px solid var(--teal-border); border-radius: 8px; padding: 1rem 1.25rem; font-size: 14px; color: #0F6E56; margin-top: 1rem; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--text-soft); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-soft); }
@media(max-width: 768px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-links { flex-wrap: wrap; gap: 1rem; } }
