/* Tiprino Website design landing — aligned with home cinematic theme */

.web {
    --dash-ink: #0b1220;
    --dash-muted: #5b6573;
    --dash-line: rgba(11, 18, 32, 0.08);
    --dash-soft: #f5f7f9;
    --dash-brand: var(--color-brand, #05567c);
    --dash-brand-hover: var(--color-brand-hover, #044a6a);
    overflow-x: clip;
    color: var(--dash-ink);
    background: #fff;
    font-family: var(--font-primary);
}

.web .btn {
    cursor: pointer;
    border-radius: 0.55rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.web .btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.web .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

.web .btn--primary:hover { transform: translateY(-1px); }

.web [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.web [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Hero */
.web-hero {
    position: relative;
    min-height: 88svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height, 72px) + 2.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    color: #fff;
    isolation: isolate;
}

.web-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #0b1220;
}

.web-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: webKenBurns 18s ease-out forwards;
}

.web-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 16, 28, 0.45) 0%, rgba(8, 16, 28, 0.3) 40%, rgba(8, 16, 28, 0.78) 100%),
        linear-gradient(270deg, rgba(5, 86, 124, 0.25) 0%, transparent 50%);
}

.web-hero__layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.web-hero__kicker {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(215, 234, 243, 0.95);
}

.web-hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.55rem, 3.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.95);
}

.web-hero__subtitle {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.82);
}

.web-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.web-hero__actions .btn--primary {
    background: #fff;
    color: var(--dash-brand);
    border: 1px solid #fff;
}

.web-hero__actions .btn--primary:hover {
    background: #f3f7fa;
    color: var(--dash-brand-hover);
}

.web-hero__aside {
    display: flex;
    justify-content: center;
}

.web-orb {
    position: relative;
    width: min(100%, 240px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    animation: webDrift 9s ease-in-out infinite;
}

.web-orb__ring {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.web-orb__ring--a {
    inset: 4%;
    border-style: dashed;
    animation: webSpin 14s linear infinite;
}

.web-orb__ring--b {
    inset: 20%;
    animation: webSpin 10s linear infinite reverse;
    border-color: rgba(167, 214, 232, 0.4);
    background: radial-gradient(circle, rgba(5, 86, 124, 0.2), transparent 70%);
}

.web-orb__core {
    position: relative;
    z-index: 1;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-secondary);
    font-weight: 800;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

/* Sections */
.web-section {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.web-section--soft {
    background: var(--dash-soft);
    border-block: 1px solid var(--dash-line);
}

.web-section__head {
    max-width: 38rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.web-section__head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.web-section__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.web-section__desc {
    margin: 0;
    color: var(--dash-muted);
    line-height: 1.8;
    font-size: 1.02rem;
}

.web-section__more {
    color: var(--dash-brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.web-section__more:hover { border-bottom-color: var(--dash-brand); }

.web-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--dash-line);
}

.web-list__item {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--dash-line);
}

.web-list__num {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dash-brand);
    padding-top: 0.2rem;
}

.web-list__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
}

.web-list__text {
    margin: 0;
    color: var(--dash-muted);
    line-height: 1.8;
    max-width: 40rem;
}

.web-rows {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.web-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
}

.web-row--reverse { direction: ltr; }
.web-row--reverse .web-row__copy { direction: rtl; }

.web-row__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0.4rem;
    background: #dfe6ec;
}

.web-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.web-row:hover .web-row__media img { transform: scale(1.03); }

.web-row__label {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--dash-brand);
}

.web-row__title {
    margin: 0 0 0.7rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
    letter-spacing: -0.02em;
}

.web-row__text {
    margin: 0;
    color: var(--dash-muted);
    line-height: 1.85;
    max-width: 28rem;
}

.web-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.web-step {
    padding: 1.25rem 1.1rem;
    border: 1px solid var(--dash-line);
    border-radius: 0.75rem;
    background: #fff;
}

.web-step__num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dash-brand);
    margin-bottom: 0.55rem;
}

.web-step__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-secondary);
    font-size: 1.05rem;
}

.web-step__text {
    margin: 0;
    color: var(--dash-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.web .case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.web .case-card {
    background: #fff;
    border: 1px solid var(--dash-line);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.web .case-card__title {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.web .case-card__title a {
    color: inherit;
    text-decoration: none;
}

.web .case-card__title a:hover { color: var(--dash-brand); }

.web .case-card__tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--dash-brand);
    margin-bottom: 0.7rem;
}

.web .case-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--dash-muted);
    margin-bottom: 0.25rem;
}

.web .case-card__text {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    line-height: 1.7;
}

.web .case-card__link {
    color: var(--dash-brand);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.web-note {
    margin: 1.75rem 0 0;
    color: var(--dash-muted);
    font-size: 0.95rem;
}

.web-note a {
    color: var(--dash-brand);
    text-decoration: none;
}

.web-note a:hover { text-decoration: underline; }

.web-faq {
    max-width: 46rem;
    display: grid;
    gap: 0.65rem;
}

.web-faq__item {
    border: 1px solid var(--dash-line);
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.2rem 1rem;
}

.web-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 1rem 0;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1.02rem;
}

.web-faq__q::-webkit-details-marker { display: none; }

.web-faq__a {
    margin: 0 0 1rem;
    color: var(--dash-muted);
    line-height: 1.8;
}

.web-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.web-path {
    padding: 1.35rem 1.2rem;
    border-top: 2px solid var(--dash-brand);
}

.web-path__title {
    margin: 0 0 0.45rem;
    font-family: var(--font-secondary);
    font-size: 1.1rem;
}

.web-path__text {
    margin: 0 0 0.85rem;
    color: var(--dash-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.web-path__link {
    color: var(--dash-brand);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.web-path__link:hover { border-bottom-color: var(--dash-brand); }

.web-cta {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(5, 86, 124, 0.1), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--dash-soft) 100%);
    border-top: 1px solid var(--dash-line);
}

.web-cta__inner { max-width: 36rem; }

.web-cta__title {
    margin: 0 0 0.7rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    letter-spacing: -0.03em;
}

.web-cta__desc {
    margin: 0 0 1.4rem;
    color: var(--dash-muted);
    line-height: 1.8;
}

.web-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@keyframes webKenBurns {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

@keyframes webSpin { to { transform: rotate(360deg); } }

@keyframes webDrift {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .web [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .web-hero__image,
    .web-orb,
    .web-orb__ring {
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .web-row,
    .web-row--reverse {
        grid-template-columns: 1fr;
        direction: rtl;
    }
    .web-steps { grid-template-columns: repeat(2, 1fr); }
    .web-paths { grid-template-columns: 1fr; }
    .web .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .web-hero {
        min-height: auto;
        padding: calc(var(--nav-height, 64px) + 1.75rem) 0 2.75rem;
    }
    .web-hero__layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .web-hero__aside { justify-content: center; width: 100%; }
    .web-orb { width: min(46vw, 180px); }
}

@media (max-width: 640px) {
    .web-list__item { grid-template-columns: 3rem 1fr; }
    .web-steps,
    .web .case-grid { grid-template-columns: 1fr; }
    .web-hero__actions .btn {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
    .web-hero__title { white-space: normal; }
}
