/* KERAA — Design System 2026 */

:root {
  --blue:      #126196;
  --blue-dk:   #0d4a73;
  --teal:      #63b49f;
  --teal-lt:   #b1d8d0;
  --dark:      #09192a;
  --dark2:     #0d2035;
  --dark3:     #112640;
  --bg:        #f2f6f9;
  --bgcard:    #ffffff;
  --text:      #0d1e2e;
  --textdim:   #3d5a6f;
  --textmuted: #6b8a9a;
  --white:     #eef2f5;
  --line:      rgba(18,97,150,0.13);
  --linedark:  rgba(99,180,159,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Syne', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── BETA BAR ─────────────────────────────── */
.beta {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 38px;
  background: var(--dark2);
  border-bottom: 1px solid var(--linedark);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
}
.beta-l { display: flex; align-items: center; gap: 10px; }
.beta-pill {
  background: var(--teal); color: var(--dark);
  font-size: 8px; font-weight: 800; letter-spacing: .22em;
  text-transform: uppercase; padding: 3px 9px; flex-shrink: 0;
}
.beta-txt { font-size: 10px; color: rgba(238,242,245,.5); letter-spacing: .06em; }
.beta-txt b { color: var(--white); }
.beta-c { font-size: 10px; color: rgba(238,242,245,.45); text-align: center; }
.beta-r { display: flex; justify-content: flex-end; }
.beta-btn {
  font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(99,180,159,.3); padding: 4px 12px;
  transition: background .2s;
}
.beta-btn:hover { background: rgba(99,180,159,.1); }

/* ── NAV ──────────────────────────────────── */
.nav {
  position: fixed; top: 38px; left: 0; right: 0; z-index: 200;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 44px;
  transition: background .3s, border-color .3s;
}
/* Light nav (inner pages) */
.nav-light {
  background: rgba(242,246,249,.97);
  border-bottom: 1px solid var(--line);
}
/* Dark nav (homepage hero) */
.nav-dark {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-dark.scrolled {
  background: rgba(9,25,42,.97);
  border-bottom: 1px solid var(--linedark);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { width: 28px; height: 29px; flex-shrink: 0; }
.nav-logo-word {
  font-size: 17px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
}
.nav-light .nav-logo-word { color: var(--text); }
.nav-dark  .nav-logo-word { color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s;
}
.nav-light .nav-link        { color: var(--textdim); }
.nav-light .nav-link:hover,
.nav-light .nav-link.active { color: var(--blue); }
.nav-dark  .nav-link        { color: rgba(238,242,245,.55); }
.nav-dark  .nav-link:hover,
.nav-dark  .nav-link.active { color: var(--white); }

.nav-cta {
  font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  background: var(--blue); color: #fff;
  padding: 8px 18px;
  transition: background .2s, transform .15s;
}
.nav-cta:hover { background: #1a7ab8; transform: translateY(-1px); }
.nav-dark .nav-cta { background: var(--teal); color: var(--dark); }
.nav-dark .nav-cta:hover { background: #7ecbb8; }

.mob-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.mob-toggle span { display: block; width: 22px; height: 1.5px; }
.nav-light .mob-toggle span { background: var(--text); }
.nav-dark  .mob-toggle span { background: var(--white); }

.mob-menu {
  display: none;
  position: fixed; top: 96px; left: 0; right: 0; z-index: 190;
  background: var(--bgcard); border-bottom: 1px solid var(--line);
  flex-direction: column;
}
.mob-menu.open { display: flex; }
.mob-menu a { padding: 13px 28px; font-size: 13px; color: var(--textdim); }
.mob-menu a.nav-cta { margin: 12px 28px; text-align: center; padding: 10px; }

@media (max-width:860px) {
  .nav-links { display: none; }
  .mob-toggle { display: flex; }
}

/* ── HERO ──────────────────────────────────
   Key design decision:
   • section is a simple block, NOT a flex container
   • title sits at top with padding-top that clears beta(38)+nav(58)+breathing room
   • NO height constraint that could clip text
   • The section background fills the viewport via min-height
──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  overflow: hidden;           /* clips canvas/overlay only, NOT the text — text is above via z-index */
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 20% 48%, rgba(18,97,150,.22) 0%, transparent 68%),
    radial-gradient(ellipse 42% 38% at 76% 22%, rgba(99,180,159,.08) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(9,25,42,0) 40%, rgba(9,25,42,.9) 100%);
  pointer-events: none;
}
.hero-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-52%);
  width: min(84vw,1032px); opacity: .042; pointer-events: none;
}
/* The text lives in a regular block above the absolute elements */
.hero-body {
  position: relative; z-index: 2;
  padding: 0; /* layout handled inline — 50/50 flex split */
}
.hero-title {
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;           /* tight but >= 1 so line box >= font size */
  color: var(--white);
  margin-bottom: 0;
}
.hero-title .t2 { color: rgba(238,242,245,.48); }
.hero-title .t3 {
  color: var(--teal);
  /* The descender of "g" extends ~0.2em below baseline.
     padding-bottom on an inline element doesn't help.
     Solution: wrap t3 in a block with margin-bottom = 0,
     and ensure hero-body padding-bottom provides the space. */
}
.hero-title span { display: block; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 52px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  opacity: .4; animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll span {
  font-size: 8px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--white);
}
.hero-scroll::after {
  content: ''; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--teal), transparent);
}
@keyframes bob {
  0%,100% { opacity: .38; transform: translateY(0); }
  50%      { opacity: .65; transform: translateY(5px); }
}

/* ── TICKER ────────────────────────────────── */
.ticker {
  background: var(--dark2);
  border-bottom: 1px solid var(--linedark);
  overflow: hidden;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 36px;
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(238,242,245,.42);
}
.ticker-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--teal); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HEADER (inner pages) ──────────────── */
.page-hdr {
  padding: 64px 44px 52px; /* topbar(48px) + breathing room */
  background: var(--dark2);
  border-bottom: 1px solid var(--linedark);
}
.page-hdr h1 {
  font-size: clamp(36px,5vw,60px); font-weight: 300;
  letter-spacing: -.01em; color: var(--white); margin-bottom: 10px;
}
.page-hdr p { font-size: 13px; color: rgba(238,242,245,.48); max-width: 520px; }

/* ── SECTIONS ────────────────────────────────── */
.sec       { padding: 72px 0; }
.sec-alt   { background: var(--bgcard); }
.sec-dark  { background: var(--dark2); }
.wrap      { max-width: 1160px; margin: 0 auto; padding: 0 44px; }

.sec-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.sec-label::before { content: ''; width: 18px; height: 1px; background: var(--teal); }
.sec-title {
  font-size: clamp(26px,3vw,40px); font-weight: 300;
  letter-spacing: -.01em; color: var(--text); margin-bottom: 12px;
}
.sec-title-lt { color: var(--white); }
.sec-sub  { font-size: 13px; color: var(--textdim); line-height: 1.72; }
.sec-sub-lt { color: rgba(238,242,245,.48); }
.sec-hdr  { max-width: 600px; margin-bottom: 48px; }

/* ── CARD GRID ───────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.card {
  background: var(--bgcard); padding: 36px 32px;
  position: relative; overflow: hidden; transition: background .25s;
}
.card:hover { background: var(--bg); }
.card-dk { background: var(--dark3); }
.card-dk:hover { background: var(--dark2); }
.card-n {
  position: absolute; top: 14px; right: 18px;
  font-size: 54px; font-weight: 800; color: rgba(18,97,150,.07); pointer-events: none;
}
.card-icon { width: 28px; height: 28px; margin-bottom: 20px; color: var(--teal); }
.card-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.card-title { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.card-dk .card-title { color: var(--white); }
.card-body { font-size: 12px; line-height: 1.72; color: var(--textdim); }
.card-dk .card-body { color: rgba(238,242,245,.48); }
.card-tag { display: inline-block; margin-top: 12px; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(99,180,159,.3); padding: 3px 8px; }

/* ── SPLIT FEATURE ───────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.split-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.split-text-r { border-right: none; border-left: 1px solid var(--line); }
.split-visual { background: var(--dark2); display: flex; align-items: center; justify-content: center; padding: 28px; min-height: 360px; }
.split-visual img { width: 100%; border: 1px solid var(--linedark); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.feat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; color: var(--textdim); }
.feat-list li::before { content: ''; width: 16px; height: 1px; background: var(--teal); flex-shrink: 0; }

/* ── SCREENSHOTS ────────────────────────────── */
.scr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scr-item { border: 1px solid var(--line); overflow: hidden; }
.scr-item img { width: 100%; transition: transform .4s; }
.scr-item:hover img { transform: scale(1.02); }
.scr-cap { padding: 14px 18px; background: var(--bgcard); border-top: 1px solid var(--line); }
.scr-cap h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.scr-cap p  { font-size: 11px; color: var(--textmuted); }

/* ── PRICING ─────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.price-card { background: var(--bgcard); padding: 44px 40px; position: relative; }
.price-card-feat { background: var(--dark2); }
.price-badge { position: absolute; top: 20px; right: 22px; font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; background: var(--teal); color: var(--dark); padding: 3px 9px; }
.price-eye { font-size: 8.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.price-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.price-card-feat .price-name { color: var(--white); }
.price-desc { font-size: 12px; color: var(--textdim); line-height: 1.6; margin-bottom: 28px; }
.price-card-feat .price-desc { color: rgba(238,242,245,.48); }
.price-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 32px; }
.price-amt { font-size: 52px; font-weight: 300; letter-spacing: -.02em; color: var(--text); line-height: 1; }
.price-card-feat .price-amt { color: var(--white); }
.price-cur { font-size: 20px; font-weight: 300; color: var(--teal); }
.price-per { font-size: 11px; color: var(--textmuted); align-self: flex-end; padding-bottom: 4px; }
.price-card-feat .price-per { color: rgba(238,242,245,.38); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 32px; }
.price-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--textdim); }
.price-card-feat .price-feats li { color: rgba(238,242,245,.56); }
.price-feats li::before { content: ''; width: 14px; height: 1px; background: var(--teal); flex-shrink: 0; margin-top: 8px; }
.price-seats { margin-top: 12px; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--textmuted); display: flex; align-items: center; gap: 7px; }
.price-card-feat .price-seats { color: rgba(238,242,245,.32); }
.price-seats::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

/* ── FONDATEUR ───────────────────────────────── */
.fond-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.fond-photo { position: sticky; top: 110px; }
.fond-photo img { width: 100%; border: 1px solid var(--line); }
.fond-name { font-size: 26px; font-weight: 600; letter-spacing: -.01em; color: var(--text); margin-bottom: 4px; }
.fond-role { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.fond-bio { display: flex; flex-direction: column; gap: 15px; margin-bottom: 24px; }
.fond-bio p { font-size: 14px; line-height: 1.78; color: var(--textdim); }
.fond-bio b { color: var(--text); font-weight: 600; }
.fond-quote { border-left: 2px solid var(--teal); padding-left: 20px; margin: 24px 0; font-size: 15px; color: var(--blue); line-height: 1.65; }
.fond-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.fond-stat { background: var(--bgcard); padding: 18px; text-align: center; }
.fond-stat-v { font-size: 28px; font-weight: 300; color: var(--blue); letter-spacing: -.01em; margin-bottom: 4px; }
.fond-stat-l { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--textmuted); }

/* ── FAQ ──────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; border: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 20px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: var(--text);
  transition: background .2s;
}
.faq-q:hover { background: var(--bg); }
.faq-q svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 26px 20px; font-size: 13px; color: var(--textdim); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ── BUTTONS ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 13px 26px; transition: background .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: var(--dark); }
.btn-teal:hover { background: #7ecbb8; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1a7ab8; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--blue); }
.btn-outline:hover { background: var(--bg); border-color: var(--blue); }
.btn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ── CTA BAND ─────────────────────────────────── */
.cta-band {
  background: var(--dark2); border-top: 1px solid var(--linedark);
  padding: 72px 44px;
}
.cta-band-in {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-title { font-size: clamp(28px,3.2vw,46px); font-weight: 300; letter-spacing: -.01em; color: var(--white); margin-bottom: 10px; }
.cta-sub { font-size: 13px; color: rgba(238,242,245,.45); max-width: 420px; line-height: 1.7; }
.cta-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.cta-note { font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(238,242,245,.22); }

/* ── FOOTER ───────────────────────────────────── */
.footer { background: var(--dark); border-top: 1px solid var(--linedark); padding: 52px 44px 0; }
.footer-in { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-desc { font-size: 11px; color: rgba(238,242,245,.35); margin-top: 14px; max-width: 240px; line-height: 1.7; }
.footer-col h5 { font-size: 8.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 11px; color: rgba(238,242,245,.35); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bot {
  max-width: 1160px; margin: 48px auto 0; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--linedark);
}
.footer-copy  { font-size: 9px; color: rgba(238,242,245,.2); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: 9px; color: rgba(238,242,245,.2); transition: color .2s; }
.footer-legal a:hover { color: var(--white); }
.footer-badge { font-size: 8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(99,180,159,.35); border: 1px solid rgba(99,180,159,.15); padding: 3px 9px; }

/* ── FADE IN ──────────────────────────────────── */
[data-f] { transition: opacity .7s ease, transform .7s ease; }
body.js-on [data-f]         { opacity: 0; transform: translateY(18px); }
body.js-on [data-f].vis     { opacity: 1; transform: none; }
body.js-on [data-f="2"].vis { transition-delay: .12s; }
body.js-on [data-f="3"].vis { transition-delay: .24s; }
body.js-on [data-f="4"].vis { transition-delay: .36s; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .fond-grid { grid-template-columns: 1fr; }
  .fond-photo { position: static; max-width: 300px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-body  { padding: 180px 24px 60px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-text { border-right: none; border-bottom: 1px solid var(--line); }
  .split-text-r { border-left: none; border-bottom: 1px solid var(--line); }
  .scr-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
  .cta-acts { align-items: flex-start; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0 20px; }
  .wrap, .page-hdr { padding-left: 20px; padding-right: 20px; }
  .beta { grid-template-columns: 1fr; height: auto; padding: 8px 16px; }
  .beta-l, .beta-r { display: none; }
}
