/* =========================================================
   FALOM AI — global styles
   Theme: white / navy / grey, with the FALOM logo colours as accents
   ========================================================= */

:root {
  --white: #ffffff;
  --off-white: #f5f5f7;
  --grey-100: #e8e8ed;
  --grey-300: #c7c7cc;
  --grey-500: #86868b;
  --grey-700: #424245;
  --grey-900: #0b1736; /* navy from the FALOM logo */
  --black: #050d22;

  /* FALOM logo colours */
  --brand-cyan: #19e3ff;
  --brand-blue: #1e6bff;
  --brand-indigo: #1636c9;
  --brand-violet: #9b5cf6;
  --brand-gradient: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-blue) 45%, var(--brand-violet) 100%);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1100px;
  --nav-h: 52px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--grey-900);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s var(--ease);
}
.nav.dark {
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-inner {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-weight: 700; letter-spacing: 0.18em; font-size: 15px; }
.logo span { font-weight: 400; color: var(--grey-500); letter-spacing: 0.02em; margin-left: 6px; font-size: 12px; }
.nav-links { display: flex; gap: 32px; font-size: 13px; }
.nav-links a { opacity: 0.8; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 980px;
  background: var(--brand-gradient); color: var(--white);
}
.nav.dark .nav-cta { background: var(--white); color: var(--black); }
.menu-btn { display: none; background: none; border: 0; font-size: 22px; color: inherit; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 980px;
  font-size: 16px; font-weight: 500; transition: transform 0.3s var(--ease), background 0.3s;
}
.btn:hover { transform: scale(1.04); }
.btn-dark { background: var(--brand-gradient); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-ghost { color: var(--grey-900); border: 1px solid var(--grey-300); }
.btn-ghost-light { color: var(--white); border: 1px solid var(--grey-700); }
.link-arrow { color: var(--brand-blue); font-weight: 500; }
.link-arrow::after { content: " ›"; }
.dark-section .link-arrow { color: var(--white); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 140px 0; }
.dark-section { background: var(--black); color: var(--white); }
.grey-section { background: var(--off-white); }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-blue); margin-bottom: 16px;
}
.headline { font-size: clamp(40px, 7vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.title { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.lead { font-size: clamp(18px, 2.2vw, 24px); color: var(--grey-500); max-width: 680px; line-height: 1.4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: var(--nav-h);
  background: radial-gradient(ellipse at 50% 120%, var(--grey-100) 0%, var(--white) 60%);
}
.hero .lead { margin: 28px auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .word { display: inline-block; opacity: 0; transform: translateY(40px); filter: blur(8px);
  animation: wordIn 1s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--grey-500); letter-spacing: 0.1em; text-transform: uppercase;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Scroll reveal (generic) ---------- */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.from-left { transform: translateX(-80px); }
.reveal.from-right { transform: translateX(80px); }
.reveal.pop { transform: scale(0.85); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Product reveal (scroll-scaled panel) ---------- */
.product { height: 220vh; background: var(--black); }
.product-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white);
}
.product-title { text-align: center; margin-bottom: 40px; will-change: opacity, transform; }
.product-panel {
  width: min(900px, 88vw); aspect-ratio: 16 / 9; border-radius: 28px;
  background: linear-gradient(160deg, #13244f 0%, #070f28 100%);
  border: 1px solid #1f3166;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  transform: scale(0.6); will-change: transform;
  box-shadow: 0 40px 120px rgba(30, 107, 255, 0.18);
}
.orb {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--brand-cyan) 25%, var(--brand-blue) 55%, var(--brand-violet) 85%, var(--brand-indigo) 100%);
  box-shadow: 0 0 90px rgba(30, 107, 255, 0.45);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 160px rgba(25, 227, 255, 0.45); } }
.panel-label {
  position: absolute; bottom: 7%; left: 0; right: 0; text-align: center;
  font-size: clamp(14px, 1.6vw, 18px); letter-spacing: 0.4em; color: var(--grey-500);
}

/* ---------- Word-by-word highlight text ---------- */
.highlight-text { font-size: clamp(28px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.highlight-text .w { color: var(--grey-300); transition: color 0.3s; }
.highlight-text .w.lit { color: var(--grey-900); }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border-radius: 24px; padding: 40px 32px;
  border: 1px solid var(--grey-100);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease);
}
.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); }
.grey-section .card { border-color: transparent; }
.dark-section .card { background: #0f1d44; border-color: #1b2c5c; }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--brand-gradient); color: var(--white);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 24px;
}
.dark-section .card-icon { background: var(--brand-gradient); color: var(--white); }
.card h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 10px; }
.card p { color: var(--grey-500); font-size: 16px; }

/* ---------- Stats ---------- */
.stat-num { font-size: clamp(48px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat-label { color: var(--grey-500); margin-top: 10px; }

/* ---------- Steps ---------- */
.step-num { font-size: 14px; font-weight: 600; color: var(--grey-500); margin-bottom: 18px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.visual-block {
  aspect-ratio: 1; border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, #16306e 0%, var(--grey-900) 55%, var(--black) 100%);
  display: grid; place-items: center; color: var(--white);
  font-size: clamp(48px, 8vw, 96px); font-weight: 700; letter-spacing: 0.15em;
}

/* ---------- Placeholder (content you'll fill in later) ---------- */
.placeholder {
  display: inline-block; border: 1px dashed var(--grey-300); border-radius: 8px;
  padding: 2px 10px; color: var(--grey-500); font-style: italic;
}
.dark-section .placeholder { border-color: var(--grey-700); }

/* ---------- Pop-up toast ---------- */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: 340px;
  background: rgba(29, 29, 31, 0.92); color: var(--white);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 18px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(140%); opacity: 0; transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.toast.show { transform: none; opacity: 1; }
.toast strong { display: block; font-size: 15px; margin-bottom: 4px; }
.toast p { font-size: 14px; color: var(--grey-300); margin-bottom: 12px; }
.toast-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  color: var(--grey-500); font-size: 18px; cursor: pointer;
}

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101;
  background: var(--brand-gradient); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Contact / CTA ---------- */
.cta { padding: 160px 0; text-align: center; }
.cta .lead { margin: 24px auto 40px; }
.form { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--grey-700);
  background: #0f1d44; color: var(--white); font: inherit; font-size: 16px;
}
.form textarea { min-height: 120px; resize: vertical; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--grey-100); padding: 24px 0; }
.faq summary { font-size: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--grey-500); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--grey-500); margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { background: var(--off-white); color: var(--grey-500); font-size: 12px; padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer a:hover { color: var(--grey-900); }
.footer-links { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .section { padding: 96px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: inherit; backdrop-filter: inherit; padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 17px; }
  .nav-cta { display: none; }
  .toast { left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .word { opacity: 1; transform: none; filter: none; }
}

/* ---------- Scroll-linked swoop (data-swoop) ---------- */
#about { overflow: hidden; }
[data-swoop] { will-change: transform; }

/* ---------- Relix example: contract → result → message ---------- */
.example { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.example-arrow { font-size: 40px; color: var(--grey-300); text-align: center; }
.contract {
  background: var(--off-white); border-radius: 24px; padding: 32px;
}
.contract-dark { background: var(--grey-900); color: var(--white); }
.contract-head {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey-500); margin-bottom: 20px;
}
.contract dl div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--grey-100);
}
.contract-dark dl div { border-bottom-color: #1f3166; }
.contract dl div:last-child { border-bottom: 0; }
.contract dt { color: var(--grey-500); }
.contract dd { font-weight: 600; text-align: right; }

/* ---------- Chat conversation (data-chat) ---------- */
.chat {
  position: relative; max-width: 560px; margin: 64px auto 0;
  background: var(--white); border: 1px solid var(--grey-100); border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 24px;
  border-bottom: 1px solid var(--grey-100); background: var(--off-white);
}
.chat-head strong { display: block; font-size: 15px; }
.chat-head span { font-size: 12px; color: var(--grey-500); }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--grey-300); color: var(--white);
  display: grid; place-items: center; font-weight: 600;
}
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; min-height: 140px; }

.msg, .typing {
  max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 15px; line-height: 1.45;
  animation: msgIn 0.45s var(--ease) both;
}
.msg { display: none; }
.msg.shown { display: block; }
[data-from="ai"] { align-self: flex-end; background: linear-gradient(135deg, var(--brand-blue), var(--brand-indigo)); color: var(--white); border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
[data-from="client"] { align-self: flex-start; background: var(--grey-100); color: var(--grey-900); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(0.92); } }

.typing { display: flex; gap: 5px; padding: 15px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.4; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-4px); } }

.chat-status {
  display: none; align-self: center; margin-top: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 980px; background: var(--off-white); color: var(--grey-700);
  animation: msgIn 0.45s var(--ease) both;
}
.chat-status.shown { display: block; }
.chat-replay {
  position: absolute; top: 22px; right: 20px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--grey-500); opacity: 0; transition: opacity 0.4s;
}
.chat.done .chat-replay { opacity: 1; }

.note { color: var(--grey-500); font-size: 13px; margin-top: 24px; }

@media (max-width: 900px) {
  .example { grid-template-columns: 1fr; }
  .example-arrow { transform: rotate(90deg); }
}

/* ---------- Product cards (homepage) ---------- */
.product-card {
  position: relative; display: flex; flex-direction: column; min-height: 520px; overflow: hidden;
  background: var(--off-white); border-radius: 32px; padding: 48px 40px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 1s var(--ease);
}
.product-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1); }
.product-card h3 { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.product-card p:not(.eyebrow) { color: var(--grey-500); font-size: 18px; margin-top: 16px; max-width: 360px; }
.product-card .link-arrow { margin-top: auto; position: relative; z-index: 1; }
.product-card-dark { background: var(--grey-900); color: var(--white); }
.product-card-dark .link-arrow { color: var(--white); }
.product-orb { position: absolute; width: 200px; right: -30px; bottom: -30px; }
.product-card:not(.product-card-dark) .product-orb {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c7c7cc 40%, #6e6e73 75%, #1d1d1f 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
}

/* ---------- Legalix block (homepage) ---------- */
.checklist { list-style: none; margin: 28px 0 36px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; color: var(--grey-300); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-cyan); font-weight: 700; }
.visual-block-light { background: linear-gradient(135deg, #f5f5f7, #c7c7cc); color: var(--black); font-size: clamp(28px, 4.5vw, 52px); }

.form select {
  width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--grey-700);
  background: #0f1d44; color: var(--white); font: inherit; font-size: 16px; appearance: none;
}

/* ---------- Homepage brand hero ---------- */
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name {
  font-size: clamp(48px, min(14vw, 16vh), 200px); font-weight: 700; letter-spacing: 0.12em;
  margin-right: -0.12em; /* balance the trailing letter-spacing so it stays centered */
}
.brand-name .word {
  padding-bottom: 0.05em;
  background: linear-gradient(180deg, var(--grey-900) 55%, #1d3a8a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub {
  font-size: clamp(28px, 5vw, 64px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-right: -0.08em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 8px;
}
.brand-tagline {
  font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; margin-top: 20px;
}
.hero .brand-tagline + .lead { margin-top: 12px; margin-bottom: 28px; }
/* On shorter screens the hero content is tall, so drop the "Scroll" hint rather than overlap it */
@media (max-height: 900px) { .hero:has(.brand) .scroll-hint { display: none; } }

/* ---------- FALOM logo symbol ---------- */
.logo { display: inline-flex; align-items: center; }
.logo-mark { width: 26px; height: 26px; margin-right: 10px; }

.hero-mark {
  display: block; width: min(14vh, 140px); height: auto; margin: 0 auto 8px;
  opacity: 0; animation: markIn 1.2s var(--ease) 0.05s forwards, float 6s ease-in-out 1.3s infinite;
  filter: drop-shadow(0 18px 40px rgba(30, 107, 255, 0.35));
}
@keyframes markIn { from { opacity: 0; transform: translateY(30px) scale(0.8) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-16px); } }

.visual-mark { width: 62%; height: auto; filter: drop-shadow(0 30px 60px rgba(25, 227, 255, 0.35)); }

.stat-num { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Relix logo ---------- */
.panel-logo { width: 30%; height: auto; border-radius: 22%; box-shadow: 0 0 100px rgba(124, 92, 255, 0.4); animation: glowViolet 5s ease-in-out infinite; }
@keyframes glowViolet { 50% { transform: scale(1.05); box-shadow: 0 0 160px rgba(143, 116, 255, 0.6); } }
.product-logo { position: absolute; width: 150px; right: 28px; bottom: 28px; border-radius: 24%; box-shadow: 0 24px 60px rgba(91, 61, 240, 0.35); }

/* ---------- Relix theme (relix.html): deep violet, from the Relix app ---------- */
.theme-relix {
  --grey-900: #0e0b2b;
  --black: #07051a;
  --brand-cyan: #b9a6ff;
  --brand-blue: #7c5cff;
  --brand-indigo: #4c2fd0;
  --brand-violet: #9b7bff;
  --brand-gradient: linear-gradient(135deg, #8f74ff 0%, #6a4bff 100%);
}
.theme-relix .dark-section,
.theme-relix .product {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(109, 77, 255, 0.32), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(109, 77, 255, 0.22), transparent 60%),
    var(--black);
}
.theme-relix .hero { color: var(--white); }
.theme-relix .hero .lead { color: #a9a3c9; }
.theme-relix .dark-section .lead,
.theme-relix .dark-section .card p { color: #a9a3c9; }
.theme-relix .dark-section .card { background: rgba(23, 18, 58, 0.7); border-color: #2a2357; }
.theme-relix .product-panel { background: linear-gradient(160deg, #1a1446 0%, #0a0822 100%); border-color: #2c2463; box-shadow: 0 40px 120px rgba(124, 92, 255, 0.2); }
.theme-relix .hero-mark { border-radius: 24%; filter: drop-shadow(0 18px 40px rgba(124, 92, 255, 0.5)); }
.theme-relix .visual-block { background: radial-gradient(circle at 30% 20%, #3a24a8 0%, #150f3f 55%, #07051a 100%); }
.theme-relix [data-from="ai"] { background: linear-gradient(135deg, #8f74ff, #5b3df0); }
.theme-relix .contract-dark dl div { border-bottom-color: #2a2357; }
.theme-relix .highlight-text .w.lit { color: var(--grey-900); }
.product-card-relix .eyebrow, .product-card-relix .link-arrow { color: #7c5cff; }
/* The Relix PNG has a dark square background: crop it to the tile's own rounded shape */
.product .panel-logo,
.product-logo,
.theme-relix .hero-mark { clip-path: inset(9% round 17%); border-radius: 0; box-shadow: none; filter: none; }
.product .panel-logo { width: 40%; animation: breathe-soft 5s ease-in-out infinite; }
@keyframes breathe-soft { 50% { transform: scale(1.04); } }
.product-logo { width: 180px; right: 10px; bottom: 10px; }
.theme-relix .hero-mark { width: min(15vh, 140px); margin: -1vh auto -1vh; }

/* ---------- Relix page: logo grows, then docks under the FALOM AI logo ---------- */
.nav-inner { position: relative; }
.product[data-dock] { height: 300vh; }
.product[data-dock] .product-panel {
  background: none; border: 0; box-shadow: none; transform: none !important; overflow: visible;
}
.panel-logo-wrap { display: grid; place-items: center; }
.product[data-dock] .panel-logo {
  width: min(32vh, 280px); animation: none; transform-origin: 50% 50%; will-change: transform, opacity;
}

.relix-dock {
  position: absolute; top: calc(100% + 10px); left: 24px;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 980px;
  background: rgba(14, 11, 43, 0.75); border: 1px solid #2a2357; color: var(--white);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.relix-dock.show { opacity: 1; pointer-events: auto; transform: none; }
.relix-dock-logo { width: 30px; height: 30px; clip-path: inset(9% round 17%); }
/* Homepage "Meet Relix." panel: no rectangle, just the Relix logo growing */
#relix .product-panel,
#legalix .product-panel,
.theme-legalix .product-panel { background: none; border: 0; box-shadow: none; }
/* Relix logo inside the "Why Relix" block (cropped to its rounded tile) */
.visual-relix-logo { width: 62%; height: auto; clip-path: inset(9% round 17%); }

/* ---------- Legalix logo (PNG with a black square background: crop to its rounded tile) ---------- */
.legalix-logo,
.product img.legalix-logo,
.product-card img.legalix-logo { clip-path: inset(7.5% round 19%); box-shadow: none; border-radius: 0; filter: none; }
.product img.legalix-logo { animation: breathe-soft 5s ease-in-out infinite; width: 40%; }
.visual-legalix-logo { width: 62%; height: auto; clip-path: inset(7.5% round 19%); }

/* ---------- Legalix colours: deep brown-black with orange and amber, from the Legalix logo ----------
   Used for the whole Legalix page (.theme-legalix) and the Legalix sections of the homepage (.section-legalix) */
.theme-legalix,
.section-legalix {
  --grey-900: #1f0e05;
  --black: #0c0603;
  --brand-cyan: #ffc21a;
  --brand-blue: #ff7a00;
  --brand-indigo: #c2410c;
  --brand-violet: #ff9a1f;
  --brand-gradient: linear-gradient(135deg, #ffc21a 0%, #ff7a00 55%, #e04800 100%);
}
.theme-legalix .dark-section,
.theme-legalix .product,
.section-legalix.dark-section,
.section-legalix.product {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(255, 106, 0, 0.26), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 170, 0, 0.16), transparent 60%),
    var(--black);
}
.section-legalix .eyebrow { color: #ff8a1f; }
.theme-legalix .hero { color: var(--white); }
.theme-legalix .hero .lead,
.theme-legalix .dark-section .lead,
.theme-legalix .dark-section .card p,
.section-legalix .lead { color: #c9b3a3; }
.theme-legalix .dark-section .card { background: rgba(44, 20, 8, 0.7); border-color: #4a230e; }
.theme-legalix .hero-mark { clip-path: inset(7.5% round 19%); filter: none; width: min(15vh, 140px); margin: -1vh auto -1vh; }
.theme-legalix .visual-block { background: radial-gradient(circle at 30% 20%, #6a2a08 0%, #241006 55%, #0c0603 100%); }
.theme-legalix [data-from="ai"] { background: linear-gradient(135deg, #ff8a1f, #e04800); }
.theme-legalix .contract-dark dl div { border-bottom-color: #4a230e; }
.theme-legalix .checklist li::before,
.section-legalix .checklist li::before { color: #ffb000; }
.theme-legalix .nav-cta, .theme-legalix .nav.dark .nav-cta { background: var(--brand-gradient); color: var(--white); }

/* Homepage text block under "Meet Legalix." */
.legalix-intro { padding-top: 40px; }
.legalix-intro .lead { margin: 0 auto; }
.legalix-intro .checklist { display: inline-grid; text-align: left; margin: 32px auto 40px; }
.section-legalix.legalix-intro { background: radial-gradient(ellipse 60% 70% at 100% 100%, rgba(255, 170, 0, 0.12), transparent 60%), var(--black); }

/* Legalix badge (same docking effect as Relix, in the Legalix colours) */
.legalix-dock { background: rgba(31, 14, 5, 0.8); border-color: #5a2a0c; }
.legalix-dock-logo { clip-path: inset(7.5% round 19%); }
.product[data-dock] img.legalix-logo { clip-path: inset(7.5% round 19%); }

/* ---------- FR | EN language switch ---------- */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; padding: 2px; border-radius: 980px; cursor: pointer;
  background: transparent; border: 1px solid var(--grey-300); font: inherit; font-size: 11px; font-weight: 600;
}
.lang-toggle span { padding: 4px 9px; border-radius: 980px; color: var(--grey-500); transition: background 0.25s, color 0.25s; }
.lang-toggle[data-current="en"] .lang-en,
.lang-toggle[data-current="fr"] .lang-fr { background: var(--grey-900); color: var(--white); }
.nav.dark .lang-toggle { border-color: rgba(255, 255, 255, 0.25); }
.nav.dark .lang-toggle span { color: rgba(255, 255, 255, 0.6); }
.nav.dark .lang-toggle[data-current="en"] .lang-en,
.nav.dark .lang-toggle[data-current="fr"] .lang-fr { background: var(--white); color: var(--black); }

/* ---------- "Our products" cards in each product's own colours ---------- */
.product-card-relix {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(109, 77, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(124, 92, 255, 0.25), transparent 60%),
    #0e0b2b;
  color: var(--white);
}
.product-card-relix p:not(.eyebrow) { color: #a9a3c9; }
.product-card-relix .eyebrow, .product-card-relix .link-arrow { color: #a58bff; }

.product-card-legalix {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(255, 106, 0, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(255, 170, 0, 0.18), transparent 60%),
    #1f0e05;
  color: var(--white);
}
.product-card-legalix p:not(.eyebrow) { color: #c9b3a3; }
.product-card-legalix .eyebrow, .product-card-legalix .link-arrow { color: #ff9a1f; }
.section-legalix .link-arrow { color: #ff7a00; }
.section-legalix .step-num { color: #ff8a1f; }
.section-legalix .stat-label { color: #c9b3a3; }
.grey-section.section-legalix { background: #fbf6f1; }

/* ---------- FALOM AI name in Orbitron (hero and menu logo) ---------- */
.brand-name, .brand-sub, .logo { font-family: "Orbitron", var(--font); }
.logo { letter-spacing: 0.14em; }
.logo span { font-weight: 500; letter-spacing: 0.06em; }

.login-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 980px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--white); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.login-relix { background: linear-gradient(135deg, #8f74ff, #5b3df0); }
.login-relix:hover { transform: scale(1.04); box-shadow: 0 12px 30px rgba(109, 77, 255, 0.35); }
.login-legalix { background: linear-gradient(135deg, #ff9a1f, #e04800); }
.login-btn.is-soon { opacity: 0.55; cursor: default; }

/* ---------- Member login: footer strip at the bottom of each product card ---------- */
#products .product-card { min-height: 560px; }
#products .product-logo { bottom: 98px; }  /* bottom of the logo lines up with "Learn more" */
#products .product-logo.legalix-logo { bottom: 100.5px; }  /* its tile has a slightly smaller margin */
.card-login {
  position: relative; z-index: 2; margin: 28px -40px -48px; padding: 20px 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.card-login > span:first-child { font-size: 15px; font-weight: 500; opacity: 0.8; }
/* "Learn more" makes the whole card clickable, under the login button */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.product-card .card-link { position: static; }
.login-legalix:hover { transform: scale(1.04); box-shadow: 0 12px 30px rgba(255, 122, 0, 0.35); }



/* Contact form: spam trap (hidden from people) and error message */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #ffb4a8; font-size: 15px; }
.form button:disabled { opacity: 0.6; cursor: default; }
