/* ==========================================================================
   Oscar Studio — home page styles
   Page-specific styles for the landing page. Shared layout (header, footer,
   buttons, pill, .section, .cta-band) comes from the global rssite.css.
   ========================================================================== */

/* Hero
   ------------------------------------------------------------------------ */
.hero {
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-top {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero .pill {
    opacity: 0;
    animation: fadeUp .6s ease forwards;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.08;
    margin: 28px 0 22px;
    opacity: 0;
    animation: fadeUp .7s ease .1s forwards;
}

.hero h1 span {
    color: var(--blue-500);
}

.hero p {
    font-size: 18px;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeUp .7s ease .2s forwards;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    opacity: 0;
    animation: fadeUp .7s ease .3s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats row
   ------------------------------------------------------------------------ */
.stats-row {
    margin-top: 72px;
    background: var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 44px 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    animation: fadeUp .7s ease .4s forwards;
}

.glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.glow-1 {
    width: 520px;
    height: 520px;
    left: 8%;
    top: 50%;
    background: radial-gradient(circle, rgba(45, 108, 181, .30), transparent 70%);
    animation: drift1 16s ease-in-out infinite;
}

.glow-2 {
    width: 420px;
    height: 420px;
    right: 6%;
    top: 55%;
    background: radial-gradient(circle, rgba(45, 108, 181, .20), transparent 70%);
    animation: drift2 18s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-46%, -54%) scale(1.06); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(50%, -50%) scale(1); }
    50% { transform: translate(54%, -46%) scale(1.05); }
}

.stat {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.stat b {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.stat span {
    display: block;
    font-size: 14px;
    color: #A9BFDA;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .glow-1, .glow-2 {
        animation: none;
    }

    .hero .pill, .hero h1, .hero p, .hero-cta, .stats-row {
        animation: none;
        opacity: 1;
    }
}

/* Services grid
   ------------------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: transform .18s, box-shadow .18s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 42, 74, .08);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-2);
    font-size: 14.5px;
    margin-bottom: 18px;
}

.service-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Cases grid
   ------------------------------------------------------------------------ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.case-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 42, 74, .08);
    border-color: var(--blue-500);
}

.case-tag {
    display: inline-flex;
    width: fit-content;
    background: var(--surface);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.case-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.case-row {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
}

.case-row b {
    color: var(--navy-900);
    font-weight: 700;
    min-width: 52px;
    flex-shrink: 0;
}

.case-row span {
    color: var(--text-2);
}

.case-divider {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.case-cta {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.case-card:hover .case-cta {
    gap: 10px;
    transition: gap .18s;
}

.case-footer {
    text-align: center;
    margin-top: 40px;
}

/* Founder
   ------------------------------------------------------------------------ */
.founder {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.founder-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 48px;
    overflow: hidden;
}

.founder-photo.has-image {
    background: var(--surface);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--blue-600);
    margin-bottom: 10px;
}

.founder h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.founder p {
    color: var(--text-2);
    font-size: 15.5px;
    margin-bottom: 10px;
}

.founder ul {
    list-style: none;
    margin-top: 18px;
}

.founder li {
    font-size: 14.5px;
    color: var(--text-2);
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.founder li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
}

/* Testimonials slider
   ------------------------------------------------------------------------ */
.testi-slider {
    position: relative;
}

.testi-track-wrap {
    overflow: hidden;
}

.testi-track {
    display: flex;
    gap: 22px;
    transition: transform .4s ease;
}

.testi-card {
    flex: 0 0 calc((100% - 44px) / 3);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.testi-quote {
    font-size: 14.5px;
    color: var(--text-1);
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Manrope', sans-serif;
    flex-shrink: 0;
}

.testi-name {
    font-size: 14px;
    font-weight: 700;
}

.testi-role {
    font-size: 12.5px;
    color: var(--text-3);
}

.testi-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.testi-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}

.testi-arrow:hover {
    border-color: var(--navy-800);
    background: var(--surface);
}

.testi-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--navy-900);
}

.testi-dots {
    display: flex;
    gap: 8px;
}

.testi-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background .15s, width .15s;
}

.testi-dot.active {
    background: var(--blue-500);
    width: 20px;
    border-radius: 4px;
}

/* Tech stack band
   ------------------------------------------------------------------------ */
.stack-band {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.stack-text h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.stack-text p {
    color: var(--text-2);
    font-size: 14.5px;
    max-width: 380px;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 420px;
    justify-content: flex-end;
}

.tech-chip {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testi-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 56px 0 48px;
    }

    .hero h1 {
        font-size: 34px;
        margin: 22px 0 16px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta a {
        justify-content: center;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 48px;
        padding: 36px 24px;
    }

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

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

    .testi-card {
        flex: 0 0 100%;
    }

    .founder {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 28px;
    }

    .founder-photo {
        max-width: 160px;
        font-size: 32px;
    }

    .founder h3 {
        font-size: 24px;
    }

    .stack-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
        gap: 24px;
    }

    .stack-chips {
        justify-content: flex-start;
    }

    .testi-controls {
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 28px;
    }

    .stat b {
        font-size: 26px;
    }
}
