/* ========================================
   Numinexus — Design System
   Minimal · Precise · Purposeful
   ======================================== */

:root {
  --white: #fafafa;
  --off-white: #f5f4f0;
  --light: #eceae4;
  --mid: #b8b5ad;
  --dark: #2c2c2c;
  --black: #1a1a1a;
  --accent: #3d3d3d;
  --subtle: #8a8780;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Navigation
   ======================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--subtle);
  transition: color 0.3s ease;
}

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

.nav-cta {
  padding: 0.45rem 1.2rem;
  border: 1px solid var(--dark);
  color: var(--dark) !important;
  font-weight: 400;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--dark);
  color: var(--white) !important;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
}

.hero-content {
  max-width: 720px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  border: 1px solid var(--light);
  padding: 0.4rem 1.2rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--subtle);
  max-width: 560px;
  margin: 0 auto 3rem;
  animation: fadeUp 0.8s ease 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeUp 0.8s ease 0.65s both;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--subtle);
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.15rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  color: var(--dark);
  border-color: var(--dark);
}

/* ========================================
   Hero — Micro-copy & Trust
   ======================================== */

.hero-micro {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.03em;
  animation: fadeUp 0.8s ease 0.8s both;
}

.hero-trust {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light);
  animation: fadeUp 0.8s ease 0.95s both;
}

.hero-trust p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--subtle);
}

.hero-trust-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--dark);
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.1rem;
  transition: border-color 0.3s ease;
}

.hero-trust-link:hover {
  border-color: var(--dark);
}

/* ========================================
   Example Output
   ======================================== */

.example-output {
  margin-bottom: 1.5rem;
}

.example-output pre {
  background: var(--black);
  color: var(--off-white);
  padding: 2.2rem 2.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
  border: none;
}

.example-output code {
  font-family: inherit;
}

.example-note {
  font-size: 0.88rem;
  color: var(--subtle);
  line-height: 1.7;
}

.inline-link {
  color: var(--dark);
  border-bottom: 1px solid var(--light);
  padding-bottom: 0.1rem;
  transition: border-color 0.3s ease;
}

.inline-link:hover {
  border-color: var(--dark);
}

/* ========================================
   Setup Steps
   ======================================== */

.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.setup-step {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.setup-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.setup-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark);
}

.setup-trust {
  text-align: center;
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.03em;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 8rem 2rem;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.center-heading {
  text-align: center;
  margin-bottom: 4rem !important;
}

.section-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--subtle);
  max-width: 580px;
  margin-bottom: 3.5rem;
}

.section-dark {
  background: var(--off-white);
}

/* ========================================
   Two Column — Problem
   ======================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.col-text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--subtle);
  max-width: 460px;
  margin-bottom: 1.2rem;
}

.col-text p:last-child {
  margin-bottom: 0;
}

.col-text em {
  font-style: italic;
}

.col-text strong {
  font-weight: 500;
  color: var(--dark);
}

.contrast-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contrast-item {
  padding: 1.8rem 2rem;
  border-left: 2px solid var(--light);
  transition: all 0.3s ease;
}

.contrast-item.faded {
  opacity: 0.45;
}

.contrast-item.active {
  border-left-color: var(--black);
  opacity: 1;
}

.contrast-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.6rem;
}

.contrast-value {
  display: block;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--dark);
}

/* ========================================
   Three Column — Approach
   ======================================== */

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.feature {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-num {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--mid);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.feature h3 {
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  color: var(--black);
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--subtle);
}

/* ========================================
   Stats
   ======================================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
  margin-top: 4rem;
}

.stat-value {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

/* ========================================
   Tech Grid
   ======================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.tech-item {
  padding: 2.2rem 1.8rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.tech-item:hover {
  background: rgba(0, 0, 0, 0.015);
}

.tech-name {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.tech-role {
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ========================================
   Savings Table
   ======================================== */

.savings-table {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.savings-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.92rem;
  color: var(--dark);
}

.savings-header {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.savings-avg {
  text-align: center;
  font-size: 1.02rem;
  color: var(--subtle);
  margin-top: 2rem;
}

.savings-avg strong {
  font-weight: 500;
  color: var(--black);
}

/* ========================================
   Services Grid
   ======================================== */

.services-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.services-block h3 {
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.services-grid span {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--dark);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: -1px;
  margin-left: -1px;
}

/* ========================================
   Architecture Diagram
   ======================================== */

.arch-diagram {
  max-width: 520px;
  margin: 0 auto;
}

.arch-step {
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  text-align: center;
}

.arch-label {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.arch-detail {
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.02em;
}

.arch-arrow {
  text-align: center;
  font-size: 1.2rem;
  color: var(--mid);
  padding: 0.5rem 0;
  line-height: 1;
}

/* ========================================
   Connect Page
   ======================================== */

.connect-flow {
  max-width: 680px;
}

.connect-step {
  margin-bottom: 4rem;
}

.connect-step-header {
  margin-bottom: 1rem;
}

.connect-step-num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.connect-step h3 {
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--black);
  letter-spacing: -0.01em;
}

.connect-step p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--subtle);
  margin-bottom: 1.2rem;
}

.connect-code {
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.connect-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.2rem;
  background: var(--off-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--subtle);
}

.copy-btn {
  padding: 0.3rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--dark);
  color: var(--white);
}

.connect-code pre {
  background: var(--black);
  color: var(--off-white);
  padding: 1.5rem 1.8rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 0;
}

.connect-code code {
  font-family: inherit;
}

.connect-note {
  font-size: 0.82rem;
  color: var(--mid);
}

.connect-form {
  margin-bottom: 1rem;
}

.connect-input-group {
  margin-bottom: 1.5rem;
}

.connect-input-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.connect-input-group input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--light);
  outline: none;
  transition: border-color 0.3s ease;
}

.connect-input-group input:focus {
  border-color: var(--dark);
}

.connect-input-group input::placeholder {
  color: var(--mid);
}

.connect-submit {
  margin-bottom: 1rem;
}

.connect-trust-line {
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.03em;
}

/* ========================================
   Report Page
   ======================================== */

.report-recommendation {
  margin-bottom: 2rem;
}

/* ========================================
   Founder
   ======================================== */

.founder-block {
  max-width: 640px;
}

/* ========================================
   Pricing
   ======================================== */

.pricing-card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--white);
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--black);
}

.pricing-card h3 {
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--black);
  margin-bottom: 1rem;
}

.price {
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--black);
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.price span {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 400;
}

.pricing-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--subtle);
}

/* ========================================
   Apply / CTA
   ======================================== */

.section-apply {
  text-align: center;
  padding: 10rem 2rem;
}

.section-apply h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-apply .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-direct {
  margin-top: 2rem;
}

.contact-email {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--subtle);
}

.contact-email a {
  color: var(--dark);
  border-bottom: 1px solid var(--light);
  transition: border-color 0.3s ease;
}

.contact-email a:hover {
  border-color: var(--dark);
}

/* ========================================
   Security
   ======================================== */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.security-item {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.security-item h3 {
  font-weight: 400;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.6rem;
}

.security-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--subtle);
}

/* ========================================
   Footer
   ======================================== */

footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 3.5rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-company {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mid);
  margin-top: 0.5rem;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--subtle);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--dark);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.75rem;
  color: var(--mid);
}

/* ========================================
   Animations
   ======================================== */

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

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .three-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .stats-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

  .section {
    padding: 5rem 1.5rem;
  }

  .section-apply {
    padding: 6rem 1.5rem;
  }

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

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

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

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .example-output pre {
    padding: 1.5rem;
    font-size: 0.72rem;
  }

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

  .savings-row {
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
  }

  .arch-step {
    padding: 1.2rem 1.5rem;
  }
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
  padding-top: 10rem;
}

.legal-page h1 {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 3.5rem;
}

.legal-content {
  max-width: 680px;
}

.legal-content h2 {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--black);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.legal-content p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--subtle);
  margin-bottom: 0.8rem;
}

.legal-content strong {
  font-weight: 500;
  color: var(--dark);
}

.legal-content a {
  color: var(--dark);
  border-bottom: 1px solid var(--light);
  transition: border-color 0.3s ease;
}

.legal-content a:hover {
  border-color: var(--dark);
}

/* ========================================
   Selection
   ======================================== */

::selection {
  background: var(--dark);
  color: var(--white);
}
