.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 88px);
    display: flex;
    padding-top: var(--space-5); 
    padding-left: var(--space-10); 
    padding-right: var(--space-10);
    padding-bottom: var(--space-10);
    background:
    radial-gradient(circle at 80% 20%,
    rgba(220,38,38,.08),
    transparent 30%),
    radial-gradient(circle at 10% 80%,
    rgba(220,38,38,.05),
    transparent 40%),

    #fafafa;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-10);
    align-items: center;
}

.hero-content h1{
    font-size: clamp(3.8rem,6vw,5.8rem);
    line-height:.95;
    letter-spacing:-3px;
    margin-bottom:1.5rem;
    font-weight:800;
    color:#111827;
}

.hero-content p{
    font-size:1.2rem;
    line-height:1.8;
    max-width:600px;
    color:#6b7280;
    margin-bottom:2.5rem;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

/* ==========================================
   Dashboard
========================================== */

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.dashboard-card{

    width:100%;

    max-width:540px;

    background:var(--color-white);

    border:1px solid var(--color-border);

    border-radius:28px;

    overflow:hidden;

    box-shadow:var(--shadow-lg);

}

.dashboard-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:1rem 1.5rem;

    border-bottom:1px solid var(--color-border);

}

.dashboard-controls{

    display:flex;

    gap:.5rem;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

}

.red{

    background:#ef4444;

}

.yellow{

    background:#f59e0b;

}

.green{

    background:#22c55e;

}

.dashboard-title{

    font-size:.9rem;

    color:var(--color-muted);

}

.dashboard-body{

    padding:2rem;

}

.metric-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:1rem;

}

.metric-card{

    background:var(--color-surface);

    border-radius:18px;

    padding:1.25rem;

}

.metric-label{

    display:block;

    color:var(--color-muted);

    font-size:.8rem;

    margin-bottom:.5rem;

}

.metric-card h3{

    font-size:2rem;

    margin-bottom:.3rem;

}

.metric-card small{

    color:var(--color-primary);

    font-weight:600;

}

.chart-placeholder {
    height: 180px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff, #f5f5f5);
    border: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    margin: var(--space-5) 0;
}

/*
.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.mini-card {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}
    */

@media (max-width: 992px) {
    .hero { min-height: auto; padding: 6rem 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { max-width: none; }
    .hero-content p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-tech { justify-content: center; }
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0; }
    .dashboard-card { max-width: 100%; }
    .mini-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 12vw, 3.8rem);
        letter-spacing: -1.5px;
    }

    .hero-content h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .hero-content p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

/*==========================================================
CAPABILITIES
==========================================================*/

.capabilities{
    padding:var(--space-10);

    background:var(--surface-0);
}

.section-heading{
    max-width:700px;
    margin:0 auto 4rem;
    text-align:center;
}

.section-heading h2{
    margin:1rem 0;
}

.capability-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:2rem;
}

.capability-card{

    background:#fff;

    padding:2rem;

    border:1px solid var(--color-border);

    border-radius:24px;

    transition:.3s;

    box-shadow:var(--shadow-sm);

    min-width:0;

}

.capability-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);

}

.capability-icon{

    font-size:2rem;

    margin-bottom:1rem;

}

.capability-card h3{

    margin-bottom:.8rem;

}

.capability-card p{

    color:var(--color-body);

    line-height:1.7;

}

/*==========================================================
CASE STUDIES
==========================================================*/

.case-studies{
    padding:var(--space-10);

    background:var(--surface-1);
}

.case-grid{

    display:grid;

    grid-template-columns:repeat(3, minmax(0, 1fr));

    gap:2rem;

}

.case-card{

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:24px;

    padding:2rem;

    transition:.3s;

    height:100%;

    display:flex;

    flex-direction:column;

    min-width:0;

}

.case-card:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);

}

.case-tag{

    display:inline-flex;

    width:fit-content;

    padding:.45rem .9rem;

    border-radius:999px;

    background:var(--color-primary-light);

    color:var(--color-primary);

    font-size:.8rem;

    font-weight:600;

    margin-bottom:1rem;

}

.case-card h3{

    margin-bottom:1rem;

}

.case-description{

    margin-bottom:2rem;

    color:var(--color-body);

    line-height:1.7;

    flex:1;

}

.case-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:0.5rem 1rem;

    padding-top:1.5rem;

    border-top:1px solid var(--color-border);

}

.case-footer strong{

    font-size:1.5rem;

    color:var(--color-primary);

}

/*==========================================================
TECHNOLOGY
==========================================================*/

.technology{
    padding:var(--space-10);

    background:var(--surface-0);
}

.technology-grid{

    display:grid;

    grid-template-columns:repeat(4, minmax(0, 1fr));

    gap:2rem;

}

.technology-card{

    background:#fff;

    border:1px solid var(--color-border);

    border-radius:24px;

    padding:2rem;

    box-shadow:var(--shadow-sm);

    transition:.3s;

    min-width:0;

}

.technology-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-lg);

}

.technology-card h3{

    margin-bottom:1.5rem;

}

.technology-card ul{

    list-style:none;

    padding:0;

    margin:0;

}

.technology-card li{

    padding:.7rem 0;

    border-bottom:1px solid var(--color-border);

    color:var(--color-body);

}

.technology-card li:last-child{

    border-bottom:none;

}

/*==========================================================
HOMEPAGE SECTIONS — RESPONSIVE (tablet / mobile)
==========================================================*/

@media (max-width: 960px) {
    .capabilities,
    .case-studies,
    .technology,
    .contacts-cta {
        padding: var(--space-8) var(--space-4);
    }

    .capability-grid,
    .case-grid,
    .technology-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .section-heading {
        margin-bottom: 3rem;
    }
}

@media (max-width: 720px) {
    .capabilities,
    .case-studies,
    .technology,
    .contacts-cta {
        padding: var(--space-7) var(--space-3);
    }

    .capability-grid,
    .case-grid,
    .technology-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }

    .capability-card,
    .case-card,
    .technology-card {
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

/*==========================================================
FOOTER
==========================================================*/

.footer {
    margin-top: clamp(1.75rem, 4vw, 4.5rem);
    padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(0.85rem, 2vw, 1.25rem);
    background: #111827;
    color: #E5E7EB;
}

.footer-container {
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 2fr);
    gap: clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.footer-brand {
    min-width: 0;
    max-width: 24rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    min-width: 0;
}

.footer-col {
    min-width: 0;
}

.footer h3 {
    color: #fff;
    margin: 0 0 0.45rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.25;
}

.footer h4 {
    color: #fff;
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer p {
    margin: 0;
    color: #9CA3AF;
    line-height: 1.55;
    font-size: 0.95rem;
}

.footer-tagline {
    color: #D1D5DB;
    font-weight: 500;
    margin-bottom: 0.45rem;
    font-size: 0.875rem;
}

.footer-desc {
    font-size: 0.875rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin: 0 0 0.35rem;
    color: #D1D5DB;
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer li:last-child {
    margin-bottom: 0;
}

.footer a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: clamp(1.1rem, 2.5vw, 2rem);
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.25rem;
    flex-wrap: wrap;
    color: #9CA3AF;
    font-size: 0.8rem;
    line-height: 1.4;
}

.footer-bottom > span {
    min-width: 0;
}

.footer-bottom-note {
    text-align: right;
}

/* Tablet */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem 1.25rem;
    }

    .footer-bottom-note {
        text-align: left;
        flex: 1 1 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .footer {
        margin-top: 1.5rem;
        padding: 1.35rem 0 0.85rem;
    }

    .footer-grid {
        gap: 1.1rem;
    }

    .footer-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .footer-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem 0.75rem;
    }

    .footer h4 {
        margin-bottom: 0.35rem;
        font-size: 0.72rem;
    }

    .footer li {
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }

    .footer-bottom {
        margin-top: 1rem;
        padding-top: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .footer-bottom-note {
        display: none;
    }
}

/* Narrow phones: two link columns to avoid cramped labels */
@media (max-width: 400px) {
    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 1rem;
    }
}

/*==========================================================
    Contacts CTA
==========================================================*/

.contacts-cta{

    padding-top: var(--space-8);
    padding-bottom: var(--space-8);

    background:var(--surface-1);

}

/* =====================================================
   OUR APPROACH (Section-specific only)
===================================================== */

.approach {
    padding: var(--space-10);

    background: var(--surface-0);
}

.approach-grid{

    position:relative;

    max-width:720px;

    margin:5rem auto 0;

}

.approach-grid::before{

    content:"";

    position:absolute;

    left:18px;

    top:10px;

    bottom:10px;

    width:1px;

    background:rgba(0,0,0,.08);

}

.approach-step{

    position:relative;

    padding-left:72px;

    margin-bottom:4rem;

    transition:all .25s ease;

}

.approach-step:last-child{

    margin-bottom:0;

}

.step-number{

    position:absolute;

    left:0;

    top:0;

    width:36px;

    height:36px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    border:2px solid var(--color-primary);

    background:#fff;

    color:var(--color-primary);

    font-size:.85rem;

    font-weight:700;

    transition:.25s ease;

}

.approach-step h3{

    margin-bottom:.8rem;

    transition:.25s ease;

}

.approach-step p{

    max-width:520px;

    line-height:1.8;

}

.approach-step:hover{

    transform:translateX(6px);

}

.approach-step:hover h3{

    color:var(--color-primary);

}

.approach-step:hover .step-number{

    background:var(--color-primary);

    color:#fff;

}

/* Approach responsive — must come AFTER base .approach padding */
@media (max-width: 960px) {

    .approach {
        padding: var(--space-8) 0;
    }

    .approach .section-heading {
        max-width: none;
    }

    .approach-grid {
        max-width: none;
        margin-top: 3.5rem;
        width: 100%;
    }

    .approach-step {
        padding-left: 3.5rem;
    }

    .approach-step p {
        max-width: none;
    }

}

@media (max-width: 720px) {

    .approach {
        padding: var(--space-7) 0;
    }

    .approach-grid {
        margin-top: 2.5rem;
    }

    .approach-grid::before {
        left: 13px;
    }

    .approach-step {
        padding-left: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* Hard <br> in markup compresses lines on narrow screens */
    .approach br {
        display: none;
    }

    .approach-step:hover {
        transform: none;
    }

}

@media (max-width: 400px) {

    .approach-step {
        padding-left: 2.25rem;
        margin-bottom: 2.25rem;
    }

}
