/* =========================================================
   RAINWATER LABS — HOME PAGE
   3 vertical snap sections + horizontal hero scroller
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111;
    background: #fff;
    overflow: hidden; /* the inner snap-container handles scroll */
}

/* The snap container is what actually scrolls */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.snap-container::-webkit-scrollbar { display: none; }

.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 60px 60px;
    overflow: hidden;
    position: relative;
}

/* =========================================================
   SECTION 1 — HERO
   ========================================================= */
.hero-section { background: #ffffff; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: stretch;   /* both columns share the SAME row height */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    /* no fixed height — row height is driven by the LEFT column's content */
}

.hero-left { padding-right: 20px; }

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 3.6vw, 50px);
    font-weight: 500;
    line-height: 1.12;
    color: #111;
    margin: 0 0 22px;
}
.hero-title em {
    font-style: italic;
    font-weight: 700;
    display: block;
    margin-top: 6px;
}

.hero-sub {
    color: #555;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 30px;
    max-width: 460px;
}

/* URL input — single pill containing input + button */
.url-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 999px;
    padding: 5px 5px 5px 22px;
    max-width: 500px;
    margin-bottom: 50px;
    transition: border-color .2s, box-shadow .2s;
}
.url-wrap:focus-within {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}
.url-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #111;
    font-family: inherit;
    min-width: 0;           /* lets the input shrink inside flex */
}
.url-input::placeholder { color: #b0b0b0; }

.btn-launch {
    background: #111;
    color: #fff;
    border: none;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    font-family: inherit;
}
.btn-launch:hover { background: #2a2a2a; }

/* Trusted block */
.trust-block { margin-top: 10px; }
.trust-label {
    font-size: 11px;
    letter-spacing: 1.6px;
    color: #888;
    margin-bottom: 14px;
    font-weight: 500;
}
/* Marquee container */
.trust-logos {
    overflow: hidden;
    max-width: 480px;
    /* fade the left/right edges so logos appear/disappear softly */
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
            mask-image: linear-gradient(
        90deg,
        transparent 0,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}

/* The moving track holds two copies of the logo set */
.trust-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: marquee 22s linear infinite;
}
.trust-track:hover { animation-play-state: paused; }

.trust-track img {
    height: 26px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: .85;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }   /* exactly one set's width */
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .trust-track { animation: none; }
}

/* HERO RIGHT — horizontal scroll */
.hero-right {
    overflow: hidden;
    min-height: 0;
    align-self: stretch;
    position: relative;     /* anchor for the prev/next arrows */
}
.image-scroller {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 6px;
    cursor: grab;
    user-select: none;
}
.image-scroller.dragging { cursor: grabbing; }
.image-scroller::-webkit-scrollbar { display: none; }

.image-track {
    display: flex;
    gap: 14px;
    height: 100%;
}
.scroll-img {
    flex: 0 0 auto;
    width: clamp(450px, 42vw, 500px);
    aspect-ratio: 1 / 1;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f1f1;
    pointer-events: none; /* lets drag work over the images */
}
.scroll-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}


/* Prev / Next arrows over the scroller */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e6e6e6;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background .2s, transform .15s;
    display:none;
}

.animation-hero-right:hover .scroll-nav{display:flex}
.scroll-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.scroll-nav.prev { left: 10px}
.scroll-nav.next { right: 10px}

/* =========================================================
   SECTION 2 — SOLUTIONS
   ========================================================= */
.solutions-section { background: #fff;margin-bottom:60px;}

.solutions-wrap {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    color: #111;
    margin: 0 0 40px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
    height: 62vh;
}

.solution-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: #222;
    transition: transform .35s ease;
}
.solution-card:hover { transform: translateY(-4px); }

.solution-card1{background-position:top center;}

.solution-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%);
}
.solution-content {
    position: absolute;
    bottom: 26px;
    left: 26px;
    right: 26px;
    color: #fff;
    z-index: 2;
}
.solution-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 10px;
    letter-spacing: .3px;
}
.solution-content p {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin: 0;
    max-width:300px;
}

/* =========================================================
   SECTION 3 — LABS  +  PRODUCTS  (dark)
   ========================================================= */
.labs-section {
    background-color: #1c2731;             /* dark fallback if image is missing */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 0;
}
.labs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,25,35,.35), rgba(15,25,35,.55));
}

.labs-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 70px;
    height: 100%;
    padding: 70px 70px 50px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Vertical divider sitting in the gap between the two columns */
.labs-grid::before {
    content: '';
    position: absolute;
    top: 70px;
    bottom: 90px;
    left: 51.4%;                  /* center of the gap given 1.05fr / 1fr split */
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.labs-left, .labs-right {
    display: flex;
    flex-direction: column;
}

.labs-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(36px, 4vw, 40px);
    font-weight: 600;
    margin:0
}

.link-btn{text-decoration:none;color: rgb(17, 17, 17);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    cursor: pointer;
    font-family: inherit;
    background: rgb(255, 255, 255);
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    padding: 11px 26px;
    border-radius: 999px;
    transition: transform 0.15s, background 0.15s;}

.labs-block { margin-bottom: 26px; max-width: 520px; }
.labs-block h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
}
.labs-block p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,.92);
    margin: 0;
}

.labs-footer {
    margin-top:0;
    font-size: 11px;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.6);
    padding-top: 150px;
}

.products-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    margin: 0 0 28px;
}

.product-card { padding: 6px 0 18px; }
.product-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.product-card p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,.9);
    margin: 0 0 18px;
    max-width: 500px;
}

.product-divider {
    height: 1px;
    background: rgba(255,255,255,.18);
    margin: 14px 0;
}

.btn-pill {
    background: #fff;
    color: #111;
    border: none;
    padding: 11px 26px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: transform .15s, background .15s;
    font-family: inherit;
}
.btn-pill:hover { background: #f2f2f2; transform: translateY(-1px); }

.badge-early {
    background: #4a9eff;
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: .3px;
}

.footer-social h4{margin-top:10px;font-size:16px}

.footer-social .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social .social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: 0.3s;
}

.footer-social .social-icons a:hover {
    background: #2563eb;
    color: #fff;
    transform: translateY(-3px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .snap-section { padding: 30px 30px; }
    .labs-grid { padding: 50px 40px 30px; gap: 40px; }
}

@media (max-width: 768px) {
    .snap-container {
        scroll-snap-type: none;   /* disable snap on small screens */
    }
    .snap-section {
        height: auto;
        min-height: 100vh;
        padding: 50px 22px;
    }
    .hero-grid,
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .labs-grid::before { display: none; }   /* hide vertical divider when stacked */
    .hero-right { height: 50vh; }
    .solutions-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 14px;
    }
    .solution-card { height: 320px; }
    .url-wrap { flex-wrap: wrap; }
    .btn-launch { width: 100%; }
}