/* Home page — hero, marquee, gapless bento, image portfolio */

/* HERO */
.hero {
    overflow: hidden;
    background: linear-gradient(180deg, #fff, var(--surface-2));
    border-bottom: 1px solid var(--line);
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(4rem, 9vw, 8rem);
}
.hero__content { max-width: 38rem; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.1rem; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 36ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Hero visual: faux browser card with floating badges */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero__card--browser {
    width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg);
}
.browser-bar { display: flex; gap: .4rem; padding: .8rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.browser-bar span:nth-child(1) { background: #fca5a5; }
.browser-bar span:nth-child(2) { background: #fcd34d; }
.browser-bar span:nth-child(3) { background: #86efac; }
.browser-body { padding: 1.6rem; display: grid; gap: .9rem; }
.sk { border-radius: 7px; background: linear-gradient(90deg, var(--surface-3), #e9eef5, var(--surface-3)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; height: 14px; }
.sk--title { height: 26px; width: 65%; background-color: var(--blue-tint); }
.sk--line { width: 100%; }
.sk--short { width: 70%; }
.sk--block { height: 110px; margin-top: .4rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.hero__badge {
    position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: .55rem 1rem; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow);
    display: inline-flex; align-items: baseline; gap: .35rem;
}
.hero__badge small { font-weight: 500; color: var(--ink-faint); font-size: .7rem; }
.hero__badge--ssl { top: 6%; left: -2%; color: #047857; }
.hero__badge--ssl span { color: #059669; }
.hero__badge--speed { bottom: 8%; right: -3%; color: var(--blue-strong); font-size: 1.1rem; }

/* MARQUEE SECTION */
.marquee-section { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); background: var(--surface); }
.marquee-caption { text-align: center; text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--ink-faint); margin: 0 0 1.6rem; }

/* GAPLESS BENTO */
.bento {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(190px, auto);
    grid-auto-flow: dense; gap: 14px;
}
.bento__cell {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    gap: .5rem; padding: 1.6rem; border-radius: var(--r); border: 1px solid var(--line);
    background: var(--surface); box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bento__cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.bento__cell--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, var(--blue-tint), #fff 70%); }
.bento__cell--wide    { grid-column: span 2; }
.bento__cell--banner  { grid-column: span 4; background-size: cover; background-position: center; border: 0; color: #fff; min-height: 220px; }

.bento__icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--blue); color: #fff; margin-bottom: auto; box-shadow: 0 8px 18px -8px rgba(37,99,235,.7);
}
.bento__icon svg { width: 24px; height: 24px; }
.bento__cell--feature .bento__icon { width: 56px; height: 56px; }
.bento__cell--feature .bento__icon svg { width: 30px; height: 30px; }
.bento__title { font-size: 1.2rem; margin: 0; }
.bento__cell--feature .bento__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bento__text { color: var(--ink-soft); font-size: .96rem; margin: 0; }

.bento__banner-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.88), rgba(30,58,138,.55) 70%, transparent); }
.bento__banner-content { position: relative; z-index: 1; max-width: 30rem; }
.bento__cell--banner .bento__title { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.bento__cell--banner .bento__text { color: #dbeafe; margin-bottom: 1rem; }

/* SERVICES TEASER */
.services-teaser__link { text-align: center; margin: 2.5rem 0 0; font-size: 1.05rem; }

@media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__cell--feature { grid-column: span 2; grid-row: span 1; }
    .bento__cell--wide { grid-column: span 2; }
    .bento__cell--banner { grid-column: span 2; }
}
@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__content { max-width: none; }
    .hero__lead { max-width: none; margin-inline: auto; }
    .hero__actions { justify-content: center; }
    .hero__visual { display: none; }
}
@media (max-width: 560px) {
    .bento { grid-template-columns: 1fr; }
    .bento__cell, .bento__cell--feature, .bento__cell--wide, .bento__cell--banner { grid-column: span 1; }
}
