/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #03040a;
  --surface:   #080c18;
  --border:    rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.12);
  --text:      #e8eaf2;
  --muted:     rgba(232,234,242,0.38);
  --accent:    #4f7fff;
  --accent2:   #7c3aed;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Syne', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUNDS ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(79,127,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,127,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.radial-glow {
  position: fixed;
  top: -20vh; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 80vh;
  background: radial-gradient(ellipse at center, rgba(79,127,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(3,4,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.nav-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,127,255,0.08);
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(79,127,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* John 14:6 hidden as positioning line */
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.65;
  animation: fadeUp 0.9s ease both 0.1s;
}

/* MOBILE FIRST — small screens get smaller font */
.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp 1s ease both 0.2s;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #4f7fff 0%, #7c3aed 50%, #4f7fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeUp 1s ease both 0.35s;
  padding: 0 4px;
}

.hero-sub strong {
  color: rgba(232,234,242,0.75);
  font-weight: 500;
}

/* ── FORM — mobile stacked ── */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  animation: fadeUp 1s ease both 0.5s;
  padding: 0 4px;
}

.form-wrap input {
  width: 100%;
  height: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-wrap input::placeholder { color: var(--muted); }
.form-wrap input:focus {
  border-color: rgba(79,127,255,0.4);
  background: rgba(79,127,255,0.06);
}

.form-wrap button {
  width: 100%;
  height: 50px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.form-wrap button:hover {
  background: #3d6ee8;
  box-shadow: 0 0 24px rgba(79,127,255,0.35);
}

.form-wrap button:active { transform: scale(0.98); }

.form-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  animation: fadeUp 1s ease both 0.6s;
  letter-spacing: 0.04em;
}

.success-msg {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #28c840;
  margin-top: 16px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.5s ease both;
}

/* ── PILLARS — mobile single column ── */
.pillars {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 36px;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.pillar {
  background: var(--surface);
  padding: 32px 24px;
  transition: background 0.3s;
}

.pillar:hover { background: rgba(79,127,255,0.04); }

.pillar-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
}

.pillar-icon {
  width: 32px; height: 32px;
  margin-bottom: 14px;
  opacity: 0.8;
}

.pillar h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pillar p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.pillar-tag {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.5;
  border: 1px solid rgba(79,127,255,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── STATS — mobile single column ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  margin-bottom: 80px;
}

.stat {
  background: var(--bg);
  padding: 28px 24px;
  text-align: center;
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #4f7fff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── TERMINAL ── */
.terminal-section { padding: 0 0 80px; }

.terminal {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yel { background: #ffbd2e; }
.t-dot.grn { background: #28c840; }

.t-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 2;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terminal-body div { white-space: nowrap; }

.t-comment { color: rgba(255,255,255,0.2); }
.t-cmd     { color: var(--accent); }
.t-str     { color: #a8e6a3; }
.t-key     { color: #f6a96a; }
.t-val     { color: var(--muted); }
.t-output  { color: rgba(255,255,255,0.45); padding-left: 16px; }
.t-success { color: #28c840; }
.t-cursor  {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: rgba(232,234,242,0.4);
}

/* Via. Veritas. Vita. = The Way. The Truth. The Life. — John 14:6 */
.footer-faith {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(232,234,242,0.1);
  text-transform: uppercase;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  opacity: 0.4;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   TABLET — 640px and up
═══════════════════════════════════════ */
@media (min-width: 640px) {

  .wrapper { padding: 0 32px; }
  .nav-inner { padding: 0 32px; height: 60px; }

  .hero { padding: 100px 0 80px; }

  .hero-badge { font-size: 11px; margin-bottom: 36px; }

  .hero-title { font-size: 56px; }

  .hero-sub { font-size: 14px; }

  /* Side by side form on tablet */
  .form-wrap {
    flex-direction: row;
    gap: 0;
    padding: 0;
  }

  .form-wrap input {
    border-right: none;
    border-radius: 8px 0 0 8px;
  }

  .form-wrap button {
    width: auto;
    padding: 0 24px;
    border-radius: 0 8px 8px 0;
  }

  .pillars-grid { grid-template-columns: 1fr; }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    padding: 32px 0;
  }

  .stat { padding: 0 32px; }

  .stat-val { font-size: 36px; }

  .terminal-body { font-size: 12px; padding: 24px 28px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ═══════════════════════════════════════
   DESKTOP — 1024px and up
═══════════════════════════════════════ */
@media (min-width: 1024px) {

  .hero-title { font-size: 88px; letter-spacing: -0.04em; }

  .hero-sub { font-size: 15px; }

  .hero-eyebrow { font-size: 12px; letter-spacing: 0.3em; }

  .hero-badge { font-size: 11px; margin-bottom: 48px; }

  .pillars { padding: 100px 0 120px; }

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

  .pillar { padding: 48px 40px; }

  .pillar h3 { font-size: 18px; }

  .pillar p { font-size: 13px; }

  .section-label { font-size: 11px; margin-bottom: 64px; }

  .stats { padding: 40px 0; margin-bottom: 120px; }

  .stat { padding: 0 48px; }

  .stat-val { font-size: 40px; }

  .stat-label { font-size: 11px; }

  .terminal-section { padding: 0 0 120px; }

  .terminal-body { font-size: 13px; padding: 32px 36px; }

  .footer-inner { padding: 0 32px; }

  .wrapper { padding: 0 32px; }
}