/* Kraqtronics — Terra-inspired design language
   white base · Poppins · blue #008BFF accent · slate #1E293A ink
   gradient headline · rotated stickers · pill buttons w/ offset shadows */

:root {
  --ink: #1e293a;
  --muted: #64748b;
  --blue: #008bff;
  --blue-deep: #006fd6;
  --yellow: #ffec80;
  --pink: #ffbcc9;
  --sky: #c1e4fc;
  --surface: #f8fafc;
  --border: rgba(30, 41, 58, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* pastel gradient blobs */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.blob-pink {
  width: 620px;
  height: 620px;
  background: var(--pink);
  top: -220px;
  right: -160px;
}

.blob-sky {
  width: 560px;
  height: 560px;
  background: var(--sky);
  bottom: -200px;
  left: -180px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(30, 41, 58, 0.06);
}

.site-header .container {
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand b {
  color: var(--blue);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: color 0.2s ease;
}

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

/* ---------- pill buttons w/ offset shadow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
}

.btn-blue:hover,
.btn-ghost:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-blue:hover {
  box-shadow: 2px 2px 0 var(--ink);
  filter: brightness(0.95);
}

.btn-ghost:hover {
  box-shadow: 2px 2px 0 var(--pink);
}

.btn-sm {
  height: 2.5rem;
  padding: 0 1.25rem;
  font-size: 0.9rem;
}

/* ---------- hero ---------- */
.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.sticker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  transform: rotate(-2deg);
  margin-bottom: 1.75rem;
  white-space: nowrap;
}

.grad-text {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(88deg, #1e293a 31%, #008bff 131%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  max-width: 17ch;
  margin: 0 auto 1.25rem;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(30, 41, 58, 0.1);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.icon-blue { background: var(--sky); }
.icon-pink { background: var(--pink); }
.icon-yellow { background: var(--yellow); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* data note */
.data-note {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 46rem;
  margin: 0 auto;
}

.data-note h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.data-note p {
  color: var(--muted);
  font-size: 0.95rem;
}

.data-note a {
  color: var(--blue);
  font-weight: 500;
}

/* ---------- privacy page prose ---------- */
.prose {
  padding: 4rem 0;
  max-width: 46rem;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 404 ---------- */
.fof-code {
  display: inline-block;
  font-family: "Fira Code", monospace;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 600;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 0.5rem 2rem;
  transform: rotate(-2deg);
  margin-bottom: 2rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--blue);
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
}
