/* ═══════════════════════════════════════════════════
   QELNIX — layout-innovator.css
   Anti-pattern fixes · Editorial layouts · Human imperfection
   vibe-layout-innovator
═══════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   FIX 1 — HERO ASYMMETRIC SPLIT
   Anti-pattern: hero-centered-cta (73% of websites)
   Fix: left-offset content, 3D canvas fills right naturally
   Layout: TYPE_FORWARD + ASYMMETRIC_SPLIT hybrid
══════════════════════════════════════════════════ */

#hero-layer-5 {
  justify-content: flex-start;       /* kill centering */
  padding-left: max(8vw, 48px);
  padding-right: 48%;                /* leave right half for 3D */
}

.hero-inner {
  text-align: left;                  /* kill centered text */
  max-width: none;
  width: 100%;
}

.hero-eyebrow { justify-content: flex-start; }

.hero-h1 .hero-line {
  display: block;
  overflow: visible;
}

/* Giant outline ghost text behind headline (TYPE_FORWARD signal) */
#hero::after {
  content: 'QX';
  position: absolute;
  bottom: -0.12em;
  right: -0.04em;
  font-size: clamp(180px, 30vw, 520px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,212,255,0.055);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Hero actions: left-aligned */
.hero-actions {
  justify-content: flex-start;
}

/* Scroll hint: left-align */
.hero-scroll-hint {
  left: max(8vw, 48px);
  right: auto;
  transform: none;
}

/* ══════════════════════════════════════════════════
   FIX 2 — STATS TYPE-FORWARD
   Anti-pattern: four identical stat cells = no hierarchy
   Fix: one dominant number + 3 secondary
══════════════════════════════════════════════════ */

.stats-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;  /* first cell dominates */
  align-items: center;
  gap: 0;
}

/* Dominant cell: the $576 monthly max — most persuasive number */
.stat-cell:nth-child(3) {
  background: linear-gradient(135deg,
    rgba(0,212,255,0.05) 0%,
    rgba(26,107,204,0.03) 100%
  );
  border-left:  1px solid rgba(0,212,255,0.1);
  border-right: 1px solid rgba(0,212,255,0.1);
}

.stat-cell:nth-child(3) .stat-val {
  font-size: clamp(36px, 4.5vw, 68px);
  background: linear-gradient(135deg, var(--c-white) 20%, var(--c-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* First cell: largest (hero number) */
.stat-cell:nth-child(1) .stat-val {
  font-size: clamp(48px, 6vw, 96px);
}

/* ══════════════════════════════════════════════════
   FIX 3 — SECTION HEADERS: END THE CENTERED MONOPOLY
   Anti-pattern: section-header-centered (79% of sites)
   Fix: alternating left/right, editorial number prefixes
══════════════════════════════════════════════════ */

/* Products: left-aligned with editorial number */
#products .sec-header {
  text-align: left;
}

/* Why section: left-aligned with large numbers */
#why .sec-header {
  text-align: left;
  position: relative;
  padding-left: 0;
}

/* Team section: left-align (kill text-center) */
.team-header {
  text-align: left !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}

.team-header h2 { margin: 0 !important; max-width: none !important; }
.team-header p  { margin: 0 !important; }

/* Social proof: left-align */
#social-proof .container > div:first-child {
  text-align: left !important;
}

/* ══════════════════════════════════════════════════
   FIX 4 — EDITORIAL NUMBER PREFIXES
   Anti-pattern: section-header-centered
   Fix: giant number prefix as editorial lead (magazine style)
══════════════════════════════════════════════════ */

.sec-num {
  display: block;
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,212,255,0.2);
  margin-bottom: -0.15em;               /* overlap with heading below */
  margin-left: -0.04em;                  /* bleed slightly left */
  pointer-events: none;
  user-select: none;
}

/* Products section: 06 prefix */
#products .sec-num { -webkit-text-stroke: 1.5px rgba(0,212,255,0.18); }

/* Why section: 04 reasons prefix */
#why .sec-num { -webkit-text-stroke: 1.5px rgba(240,200,64,0.18); }

/* Calculator section prefix */
#calculator .sec-num { -webkit-text-stroke: 1.5px rgba(0,229,160,0.15); }

/* ══════════════════════════════════════════════════
   FIX 5 — WHY ITEMS: GIANT NUMBERED STEPS
   Anti-pattern: small circle numbers = no visual weight
   Fix: oversized editorial step numbers (TYPE_FORWARD)
══════════════════════════════════════════════════ */

.why-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: border-color var(--t-mid);
}

.why-item:last-child { border-bottom: none; }
.why-item:hover { border-color: rgba(0,212,255,0.1); }

.why-num {
  font-size: 64px;                       /* was small circle */
  font-weight: 900;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,212,255,0.3);
  letter-spacing: -0.04em;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  border: none;
  display: block;
  position: relative;
  top: -8px;                             /* optical alignment */
  transition: -webkit-text-stroke-color var(--t-mid), color var(--t-mid);
}

.why-item:hover .why-num {
  -webkit-text-stroke-color: rgba(0,212,255,0.7);
}

/* ══════════════════════════════════════════════════
   FIX 6 — SOCIAL PROOF: HERO QUOTE LAYOUT
   Anti-pattern: generic-social-proof (81% of sites)
   Fix: first card = massive pull-quote, others = supporting
══════════════════════════════════════════════════ */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

/* First card: spans full width as hero quote */
.proof-card:nth-child(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  padding: 48px 56px;
  background: linear-gradient(135deg,
    rgba(0,212,255,0.05) 0%,
    rgba(26,107,204,0.03) 60%,
    rgba(100,50,200,0.02) 100%
  );
  border-color: rgba(0,212,255,0.12);
}

.proof-card:nth-child(1) .proof-quote {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  font-style: normal;                    /* kill italic — more confident */
  line-height: 1.5;
  color: var(--c-white-80);
  max-width: none;
}

.proof-card:nth-child(1) .proof-stars {
  font-size: 22px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.proof-card:nth-child(1) .proof-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.proof-card:nth-child(1) .proof-av {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.proof-card:nth-child(1) .proof-name {
  font-size: 16px;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════
   FIX 7 — CTA TYPE-FORWARD BACKGROUND
   Kill the boring centered box
   Add: giant ghost text "INIZIA" behind the form
══════════════════════════════════════════════════ */

#cta {
  position: relative;
}

#cta::after {
  content: 'INIZIA';
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(80px, 18vw, 280px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,212,255,0.04);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}

.cta-box { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════
   FIX 8 — HUMAN IMPERFECTION SIGNALS
   Phase 3 vibe-layout-innovator
   These micro-details signal "not AI-generated"
══════════════════════════════════════════════════ */

/* Section labels: very slight rotation — handcrafted feel */
.t-label {
  display: inline-block;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

/* Hero eyebrow: no rotation (it has its own style) */
.hero-eyebrow .t-label { transform: none; }

/* Brand cards: intentionally unequal padding */
.brand-card {
  padding: 36px 44px 40px 32px;   /* NOT uniform 40px */
}

/* Team avatars: organic blob instead of perfect circle */
.team-av {
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45% !important;
}

/* Why items: slightly off-grid number alignment */
.why-num { margin-left: -3px; }   /* breaks grid by 3px — intentional */

/* Product cards: asymmetric padding */
.product-card {
  padding: 36px 32px 40px 36px;   /* not all 40px */
}

/* Headings: tighter than "perfect" letter-spacing */
.t-h1 { letter-spacing: -0.035em; }
.t-h2 { letter-spacing: -0.025em; }

/* Stats values: slight tracking quirk */
.stat-val { letter-spacing: -0.02em; }

/* FAQ questions: left-align, not symmetric */
.faq-q { text-align: left; }

/* Proof card non-first: slight varied padding */
.proof-card:nth-child(2) { padding: 36px 40px 44px 36px; }
.proof-card:nth-child(3) { padding: 44px 36px 36px 40px; }

/* ── Off-grid pullquote (bleeding left by 8px) ── */
.pullquote-offset {
  margin-left: -8px;                /* intentionally breaks grid */
}

/* ══════════════════════════════════════════════════
   BRAND CARDS: VARIED SIZE HIERARCHY
   Anti-pattern: three equal cards = no priority
   Fix: first card featured (larger, full-width)
══════════════════════════════════════════════════ */

.brand-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* First brand card: hero card spanning full width */
.brand-card:nth-child(1) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.brand-card:nth-child(1) .bc-icon {
  font-size: 48px;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.brand-card:nth-child(1) .bc-title {
  font-size: 20px;
}

/* ══════════════════════════════════════════════════
   TEAM CARDS: MASONRY OFFSET
   Anti-pattern: uniform grid = zero rhythm
   Fix: second card offset down (controlled masonry)
══════════════════════════════════════════════════ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;             /* NOT stretch — lets cards have natural heights */
}

/* Second card: offset down for masonry rhythm */
.team-card:nth-child(2) {
  margin-top: 48px;
}

/* Team card bio: slightly different line-height (organic) */
.team-card:nth-child(1) .team-bio { line-height: 1.73; }
.team-card:nth-child(2) .team-bio { line-height: 1.68; }

/* ══════════════════════════════════════════════════
   PRODUCTS INTRO: LEFT EDITORIAL
══════════════════════════════════════════════════ */

.products-intro {
  align-items: start;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE: preserve asymmetry on smaller screens
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  #hero-layer-5 {
    padding-left: max(5vw, 32px);
    padding-right: 0;              /* full width on tablet */
  }

  .hero-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
  }

  .hero-actions { justify-content: center; }
  .hero-eyebrow { justify-content: center; }

  .hero-scroll-hint {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  #hero::after {
    font-size: clamp(100px, 20vw, 220px);
    right: -0.08em;
  }

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

  .team-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid { grid-template-columns: 1fr; }
  .team-card:nth-child(2) { margin-top: 0; }

  .proof-card:nth-child(1) {
    grid-template-columns: 1fr;
    padding: 36px 32px;
  }

  .proof-card:nth-child(1) .proof-author {
    flex-direction: row;
    align-items: center;
    min-width: auto;
  }

  .brand-cards { grid-template-columns: 1fr; }
  .brand-card:nth-child(1) { grid-template-columns: auto 1fr; }
}

@media (max-width: 640px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card:nth-child(1) { grid-column: 1; }

  .why-num { font-size: 48px; }

  .sec-num { font-size: clamp(60px, 18vw, 100px); }

  #cta::after { font-size: clamp(60px, 22vw, 140px); }
}
