/* ============================================
   HOME PAGE - Modern Minimal
   ============================================ */

.home {
    --home-radius: 20px;
    --home-radius-sm: 14px;
    --home-border: rgba(17, 17, 17, 0.08);
    --home-surface: #fafafa;
    --home-brand-soft: rgba(5, 86, 124, 0.06);
    --home-brand-glow: rgba(5, 86, 124, 0.14);
    overflow-x: clip;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-brand);
    background: var(--home-brand-soft);
    border: 1px solid rgba(5, 86, 124, 0.12);
    border-radius: var(--radius-full);
}

.home-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand);
    box-shadow: 0 0 0 3px var(--home-brand-glow);
}

.home-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.home-section--alt {
    background: var(--home-surface);
    border-block: 1px solid var(--home-border);
}

.home-section__head {
    max-width: 36rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.home-section__head--center {
    margin-inline: auto;
    text-align: center;
}

.home-section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--color-black);
}

.home-section__desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
}

.home-hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    isolation: isolate;
}

.home-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(5, 86, 124, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(5, 86, 124, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.home-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-black);
    margin-bottom: 1.25rem;
}

.home-hero__title em {
    font-style: normal;
    color: var(--color-brand);
}

.home-hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.8;
    color: var(--color-gray-600);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.home-hero__actions .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

.home-hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--home-border);
}

.home-hero__metric strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: -0.02em;
    margin-bottom: 0.15rem;
}

.home-hero__metric span {
    font-size: 0.8rem;
    color: var(--color-gray-500);
}

.home-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-hero__frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--home-radius);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--home-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 48px -12px rgba(5, 86, 124, 0.12);
}

.home-hero__frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(5, 86, 124, 0.25), transparent 50%, rgba(5, 86, 124, 0.08));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.home-hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.home-hero__glow {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--home-brand-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-service {
    padding: 1.75rem;
    background: var(--color-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.home-service:hover {
    border-color: rgba(5, 86, 124, 0.2);
    box-shadow: 0 16px 40px -16px rgba(5, 86, 124, 0.15);
    transform: translateY(-3px);
}

.home-service__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-brand);
    background: var(--home-brand-soft);
    border-radius: 10px;
}

.home-service__icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--color-brand);
}

.home-service__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-service__text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
}

.home-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.home-bento__item {
    padding: 1.75rem 2rem;
    background: var(--color-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius);
    transition: border-color 0.25s ease, background 0.25s ease;
}

.home-bento__item:hover {
    border-color: rgba(5, 86, 124, 0.18);
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfc 100%);
}

.home-bento__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-brand);
    margin-bottom: 0.75rem;
}

.home-bento__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.home-bento__text {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
}

.home-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.home-project {
    border-radius: var(--home-radius);
    border: 1px solid var(--home-border);
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.home-project:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.12);
}

.home-project__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.home-project__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-gray-100);
}

.home-project__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-project:hover .home-project__image {
    transform: scale(1.04);
}

.home-project__placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #05567c 0%, #033a53 100%);
    color: rgba(255, 255, 255, 0.5);
}

.home-project__body {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-project__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.home-project__desc {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-gray-600);
    margin: 0 0 1rem;
    flex: 1;
}

.home-project__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-brand);
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--home-border);
}

.home-project__cta svg {
    transition: transform 0.2s ease;
}

.home-project:hover .home-project__cta svg {
    transform: translateX(-4px);
}

.home-projects__footer {
    margin-top: 2.5rem;
    text-align: center;
}

.home-projects__empty {
    grid-column: 1 / -1;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px dashed var(--color-gray-300);
    border-radius: var(--home-radius);
    color: var(--color-gray-600);
}

.home-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.home-why__item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-white);
    border: 1px solid var(--home-border);
    border-radius: var(--home-radius-sm);
}

.home-why__index {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand);
    background: var(--home-brand-soft);
    border-radius: 10px;
}

.home-why__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-black);
}

.home-why__text {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
}

.home-trust {
    text-align: center;
}

.home-trust__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    max-width: 42rem;
    margin: 0 auto;
}

.home-trust__tag {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray-700);
    background: var(--color-white);
    border: 1px solid var(--home-border);
    border-radius: var(--radius-full);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.home-trust__tag:hover {
    border-color: rgba(5, 86, 124, 0.25);
    color: var(--color-brand);
}

.home-cta {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 20% 50%, rgba(5, 86, 124, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 30%, rgba(5, 86, 124, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.home-cta__inner {
    position: relative;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.home-cta__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.home-cta__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray-400);
    margin-bottom: 2rem;
}

.home-cta .btn--accent {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    background: var(--color-white);
    color: var(--color-black);
}

.home-cta .btn--accent:hover {
    background: var(--color-gray-100);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

@media (max-width: 1024px) {
    .home-hero__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .home-services__grid, .home-projects__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { min-height: auto; padding-top: 6rem; }
    .home-hero__grid { grid-template-columns: 1fr; text-align: center; }
    .home-hero__subtitle { margin-inline: auto; }
    .home-hero__actions { justify-content: center; }
    .home-hero__metrics { justify-content: center; }
    .home-hero__visual { order: -1; }
    .home-hero__frame { max-width: 360px; margin-inline: auto; }
    .home-section__head:not(.home-section__head--center) { text-align: center; margin-inline: auto; }
    .home-services__grid, .home-bento, .home-projects__grid, .home-why__grid { grid-template-columns: 1fr; }
    .home-why__item { flex-direction: column; gap: 0.75rem; text-align: center; align-items: center; }
}

@media (max-width: 480px) {
    .home-hero__actions { flex-direction: column; width: 100%; }
    .home-hero__actions .btn { width: 100%; }
    .home-hero__metrics { gap: 1rem 1.5rem; }
    .home-service, .home-bento__item, .home-why__item { padding: 1.35rem; }
}

