/* ═══════════════════════════════════════════════════════
   AFFIMARQ — Corporate One-Pager
   Brand: Ink #1A2028 · Blue #3862C4 · Paper #F4F2EC · Night #0C0D12
   Type: Space Grotesk + Space Mono
   ═══════════════════════════════════════════════════════ */

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

:root {
  --ink: #1A2028;
  --blue: #3862C4;
  --paper: #F4F2EC;
  --night: #0C0D12;
  --blue-hover: #4A72D6;
  --blue-subtle: rgba(56, 98, 196, 0.08);
  --blue-glow: rgba(56, 98, 196, 0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --container-narrow: 860px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: #fff;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}
.container-narrow { max-width: var(--container-narrow); }

.label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.label-center { text-align: center; }
.label-light { color: rgba(244, 242, 236, 0.5); }

.heading-lg {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.heading-light { color: var(--paper); }

.heading-xl {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 24px;
}

.body-lg {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(26, 32, 40, 0.7);
  max-width: 680px;
}
.body-light { color: rgba(244, 242, 236, 0.65); }

.accent { color: var(--blue); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--blue-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(244, 242, 236, 0.2);
}
.btn-ghost:hover {
  border-color: rgba(244, 242, 236, 0.5);
  color: #fff;
}

.btn-large {
  padding: 20px 44px;
  font-size: 18px;
  border-radius: var(--radius);
}

.arrow-down {
  display: inline-block;
  transition: transform var(--transition);
}
.btn-ghost:hover .arrow-down { transform: translateY(3px); }

/* ── Sections ────────────────────────────────────────── */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}

.section-paper { background: var(--paper); }
.section-dark  { background: var(--night); }

.section-header {
  margin-bottom: 64px;
}

.section-header .heading-lg {
  max-width: 800px;
}

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(12, 13, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244, 242, 236, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Language toggle ─────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(244, 242, 236, 0.06);
  border: 1px solid rgba(244, 242, 236, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all var(--transition);
  -webkit-user-select: none;
  user-select: none;
}
.lang-toggle:hover {
  border-color: rgba(244, 242, 236, 0.25);
  background: rgba(244, 242, 236, 0.1);
}

.lang-option {
  color: rgba(244, 242, 236, 0.3);
  transition: color var(--transition);
}
.lang-option.lang-active {
  color: var(--blue);
}
.lang-sep {
  color: rgba(244, 242, 236, 0.15);
  font-size: 11px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 242, 236, 0.6);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--paper); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--blue-hover) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--night);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 60px 0;
}

.hero-label { margin-bottom: 32px; }

.hero-headline {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: rgba(244, 242, 236, 0.65);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Trust Strip ─────────────────────────────────────── */
.trust-strip {
  background: var(--night);
  border-top: 1px solid rgba(244, 242, 236, 0.06);
  padding: 48px 0;
}

.trust-strip .label { text-align: center; margin-bottom: 24px; }

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-item {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: rgba(244, 242, 236, 0.4);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.trust-item:hover { color: rgba(244, 242, 236, 0.7); }

.trust-divider {
  color: rgba(244, 242, 236, 0.15);
  font-size: 14px;
  margin: 0 4px;
}

/* ── Problem Grid ────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: #fff;
  border: 1px solid rgba(26, 32, 40, 0.06);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 32, 40, 0.08);
  border-color: var(--blue);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.problem-icon svg { width: 48px; height: 48px; }

.problem-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.problem-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 32, 40, 0.6);
}

/* ── Shift Table ─────────────────────────────────────── */
.shift-table-wrap {
  background: rgba(244, 242, 236, 0.04);
  border: 1px solid rgba(244, 242, 236, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.shift-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.shift-table th {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 24px 36px;
  text-align: left;
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
}
.shift-table .col-rented { color: rgba(244, 242, 236, 0.4); }
.shift-table .col-owned { color: var(--blue); }

.shift-table td {
  padding: 24px 36px;
  border-bottom: 1px solid rgba(244, 242, 236, 0.04);
  line-height: 1.5;
}
.shift-table tr:last-child td { border-bottom: none; }

.shift-table td:first-child {
  color: rgba(244, 242, 236, 0.4);
  border-right: 1px solid rgba(244, 242, 236, 0.06);
}
.shift-table td:last-child {
  color: var(--paper);
  font-weight: 500;
}

/* ── Engines ─────────────────────────────────────────── */
.engines-lead {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  text-align: center;
  color: rgba(26, 32, 40, 0.7);
}

.section-engines {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
}

.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.engine-card {
  background: var(--night);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.engine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.engine-card:hover::before { transform: scaleX(1); }
.engine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(12, 13, 18, 0.3);
}

.engine-number {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
}

.engine-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.engine-text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(244, 242, 236, 0.6);
  margin-bottom: 28px;
}

.engine-list li {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(244, 242, 236, 0.4);
  padding: 6px 0;
  border-top: 1px solid rgba(244, 242, 236, 0.06);
}
.engine-list li:first-child { border-top: none; }

/* ── Compare Table ───────────────────────────────────── */
.compare-table-wrap {
  background: rgba(244, 242, 236, 0.04);
  border: 1px solid rgba(244, 242, 236, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare-table th {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 24px 28px;
  text-align: left;
  color: rgba(244, 242, 236, 0.4);
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
}
.compare-table .col-highlight {
  color: var(--blue);
}

.compare-table td {
  padding: 22px 28px;
  border-bottom: 1px solid rgba(244, 242, 236, 0.04);
  line-height: 1.5;
  color: rgba(244, 242, 236, 0.45);
}
.compare-table tr:last-child td { border-bottom: none; }

.compare-table td.col-highlight {
  color: var(--paper);
  background: rgba(56, 98, 196, 0.06);
}
.compare-table td.col-highlight strong {
  color: var(--blue);
}

.compare-table td:not(:last-child) {
  border-right: 1px solid rgba(244, 242, 236, 0.04);
}

/* ── Who We Work With ────────────────────────────────── */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0 40px;
}

.fit-card {
  border: 1px solid rgba(26, 32, 40, 0.08);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}
.fit-card:hover {
  border-color: var(--blue);
  background: var(--blue-subtle);
}

.fit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.fit-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 32, 40, 0.6);
}

.fit-note {
  font-size: 15px;
  color: rgba(26, 32, 40, 0.5);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Steps ───────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 98, 196, 0.3), rgba(56, 98, 196, 0.1));
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
}

.step-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 242, 236, 0.55);
}

.step-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(56, 98, 196, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Final CTA ───────────────────────────────────────── */
.section-cta {
  background: var(--night);
  text-align: center;
  padding: clamp(100px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.section-cta .label { color: var(--blue); }
.section-cta .heading-xl { color: var(--paper); }

.cta-body {
  color: rgba(244, 242, 236, 0.6);
  margin: 0 auto 48px;
  text-align: center;
}

.cta-reassurance {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(244, 242, 236, 0.35);
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(244, 242, 236, 0.06);
  padding: 60px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-tagline {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 10px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-email {
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  transition: color var(--transition);
}
.footer-email:hover { color: var(--blue-hover); }

.footer-domain {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(244, 242, 236, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 242, 236, 0.06);
  padding-top: 24px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(244, 242, 236, 0.25);
}

/* ── Reveal Animation ────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
[data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .engines-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }

  .compare-table,
  .shift-table { font-size: 14px; }
  .compare-table th, .compare-table td,
  .shift-table th, .shift-table td { padding: 16px 20px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: rgba(12, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px clamp(24px, 5vw, 80px);
    gap: 20px;
    border-bottom: 1px solid rgba(244, 242, 236, 0.06);
  }
  .nav-links.open .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .lang-toggle { padding: 4px 8px; font-size: 11px; }

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

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-large { width: 100%; justify-content: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-contact { align-items: flex-start; }

  .compare-table-wrap, .shift-table-wrap { overflow-x: auto; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(32px, 10vw, 48px); }
  .heading-lg { font-size: clamp(28px, 7vw, 40px); }
  .heading-xl { font-size: clamp(28px, 8vw, 44px); }
  .section { padding: clamp(60px, 10vw, 100px) 0; }
}
