/* SPDX-FileCopyrightText: 2025-2026 Refaqt (BE 0804.145.539) and contributors */
/* SPDX-License-Identifier: CC-BY-SA-4.0 */
/* REFAQT home page. Same brand tokens as aqtuator/assets/css/style.css. */
:root {
  --bg: #1b1c1d;
  --surface: #232323;
  --surface-2: #2a2b2d;
  --line: rgba(240, 240, 240, 0.09);
  --line-2: rgba(240, 240, 240, 0.16);
  --text: #f0f0f0;
  --muted: #a4a9ad;
  --faint: #6f7478;
  --g1: #00c175;
  --g2: #00ac99;
  --g3: #009cb6;
  --g4: #0094c6;
  --grad: linear-gradient(100deg, var(--g1) 0%, var(--g2) 40%, var(--g3) 75%, var(--g4) 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Outfit", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  margin: 0 0 18px; color: var(--g2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--g1); margin-right: 6px; vertical-align: 1px; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #0d1414; font-weight: 600; box-shadow: 0 8px 30px -10px rgba(0, 172, 153, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -12px rgba(0, 172, 153, .9); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--g2); background: rgba(0, 172, 153, .06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(27, 28, 29, .8); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand img { width: 120px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav .btn { margin-left: 4px; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 14vw, 170px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.hero__glow { position: absolute; inset: 0 0 auto 30%; height: 100%; background: radial-gradient(closest-side, rgba(0, 172, 153, .16), transparent 70%); pointer-events: none; z-index: -1; }
.hero h1 { font-size: clamp(40px, 4.8vw, 66px); letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); font-weight: 300; margin-top: 24px; max-width: 32em; }
.lead--why { color: var(--text); margin-top: 12px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { margin: 0; }
.hero__art img { width: 100%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__art { margin: 0 calc(-1 * var(--gutter) / 2); }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.section__head { max-width: 860px; margin-bottom: 48px; }
.section__lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin-top: 20px; font-weight: 300; max-width: 40em; }

/* ---------- product ---------- */
.section--product { padding-top: clamp(48px, 6vw, 80px); }
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px;
  background: linear-gradient(120deg, var(--surface) 30%, rgba(0, 172, 153, .08));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); text-decoration: none; transition: border-color .25s, transform .25s; overflow: hidden;
}
.product:hover { border-color: rgba(0, 172, 153, .5); transform: translateY(-2px); }
.tag { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.product h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; }
.product h2 b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product p:not(.tag) { color: var(--muted); font-weight: 300; margin-top: 16px; max-width: 30em; }
.product__more { display: inline-block; margin-top: 22px; color: var(--g2); font-weight: 500; }
.product__img { width: 124%; max-width: none; margin: -9% -12%; }  /* the render has a wide empty border */
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product__img { order: -1; } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.why__item p { color: var(--muted); font-weight: 300; font-size: 18px; }
.why__n { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.why__item--mission { background: linear-gradient(140deg, rgba(0, 193, 117, .14), rgba(0, 148, 198, .12)); border-color: rgba(0, 172, 153, .35); }
.why__item--mission .why__n { color: var(--g1); }
.why__item--mission p { color: var(--text); font-weight: 400; font-size: 20px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- how we work ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); font-weight: 300; }
.card__n { font-size: 14px; font-weight: 600; color: var(--g2); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- plan ---------- */
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.plan__step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.plan__step + .plan__step::before {
  content: ""; position: absolute; left: -30px; top: 50%; width: 24px; height: 2px; background: var(--line-2);
}
.plan__step + .plan__step::after {
  content: ""; position: absolute; left: -12px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: var(--line-2); border-right: 0;
}
.plan__step--pair { display: grid; gap: 22px; }
.plan__step--pair > div + div { border-top: 1px solid var(--line); padding-top: 22px; }
.plan h3 { font-size: 19px; margin: 10px 0 8px; }
.plan p { color: var(--muted); font-weight: 300; font-size: 16px; }
.plan__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); }
.plan__step.is-now { border-color: rgba(0, 172, 153, .55); background: linear-gradient(160deg, rgba(0, 172, 153, .14), var(--surface) 60%); }
.plan__step.is-now .plan__n { background: var(--grad); color: #0d1414; border-color: transparent; }
.plan__badge { position: absolute; top: -12px; right: 16px; background: var(--grad); color: #0d1414; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan__loop { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-weight: 300; }
.plan__loop svg { width: 22px; height: 22px; flex: none; color: var(--g2); }
@media (max-width: 960px) {
  .plan { grid-template-columns: 1fr; gap: 30px; max-width: 560px; }
  .plan__step + .plan__step::before { left: 32px; top: -26px; width: 2px; height: 20px; }
  .plan__step + .plan__step::after { left: 28px; top: -10px; border: 5px solid transparent; border-top-color: var(--line-2); border-bottom: 0; }
}

/* ---------- join ---------- */
.join { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(0, 172, 153, .16), transparent 70%); pointer-events: none; }
.join .section__head { margin-bottom: 32px; }
.join__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.join__list li { border-top: 1px solid var(--line-2); padding-top: 18px; }
.join__list p { color: var(--muted); font-weight: 300; margin-top: 8px; }
@media (max-width: 860px) { .join__list { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.ticks-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks-list li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 300; }
.ticks-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 9px; border-left: 2px solid var(--g1); border-bottom: 2px solid var(--g1); transform: rotate(-45deg); }
.section--cta { padding-bottom: clamp(80px, 10vw, 140px); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g2); box-shadow: 0 0 0 4px rgba(0, 172, 153, .15); }
.field [aria-invalid="true"] { border-color: #e0664a; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; min-height: 1.4em; color: var(--muted); }
.form__status.is-ok { color: var(--g1); }
.form__status.is-error { color: #ff8a6e; }
.form.is-done .field, .form.is-done .turnstile, .form.is-done button { display: none; }
.form.is-done .form__status { font-size: 20px; padding: 30px 0; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .form { padding: 20px; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 15px; }
.footer__inner img { margin-bottom: 10px; }
.footer__links { display: flex; gap: 18px; margin-top: 10px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--text); }
.footer__small { font-size: 13px; color: var(--faint); display: grid; gap: 4px; max-width: 520px; }
