/* ============================================================
   Home page — extends global design system
   ============================================================ */

body.home-page .hero::before { display: none; }

body.home-page .hero {
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 120px 0 88px;
    background: var(--gradient-hero);
    text-align: left;
}

body.home-page .hero[style*="--hero-img"] {
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 42, .94) 0%,
        rgba(15, 23, 42, .78) 45%,
        rgba(15, 23, 42, .45) 100%
    );
    z-index: 0;
}

.hero-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 56px;
}
.hero-text { max-width: 580px; }

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 80%, #fff);
    margin-bottom: 18px;
    padding: 6px 14px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
}
.hero-kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}

body.home-page .hero h1 {
    font-size: clamp(2.125rem, 5vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.12;
    margin-bottom: 18px;
    color: #fff;
}

.hero-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    margin-bottom: 32px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 28px 70px rgba(2, 6, 23, .32);
    backdrop-filter: blur(18px);
}

.hero-card-main {
    grid-column: 1 / -1;
    padding: 28px;
    width: 100%;
}

.hero-card-label {
    display: inline-block;
    color: rgba(255,255,255,.72);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 12px;
}

.hero-card h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.hero-progress {
    height: 10px;
    background: rgba(255,255,255,.14);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #2dd4bf);
    border-radius: inherit;
}

.hero-card ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.hero-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
    font-weight: 600;
}

.hero-card li span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #bfdbfe;
    font-size: .75rem;
}

.hero-card-small {
    position: static;
    width: auto;
    padding: 18px;
}

.hero-card-small strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
}

.hero-card-small span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: .8rem;
    line-height: 1.35;
}

.hero-card-top,
.hero-card-bottom {
    min-height: 104px;
}

.btn-outline-light {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.06);
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .9375rem;
    backdrop-filter: blur(4px);
    transition: background var(--transition), border-color var(--transition);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.55);
    opacity: 1;
    color: #fff;
}

/* Stats bar */
.stats-bar {
    background: var(--gradient-primary);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20h20v20H20V20zm-20 0h20v20H0V20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    position: relative;
    z-index: 1;
}
.stats-bar-item {
    padding: 32px 24px;
    border-right: 1px solid rgba(255,255,255,.12);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-num {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
}
.stats-bar-label {
    display: block;
    font-size: .875rem;
    opacity: .88;
    margin-top: 6px;
}

/* About section */
.about-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-copy h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 16px;
}
.about-copy > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 24px;
}

.check-list { list-style: none; margin: 0 0 28px; }
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: .9375rem;
    color: var(--text);
    line-height: 1.5;
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: color-mix(in srgb, var(--accent) 15%, #fff);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
}

.link-arrow {
    font-weight: 700;
    color: var(--primary);
    font-size: .9375rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.link-arrow:hover { text-decoration: underline; opacity: 1; }

.about-panel-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.about-panel-icon svg { width: 26px; height: 26px; }
.about-panel h3 { font-size: 1.1875rem; margin-bottom: 10px; }

/* Service / feature card icons on home */
.card-service .service-icon,
.card-feature .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.card-service .service-icon svg,
.card-feature .card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.card p { font-size: .9375rem; color: var(--text-secondary); line-height: 1.65; }
.section-foot { text-align: center; margin-top: 40px; }

#home-services {
    background: var(--services-bg);
}

#home-features {
    background: var(--features-bg);
}

#home-videos {
    background: var(--videos-bg);
}

#home-contact {
    background: var(--contact-bg);
}

/* Journey */
.journey-section {
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 32%),
        var(--journey-bg);
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.journey-grid::before {
    content: '';
    position: absolute;
    left: 16%;
    right: 16%;
    top: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: .18;
}

.journey-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.journey-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}

.journey-card > span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.journey-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.journey-card p {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.65;
}

/* Contact on home */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    align-items: start;
}
.card-contact-info {
    padding: 30px;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    border-color: color-mix(in srgb, var(--primary) 12%, var(--border));
}

.contact-info-head {
    padding-bottom: 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.contact-info-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, #fff);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.contact-info-head h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--heading);
}

.contact-info-head p {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: .9375rem;
    margin: 0;
}

.contact-line {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.contact-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-line-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-line-icon svg {
    width: 21px;
    height: 21px;
}

.contact-line strong {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-line p {
    font-size: .96rem;
    color: var(--heading);
    margin: 0;
    line-height: 1.55;
    word-break: break-word;
}

.contact-line a {
    color: var(--heading);
    font-weight: 700;
}

.contact-line a:hover {
    color: var(--primary);
}

.contact-email-list .contact-email-item {
    margin: 0 0 6px;
}
.contact-email-list .contact-email-item:last-child {
    margin-bottom: 0;
}
.contact-email-list a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.contact-email-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.card-contact-info .webmail-cta {
    margin: 8px 0 4px;
    padding-top: 4px;
}
.card-contact-info .btn-webmail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
}

.card-contact-form h3 { font-size: 1.1875rem; margin-bottom: 22px; }

body.home-page .contact-form input,
body.home-page .contact-form textarea {
    background: var(--bg-muted);
    margin-bottom: 12px;
}
body.home-page .form-row { gap: 12px; }
body.home-page .form-row input { margin-bottom: 0; }

/* CTA band */
.cta-band {
    background: var(--gradient-hero);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 100% 50%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
    pointer-events: none;
}
.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.cta-band h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); color: #fff; margin-bottom: 8px; }
.cta-band p { font-size: 1rem; color: rgba(255,255,255,.78); margin: 0; }

/* Hide legacy elements */
body.home-page .hero-trust,
body.home-page .hero-scroll-hint,
body.home-page .home-quick-nav,
body.home-page .journey-steps,
body.home-page .stats-section { display: none !important; }

body.home-page .card,
body.home-page .service-card-home,
body.home-page .feature-card {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 900px) {
    .hero-wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .about-row { grid-template-columns: 1fr; gap: 36px; }
    .contact-row { grid-template-columns: 1fr; }
    .journey-grid { grid-template-columns: 1fr; }
    .journey-grid::before { display: none; }
}

@media (max-width: 640px) {
    body.home-page .hero { min-height: auto; padding: 100px 0 64px; }
    .stats-bar-inner { grid-template-columns: 1fr; }
    .stats-bar-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding: 24px;
    }
    .stats-bar-item:last-child { border-bottom: none; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    body.home-page .form-row { grid-template-columns: 1fr; }
}
