/* ==========================================================================
   HASHI TECH MAIN STYLESHEET
   Aggregates modular CSS system and defines page/section-specific layouts
   ========================================================================== */

/* ── 1. Import Design System Modules ────────────────────────────────────── */
@import './tokens.css';
@import './base.css';
@import './theme.css';
@import './components.css';

/* ── 2. Section Layouts & Page Structure ────────────────────────────────── */

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    min-height: calc(100svh - var(--header-height) - 16px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--hero-bg-color);
    padding: 48px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-bg-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: var(--hero-overlay), var(--hero-bg);
    background-position: left center, right center;
    background-size: cover, auto 92%;
    background-repeat: no-repeat, no-repeat;
    transition: background-image var(--transition-slow);
}

.hero .reveal {
    opacity: 1 !important;
    transform: none !important;
}

.hero-container {
    width: min(1500px, calc(100% - 64px));
    margin: 0 max(32px, calc((100% - 1500px) / 2));
    padding-left: clamp(0px, 7vw, 112px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    width: 100%;
}

.hero-copy h1 {
    max-width: 700px;
    font-size: clamp(58px, 7.2vw, 108px);
    line-height: 0.96;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font: 700 14px/1.2 var(--display);
    color: var(--muted);
    margin: 0 0 20px;
}

.eyebrow-sep {
    color: var(--red);
    font-weight: 700;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font: 10px var(--display);
    color: var(--red);
    margin: 0 0 20px;
}

h1 {
    font-size: clamp(52px, 5.2vw, 84px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0 0 28px;
    color: var(--ink);
    white-space: normal;
    overflow-wrap: break-word;
}

.hero-lede {
    max-width: 580px;
    color: var(--muted);
    font-size: clamp(18px, 1.3vw, 20px);
    line-height: 1.6;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 40px;
    opacity: 0.85;
}

.hero-proof {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 36px;
    border-top: 1px solid var(--proof-border);
    box-sizing: border-box;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.proof-icon {
    color: var(--ink);
    flex-shrink: 0;
    opacity: 0.9;
    width: 20px;
    height: 20px;
}

.proof-divider {
    width: 1px;
    height: 26px;
    background: var(--line);
    flex-shrink: 0;
    opacity: 0.7;
}

.proof-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.25;
}

.proof-text strong {
    color: var(--ink);
    font-weight: 700;
    font-family: var(--display);
    font-size: 14px;
}

.proof-text span {
    color: var(--muted);
    font-size: 12px;
}

/* ── Unified Section Background Surfaces ────────────────────────────────── */
.solutions,
.about,
.process,
.cta-band,
.audience,
.contact-form-section,
.metrics {
    background: transparent;
    color: var(--ink);
}

/* ── Solutions Section ──────────────────────────────────────────────────── */
.section-intro.centered {
    text-align: center;
}

.section-intro h2,
.about h2,
.contact-copy h2 {
    font-size: clamp(38px, 4.3vw, 64px);
}

.section-intro>p:last-child {
    color: var(--muted);
    margin: 14px auto 0;
}

.solution-grid {
    max-width: 1184px;
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.solution-card {
    min-height: 194px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
}

.solution-card h3 {
    font-size: 16px;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-top: 14px;
}

.solution-card p {
    font-size: 12px;
    color: var(--muted);
    margin: 7px 0 auto;
}

.solution-card a {
    color: var(--red);
    font-size: 12px;
    margin-top: auto;
    padding-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.solution-card a span {
    margin-left: 2px;
}

.solutions-cta {
    margin-top: 48px;
    padding: 28px 36px;
    background: color-mix(in srgb, var(--red) 6%, var(--card));
    border: 1px solid color-mix(in srgb, var(--red) 20%, var(--line));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.solutions-cta p {
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
    margin: 0;
}

/* ── Metrics Strip ──────────────────────────────────────────────────────── */
.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px max(40px, calc((100% - 1184px) / 2));
}

.metrics div {
    padding: 0 28px;
    border-right: 1px solid var(--line);
}

.metrics div:first-child {
    padding-left: 0;
}

.metrics div:last-child {
    border: 0;
}

.metrics strong {
    display: block;
    color: var(--red);
    font: 700 19px var(--display);
}

.metrics span {
    font-size: 11px;
    color: var(--muted);
}

/* ── About Section ──────────────────────────────────────────────────────── */
.about {
    width: min(var(--container-max), calc(100% - 80px));
    margin: 0 auto;
}

.about-header {
    max-width: 1184px;
    margin: 0 auto 52px;
}

.about-header h2 {
    max-width: 1040px;
    margin-inline: auto;
    text-wrap: balance;
}

.about-lead {
    max-width: 1040px;
    margin-inline: auto;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    margin-top: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.about-card {
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 224px;
}

.about-card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font: 700 12px var(--display);
    color: var(--muted);
    opacity: 0.5;
}

.about-card h3 {
    font: 700 18px var(--display);
    color: var(--ink);
    margin: 24px 0 10px;
}

.about-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.about-footer-cta {
    background: color-mix(in srgb, var(--red) 5%, var(--card));
    border: 1px solid color-mix(in srgb, var(--red) 20%, var(--line));
    border-radius: var(--radius-md);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.about-cta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-cta-content strong {
    font: 700 16px var(--display);
    color: var(--ink);
}

.about-cta-content span {
    font-size: 13px;
    color: var(--muted);
}

/* ── Process Section ────────────────────────────────────────────────────── */
.process {
    border-bottom: 1px solid var(--line);
    padding: 85px max(40px, calc((100% - 1184px) / 2));
}

.process-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 50px;
}

.process h2 {
    font-size: clamp(40px, 4vw, 62px);
}

.process-heading>p {
    max-width: 295px;
    color: var(--muted);
    margin: 0;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 65px;
}

.process-track div {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    position: relative;
}

.process-track div::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border: 1px solid var(--red);
    border-radius: 50%;
    background: var(--paper);
}

.process-track b {
    color: var(--red);
    font: 10px var(--display);
    display: block;
    margin-bottom: 12px;
}

.process-track strong {
    font: 600 13px/1.35 var(--display);
    text-transform: uppercase;
    color: var(--ink);
}

/* ── CTA Band ───────────────────────────────────────────────────────────── */
.cta-band {
    padding: 80px max(40px, calc((100% - 1184px) / 2));
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, color-mix(in srgb, var(--red) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-band-copy {
    flex: 1 1 400px;
}

.cta-band-copy h2 {
    font-size: clamp(28px, 3.5vw, 46px);
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 8px 0 14px;
}

.cta-band-copy p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 440px;
    margin: 0;
}

.cta-kicker {
    color: var(--red) !important;
}

.cta-band-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.cta-band-trust {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.04em;
}

/* ── Audience Section ──────────────────────────────────────────────────── */
.audience-grid {
    max-width: 1184px;
    margin: 42px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.audience-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.audience-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.audience-card-header h3 {
    margin: 0;
    font-size: 20px;
}

.audience-icon {
    color: var(--red);
    font-size: 34px;
    width: 52px;
    min-width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--red) 10%, transparent);
}

.person-icon {
    position: relative;
}

.person-icon::before,
.person-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red);
}

.person-icon::before {
    width: 15px;
    height: 15px;
    top: 10px;
    border-radius: 50%;
}

.person-icon::after {
    width: 27px;
    height: 14px;
    bottom: 10px;
    border-radius: 15px 15px 8px 8px;
}

.audience-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 8px 0 0;
}

.audience-benefits {
    list-style: none;
    padding: 0;
    margin: 16px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.audience-benefits li {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    padding-left: 18px;
    position: relative;
}

.audience-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.7;
}

.audience-card>.button {
    margin-top: auto;
}

/* ── Contact Section ────────────────────────────────────────────────────── */
.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-copy>p:not(.section-kicker) {
    color: var(--muted);
    max-width: 330px;
    margin-top: 20px;
}

.contact-trust-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-trust-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--muted);
}

.contact-trust-list li svg {
    color: var(--red);
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── 3. Responsive Breakpoints ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-bg-visual {
        background-size: cover, auto 80%;
    }

    .hero-copy {
        max-width: 540px;
    }
}

@media (max-width: 850px) {
    .site-header {
        padding: 12px 16px 0;
    }

    .site-header-inner {
        width: 100%;
        height: 64px;
        min-height: 64px;
        padding: 0 16px;
        border-radius: 16px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav.magnification-dock {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        padding: 16px;
        background: var(--card);
        border: 1px solid var(--line);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        height: auto;
    }

    .site-nav.magnification-dock.is-open {
        display: flex;
    }

    .site-nav.magnification-dock .dock-item {
        width: 100% !important;
        height: 48px !important;
        border-radius: var(--radius-sm);
        justify-content: flex-start;
        padding: 0 16px;
        gap: 14px;
    }

    .site-nav.magnification-dock .dock-label {
        position: static;
        opacity: 1;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0;
        font-size: 13px;
    }

    .site-nav.magnification-dock .dock-label::before {
        display: none;
    }

    .section-pad,
    .process {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .hero {
        min-height: calc(100svh - 76px);
        padding: 32px 0 40px;
    }

    .hero-container {
        width: calc(100% - 40px);
        margin: 0 20px;
        padding-left: 0;
    }

    .hero-bg-visual {
        background-size: cover, auto 52%;
        background-position: center top, right bottom;
        opacity: 0.92;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero-proof {
        gap: 18px;
        justify-content: flex-start;
    }

    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-footer-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .metrics div {
        padding: 0 15px;
    }

    .metrics div:nth-child(3) {
        padding-left: 0;
    }

    .metrics div:nth-child(2) {
        border: 0;
    }

    .process-heading {
        display: block;
    }

    .process-heading>p {
        margin-top: 25px;
    }

    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 520px) {

    .section-pad,
    .process {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: clamp(36px, 9.5vw, 44px);
    }

    .hero-copy h1 {
        font-size: clamp(44px, 12vw, 58px);
    }

    .desktop-only {
        display: none;
    }

    .solution-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        min-height: 175px;
    }

    .metrics {
        padding: 28px 20px;
    }

    .metrics div {
        padding: 0 !important;
        border: 0;
    }

    .hero {
        min-height: calc(100svh - 76px);
        padding: 20px 0 32px;
    }

    .hero-bg-visual {
        background-size: cover, auto 38%;
        background-position: center top, right bottom;
    }

    .hero-copy {
        padding-bottom: 10px;
    }

    .hero-proof {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding-top: 24px;
    }

    .proof-item {
        gap: 7px;
        min-width: 0;
    }

    .proof-divider {
        display: none;
    }

    .proof-text strong {
        font-size: 12px;
    }

    .proof-text span {
        font-size: 11px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
    }

    .hero-actions .button {
        justify-content: center;
        width: 100%;
    }

    .hero-media {
        min-height: 260px;
        max-height: 320px;
    }

    .hero-artwork {
        min-height: 260px;
    }

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-top: 20px;
    }

    .proof-divider {
        display: none;
    }

    .process-track {
        grid-template-columns: 1fr 1fr;
        gap: 35px 18px;
    }

    .process-track div:last-child {
        grid-column: span 2;
    }

    .site-footer {
        padding: 40px 0 24px;
        margin-top: 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand-col {
        grid-column: span 2;
    }
}

@media (max-width: 550px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
