/* ==========================================================
   ReaktCode — Design v2
   ========================================================== */
:root {
    --coral: #E8574A;
    --coral-2: #FF8A5B;
    --sun: #FFC857;
    --mint: #3DDBB0;
    --sky: #5BA8FF;
    --ink: #12152B;
    --ink-2: #1C2142;
    --ink-3: #2A3059;
    --cream: #F6F1E9;
    --white: #ffffff;
    --muted: #A9AECB;
    --radius: 22px;
    --font: 'Lexend', system-ui, sans-serif;
    --shadow-glow: 0 20px 60px -15px rgba(232, 87, 74, .55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--ink);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; }

.gradient-text {
    background: linear-gradient(100deg, var(--coral) 0%, var(--coral-2) 45%, var(--sun) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- HEADER ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px clamp(20px, 5vw, 64px);
    background: rgba(18, 21, 43, .6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: transform .4s ease;
}
.header.hidden { transform: translateY(-100%); }
.logo-img { filter: invert(1) brightness(1.2); height: 40px; width: auto; }
.logo-text { font-weight: 700; font-size: 1.5rem; color: var(--coral); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-weight: 400; font-size: .95rem; color: #dfe2f5; position: relative; transition: color .2s; }
.nav a:not(.btn-login)::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--coral); transition: width .3s;
}
.nav a:not(.btn-login):hover { color: #fff; }
.nav a:not(.btn-login):hover::after { width: 100%; }
.btn-login {
    background: linear-gradient(135deg, var(--coral), var(--coral-2));
    color: #fff !important; font-weight: 600; padding: 11px 22px; border-radius: 999px;
    box-shadow: 0 8px 24px -8px rgba(232,87,74,.8);
    transition: transform .25s, box-shadow .25s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(232,87,74,.9); }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
    position: relative; min-height: 100vh;
    display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px);
    padding: 130px clamp(20px, 6vw, 90px) 90px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(232,87,74,.28), transparent 60%),
        radial-gradient(700px 500px at 5% 90%, rgba(91,168,255,.2), transparent 60%),
        radial-gradient(500px 400px at 50% 50%, rgba(255,200,87,.08), transparent 70%),
        var(--ink);
    overflow: hidden;
}
.hero::before { /* grille subtile */
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 12s ease-in-out infinite; pointer-events: none; }
.orb.o1 { width: 280px; height: 280px; background: var(--coral); top: 8%; right: -60px; }
.orb.o2 { width: 220px; height: 220px; background: var(--sky); bottom: 4%; left: 30%; animation-delay: -5s; opacity: .35; }

.hero-image-container { position: relative; order: 1; perspective: 1200px; }
.hero-frame {
    position: relative; border-radius: 28px; padding: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
    box-shadow: 0 40px 90px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12), var(--shadow-glow);
    transform: rotateY(6deg) rotateX(2deg);
    transition: transform .6s ease;
}
.hero-image-container:hover .hero-frame { transform: rotateY(0) rotateX(0) scale(1.02); }
.hero-img { border-radius: 22px; width: 100%; height: auto; }

/* hotspots "danger" */
.hotspot {
    position: absolute; width: 22px; height: 22px; border-radius: 50%;
    background: var(--coral); border: 3px solid #fff;
    transform: translate(-50%, -50%); cursor: pointer; z-index: 3;
}
.hotspot::before, .hotspot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--coral); animation: ping 2s ease-out infinite;
}
.hotspot::after { animation-delay: 1s; }
.hotspot span {
    position: absolute; left: 50%; bottom: 150%; transform: translateX(-50%) scale(.8);
    background: #fff; color: var(--ink); font-size: .75rem; font-weight: 600; white-space: nowrap;
    padding: 5px 12px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none;
}
.hotspot:hover span, .hotspot:focus span { opacity: 1; transform: translateX(-50%) scale(1); }
.hs-1 { left: 68%; top: 42%; }
.hs-2 { left: 92%; top: 30%; background: var(--sun); }
.hs-3 { left: 20%; top: 46%; background: var(--sky); }
.hs-2::before, .hs-2::after { border-color: var(--sun); }
.hs-3::before, .hs-3::after { border-color: var(--sky); }

.chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 16px; font-size: .85rem; font-weight: 600;
    background: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.25); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
    animation: float 6s ease-in-out infinite;
}
.chip i { font-style: normal; font-size: 1.2rem; }
.chip.c1 { top: -18px; left: -18px; }
.chip.c2 { bottom: 30px; right: -22px; animation-delay: -3s; }

.hero-text { position: relative; z-index: 2; order: 2; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 24px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: pulse 2s infinite; }
.hero-text h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; margin-bottom: 26px; }
.hero-text h1 span { display: block; }
.hero-text h1 span:nth-child(2) { padding-left: .5em; }
.hero-text h1 span:nth-child(3) { padding-left: 1em; }
.hero-text p { font-size: 1.15rem; color: #cfd3ee; max-width: 520px; margin-bottom: 36px; font-weight: 300; }

.hero-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; max-width: 580px; }
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    box-sizing: border-box; min-height: 58px; width: 100%; padding: 0 20px;
    font-size: 1rem; line-height: 1.2; white-space: nowrap; border-radius: 999px; text-decoration: none; text-align: center;
}
.btn-primary { width: auto; min-width: 260px; padding: 0 34px; }
.hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; min-width: 0; padding: 0 18px; }
.btn-primary {
    position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    background: linear-gradient(135deg, var(--coral), var(--coral-2));
    color: #fff; font-weight: 600; border-radius: 999px;
    box-shadow: var(--shadow-glow); transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.btn-primary::before {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
    transform: skewX(-20deg); animation: shine 3.5s infinite;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); }
.btn-ghost {
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,.3); transition: .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.term-tooltip { position: relative; color: var(--coral-2); font-weight: 600; border-bottom: 2px dashed var(--coral-2); cursor: help; }
.tooltip-text {
    position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%); width: 230px;
    background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 12px; font-size: .8rem; font-weight: 400;
    opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 12px 30px rgba(0,0,0,.4); text-align: center;
}
.term-tooltip:hover .tooltip-text, .term-tooltip:focus .tooltip-text { opacity: 1; visibility: visible; }

.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrolldot 1.8s infinite; }

/* ---------- MARQUEE ---------- */
.marquee { background: var(--coral); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.03); margin: -20px 0 0; position: relative; z-index: 5; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.marquee-track span::after { content: "✦"; margin-left: 48px; opacity: .7; }

/* ---------- SECTIONS COMMUNES ---------- */
section { position: relative; }
.container, .axes-container, .faq-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2, .axes h2, .how-it-works h2, .faq h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; margin-bottom: 14px; }
.section-subtitle { color: var(--muted); font-size: 1.1rem; font-weight: 300; }
.tag { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-2); margin-bottom: 14px; font-weight: 600; }

/* ---------- AXES (bento) ---------- */
.axes { padding: 150px 0 110px; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.axes-container h2 { text-align: center; margin-bottom: 64px; }
.axes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.axe-card {
    --accent: var(--coral);
    position: relative; grid-column: span 3; padding: 34px; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.1);
    transition: transform .4s, border-color .4s, box-shadow .4s;
}
.axe-card:nth-child(1) { grid-column: span 4; --accent: var(--coral); }
.axe-card:nth-child(2) { grid-column: span 2; --accent: var(--sun); }
.axe-card:nth-child(3) { grid-column: span 2; --accent: var(--mint); }
.axe-card:nth-child(4) { grid-column: span 4; --accent: var(--sky); }
.axe-card::before {
    content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .25; transition: opacity .4s, transform .6s;
}
.axe-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 30px 60px -25px var(--accent); }
.axe-card:hover::before { opacity: .55; transform: scale(1.3); }
.axe-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; position: relative; }
.axe-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.axe-icon svg { width: 28px; height: 28px; }
.axe-code { font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); letter-spacing: .06em; }
.axe-card h3 { font-size: 1.5rem; margin-bottom: 12px; position: relative; }
.axe-card p { color: #c3c7e3; font-weight: 300; margin-bottom: 22px; position: relative; max-width: 480px; }
.axe-link { text-decoration: none; font-weight: 600; color: var(--accent); position: relative; display: inline-block; transition: transform .25s; }
.axe-link:hover { transform: translateX(6px); }

/* ---------- COMMENT ÇA MARCHE ---------- */
.how-it-works { padding: 110px 0; background: var(--cream); color: var(--ink); overflow: hidden; }
.how-it-works .section-subtitle { color: #5b6082; }
.how-it-works h2 { text-align: center; }
.how-it-works .section-subtitle { text-align: center; margin-bottom: 70px; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.steps-grid::before { content: ""; position: absolute; top: 62px; left: 16%; right: 16%; border-top: 3px dashed rgba(232,87,74,.4); z-index: 0; }
.step-card {
    position: relative; z-index: 1; background: #fff; border-radius: var(--radius); padding: 36px 30px;
    box-shadow: 0 20px 50px -25px rgba(18,21,43,.35); transition: transform .35s, box-shadow .35s;
}
.step-card:hover { transform: translateY(-10px) rotate(-.8deg); box-shadow: 0 35px 70px -25px rgba(232,87,74,.5); }
.step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: #fff; box-shadow: 0 12px 24px -8px rgba(232,87,74,.7); }
.step-icon svg { width: 30px; height: 30px; }
.step-number { font-size: 4.5rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(232,87,74,.35); }
.step-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step-card p { color: #5b6082; font-weight: 300; }

/* ---------- STATS ---------- */
.stats { padding: 80px 0; background: linear-gradient(135deg, var(--coral), #c9403a 60%, #8d2c58); color: #fff; }
.stats-grid { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1; }
.stat span { font-size: .95rem; opacity: .9; font-weight: 300; }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; background: var(--ink); }
.faq-container { max-width: 820px; }
.faq h2, .faq .section-subtitle { text-align: center; }
.faq .section-subtitle { margin-bottom: 50px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: .3s; overflow: hidden; }
.faq-item[open] { background: rgba(232,87,74,.1); border-color: rgba(232,87,74,.5); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 28px; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 1.4rem; transition: .3s; }
.faq-item[open] summary::after { content: "–"; background: var(--coral); transform: rotate(180deg); }
.faq-answer { padding: 0 28px 24px; color: #cfd3ee; font-weight: 300; }

/* ---------- CTA FINAL ---------- */
.cta-band { padding: 40px clamp(20px, 5vw, 60px) 110px; background: var(--ink); }
.cta-box {
    max-width: 1100px; margin: 0 auto; text-align: center; padding: clamp(40px, 7vw, 80px) 30px; border-radius: 36px; position: relative; overflow: hidden;
    background: radial-gradient(600px 300px at 20% 0%, rgba(255,200,87,.35), transparent 60%), radial-gradient(600px 300px at 90% 100%, rgba(91,168,255,.3), transparent 60%), linear-gradient(135deg, var(--coral), #b8366a);
    box-shadow: 0 40px 100px -30px rgba(232,87,74,.7);
}
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.cta-box p { margin-bottom: 34px; opacity: .92; font-weight: 300; font-size: 1.1rem; }
.cta-box .btn-primary { background: #fff; color: var(--coral); box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); }
.cta-box .btn-primary::before { background: linear-gradient(100deg, transparent, rgba(232,87,74,.25), transparent); }

/* ---------- FOOTER ---------- */
.footer { background: #0b0d1e; padding: 80px 0 28px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-desc { color: var(--muted); font-weight: 300; margin-top: 14px; font-size: .95rem; }
.footer h4 { font-size: 1rem; margin-bottom: 18px; color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: .92rem; font-weight: 300; }
.footer-links a { text-decoration: none; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--coral-2); padding-left: 4px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,219,176,.7); } 70% { box-shadow: 0 0 0 10px rgba(61,219,176,0); } 100% { box-shadow: 0 0 0 0 rgba(61,219,176,0); } }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 140%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
    .menu-toggle { display: block; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 26px; background: rgba(18,21,43,.97); border-bottom: 1px solid rgba(255,255,255,.1); display: none; }
    .nav.active { display: flex; }
    .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: center; }
    .hero-text { order: 1; } .hero-image-container { order: 2; }
    .hero-text p { margin-inline: auto; } .hero-cta { justify-content: center; }
    .hero-text h1 span:nth-child(n) { padding-left: 0; }
    .hero-cta { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
    .hero-frame { transform: none; }
    .chip.c1 { left: 6px; } .chip.c2 { right: 6px; }
    .scroll-hint { display: none; }
    .axes-grid { grid-template-columns: 1fr; }
    .axe-card, .axe-card:nth-child(n) { grid-column: span 1; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
