/* ==========================================================================
   Marc | AI automation landing page
   Theme: dark only, Gemini-inspired. The emptiness is the design.
   ========================================================================== */

:root {
  --bg: #0A0B0E;
  --glow: #0C447C;
  --accent: #378ADD;
  --text-primary: #F5F6F8;
  --text-secondary: #9BA1AB;
  --ice: #E6F1FB;
  --green: #1D9E75;
  --coral: #D85A30;
  --hairline: rgba(245, 246, 248, 0.08);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container-narrow {
  max-width: 52rem;
}

.container-prose {
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 8rem;
}

.section-compact {
  padding-block: 5rem;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 4.25rem;
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  background: rgba(10, 11, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  display: block;
  height: 1.375rem;
  width: auto;
  opacity: 0.94;
  transition: opacity 0.25s var(--ease);
}

.nav-brand:hover .nav-logo {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-inline: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat;
  transition: color 0.25s var(--ease), background-size 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--text-primary);
  background-size: 100% 1px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 0.875rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* Coral: max one visible per viewport (hero, contact) */
.btn-primary {
  background: var(--coral);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: #E2683E;
}

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid rgba(245, 246, 248, 0.18);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(245, 246, 248, 0.4);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */

/* The hero pins to the viewport; the page body slides over it */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
}

/* Curtain: opaque layer that covers the receding hero */
.page-body {
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow: 0 -28px 56px rgba(0, 0, 0, 0.5);
}

/* Progressive enhancement: the hero shrinks and dims as you scroll away
   (scroll-driven animation, no scroll listener) */
@supports (animation-timeline: scroll()) {
  .hero {
    animation: hero-recede linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100dvh;
  }

  @keyframes hero-recede {
    to {
      opacity: 0.2;
      transform: scale(0.93) translateY(-2rem);
    }
  }
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(64rem, 140vw);
  aspect-ratio: 1.7 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(55, 138, 221, 0.5) 0%,
    var(--glow) 30%,
    transparent 64%
  );
  opacity: 0.24;
  filter: blur(52px);
  pointer-events: none;
}

/* Star-dust canvas: fills the hero, behind the text */
.stardust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 56rem;
}

/* Staggered entrance on first paint */
/* backwards fill so hover transforms take over once the entrance ends */
.hero-title,
.hero-sub,
.hero-inner .btn {
  animation: rise-in 0.9s var(--ease) backwards;
}

.hero-sub {
  animation-delay: 0.15s;
}

.hero-inner .btn {
  animation-delay: 0.3s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  font-size: clamp(2rem, 4.4vw, 3.125rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-title-accent {
  display: block;
  color: var(--text-secondary);
}

/* One-shot RGB sheen sweeping left to right across the key word on load.
   Deliberately not gated behind prefers-reduced-motion: single brief sweep,
   no loop, and Windows machines often report reduce with animations off. */
.shimmer {
  background: linear-gradient(
    100deg,
    var(--text-primary) 40%,
    var(--accent) 47%,
    var(--ice) 51%,
    var(--coral) 55%,
    var(--text-primary) 62%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-sweep 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.5s 1 both;
}

@keyframes shimmer-sweep {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

.hero-sub {
  margin: 1.75rem auto 2.75rem;
  max-width: 34rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Gemini-style suggestion chips: quick anchors to each offer */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.75rem;
  animation: rise-in 0.9s var(--ease) 0.45s backwards;
}

.chip {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(245, 246, 248, 0.03);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.chip:hover {
  color: var(--text-primary);
  border-color: rgba(245, 246, 248, 0.28);
  background: rgba(245, 246, 248, 0.06);
  transform: translateY(-1px);
}

/* ---------- Section headings ---------- */

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 5rem;
  text-wrap: balance;
}

.section-title-center {
  text-align: center;
}

.title-accent {
  color: var(--coral);
}

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* "construit" assembles letter by letter, like blocks set in place */
.build-char {
  display: inline-block;
  opacity: 0;
}

.build-word.build-go .build-char {
  animation: build-drop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.15s + var(--i) * 90ms);
}

@keyframes build-drop {
  0% {
    opacity: 0;
    transform: translateY(-0.65em) rotate(-6deg);
  }
  70% {
    opacity: 1;
    transform: translateY(0.06em) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Neon tube treatment: ice text wrapped in a breathing blue glow */
.eyebrow {
  color: var(--ice);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 1.25rem;
  text-shadow:
    0 0 6px rgba(55, 138, 221, 0.9),
    0 0 16px rgba(55, 138, 221, 0.55),
    0 0 34px rgba(12, 68, 124, 0.7);
  animation: eyebrow-neon 4s ease-in-out infinite;
}

@keyframes eyebrow-neon {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(55, 138, 221, 0.9),
      0 0 16px rgba(55, 138, 221, 0.55),
      0 0 34px rgba(12, 68, 124, 0.7);
  }
  50% {
    text-shadow:
      0 0 4px rgba(55, 138, 221, 0.6),
      0 0 10px rgba(55, 138, 221, 0.35),
      0 0 22px rgba(12, 68, 124, 0.45);
  }
}

/* ---------- Neon bubble title (Gemini-style) ---------- */

@property --neon-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.neon-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(2rem, 6vw, 4.5rem);
  border-radius: clamp(2.25rem, 5vw, 3.75rem);
  isolation: isolate;
  text-align: center;
}

.neon-title .section-title {
  margin-bottom: 0;
}

/* Blurred multicolor ring that slowly wanders around the bubble */
.neon-title::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -2;
  border-radius: inherit;
  background: conic-gradient(
    from var(--neon-angle),
    var(--accent),
    var(--green),
    var(--ice),
    var(--coral),
    var(--accent)
  );
  filter: blur(18px);
  opacity: 0.8;
  animation: neon-drift 16s linear infinite;
}

/* Solid bubble fill painted above the glow, below the text */
.neon-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #050609;
}

@keyframes neon-drift {
  to { --neon-angle: 360deg; }
}

/* Typewriter reveal inside the bubble */
.type-char {
  opacity: 0;
}

.type-char.is-typed {
  opacity: 1;
}

.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 3px;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: caret-blink 0.8s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* ---------- Flagship automations ---------- */

.flagship {
  position: relative;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: 4.5rem;
}

/* Top hairline draws itself in when the block reveals */
.flagship::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.1s;
}

.flagship.is-visible::before {
  transform: scaleX(1);
}

/* Benefit rows cascade in after the block itself */
.flagship .flagship-benefits li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.flagship.is-visible .flagship-benefits li:nth-child(1) { transition-delay: 0.25s; }
.flagship.is-visible .flagship-benefits li:nth-child(2) { transition-delay: 0.4s; }
.flagship.is-visible .flagship-benefits li:nth-child(3) { transition-delay: 0.55s; }

.flagship.is-visible .flagship-benefits li {
  opacity: 1;
  transform: none;
}

.flagship-head {
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 0.3125rem 0.875rem;
  color: var(--ice);
  font-size: 0.8125rem;
  font-weight: 500;
}

.badge-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--green);
}

.badge-dot {
  animation: pulse 3.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.flagship-name {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Voice agent motion graphic: gently oscillating waveform (bars built by JS) */
.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 2.125rem;
  margin-top: 1.75rem;
}

.waveform span {
  width: 2px;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(to top, var(--accent), var(--ice));
  opacity: 0.55;
  transform: scaleY(var(--s, 0.4));
  animation: wave var(--d, 1.2s) ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes wave {
  from { transform: scaleY(0.12); }
  to { transform: scaleY(var(--s, 0.4)); }
}

/* Email sequence motion graphic: steps light up one after the other */
.sequence {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 26rem;
  margin-top: 2rem;
  padding-top: 0.1875rem;
}

.sequence-line {
  position: absolute;
  top: 0.375rem;
  left: 0.25rem;
  right: 0.25rem;
  height: 1px;
  background: var(--hairline);
}

.sequence-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  animation: step-glow 6.4s ease-in-out calc(var(--i) * 1.6s) infinite;
}

.sequence-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-glow 6.4s ease-in-out calc(var(--i) * 1.6s) infinite;
}

.sequence-step-final .sequence-dot {
  background: var(--green);
}

@keyframes step-glow {
  0%, 20%, 100% { color: var(--text-secondary); }
  8% { color: var(--ice); }
}

@keyframes dot-glow {
  0%, 20%, 100% { opacity: 0.45; transform: scale(1); }
  8% { opacity: 1; transform: scale(1.35); }
}

.flagship-pitch {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 32rem;
}

.flagship-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: center;
}

.flagship-benefits li {
  padding-block: 1.25rem;
  color: var(--text-primary);
  font-size: 1rem;
}

.flagship-benefits li + li {
  border-top: 1px solid var(--hairline);
}

/* ---------- Software ---------- */

.software-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.software {
  padding-right: clamp(2rem, 5vw, 4rem);
}

.software + .software {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(2rem, 5vw, 4rem);
  padding-right: 0;
}

.software-head {
  margin-bottom: 1.5rem;
}

.software-name {
  margin: 0;
}

.software-logo {
  display: block;
  height: 3.25rem;
  width: auto;
}

.software-pitch {
  margin-top: 0.875rem;
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 26rem;
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.125rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.625rem;
  font-size: 0.9375rem;
}

/* Small accent tick instead of a bullet */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.875rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ---------- Custom products ---------- */

.section-glow {
  position: relative;
  overflow: hidden;
}

.section-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(50rem, 120vw);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(55, 138, 221, 0.35) 0%,
    var(--glow) 34%,
    transparent 62%
  );
  opacity: 0.18;
  filter: blur(56px);
  pointer-events: none;
}

.section-glow > .container {
  position: relative;
}

#sur-mesure .section-title {
  margin-bottom: 4.5rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.offer {
  padding-inline: 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.offer-grid.is-visible .offer:nth-child(1) { transition-delay: 0.05s; }
.offer-grid.is-visible .offer:nth-child(2) { transition-delay: 0.18s; }
.offer-grid.is-visible .offer:nth-child(3) { transition-delay: 0.31s; }

.offer-grid.is-visible .offer {
  opacity: 1;
  transform: none;
}

.offer + .offer {
  border-left: 1px solid var(--hairline);
}

.offer-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  margin-bottom: 1.125rem;
}

.offer-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.offer-desc {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.process-line {
  margin-top: 4rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

.section-cta {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- About ---------- */

.about {
  text-align: center;
}

.about-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 2.25rem;
}

.about-statement {
  max-width: 44rem;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.about-statement strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 6rem;
  text-align: center;
}

.contact-glow {
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: min(55rem, 130vw);
  aspect-ratio: 1.8 / 1;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(55, 138, 221, 0.45) 0%,
    var(--glow) 32%,
    transparent 64%
  );
  opacity: 0.22;
  filter: blur(52px);
  pointer-events: none;
}

.hero-glow,
.contact-glow {
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.15; }
}

.contact-inner {
  position: relative;
}

.contact-title {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.phone-ring {
  width: 1.125em;
  height: 1.125em;
  margin-right: 0.4em;
  vertical-align: -0.22em;
}

/* Rings like an incoming call once the CTA is in view */
.contact .is-visible .phone-ring {
  animation: phone-shake 1.1s ease-in-out 0.5s 2;
}

@keyframes phone-shake {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-13deg); }
  20% { transform: rotate(11deg); }
  30% { transform: rotate(-9deg); }
  40% { transform: rotate(7deg); }
  50% { transform: rotate(-5deg); }
  60% { transform: rotate(3deg); }
  70% { transform: rotate(-1deg); }
  80%, 90% { transform: rotate(0); }
}

.contact-sub {
  margin: 1.75rem auto 3rem;
  max-width: 30rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.btn-lg {
  padding: 1.125rem 2.75rem;
  font-size: 1.0625rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease);
}

.social-links a:hover {
  color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 2rem 1.5rem;
  text-align: center;
}

.site-footer p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Animations intentionally not gated behind prefers-reduced-motion:
   the owner's machine reports reduce and wants the site alive.
   Everything stays slow, small and low-contrast. */

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .site-nav {
    justify-content: space-between;
  }

  .section {
    padding-block: 5rem;
  }

  .contact {
    padding-block: 7rem;
  }

  .flagship {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 3.5rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

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

  .offer {
    padding-inline: 0;
    text-align: left;
  }

  .offer + .offer {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-top: 2.5rem;
  }

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

  .software {
    padding-right: 0;
  }

  .software + .software {
    border-left: none;
    border-top: 1px solid var(--hairline);
    padding-left: 0;
    padding-top: 3rem;
    margin-top: 3rem;
  }
}
