/* ═══════════════════════════════════════════════════════
   PARAMYND HOME — Apple-inspired Design
   Borderless · Radius 5px · Shadow-first · Minimal
   ═══════════════════════════════════════════════════════ */

:root {
  --r: 5px;              /* border-radius universel */
  --r-lg: 5px;          /* cartes larges */
  --black: #050507;
  --black-2: #0d0d12;
  --surface: rgba(255,255,255,0.045);
  --surface-hover: rgba(255,255,255,0.075);
  --purple: #7c5cfc;
  --purple-dim: rgba(124,92,252,0.18);
  --teal: #06d6a0;
  --teal-dim: rgba(6,214,160,0.12);
  --white: #ffffff;
  --gray-1: rgba(255,255,255,0.85);
  --gray-2: rgba(255,255,255,0.5);
  --gray-3: rgba(255,255,255,0.25);
  --gray-4: rgba(255,255,255,0.08);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.55);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 60px rgba(124,92,252,0.15);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--white);
  min-height: 133.33vh;
  overflow-x: hidden;
  zoom: 0.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 5px; }

/* ════════════════════════════════
   NAV
   ════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.nav.stuck {
  background: rgba(5,5,7,0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
}
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(124,92,252,0.4);
  flex-shrink: 0;
}
.nav-logo-name {
  font-size: 17px; font-weight: 700; letter-spacing: -0.4px;
  color: var(--white);
}
.nav-center {
  display: flex; align-items: center; gap: 4px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  padding: 6px 14px;
  font-size: 14px; font-weight: 500; color: var(--gray-2);
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--white); background: var(--gray-4); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-btn-ghost {
  padding: 7px 16px;
  font-size: 14px; font-weight: 500; color: var(--gray-2);
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav-btn-ghost:hover { color: var(--white); background: var(--gray-4); }
.nav-btn-primary {
  padding: 8px 18px;
  font-size: 14px; font-weight: 600; color: var(--white);
  border-radius: var(--r);
  background: var(--purple);
  box-shadow: 0 2px 16px rgba(124,92,252,0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.nav-btn-primary:hover {
  background: #8b6dfc;
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(124,92,252,0.55);
}

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
.hero {
  min-height: 133.33vh;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 140px 48px 100px;
  position: relative; overflow: hidden;
}

/* Brain canvas — fixed full-page background */
#brainCanvas {
  position: fixed; top: 0; left: 0;
  width: 133.33vw; height: 133.33vh;
  pointer-events: none; z-index: -1;
  opacity: 0;
  animation: canvasFadeIn 2s ease 0.5s forwards;
}
@keyframes canvasFadeIn {
  to { opacity: 1; }
}
/* Hero vignette overlay */
.hero-ambient {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 860px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.eyebrow-line {
  display: block; width: 24px; height: 1.5px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

/* H1 */
.hero-title {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-title .accent-word {
  background: linear-gradient(120deg, var(--purple) 0%, #a78bfa 40%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 400; line-height: 1.65;
  color: var(--gray-2);
  max-width: 600px; margin: 0 auto 48px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}

/* CTAs */
.hero-ctas {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.4s forwards;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px;
  font-size: 16px; font-weight: 600; color: var(--white);
  background: var(--purple);
  border-radius: var(--r);
  box-shadow: 0 4px 24px rgba(124,92,252,0.45), 0 1px 0 rgba(255,255,255,0.1) inset;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.cta-primary:hover {
  background: #8b6dfc; transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(124,92,252,0.55), 0 1px 0 rgba(255,255,255,0.1) inset;
}
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px;
  font-size: 16px; font-weight: 500; color: var(--gray-1);
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.cta-secondary:hover { background: var(--surface-hover); color: var(--white); transform: translateY(-2px); }

/* Hero hint */
.hero-hint {
  margin-top: 48px;
  font-size: 12px; color: var(--gray-3); letter-spacing: 0.3px;
  opacity: 0; animation: fadeUp 0.7s var(--ease) 0.55s forwards;
}

/* Logos band removed */
.logos-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gray-3);
  margin-bottom: 40px;
}
.logos-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-lg);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.logo-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(124, 92, 252, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 20px rgba(124, 92, 252, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}
.logo-card svg {
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.3s ease;
}
.logo-card:hover svg {
  opacity: 1;
  filter: grayscale(0);
}
.logo-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-3);
  transition: color 0.3s;
  letter-spacing: -0.2px;
}
.logo-card:hover .logo-card-name {
  color: var(--white);
}

/* ════════════════════════════════
   SECTION UTILITIES
   ════════════════════════════════ */
.section { padding: 120px 48px; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before { content: ''; display: block; width: 16px; height: 1.5px; background: var(--purple); }

.section-title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.05;
  color: var(--white); margin-bottom: 18px;
}
.section-sub {
  font-size: 18px; line-height: 1.7; color: var(--gray-2);
  max-width: 520px; margin-bottom: 64px;
}

/* ════════════════════════════════
   HOW IT WORKS — Apple-style steps
   ════════════════════════════════ */
.steps-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.steps-visual {
  position: relative; height: 460px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), var(--shadow-glow);
}

/* Animated pipeline visual */
.pipeline {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; padding: 32px;
}
.pipe-node {
  width: 100%; padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  transition: background 0.3s;
}
.pipe-node:hover { background: rgba(255,255,255,0.07); }
.pipe-node-icon {
  width: 38px; height: 38px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.pipe-node-text h5 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.pipe-node-text p { font-size: 11px; color: var(--gray-2); }
.pipe-connector {
  width: 1.5px; height: 22px;
  background: linear-gradient(180deg, rgba(124,92,252,0.5), rgba(6,214,160,0.5));
  margin: 0 auto;
  position: relative;
}
.pipe-connector::after {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--purple), var(--teal));
  border-radius: 5px;
  animation: flowDown 2s linear infinite;
  clip-path: inset(0 0 0 0);
}
@keyframes flowDown {
  0% { clip-path: inset(0 0 100% 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(100% 0 0 0); }
}

.steps-list { display: flex; flex-direction: column; gap: 36px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; border-radius: var(--r);
  background: var(--purple-dim);
  color: var(--purple);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.step-body h4 {
  font-size: 17px; font-weight: 700; color: var(--white);
  margin-bottom: 6px; letter-spacing: -0.3px;
}
.step-body p { font-size: 15px; color: var(--gray-2); line-height: 1.65; }

/* ════════════════════════════════
   FEATURES — bento grid
   ════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.bento-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  overflow: hidden; position: relative;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(124,92,252,0.15);
  background: rgba(255, 255, 255, 0.12);
}
/* Subtle top accent line */
.bento-card::before {
  content: ''; position: absolute;
  top: 0; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.bento-card.col-8  { grid-column: span 8; }
.bento-card.col-4  { grid-column: span 4; }
.bento-card.col-6  { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon {
  width: 48px; height: 48px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.bento-card h3 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--white); margin-bottom: 10px;
}
.bento-card p {
  font-size: 15px; color: var(--gray-2); line-height: 1.7;
}
.bento-tag {
  display: inline-block; margin-top: 20px;
  padding: 4px 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--r);
}

/* ════════════════════════════════
   INTEGRATIONS
   ════════════════════════════════ */
.integ-section { background: transparent; }
.integ-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.integ-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: none;
  border-radius: var(--r-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.integ-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 20px rgba(124,92,252,0.15);
  background: rgba(255, 255, 255, 0.11);
}
.integ-logo-container {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.integ-card:hover .integ-logo-container {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(124, 92, 252, 0.4);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: rgba(124, 92, 252, 0.08);
}
.integ-name { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.integ-type { font-size: 11px; color: var(--gray-3); font-weight: 500; letter-spacing: 0.3px; }

/* ════════════════════════════════
   CTA FINALE
   ════════════════════════════════ */
.cta-section {
  padding: 140px 48px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(124,92,252,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-section h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.0;
  color: var(--white); margin-bottom: 20px;
}
.cta-section p {
  font-size: 19px; color: var(--gray-2); margin-bottom: 44px; line-height: 1.65;
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 36px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 13px; color: var(--gray-3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--gray-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--gray-1); }

/* ════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 1024px) {
  .bento-card.col-8, .bento-card.col-4 { grid-column: span 12; }
  .bento-card.col-6 { grid-column: span 12; }
  .steps-layout { grid-template-columns: 1fr; }
  .steps-visual { display: none; }
  .integ-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding: 110px 24px 80px; }
  .section { padding: 80px 24px; }
  .nav { padding: 0 20px; }
  .nav-center { display: none; }
  .hero-title { letter-spacing: -2px; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}
