/* ============================================================
   Shapiens Labs — style.css
   Pixel-faithful recreation of shapiens.com
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1a1a2e;
    line-height: 1.6;
}

/* ── STICKY TOP HEADER NAV ──────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 56px;
}

.site-header .brand {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-header nav a {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: #1a1a2e;
}

.site-header nav a.active {
    color: #b45309;
    border-bottom: 2px solid #b45309;
    padding-bottom: 2px;
}

/* ── LAYOUT UTILITIES ──────────────────────────────────────── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ── HERO VIDEO ────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background: #0d1b2a;
}

.hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
}

.hero-overlay h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.hero-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* ── TRANSFORM SECTION (home) ─────────────────────────────── */
.transform-section {
    padding: 96px 0 0;
}

.transform-section h2 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 36px;
    letter-spacing: -0.025em;
    color: #1a1a2e;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.col-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.col-body {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.7;
}

/* ── NEURON IMAGE ──────────────────────────────────────────── */
.neuron-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    margin-top: 52px;
    margin-bottom: 0;
    height: 260px;
    object-fit: cover;
}

/* ── OUR SERVICES HEADING ─────────────────────────────────── */
.services-header {
    text-align: center;
    padding: 100px 0 56px;
}

.services-header h1,
.services-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    color: #1a1a2e;
}

.services-header p {
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── SERVICE CARDS (light blue header + image below) ─────── */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-bottom: 80px;
}

.service-card {
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-header {
    background: #dbeafe;
    padding: 24px 28px 22px;
}

.service-card-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.service-card-header p {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.6;
}

.service-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* ── APP CARDS (image top, title+arrow below, no bg) ─────── */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 48px;
    padding-bottom: 80px;
}

.app-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.app-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 0 0;
}

.app-card-footer-text h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.app-card-footer-text p {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}

.app-card-arrow {
    font-size: 1.1rem;
    color: #1a1a2e;
    flex-shrink: 0;
    margin-left: 12px;
    margin-top: 3px;
}

/* ── APPS PAGE HEADER ─────────────────────────────────────── */
.page-header {
    text-align: center;
    padding: 96px 0 64px;
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    color: #1a1a2e;
}

.page-header p {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ── ABOUT SPLIT ──────────────────────────────────────────── */
.about-section {
    padding: 96px 0 72px;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 56px;
    align-items: start;
}

.about-split h1 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    color: #1a1a2e;
    line-height: 1.2;
}

.about-split p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.75;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* ── GET IN TOUCH ─────────────────────────────────────────── */
.contact-section {
    padding: 0 0 96px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 72px;
    align-items: start;
}

.contact-grid h2 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    color: #1a1a2e;
}

.contact-grid>div>p {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.contact-email {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
}

/* ── FORM ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ── FAQ LAYOUT ───────────────────────────────────────────── */
.faq-section {
    padding: 80px 0 96px;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 72px;
    align-items: start;
}

.faq-title {
    font-size: 3.8rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #1a1a2e;
    line-height: 1;
}

.faq-list {
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    padding: 32px 0;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.65;
}

/* ── JOIN US ──────────────────────────────────────────────── */
.join-section {
    text-align: center;
    padding: 96px 0;
}

.join-section h2 {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.join-section>.join-sub {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 36px;
}

.join-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
    gap: 0;
}

.join-form label {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 8px;
    text-align: left;
}

.join-form input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 16px;
}

.join-form input:focus {
    border-color: #3b82f6;
}

.join-form button {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 40px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    align-self: center;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}

.join-form button:hover {
    background: #2d2d4e;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 56px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}

footer h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

footer p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
}

footer a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

.footer-email-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-email-form label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-email-form input {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.footer-email-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.footer-email-form input:focus {
    border-color: rgba(255, 255, 255, 0.8);
}

.footer-email-form button {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    align-self: flex-start;
    font-family: inherit;
    transition: background 0.2s;
}

.footer-email-form button:hover {
    background: #1d4ed8;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {

    .two-col,
    .service-grid,
    .app-grid,
    .about-split,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-images {
        grid-template-columns: 1fr 1fr;
    }

    .site-header {
        padding: 0 20px;
    }

    .site-header nav {
        gap: 20px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    .faq-title {
        font-size: 2.5rem;
    }
}