/* ============================================================
   ZECD — zecd.net  |  Artifict Trial  |  3-model scroll
   ============================================================ */

@font-face {
  font-family: 'Artifict';
  src: url('../fonts/artifictrial-bold.otf') format('opentype');
  font-weight: 700; font-display: block;
}
@font-face {
  font-family: 'Artifict';
  src: url('../fonts/artifictrial-semibold.otf') format('opentype');
  font-weight: 600; font-display: block;
}
@font-face {
  font-family: 'Artifict';
  src: url('../fonts/artifictrial-medium.otf') format('opentype');
  font-weight: 500; font-display: block;
}
@font-face {
  font-family: 'Artifict';
  src: url('../fonts/artifictrial-regular.otf') format('opentype');
  font-weight: 400; font-display: block;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  --navy:  #091724;
  --cyan:  #6DC1FE;
  --grey:  rgba(9,23,36,0.50);
  --grey-d:rgba(9,23,36,0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow: hidden; height: 100%; }

body {
  background: #eceef0;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-font-smoothing: antialiased;
}
body::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
  html { overflow: auto; height: auto; }
  body { overflow-y: auto; overflow-x: hidden; }
}

/* ── LOADER ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; background: #eceef0;
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo-img { height: 120px; width: auto; }
.loader-bar-wrap { width: 160px; height: 1px; background: rgba(9,23,36,0.1); }
#loader-bar { height: 100%; background: var(--cyan); width: 0%; transition: width 0.08s linear; }

/* ── HEADER — hide on scroll down, show on scroll up ─────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: transform 0.4s ease, background 0.3s;
}
.site-header.hide {
  transform: translateY(-100%);
}
.site-header.scrolled {
  background: rgba(236,238,240,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(9,23,36,0.08);
}
.logo {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: 0.25em;
  color: var(--navy); text-decoration: none;
}
.logo em { color: var(--cyan); font-style: normal; }
.logo-img { height: 100px; width: auto; display: block; }
.btn-nav {
  background: var(--navy); color: #fff;
  padding: 10px 24px; border-radius: 50px;
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.08em;
  text-decoration: none; text-transform: uppercase;
  transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.8; }

/* ── FIXED CANVASES (background layer) ───────────────────── */
/* All 3 canvases are always fixed — no gaps between sections */
.model-canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.model-canvas.active { opacity: 1; }

/* ── SCROLL SECTIONS (just triggers — no visual) ─────────── */
.model-section {
  position: relative;
  height: 260vh;
  margin: 0;
  padding: 0;
}

/* ── TEXT OVERLAY (fixed, switches per section) ──────────── */
.model-text {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 340px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.model-text.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

/* Section 1 & 3: model right → text on left, close to model */
.model-text.pos-left  { left: 6vw; }
/* Section 2: model left → text on right, close to model */
.model-text.pos-right { right: 6vw; text-align: right; }

.text-eyebrow {
  font-family: 'Artifict', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.45em;
  color: var(--cyan); text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.text-h2 {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.0; letter-spacing: 0.02em;
  color: var(--navy); margin-bottom: 16px;
}
.text-body {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--grey); line-height: 1.75;
  font-family: 'Inter', sans-serif;
}
.text-tag {
  display: inline-block; margin-top: 20px;
  font-family: 'Artifict', sans-serif; font-weight: 600;
  font-size: 10px; letter-spacing: 0.2em; color: var(--cyan);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(109,193,254,0.4); padding-bottom: 3px;
}

/* ── INLINE STAT (one per model) ─────────────────────────── */
.inline-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(9,23,36,0.12);
}
.inline-stat-num {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1; color: var(--navy);
  letter-spacing: -0.02em; white-space: nowrap;
}
.inline-stat-num .suf {
  font-size: 0.55em; color: var(--cyan); vertical-align: super;
}
.inline-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; color: var(--grey); line-height: 1.5;
}
/* Right-aligned text block */
.pos-right .inline-stat { flex-direction: row-reverse; }
.pos-right .inline-stat-label { text-align: right; }

/* Progress dots */
.progress-dots {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: row; gap: 12px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(9,23,36,0.25); transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.dot.active { background: var(--cyan); transform: scale(1.5); }

/* ── BACKGROUND LOGO ─────────────────────────────────────── */
@keyframes logoDrift {
  0%   { transform: translateY(-50%) translateY(0px); }
  50%  { transform: translateY(-50%) translateY(-14px); }
  100% { transform: translateY(-50%) translateY(0px); }
}
.bg-logo {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 480px);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 1.2s ease;
  animation: logoDrift 7s ease-in-out infinite;
  mix-blend-mode: multiply;
}
.bg-logo.active { opacity: 0.22; }
#bg-logo-1 { right: 4vw; }
#bg-logo-2 { left:  4vw; animation-delay: -2.5s; }
#bg-logo-3 { right: 4vw; animation-delay: -5s; }

/* ── FORM SECTION ────────────────────────────────────────── */
.form-section {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 7vw 80px;
  background: var(--navy);
}
.form-eye {
  font-family: 'Artifict', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 0.5em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 20px;
}
.form-h2 {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 0.95; color: #fff; margin-bottom: 14px;
}
.form-h2 em { color: var(--cyan); font-style: normal; }
.form-sub { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 44px; max-width: 380px; }

.form { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: 'Artifict', sans-serif; font-weight: 600;
  font-size: 10px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3); text-transform: uppercase;
}
.field input, .field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 13px 16px;
  color: #fff; font-family: 'Inter', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.field input::placeholder { color: rgba(255,255,255,0.2); }
.field input:focus, .field select:focus { border-color: rgba(109,193,254,0.4); }
.field select option { background: var(--navy); }

.btn-submit {
  background: var(--cyan); color: var(--navy); border: none;
  border-radius: 50px; padding: 16px 44px;
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; margin-top: 6px;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); }
.form-note { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 4px; }
.form-email { color: var(--cyan); text-decoration: none; }
.form-email:hover { text-decoration: underline; }

.form-success {
  display: none; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 48px; border: 1px solid rgba(109,193,254,0.2);
  border-radius: 20px; background: rgba(109,193,254,0.05);
}
.form-success.show { display: flex; }
.success-icon { font-size: 36px; }
.success-title {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: 1.8rem; color: var(--cyan);
}
.success-body { font-size: 0.95rem; color: rgba(255,255,255,0.5); text-align: center; }

.site-footer {
  padding: 28px 48px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: 'Artifict', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.25em; color: rgba(255,255,255,0.25);
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-logo-img { height: 90px; width: auto; filter: invert(1) brightness(0.5); }
.form-logo-img { height: 200px; width: auto; margin-bottom: 28px; filter: invert(1); opacity: 0.9; }

@media (max-width: 768px) {
  /* Header */
  .site-header { padding: 14px 20px; }
  .logo-img { height: 60px; }
  .btn-nav { padding: 8px 18px; font-size: 11px; }

  /* Scroll sections */
  .model-section { height: 280vh; }

  /* Text overlays — move to bottom, full width, centered */
  .model-text {
    top: auto;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    transform: none;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 28px 24px 36px;
    background: linear-gradient(to top, rgba(236,238,240,0.97) 70%, transparent);
  }
  .model-text.visible {
    transform: none;
  }
  .text-h2 { font-size: clamp(2rem, 8vw, 3rem); }

  /* Inline stat centered on mobile */
  .inline-stat { justify-content: center; }
  .inline-stat-num { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .pos-right .inline-stat { flex-direction: row; }
  .pos-right .inline-stat-label { text-align: left; }

  /* Hide progress dots */
  .progress-dots { bottom: 16px; gap: 10px; }
  .bg-logo { width: min(70vw, 320px); opacity: 0; }
  .bg-logo.active { opacity: 0.06; }

  /* Form section */
  .form-logo-img { height: 120px; }
  .form-h2 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .form-row2 { grid-template-columns: 1fr; }
  .form { padding: 0 4px; }

  /* Footer */
  .site-footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
  .footer-logo-img { height: 56px; }
}
