/* ============================================================
   WEBISOFT — landing2.webisoft.com
   Bold, conversion-first reskin. Dark WebGL hero + premium light
   body. Reuses the brand tokens + fonts from landing.webisoft.com.
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: "HelveticaNowDisplay";
  src: url("../fonts/HelveticaNowDisplay-Md.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "HelveticaNowText";
  src: url("../fonts/HelveticaNowText-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SuisseIntlMono";
  src: url("../fonts/SuisseIntlMono.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --field: #F0F1F4;      /* grey-100, brand default light bg */
  --ink: #0B0E12;        /* near-black surface/text */
  --ink-2: #6A6A6B;      /* grey-800 */
  --hairline: #D9D9D9;   /* grey-300 */
  --accent: #C63524;     /* red-600: accessible coral on white AND black */
  --accent-d: #A42B1D;   /* darker coral for hover */
  --accent-br: #DE5849;  /* red-500: bright brand coral, for dark surfaces */
  --paper: #FFFFFF;

  --font-display: "HelveticaNowDisplay", system-ui, sans-serif;
  --font-text: "HelveticaNowText", system-ui, sans-serif;
  --font-mono: "SuisseIntlMono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 24px 60px -24px rgba(11, 14, 18, 0.35);
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.8rem; text-decoration: none; cursor: pointer; border: none;
  padding: 1rem 1.6rem; border-radius: 999px; transition: transform 0.25s cubic-bezier(.2,.7,.2,1), background 0.2s, box-shadow 0.2s;
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -10px var(--accent); }
.btn--primary:hover { background: var(--accent-d); box-shadow: 0 16px 34px -12px var(--accent); }
.btn--xl { padding: 1.3rem 2.6rem; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

/* ---------- scroll progress ---------- */
.scrollprog {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-br)); z-index: 200;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(12px); background: color-mix(in srgb, var(--ink) 55%, transparent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav_inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav_brand { display: flex; align-items: center; color: #fff; }
.nav_logo { height: 18px; width: auto; fill: #fff; }
.nav_right { display: flex; align-items: center; gap: 1.2rem; }
.nav_lang { text-decoration: none; color: rgba(255,255,255,0.6); }
.nav_lang:hover { color: var(--accent-br); }
.nav_cta { color: #fff; text-decoration: none; padding: 0.55rem 1rem; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; transition: border-color .2s, color .2s; }
.nav_cta:hover { border-color: var(--accent-br); color: var(--accent-br); }

/* ============================================================
   HERO (dark, WebGL backdrop)
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  padding-top: 120px; padding-bottom: 3rem;
  background: var(--ink);
}
.hero_bg, .hero_canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
/* CSS fallback gradient (shown until/unless WebGL takes over) */
.hero_bg {
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(222,88,73,0.30), transparent 55%),
    radial-gradient(120% 120% at 90% 20%, rgba(242,160,145,0.14), transparent 50%),
    linear-gradient(180deg, #0B0E12, #0B0E12);
}
.hero_canvas { opacity: 0; transition: opacity 0.8s ease; }
.hero::after { /* legibility scrim */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,14,18,0.35), rgba(11,14,18,0.1) 40%, rgba(11,14,18,0.55));
}
.hero .container { position: relative; z-index: 2; }
.eyebrow { color: var(--accent-br); margin: 0 0 1.5rem; }
.hero_grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.hero_h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
.hero_h1 .hline { display: block; overflow: hidden; }
.hero_h1 .hline > span { display: block; }
.hero_h1 .mark { font-style: normal; color: var(--accent-br); position: relative; }
.hero_sub { font-family: var(--font-text); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.55; color: rgba(255,255,255,0.82); letter-spacing: 0; margin: 1.6rem 0 0; max-width: 40ch; }
.hero_points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 0.7rem; }
.hero_points li { position: relative; padding-left: 1.8rem; color: rgba(255,255,255,0.9); font-size: 0.98rem; }
.hero_points li::before { content: "→"; position: absolute; left: 0; color: var(--accent-br); }
.trustline { color: rgba(255,255,255,0.55); margin: 2rem 0 0.9rem; }
.certs { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.certs img { height: 42px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.75; }
.certs--lg img { height: 60px; filter: none; opacity: 1; }

/* ---------- hero form card ---------- */
.hero_form { position: relative; }
.form_card {
  background: var(--paper); color: var(--ink); border-radius: var(--r);
  padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.6);
}
.form_card_head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.form_card_head .mono { color: var(--accent); }
.form_tag { color: #fff !important; background: var(--ink); padding: 0.25rem 0.55rem; border-radius: 999px; }
.form_card_title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.form_card_sub { color: var(--ink-2); font-size: 0.92rem; margin: 0 0 1.2rem; }
.field { margin-bottom: 0.85rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; margin-bottom: 0.3rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-text); font-size: 0.95rem; color: var(--ink);
  padding: 0.7rem 0.8rem; border: 1px solid var(--hairline); border-radius: 9px; background: #fbfbfc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(222,88,73,0.15); }
.field_err { display: none; color: #C0392B; font-size: 0.76rem; margin-top: 0.25rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C0392B; }
.field.is-invalid .field_err { display: block; }
.form_submit { width: 100%; margin-top: 0.4rem; }
.form_error { display: none; color: #C0392B; text-align: center; margin: 0.7rem 0 0; }
.form_error.is-on { display: block; }
.form_note { color: var(--ink-2); font-size: 0.76rem; text-align: center; margin: 0.8rem 0 0; }
.form_done { display: none; text-align: center; padding: 1.5rem 0; }
.form_done.is-on { display: block; }
.form_done h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.form_done .mono { color: var(--ink-2); }

/* ---------- client logos marquee ---------- */
.logos { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 2; }
.logos_label { color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 1.2rem; }
.logos_mask { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos_track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: marquee 42s linear infinite; }
.logos:hover .logos_track { animation-play-state: paused; }
.logos_track img { height: 26px; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: 0.62; transition: opacity 0.2s; }
.logos_track img:hover { opacity: 1; }
.logos_track .wordmark { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   BODY SECTIONS (light)
   ============================================================ */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section_label { color: var(--accent); display: inline-block; margin-bottom: 1rem; }
.section_h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
.section_intro { color: var(--ink-2); max-width: 52ch; margin-top: 1rem; font-size: 1.05rem; }
.section_closer { margin-top: 2.5rem; font-size: 1.15rem; max-width: 48ch; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- stats (dark band) ---------- */
.stats-band { background: var(--ink); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
.stat { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 1.2rem; }
.stat_num { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; color: var(--accent-br); }
.stat_label { display: block; color: rgba(255,255,255,0.6); margin-top: 0.7rem; }
.stats-band .section_closer { color: rgba(255,255,255,0.85); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.feature {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r);
  padding: 1.6rem; transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.feature_media {
  height: 132px; margin: -0.4rem 0 0.9rem; border-radius: 10px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(222,88,73,0.12), rgba(11,14,18,0.02));
  display: grid; place-items: center; overflow: hidden;
}
.feature_media canvas { max-width: 100%; max-height: 100%; }
.feature_media.motif { position: relative; }
.feature_media.motif::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px), linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.18;
  mask-image: radial-gradient(circle at 50% 45%, #000, transparent 70%);
}
.feature_idx { color: var(--accent); }
.feature h3 { font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.feature_body p { color: var(--ink-2); font-size: 0.96rem; margin: 0; flex: 1; }
.feature_tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.feature_tags span { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); border: 1px solid var(--hairline); padding: 0.25rem 0.55rem; border-radius: 999px; }

/* ---------- midcta ---------- */
.midcta { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 3rem; text-align: center; }
.utility { color: var(--ink-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.step_num { color: var(--accent); }
.step h3 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.94rem; }
.step_meta { color: var(--ink); margin-top: 0.8rem; }
.band { background: var(--accent); color: #fff; margin-top: clamp(3rem, 6vw, 5rem); }
.band_text { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); padding-block: clamp(2.5rem, 5vw, 4rem); max-width: 26ch; margin: 0; }

/* ---------- team ---------- */
.team_grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.5rem; }
.team_media { aspect-ratio: 4/3; border-radius: var(--r); background: radial-gradient(120% 120% at 30% 20%, rgba(222,88,73,0.14), rgba(11,14,18,0.03)); border: 1px solid var(--hairline); overflow: hidden; display: grid; place-items: center; }
.team_body { font-size: 1.15rem; }
.team_note { color: var(--ink-2); margin-top: 1rem; }

/* ---------- trust ---------- */
.trust_body { font-size: 1.2rem; max-width: 52ch; margin: 1.5rem 0 2.5rem; }
.badges { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: 3rem; }
.testimonials { display: grid; gap: 1.5rem; }
.testimonial { margin: 0; border-left: 3px solid var(--accent); padding-left: 1.5rem; }
.testimonial blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 0.8rem; }
.testimonial figcaption { color: var(--ink-2); }

/* ---------- faq ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--hairline); }
.faq_item { border-bottom: 1px solid var(--hairline); }
.faq_item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1.3rem 0; font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); position: relative; }
.faq_item summary::-webkit-details-marker { display: none; }
.faq_idx { color: var(--accent); flex-shrink: 0; }
.faq_plus { margin-left: auto; width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.faq_plus::before, .faq_plus::after { content: ""; position: absolute; background: var(--ink); transition: transform 0.3s; }
.faq_plus::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq_plus::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq_item[open] .faq_plus::after { transform: scaleY(0); }
.faq_body { padding: 0 0 1.4rem 0; color: var(--ink-2); max-width: 68ch; }
.faq_body p { margin: 0; }

/* ---------- final cta ---------- */
.final { background: var(--ink); color: #fff; text-align: center; }
.final_h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto 1.2rem; }
.final_sub { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }
.final .utility { color: rgba(255,255,255,0.5); margin-top: 1rem; }

/* ---------- mobile sticky CTA ---------- */
.mcta { position: fixed; inset: auto 0 0 0; z-index: 90; padding: 0.7rem var(--pad); background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(10px); transform: translateY(120%); transition: transform 0.3s; display: none; }
.mcta .btn { width: 100%; }
.mcta.is-on { transform: none; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: 3rem; border-top: 1px solid rgba(255,255,255,0.08); }
.footer_inner { display: grid; gap: 1.5rem; }
.footer_logo svg { height: 20px; fill: #fff; }
.footer_addresses p, .footer_copy { margin: 0.2rem 0; color: rgba(255,255,255,0.55); }
.footer_links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer_links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer_links a:hover { color: var(--accent-br); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero_grid { grid-template-columns: 1fr; }
  .hero_form { order: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team_grid { grid-template-columns: 1fr; }
  .mcta { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 96px; }
  .nav_cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .logos_track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
