/* ============================================================
   TrustBit site stylesheet
   Self-contained: system fonts, no external assets.
   ============================================================ */

:root {
  --navy: #0f2438;
  --navy-deep: #0a1826;
  --teal: #0e8f7e;
  --teal-bright: #12b39e;
  --ink: #22303d;
  --ink-soft: #55636f;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --line: #e2e8ed;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 36, 56, 0.08);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand .logo-mark { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--teal);
}

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 8px;
  border-bottom: none !important;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--teal); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 179, 158, 0.18), transparent 65%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 640px;
}

.hero h1 .accent { color: var(--teal-bright); }

.hero p.lede {
  margin-top: 20px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 64px 0 56px;
}

.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); max-width: 620px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--teal-bright); color: var(--navy-deep); }
.btn-primary:hover { background: #3ed3bf; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding: 72px 0; }
section.tinted { background: var(--mist); }

.section-head { max-width: 640px; margin-bottom: 44px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

h2 { font-size: 1.75rem; letter-spacing: -0.02em; color: var(--navy); }
h3 { color: var(--navy); }

.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* Card grids */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: rgba(14, 143, 126, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Proof tile: the single large validation statement on the homepage */
.proof-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 56px 56px 48px;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 120% at 85% -20%, rgba(18, 179, 158, 0.55), transparent 60%),
    radial-gradient(ellipse 70% 100% at 0% 110%, rgba(14, 143, 126, 0.35), transparent 55%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 55%, #061019 100%);
  box-shadow: 0 24px 60px rgba(10, 24, 38, 0.35);
}

.proof-tile::before {
  /* Faint parabolic arc: the flight path, drawn not decorated. */
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='none'%3E%3Cpath d='M-20 290 Q 300 -80 620 290' stroke='rgba(18,179,158,0.25)' stroke-width='2' fill='none' stroke-dasharray='1 10' stroke-linecap='round'/%3E%3C/svg%3E") center / cover no-repeat;
  pointer-events: none;
}

.proof-tile > * { position: relative; }

.proof-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

.proof-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 620px;
}

.proof-body {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
}

.proof-kicker {
  font-weight: 700;
  color: var(--teal-bright);
  font-size: 1.1rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--teal-bright);
  font-variant-numeric: tabular-nums;
}

.proof-stat-num sup { font-size: 0.9rem; }

.proof-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

/* Category grid inside a proof tile (services page) */
.proof-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.proof-cat-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(18, 179, 158, 0.16);
  color: var(--teal-bright);
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.proof-cat-title {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.proof-cat p {
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 880px) {
  .proof-tile { padding: 40px 32px 36px; }
  .proof-stats { grid-template-columns: 1fr; gap: 20px; }
  .proof-categories { grid-template-columns: 1fr; gap: 26px; }
}

/* Principles / numbered list */
.principle {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principle:last-child { border-bottom: none; }

.principle .num {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal-bright);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle h3 { font-size: 1.05rem; }
.principle p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.step h3 { font-size: 0.98rem; margin-top: 8px; }
.step p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 8px;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .chev {
  transition: transform 0.25s;
  color: var(--teal);
  flex: 0 0 auto;
}

.faq-item.open .faq-q .chev { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 8px 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 90%);
  border-radius: 14px;
  color: #fff;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }

/* ------------------------------------------------------------
   Contact (minimalist)
   ------------------------------------------------------------ */
.contact-minimal {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  padding: 16px 0 8px;
}

.contact-minimal h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-minimal p {
  margin-top: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.contact-email {
  display: inline-block;
  margin-top: 40px;
  font-size: clamp(1.25rem, 3.2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--teal-bright);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.contact-note {
  font-size: 0.9rem !important;
  color: var(--ink-soft);
  margin-top: 20px !important;
}

/* ------------------------------------------------------------
   Prose (privacy page)
   ------------------------------------------------------------ */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 14px 0; }
.prose ul { padding-left: 22px; margin: 14px 0; }
.prose li { margin-bottom: 8px; }
.prose li:last-child { margin-bottom: 0; }
.prose .updated { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
  margin-top: 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.site-footer .brand { color: #fff; }

.footer-links { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover { color: var(--teal-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Cookie consent banner
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 700px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(10, 24, 38, 0.4);
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.visible { opacity: 1; transform: none; }

.cookie-text {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.cookie-text a {
  color: var(--teal-bright);
  font-weight: 600;
  text-decoration: none;
}

.cookie-text a:hover { text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }

.cookie-btn {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-accept {
  background: var(--teal-bright);
  color: var(--navy-deep);
  border: none;
}

.cookie-accept:hover { background: #3ed3bf; }

.cookie-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-decline:hover { color: #fff; border-color: rgba(255, 255, 255, 0.55); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .cta-band { padding: 32px 24px; }
}
