/* ============================================================
   Swiss Blockchain AG — landing page styles
   Palette: paper #FAFAF8 · ink #171A1E · grey #5A6068
            hairline #E5E4E0 · steel-navy accent #1F3A5F
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FAFAF8;
  color: #171A1E;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #1F3A5F; text-decoration: none; }
a:hover { color: #171A1E; }

h1, h2, h3, p { margin: 0; }

input, textarea { font-family: 'Inter', sans-serif; }
input:focus, textarea:focus { outline: none; border-color: #1F3A5F !important; }

[hidden] { display: none !important; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #1F3A5F;
  margin-bottom: 14px;
}
.eyebrow-light { color: #8FA6C4; }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 96px 32px; }

.section-head { margin-bottom: 52px; }

.section-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.015em;
}
.section-title.narrow { max-width: 24ch; }

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-navy { background: #1F3A5F; color: #FAFAF8; }
.btn-navy:hover { background: #17324F; color: #FAFAF8; }
.btn-lg { font-size: 15px; padding: 14px 30px; }
.btn-light {
  background: #FAFAF8;
  color: #171A1E;
  font-size: 15px;
  padding: 14px 30px;
}
.btn-light:hover { background: #E5E4E0; }

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].sb-in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E4E0;
}
.red-line { height: 2px; background: #E23528; }
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.wordmark {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #171A1E;
}
.wordmark strong { font-weight: 700; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #5A6068;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: #171A1E; border-bottom: 2px solid #1F3A5F; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid #E5E4E0; }
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 108px 32px 96px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.eyebrow { }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #5A6068;
  max-width: 52ch;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-art { display: flex; justify-content: center; }
.chain-svg { max-width: 360px; }

.chain-draw {
  stroke-dasharray: 900;
  animation: sbDraw 2.4s ease-out forwards;
}
.node { animation: sbPulse 5s ease-in-out infinite; }
.node-2 { animation-delay: 1.6s; }
.node-3 { animation-delay: 3.2s; }

@keyframes sbDraw {
  from { stroke-dashoffset: 900; }
  to   { stroke-dashoffset: 0; }
}
@keyframes sbPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: #E5E4E0;
  border: 1px solid #E5E4E0;
}
.service-card {
  background: #FAFAF8;
  padding: 32px 28px;
  border-top: 2px solid transparent;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(23, 26, 30, 0.07);
  border-top: 2px solid #1F3A5F;
}
.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5A6068;
  text-wrap: pretty;
}

/* ---------- approach ---------- */
.band {
  background: #F2F1EE;
  border-top: 1px solid #E5E4E0;
  border-bottom: 1px solid #E5E4E0;
}
.band .section-inner { padding: 88px 32px; }
.band .section-head { margin-bottom: 48px; }
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.step { display: flex; flex-direction: column; gap: 14px; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 28px;
  height: 28px;
  border: 1.5px solid #1F3A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #1F3A5F;
}
.step-num-fill { background: #1F3A5F; color: #FAFAF8; }
.step-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.step-body { font-size: 14.5px; line-height: 1.6; color: #5A6068; }
.approach-note {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #E5E4E0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5A6068;
  max-width: 68ch;
}

/* ---------- about ---------- */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.about-title { max-width: 16ch; }
.about-list { display: flex; flex-direction: column; }
.about-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid #E5E4E0;
}
.about-row-last { border-bottom: none; }
.about-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #1F3A5F;
  flex-shrink: 0;
}
.about-text { font-size: 16px; line-height: 1.6; color: #171A1E; }

/* ---------- contact ---------- */
.contact { background: #171A1E; color: #FAFAF8; }
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.contact-title { color: #FAFAF8; margin-bottom: 18px; }
.contact-lead {
  font-size: 15.5px;
  line-height: 1.65;
  color: #A8ADB5;
  margin-bottom: 28px;
  max-width: 42ch;
}
.contact-mail {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #8FA6C4;
}
.contact-success {
  border: 1px solid #33383F;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.success-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-top: 8px;
  color: #FAFAF8;
}
.success-text { font-size: 15px; line-height: 1.6; color: #A8ADB5; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #A8ADB5;
}
.field input, .field textarea {
  background: transparent;
  border: 1px solid #33383F;
  color: #FAFAF8;
  padding: 13px 14px;
  font-size: 15px;
}
.field textarea { resize: vertical; }

/* ---------- footer ---------- */
.site-footer { background: #171A1E; border-top: 1px solid #33383F; }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.logo-footer .wordmark { font-size: 15px; color: #A8ADB5; }
.legal {
  font-size: 12.5px;
  line-height: 1.6;
  color: #8B9098;
  max-width: 62ch;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .section-inner { padding: 64px 24px; }
  .hero-inner { padding: 72px 24px 64px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 32px 24px; }
}

@media (max-width: 620px) {
  .nav { gap: 16px; }
  .nav-link { display: none; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
}
