/* KineticPep — globals: reset + base type + layout primitives */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }
html { scroll-behavior: smooth; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ===== TYPE SCALE ===== */
.h1 { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.h2 { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1.1;  font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.h3 { font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.h4 { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.3; font-weight: 600; margin: 0; }

.body-lg { font-size: 1.125rem; line-height: 1.6; }
.body    { font-size: 1rem;     line-height: 1.6; }
.body-sm { font-size: 0.875rem; line-height: 1.5; }

.caption { font-size: 0.75rem; line-height: 1.4; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.mono    { font-family: var(--font-mono); font-weight: 500; font-feature-settings: 'tnum'; }

@media (max-width: 768px) {
  .h1 { font-size: 2.25rem; }
  .h2 { font-size: 1.75rem; }
  .h3 { font-size: 1.375rem; }
}

/* ===== LAYOUT ===== */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

.section       { padding: var(--section-pad) 0; }
.section-tight { padding: calc(var(--section-pad) * 0.6) 0; }

/* Dark surface */
.surface-dark {
  background: linear-gradient(180deg, #0B1F3A 0%, #08182E 100%);
  color: #fff;
}
.surface-dark .h1, .surface-dark .h2, .surface-dark .h3, .surface-dark .h4 { color: #fff; }

/* Hairline divider */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.3) 50%, transparent 100%);
}

/* Gradient text (used sparingly — hero number, e.g. "99%") */
.grad-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #4A8FFF 50%, var(--accent-cyan-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Background patterns */
.dot-grid {
  background-image: radial-gradient(circle, rgba(11, 31, 58, 0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}
.dot-grid.on-dark {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
}

.mesh-bg { position: relative; overflow: hidden; }
.mesh-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 153, 204, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

/* Dashed placeholder fill */
.stripe-ph {
  background-image: repeating-linear-gradient(135deg, rgba(11,31,58,0.06) 0 1px, transparent 1px 10px);
  background-color: rgba(11, 31, 58, 0.025);
  border: 1px dashed var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.stripe-ph.on-dark {
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 10px);
  background-color: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
