/* ============================================
   ENCODIUS - Section Styles
   Page-specific layout: Home, Services, Correlis
   ============================================ */

.page-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding) 32px 0;
}

.section--dark {
    background: var(--dark-bg);
    color: var(--dark-ink);
    margin-top: 128px;
}

.section--dark .page-section {
    padding-top: 0;
}

.section--dark .container {
    padding: 112px 32px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding-top: 96px;
    padding-bottom: 120px;
    background: var(--dark-bg);
    color: var(--dark-ink);
}

.hero .tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--dark-ink-muted);
}

.hero .status-line {
    color: var(--dark-ink-secondary);
}

.hero .status-dot {
    /* --accent is too dark to read against --dark-bg */
    background: var(--dark-ink-muted);
}

.hero .frame {
    /* No light hairline: against a light screenshot on a dark ground it
       reads as a white outline rather than an edge */
    background: transparent;
    border-color: transparent;
    /* A dark shadow is invisible on --dark-bg, so the panel is separated
       by an accent glow instead */
    box-shadow: 0 26px 70px rgba(29, 78, 216, 0.20);
}

.hero .hero__media__inner:hover {
    box-shadow: 0 34px 90px rgba(47, 111, 237, 0.36);
}

.hero__hexes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero h1 {
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--dark-ink);
}

.hero__title-accent {
    /* Lifted off the light-background palette so it reads on --dark-bg */
    background: linear-gradient(90deg, #5B8DEF, #8AB4F8, #5B8DEF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s linear infinite;
}

.hero p {
    color: var(--dark-ink-secondary);
    font-size: 19px;
    line-height: 1.6;
    max-width: 56ch;
    margin-top: 28px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
}

.hero__comb {
    position: absolute;
    height: auto;
    overflow: visible;
    color: rgba(91, 141, 239, 0.26);
    will-change: transform, opacity;
}

.hero__comb--right {
    top: 30px;
    right: -70px;
    width: 330px;
    animation: hexFloatB 31s ease-in-out infinite;
}

.hero__comb--left {
    bottom: 30px;
    left: -80px;
    width: 250px;
    animation: hexFloatA 24s ease-in-out infinite;
}

.hero__comb use {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.25;
}

/* Outer ring only - fades fully out and back, staggered by the inline
   delays in the markup so no two cells share a phase */
.hero__comb-edge use {
    opacity: 0;
    animation: hexCellFade 10s ease-in-out infinite;
}

.hero__comb-edge use:nth-of-type(3n) { animation-duration: 13.5s; }
.hero__comb-edge use:nth-of-type(3n + 1) { animation-duration: 8.5s; }

.hero__media {
    margin-top: 72px;
    position: relative;
    z-index: 1;
}

.hero__media__inner {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__media__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(10, 24, 50, 0.16);
}

/* ============================================
   COMPANY SECTION
   ============================================ */
.company__intro {
    margin-top: 24px;
    color: var(--ink-secondary);
    font-size: 17px;
    max-width: 62ch;
}

.company__team {
    margin-top: 56px;
    max-width: 760px;
}

/* The full form lives on contact.html. The homepage keeps a compact
   conversion point for both sides of the business. */
.home-contact-cta {
    scroll-margin-top: 96px;
    padding: 112px 32px;
    text-align: center;
    background: var(--bg-inset);
    border-top: 1px solid var(--border);
}

.home-contact-cta .section-title {
    margin: 18px auto 0;
    max-width: 20ch;
}

.home-contact-cta > p {
    margin: 18px auto 0;
    max-width: 54ch;
    color: var(--ink-secondary);
    font-size: 18px;
}

.home-contact-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 36px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .page-section {
        padding-top: 96px;
    }
    .section--dark {
        margin-top: 96px;
    }
    .section--dark .container {
        padding: 80px 32px;
    }
}

@media (max-width: 760px) {
    .page-section,
    .header .container,
    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero {
        padding-top: 72px;
    }
    .section--dark .container {
        padding: 64px 20px;
    }
    .home-contact-cta {
        padding: 80px 20px;
    }
}
