/* ============================================
   RAINCAST - Liquid Glass Design System
   ============================================ */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --bg: #f5f5f7;
    --bg-alt: #ffffff;
    --glass: rgba(255, 255, 255, 0.45);
    --glass-heavy: rgba(255, 255, 255, 0.6);
    --glass-light: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --accent: #0071e3;
    --accent-hover: #0077ED;
    --cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #0071e3, #06b6d4);
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-glass-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --inset-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --blur: blur(20px);
    --blur-light: blur(12px);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 50px;
    --nav-height: 72px;

    /* Fluid Typography */
    --fs-display: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h1: clamp(2rem, 4vw, 3.5rem);
    --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
    --fs-h3: clamp(1.125rem, 1.5vw, 1.375rem);
    --fs-body: clamp(0.9375rem, 1vw, 1.0625rem);
    --fs-small: clamp(0.8125rem, 0.9vw, 0.9375rem);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- Mesh Gradient Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.mesh-blob--1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 113, 227, 0.15);
    top: -10%;
    left: -5%;
    animation: meshFloat1 20s ease-in-out infinite;
}

.mesh-blob--2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.12);
    top: 20%;
    right: -10%;
    animation: meshFloat2 25s ease-in-out infinite;
}

.mesh-blob--3 {
    width: 450px;
    height: 450px;
    background: rgba(139, 92, 246, 0.1);
    bottom: 10%;
    left: 20%;
    animation: meshFloat3 22s ease-in-out infinite;
}

.mesh-blob--4 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.08);
    bottom: -5%;
    right: 15%;
    animation: meshFloat4 23s ease-in-out infinite;
}

@keyframes meshFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-30px, 80px) scale(0.95); }
}

@keyframes meshFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 60px) scale(0.9); }
    66% { transform: translate(40px, -40px) scale(1.05); }
}

@keyframes meshFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(70px, -50px) scale(1.08); }
    66% { transform: translate(-40px, 30px) scale(0.92); }
}

@keyframes meshFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -30px) scale(1.05); }
    66% { transform: translate(50px, 50px) scale(0.95); }
}

/* --- Glass Utility Classes --- */
.glass {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
    border-radius: var(--radius);
}

.glass-heavy {
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
    border-radius: var(--radius);
}

.glass-light {
    background: var(--glass-light);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius);
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--fs-small);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.4);
}

.btn-glass {
    background: var(--glass);
    color: var(--text);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--inset-highlight);
}

.btn-glass:hover {
    background: var(--glass-heavy);
    transform: translateY(-2px);
}

/* --- Section Common --- */
.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--fs-body);
    max-width: 560px;
    margin: 0 auto;
}

/* .gradient-text styles moved to Dynamic Enhancements section */

/* --- Scroll Reveal --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* --- Parallax GPU Acceleration --- */
.hero__container {
    will-change: transform, opacity;
}

.section > .container {
    will-change: transform;
    transform-origin: center center;
}

.mesh-blob {
    will-change: translate;
}


/* ============================================
   1. LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.loader.loader--done {
    opacity: 0;
    transform: scale(1.05);
    visibility: hidden;
    pointer-events: none;
}

.loader__panel {
    text-align: center;
    padding: 3rem 4rem;
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
    animation: loaderIn 0.6s ease-out;
}

@keyframes loaderIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.loader__logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.loader__logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader__tagline {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    margin-bottom: 1.5rem;
}

.loader__bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.loader__bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 3px;
    animation: loaderProgress 2s ease-in-out forwards;
}

@keyframes loaderProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* ============================================
   2. NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, transform 0.3s;
}

.nav--scrolled {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav--hidden {
    transform: translateY(-100%);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--nav-height) - 1.5rem);
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.nav__logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent);
}

.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 4px;
    width: 30px;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--glass-border-light);
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__mobile.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.nav__mobile a {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 0;
}

.nav__mobile a:hover {
    color: var(--accent);
}

/* ============================================
   3. HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass);
    backdrop-filter: var(--blur-light);
    -webkit-backdrop-filter: var(--blur-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: var(--fs-display);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero__stats {
    display: flex;
    gap: 2rem;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Hero Visual */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.hero__mockup {
    width: 100%;
    max-width: 420px;
    padding: 1.25rem;
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
    position: relative;
    z-index: 1;
}

.hero__mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero__mockup-dots {
    display: flex;
    gap: 5px;
}

.hero__mockup-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hero__mockup-dot--r { background: #ff5f57; }
.hero__mockup-dot--y { background: #febc2e; }
.hero__mockup-dot--g { background: #28c840; }

.hero__mockup-title {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* Mockup stats row */
.hero__mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero__mockup-stat {
    text-align: center;
    padding: 0.625rem 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.hero__mockup-stat-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.hero__mockup-stat-lbl {
    display: block;
    font-size: 0.625rem;
    color: var(--text-tertiary);
    margin-top: 0.15rem;
}

/* Mockup chart */
.hero__mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.hero__mockup-chart-bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    opacity: 0.8;
}

/* Mockup channels mini list */
.hero__mockup-channels {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.hero__mockup-ch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.375rem 0.625rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.hero__mockup-ch-dot {
    width: 6px;
    height: 6px;
    background: #28c840;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero__mockup-ch-dot--inactive {
    background: var(--text-tertiary);
}

/* Satellite cards */
.hero__sat {
    position: absolute;
    padding: 0.625rem 1rem;
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    z-index: 2;
    white-space: nowrap;
}

.hero__sat--status {
    top: 0;
    right: -16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: satFloat 5s ease-in-out infinite;
}

.hero__sat-dot {
    width: 7px;
    height: 7px;
    background: #28c840;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.5);
}

.hero__sat--analytics {
    bottom: 8px;
    left: -24px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    animation: satFloat 5s ease-in-out infinite 1.5s;
}

.hero__sat--analytics svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero__sat--analytics strong {
    color: var(--accent);
    font-weight: 700;
}

@keyframes satFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================================
   4. FEATURES (Grouped Categories - 13 Modules)
   ============================================ */
.features__categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-category {
    padding: 1.75rem;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
}

.feature-category__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.feature-category__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-category__icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.feature-category__icon--blue { background: linear-gradient(135deg, #0071e3, #40a0ff); }
.feature-category__icon--cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.feature-category__icon--purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.feature-category__icon--green { background: linear-gradient(135deg, #059669, #34d399); }

.feature-category__header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.feature-category__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-category__list li {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.feature-category__list li:hover {
    background: rgba(255, 255, 255, 0.4);
}

.feature-category__list li strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.feature-category__list li span {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Feature card description & impact metric */
.feature-category__desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-category__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: auto;
}

.feature-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 113, 227, 0.06);
    border: 1px solid rgba(0, 113, 227, 0.1);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
}

/* Features footnote */
.features__footnote {
    text-align: center;
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    margin-top: 2rem;
}

/* ============================================
   5. COMMENT CA MARCHE (Steps + Promises)
   ============================================ */
.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
}

.step__number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.step__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.step__content p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

.step__line {
    width: 2px;
    height: 24px;
    background: var(--gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Promises */
.promises {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.promise {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
    transition: transform 0.3s;
}

.promise:hover {
    transform: translateY(-4px);
}

.promise__icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.promise__icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.promise h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.promise p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   6. SECTORS
   ============================================ */
.sectors__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sector-card {
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.3s, box-shadow 0.3s;
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glass-lg);
}

.sector-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    opacity: 0.9;
    z-index: 0;
}

.sector-card > * {
    position: relative;
    z-index: 1;
}

.sector-card--hotels::before {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.12), rgba(6, 182, 212, 0.08));
}
.sector-card--hotels {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
}

.sector-card--hospitals::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
}
.sector-card--hospitals {
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
}


.sector-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.sector-card--hotels .sector-card__icon { background: rgba(0, 113, 227, 0.12); }
.sector-card--hospitals .sector-card__icon { background: rgba(16, 185, 129, 0.12); }

.sector-card__icon svg {
    width: 28px;
    height: 28px;
}

.sector-card--hotels .sector-card__icon svg { color: #0071e3; }
.sector-card--hospitals .sector-card__icon svg { color: #10b981; }

.sector-card h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.sector-card p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sector-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sector-card__tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Full-width sector cards */
.sectors__grid--full {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sector-card--full {
    min-height: auto;
    justify-content: stretch;
}

.sector-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.sector-card__text {
    display: flex;
    flex-direction: column;
}

/* Sector metrics panel */
/* ============================================
   7. AVANT / APRES (Comparison)
   ============================================ */
.comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.comparison__column {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
}

.comparison__column--before {
    border-color: rgba(239, 68, 68, 0.15);
    background: rgba(255, 255, 255, 0.35);
}

.comparison__column--after {
    border-color: rgba(34, 197, 94, 0.15);
    background: rgba(255, 255, 255, 0.5);
}

.comparison__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison__column--before .comparison__header svg {
    color: #ef4444;
}

.comparison__column--after .comparison__header svg {
    color: #22c55e;
}

.comparison__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.comparison__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.comparison__list li {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.comparison__column--before .comparison__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    opacity: 0.6;
}

.comparison__column--after .comparison__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    opacity: 0.8;
}

.comparison__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.comparison__divider-line {
    width: 1px;
    flex: 1;
    background: rgba(0, 0, 0, 0.08);
}

.comparison__divider-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0.75rem 0;
    flex-shrink: 0;
}

/* ============================================
   7b. SECURITE & CONFORMITE
   ============================================ */
.security__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.security__item {
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass), var(--inset-highlight);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
}

.security__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 113, 227, 0.08);
    margin-bottom: 1rem;
}

.security__icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.security__item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.security__item p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   8. BENEFITS / WHY RAINCAST
   ============================================ */
.benefits__content {
    max-width: 680px;
    margin: 0 auto;
}

.benefits__list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-item__check {
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item__check svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ============================================
   9. CONTACT
   ============================================ */
.contact__card {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--glass-heavy);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass-lg), var(--inset-highlight);
}

.contact__card h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    text-align: center;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact__card > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--fs-small);
    margin-bottom: 2rem;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact__group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact__group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.contact__group input,
.contact__group select,
.contact__group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-small);
    color: var(--text);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.contact__group input::placeholder,
.contact__group textarea::placeholder {
    color: var(--text-tertiary);
}

.contact__group input:focus,
.contact__group select:focus,
.contact__group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.contact__group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact__group select {
    cursor: pointer;
    color: var(--text-secondary);
}

.contact__submit {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact__status {
    text-align: center;
    font-size: var(--fs-small);
    font-weight: 500;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    display: none;
}

.contact__status--success {
    display: block;
    background: rgba(40, 200, 64, 0.1);
    color: #059669;
    border: 1px solid rgba(40, 200, 64, 0.2);
}

.contact__status--error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Contact trust badges */
.contact__trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact__trust-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.contact__trust-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ============================================
   10. FOOTER
   ============================================ */
.footer {
    padding: 2.5rem 0;
    background: var(--bg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.footer__logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__copy {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ============================================
   DYNAMIC ENHANCEMENTS
   ============================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 1001;
    transition: none;
    box-shadow: 0 0 8px rgba(0, 113, 227, 0.4);
}

/* --- Animated Gradient Text --- */
.gradient-text {
    background: linear-gradient(90deg, #0071e3, #06b6d4, #7c3aed, #0071e3);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Nav Link Hover Underline Slide --- */
.nav__link:hover::after {
    width: 100%;
}

/* --- Button Glow Pulse --- */
.hero__buttons .btn-primary {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3); }
    50% { box-shadow: 0 4px 28px rgba(0, 113, 227, 0.5), 0 0 40px rgba(0, 113, 227, 0.15); }
}

.hero__buttons .btn-primary:hover {
    animation: none;
    box-shadow: 0 6px 24px rgba(0, 113, 227, 0.4);
}

/* --- 3D Card Tilt --- */
.feature-category,
.sector-card,
.promise {
    transform-style: preserve-3d;
    perspective: 800px;
}

.feature-category.tilt-active,
.sector-card.tilt-active,
.promise.tilt-active {
    transition: box-shadow 0.3s;
}

/* --- Hero Chart Bars Staggered Animation --- */
.hero__mockup-chart-bar {
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.revealed .hero__mockup-chart-bar { transform: scaleY(1); }
.revealed .hero__mockup-chart-bar:nth-child(1) { transition-delay: 0.6s; }
.revealed .hero__mockup-chart-bar:nth-child(2) { transition-delay: 0.7s; }
.revealed .hero__mockup-chart-bar:nth-child(3) { transition-delay: 0.8s; }
.revealed .hero__mockup-chart-bar:nth-child(4) { transition-delay: 0.9s; }
.revealed .hero__mockup-chart-bar:nth-child(5) { transition-delay: 1.0s; }
.revealed .hero__mockup-chart-bar:nth-child(6) { transition-delay: 1.1s; }
.revealed .hero__mockup-chart-bar:nth-child(7) { transition-delay: 1.2s; }

/* --- Step Line Draw Animation --- */
.step__line {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease 0.3s;
}

.step.revealed ~ .step__line {
    transform: scaleY(1);
}

/* --- Satellite Cards Pulse Dot --- */
.hero__sat-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(40, 200, 64, 0.5); }
    50% { box-shadow: 0 0 12px rgba(40, 200, 64, 0.8), 0 0 24px rgba(40, 200, 64, 0.3); }
}

/* --- Feature Category Icon Hover Bounce --- */
.feature-category:hover .feature-category__icon {
    animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Promise Icon Hover Rotate --- */
.promise:hover .promise__icon {
    animation: iconSpin 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes iconSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* --- Benefit Check Hover Pulse --- */
.benefit-item:hover .benefit-item__check {
    animation: checkPulse 0.4s ease;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
    .hero__container {
        gap: 3rem;
    }

    .sectors__grid {
        gap: 1.25rem;
    }

    .comparison {
        gap: 0;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__cta.desktop-only {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hero__subtitle {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        display: none;
    }

    .features__categories {
        grid-template-columns: 1fr;
    }

    .promises {
        grid-template-columns: 1fr;
    }

    .sectors__grid {
        grid-template-columns: 1fr;
    }

    .sector-card__body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison__divider {
        flex-direction: row;
        padding: 0;
    }

    .comparison__divider-line {
        width: auto;
        height: 1px;
        flex: 1;
    }

    .comparison__divider-icon {
        margin: 0 0.75rem;
    }

    .security__grid {
        grid-template-columns: 1fr;
    }

    .contact__trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }


    .contact__row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .step {
        gap: 1rem;
    }

    /* Reduce blur for performance */
    .glass,
    .glass-heavy,
    .glass-light,
    .feature-category,
    .sector-card,
    .step,
    .promise {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: clamp(3rem, 6vw, 5rem) 0;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .sector-card {
        min-height: 260px;
        padding: 1.5rem;
    }

    .contact__card {
        padding: 1.75rem;
    }


    .loader__panel {
        padding: 2rem;
        margin: 0 1rem;
    }

    .loader__logo {
        font-size: 2rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .mesh-blob {
        animation: none !important;
        will-change: auto !important;
        translate: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__sat {
        animation: none !important;
    }

    .hero__container,
    .section > .container {
        will-change: auto !important;
        transform: none !important;
        opacity: 1 !important;
    }


    .gradient-text {
        animation: none !important;
        background: var(--gradient) !important;
        background-size: 100% 100% !important;
    }

    .hero__buttons .btn-primary {
        animation: none !important;
    }

    .hero__mockup-chart-bar {
        transform: scaleY(1) !important;
        transition: none !important;
    }

    .step__line {
        transform: scaleY(1) !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
