/* / — mockups/homepage-dark (p1) */

/* Hero */
.h-hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: 0; }
.h-hero .hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; gap: 0; }
.h-hero .hero-inner { position: relative; z-index: 1; padding-bottom: var(--s-12); }
.h-hero h1.t-display { max-width: none; font-size: clamp(3.5rem, 9.6vw, 7.7rem); line-height: .93; }
.h-hero .lede { max-width: 23em; font-size: clamp(1.0625rem, 1.75vw, 1.375rem); }
.h-hero .button { min-height: 60px; font-size: 1.0625rem; }
.h-hero .hero-live { align-self: stretch; }
.h-hero .hero-art { position: relative; z-index: -1; width: calc(100% + 260px); max-width: none; max-height: none; margin: 20px 0 0 -230px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 84%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); mask-composite: intersect; }
.h-hero .m-bubble { top: 40px; left: -9%; max-width: 8.2em; font-size: 1.6rem; text-align: center; }
.h-card { top: 6px; right: 1%; width: min(66%, 430px); padding: 16px 18px 20px; transform: rotate(-4deg); }
.h-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.h-card-app { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(0,0,0,.25); color: #ecebe8; font: 600 .75rem/1 var(--font-mono); }
.h-card-app i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.h-card-keys { display: flex; gap: 6px; }
.h-card-keys kbd { padding: 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #1c1f25; color: #ecebe8; font: 600 .75rem/1 var(--font-mono); }
.h-card .m-wavecard-wave { height: 96px; }
.h-card .m-bars { height: 84px; gap: 5px; }
.h-card .m-bars i { max-width: 5px; }
.h-card p { margin-top: 12px; color: #c9c5bf; font-size: .875rem; text-align: center; }

/* Apps panel */
.h-apps { position: relative; z-index: 1; padding: 0 0 var(--s-12); border-bottom: 1px solid var(--line); }
.h-apps-panel { padding: 40px 32px 34px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.h-apps-label { margin: 0 0 30px; color: #ecebe8; font: 500 .875rem/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; }
.h-apps-list { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.h-apps-list .app { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 12px; min-height: 70px; padding: 0 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #16181d; color: #f4f2ee; font: 600 1.125rem/1 var(--font-display); }
.h-apps-list .app svg { width: 28px; height: 28px; flex: none; }
.h-apps-list svg[aria-label="Obsidian"] { color: #8b6cf6; }
.h-apps-list svg[aria-label="Figma"] { color: #f24e1e; }
.h-apps-list svg[aria-label="Raycast"] { color: #ff6363; }
.h-apps-list svg[aria-label="Google Docs"] { color: #4285f4; }
.h-apps-list svg[aria-label="Gmail"] { color: #ea4335; }
.h-apps-list svg[aria-label="Discord"] { color: #5865f2; }
.h-apps-list svg[aria-label="Xcode"] { color: #1c8cf0; }
.h-apps-note { margin: 28px 0 0; color: #c9c5bf; font-size: .9375rem; }

/* Numbered rows */
.h-row { padding: 46px 0; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.012), transparent); }
.h-row-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.h-row .m-tag { margin-bottom: 18px; }
.h-row-title { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.h-row-title em { color: var(--coral); font-style: normal; }
.h-row-p { max-width: 18em; margin: 0; color: #ecebe8; font-size: clamp(1.125rem, 1.95vw, 1.5625rem); line-height: 1.4; }
.h-row--keys .h-row-p { max-width: 24em; }
.h-row--os .h-row-title { white-space: nowrap; }
.h-row-p u { text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.h-row-p kbd { padding: 2px 8px; border-radius: 6px; background: #1f2228; color: #f4f2ee; font: 500 .9em/1.2 var(--font-mono); }
.h-row-visual { position: relative; }
.h-caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 3px; vertical-align: -3px; background: var(--coral); animation: m-caret 1s steps(1) infinite; }
@keyframes m-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .h-caret { animation: none; } }
.h-spark { position: absolute; width: 46px; height: 46px; fill: none; stroke: var(--coral); stroke-width: 3.4; stroke-linecap: round; pointer-events: none; }

/* 01 langues */
.h-row--langs { padding-bottom: 0; }
.h-langs { position: relative; height: 370px; }
.h-langs-person { position: absolute; bottom: 0; left: -10%; width: auto; height: 100%; -webkit-mask-image: linear-gradient(0deg, transparent, #000 10%); mask-image: linear-gradient(0deg, transparent, #000 10%); }
.h-langs-list { position: absolute; top: 0; left: 31%; z-index: 1; display: grid; gap: 4px; width: 184px; margin: 0; padding: 18px 20px; list-style: none; border: 1.5px solid rgba(255,255,255,.3); border-radius: 26px 26px 26px 6px; background: #131519; color: #f4f2ee; font-size: 1.125rem; }
.h-langs-list li { display: flex; align-items: center; gap: 14px; padding: 5px 0; }
.h-langs-more { justify-content: center; padding-top: 10px !important; }
.h-flag { width: 28px; height: 20px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.h-flag--fr { background: linear-gradient(90deg, #2b4ea2 33%, #fff 33% 66%, #e4343e 66%); }
.h-flag--es { background: linear-gradient(180deg, #c8102e 26%, #ffc400 26% 74%, #c8102e 74%); }
.h-flag--de { background: linear-gradient(180deg, #1b1b1b 33%, #dd0000 33% 66%, #ffce00 66%); }
.h-flag--it { background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.h-flag--gb { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' preserveAspectRatio='none'%3E%3Crect width='60' height='40' fill='%23012169'/%3E%3Cpath d='M0 0 60 40M60 0 0 40' stroke='%23fff' stroke-width='8'/%3E%3Cpath d='M0 0 60 40M60 0 0 40' stroke='%23C8102E' stroke-width='3'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23fff' stroke-width='12'/%3E%3Cpath d='M30 0v40M0 20h60' stroke='%23C8102E' stroke-width='7'/%3E%3C/svg%3E") center / cover; }
.h-spark--note { top: 14px; right: 0; }
.h-langs-arrow { position: absolute; top: 34px; left: 64%; width: 80px; height: 40px; fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.h-langs-note > i { display: block; height: 5px; margin-bottom: 8px; border-radius: 3px; background: rgba(255,255,255,.22); }
.h-langs-note { position: absolute; top: 90px; right: -10px; z-index: 2; width: 265px; margin: 0; padding: 22px 26px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #1d2026; color: #f4f2ee; font-size: 1.0625rem; line-height: 1.55; transform: rotate(-4deg); box-shadow: 0 30px 50px -24px rgba(0,0,0,.9); }
.h-langs-note > i:first-child { width: 72%; }
.h-langs-note > i:nth-child(2) { width: 60%; margin-bottom: 20px; }

/* 02 laptop */
.h-laptop { width: min(100%, 640px); margin-left: auto; }
.h-laptop-screen { padding: 14px 14px 0; border: 2px solid #3a3e46; border-bottom: 0; border-radius: 18px 18px 0 0; background: #0c0d10; }
.h-win { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 230px; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 10px 10px 0 0; background: #15171c; }
.h-win-side { display: grid; align-content: start; gap: 4px; padding: 12px 10px; border-right: 1px solid rgba(255,255,255,.08); }
.h-win-dots { display: flex; gap: 6px; margin: 0 0 14px 4px; }
.h-win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.h-win-dots i:nth-child(2) { background: #febc2e; }
.h-win-dots i:nth-child(3) { background: #28c840; }
.h-win-side span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #dcd9d4; font-size: .8125rem; }
.h-win-side span.is-active { background: #262a31; color: #fff; }
.h-win-side svg { width: 16px; height: 16px; flex: none; }
.h-win-main { padding: 16px 16px 0; }
.h-win-head { display: flex; justify-content: space-between; margin: 0 0 12px; color: #ecebe8; font-size: .8125rem; font-weight: 600; }
.h-win-head span { font-size: 1.1rem; font-weight: 400; }
.h-win-text { min-height: 160px; margin: 0; padding: 50px 16px 16px; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 10px 10px 0 0; color: #f4f2ee; font-size: .9375rem; line-height: 1.9; }
.h-laptop-base { height: 16px; margin: 0 -30px; border-radius: 3px 3px 12px 12px; background: linear-gradient(180deg, #3d4149, #22252b); box-shadow: 0 24px 40px -18px rgba(0,0,0,.9); }

/* 03 keys */
.h-keys { position: relative; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 30px 0; }
.h-key { display: grid; place-items: center; width: 120px; height: 104px; border: 1.5px solid rgba(255,255,255,.22); border-radius: 18px; background: linear-gradient(180deg, #2a2d34, #1a1c21); color: #f4f2ee; font: 600 2.4rem/1 var(--font-display); box-shadow: 0 8px 0 #0d0e11, 0 30px 40px -20px rgba(0,0,0,.9); transform: rotate(-3deg); }
.h-key--wide { width: 208px; font-size: 1.4rem; transform: rotate(-1deg); }
.h-plus { color: #ecebe8; font-size: 2rem; }
.h-spark--left { top: 0; left: 2%; transform: scaleX(-1); }
.h-spark--right { top: 0; right: 0; }

/* 04 OS */
.h-os { position: relative; width: min(100%, 520px); margin-left: auto; }
.h-os img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.h-os-card { position: absolute; display: grid; justify-items: center; gap: 10px; padding: 20px 32px; border-radius: 20px; background: #fff; color: #15171c; font: 600 1.2rem/1 var(--font-display); box-shadow: 0 26px 40px -20px rgba(0,0,0,.9); }
.h-os-card svg { width: 46px; height: 46px; }
.h-os-card--mac { top: 14%; left: 2%; transform: rotate(-6deg); }
.h-os-card--win { top: 22%; right: 0; transform: rotate(5deg); }
.h-os-card--win svg { color: #0a7bd8; }

@media (max-width: 900px) {
  .h-hero .hero-split { grid-template-columns: 1fr; }
  .h-hero .hero-inner { padding-bottom: 0; }
  .h-hero .hero-live { display: flex; flex-direction: column; margin-right: 0; }
  .h-hero .hero-art { order: 1; width: 100%; margin: 0; }
  .h-card { position: relative; order: -1; top: auto; right: auto; width: min(100%, 360px); margin: 0 0 0 auto; }
  .h-hero .m-bubble { position: relative; top: auto; left: auto; order: 0; align-self: flex-start; margin: 18px 0 -40px 4%; font-size: 1.15rem; }
  .h-row--os .h-row-title { white-space: normal; }
  .h-row-grid { grid-template-columns: 1fr; }
  .h-row--langs { padding-bottom: 46px; }
}
@media (max-width: 560px) {
  .h-apps-panel { padding: 24px 18px; }
  .h-apps-list .app { min-height: 50px; padding: 0 14px; font-size: .95rem; }
  .h-apps-list .app svg { width: 22px; height: 22px; }
  .h-langs { height: auto; display: grid; justify-items: center; gap: 18px; }
  .h-langs-person, .h-langs-list, .h-langs-note { position: relative; inset: auto; }
  .h-langs-person { width: 220px; height: auto; }
  .h-langs-list { margin-top: -60px; }
  .h-langs-arrow, .h-spark--note { display: none; }
  .h-langs-note { width: auto; transform: rotate(-2deg); }
  .h-win { grid-template-columns: 1fr; }
  .h-win-side { display: none; }
  .h-laptop-base { margin: 0 -12px; }
  .h-key { width: 88px; height: 78px; font-size: 1.8rem; }
  .h-key--wide { width: 150px; font-size: 1.15rem; }
  .h-os-card { padding: 10px 14px; font-size: .875rem; }
  .h-os-card svg { width: 28px; height: 28px; }
}
