/* ==============================
   Base
============================== */
:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --navy: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --footer: #061227;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(90%, 1280px);
    margin: 0 auto;
}

section {
    padding: 90px 0;
}

/* ==============================
   Buttons and Shared Text
============================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn:hover,
.consult-btn:hover,
.text-link:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .2);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-outline {
    border: 1px solid var(--blue);
    color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.eyebrow,
.section-tag {
    display: block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 20px;
    text-align: left;
}

.section-tag {
    margin-bottom: 14px;
}

.align-left {
    text-align: left;
}

section h2 {
    color: var(--navy);
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 14px;
    text-align: center;
}

.section-desc {
    max-width: 760px;
    margin: 0 auto 54px;
    color: var(--muted);
    line-height: 1.8;
    text-align: center;
}

.text-link {
    color: var(--blue);
    display: inline-flex;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .25s ease;
}

/* ==============================
   Header
============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .05);
    transition: box-shadow .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    gap: 28px;
}

.logo {
    display: inline-flex;
    flex-shrink: 0;
}

.logo img {
    width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue);
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px auto;
    border-radius: 999px;
    background: #111827;
}

/* ==============================
   Hero
============================== */
.hero {
    padding: 72px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 54px;
}

.hero h1 {
    max-width: 670px;
    color: #081633;
    font-size: clamp(42px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.13;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--blue);
}

.hero p {
    max-width: 660px;
    color: #334155;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 42px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.hero-feature {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px 10px;
    align-items: center;
}

.hero-feature img {
    grid-row: span 2;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hero-feature strong {
    color: var(--navy);
    font-size: 13px;
}

.hero-feature span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: min(100%, 760px);
}

/* ==============================
   Services
============================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.service-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 178px;
    margin-bottom: 24px;
}

.service-image img {
    max-width: 230px;
    transition: transform .25s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.service-card h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 14px;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.service-card ul {
    margin-bottom: 28px;
    list-style: none;
}

.service-card li {
    position: relative;
    margin-bottom: 11px;
    padding-left: 22px;
    color: #334155;
    font-size: 14px;
}

.service-card li::before {
    position: absolute;
    left: 0;
    color: var(--blue);
    content: "\2713";
    font-weight: 800;
}

.service-card a {
    margin-top: auto;
    color: var(--blue);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

/* ==============================
   Process
============================== */
.process {
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.timeline::before {
    position: absolute;
    top: 42px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #8bb4ff 0 4px, transparent 4px 8px);
    content: "";
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border: 1px solid #e7eefb;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .08);
    color: var(--blue);
    font-size: 30px;
}

.step span {
    display: block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.step h3 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 8px;
}

.step p {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================
   Portfolio
============================== */
.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.portfolio-header .section-tag,
.portfolio-header h2 {
    text-align: left;
}

.portfolio-header h2 {
    font-size: 32px;
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.portfolio-item {
    transition: transform .25s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
}

.portfolio-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    overflow: hidden;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: var(--soft);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.portfolio-item:hover img {
    transform: scale(1.04);
}

.portfolio-item h3 {
    color: var(--navy);
    font-size: 17px;
    margin: 16px 0 6px;
}

.portfolio-item p {
    color: var(--muted);
    font-size: 14px;
}

/* ==============================
   About and Testimonial
============================== */
.why-clients {
    padding-top: 58px;
}

.why-clients-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1.2fr;
    align-items: center;
    gap: 54px;
}

.why-column h2,
.testimonial-column h2 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: left;
}

.intro {
    color: var(--muted);
    line-height: 1.75;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 30px;
    margin-top: 34px;
}

.feature {
    display: flex;
    gap: 14px;
}

.feature img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature h3 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 8px;
}

.feature p {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}

.brand-circle {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto;
}

.ring,
.orbit-dot,
.brand-logo {
    position: absolute;
    border-radius: 50%;
}

.ring {
    border: 1px dashed #c7dcff;
}

.ring-outer {
    inset: 0;
}

.ring-middle {
    inset: 45px;
}

.ring-inner {
    inset: 88px;
}

.brand-logo {
    inset: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .09);
}

.brand-logo img {
    width: 64px;
}

.orbit-dot {
    width: 28px;
    height: 28px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .12);
}

.dot-blue {
    top: 56px;
    left: 64px;
    background: #2563eb;
}

.dot-green {
    right: 70px;
    bottom: 68px;
    background: #22c55e;
}

.dot-purple {
    top: 80px;
    right: 48px;
    background: #9333ea;
}

.dot-cyan {
    left: 82px;
    bottom: 48px;
    background: #14b8a6;
}

.testimonial-card {
    margin-top: 24px;
    padding: 34px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.quote-mark {
    color: var(--blue);
    font-size: 54px;
    font-weight: 800;
    line-height: .8;
    margin-bottom: 12px;
}

.testimonial-card p {
    color: #334155;
    line-height: 1.75;
}

.client {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.client-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: var(--blue-dark);
    font-weight: 800;
}

.client h3 {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 4px;
}

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

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cbd5e1;
}

.dots .active {
    width: 24px;
    border-radius: 999px;
    background: var(--blue);
}

/* ==============================
   Call to Action
============================== */
.build-section {
    position: relative;
    z-index: 2;
    padding: 36px 0 0;
    margin-bottom: -48px;
}

.build-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 30px 48px;
    border-radius: 8px;
    background: linear-gradient(90deg, #0b56f3 0%, #003bbf 100%);
    color: var(--white);
    box-shadow: 0 25px 60px rgba(37, 99, 235, .18);
}

.build-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.build-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
}

.build-icon img {
    width: 38px;
}

.build-content h2 {
    color: var(--white);
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: left;
}

.build-content p {
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
}

.consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 16px 30px;
    border-radius: 8px;
    background: var(--white);
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s ease, box-shadow .25s ease;
}

.consult-btn:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}

/* ==============================
   Footer
============================== */
.footer {
    background: linear-gradient(180deg, #071a36 0%, var(--footer) 100%);
    color: var(--white);
    padding: 96px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.25fr 1fr 1.35fr;
    gap: 48px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 22px;
}

.footer-brand p,
.footer a,
.contact-list p {
    color: #b8c5da;
}

.footer-brand p {
    max-width: 300px;
    font-size: 15px;
    line-height: 1.85;
}

.footer h2,
.contact-list h2 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 22px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 11px;
}

.footer a {
    font-size: 15px;
    text-decoration: none;
    transition: color .25s ease;
}

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

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links a[aria-label="Facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-links a[aria-label="LinkedIn"]:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-links a[aria-label="Twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-links a[aria-label="Instagram"]:hover {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
    border-color: #dd2a7b;
}

.social-links img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.contact-list {
    font-style: normal;
}

.contact-list p {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    line-height: 1.7;
}

.contact-list span {
    min-width: 18px;
    color: var(--white);
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ==============================
   Legal Pages
============================== */
.page-hero {
    padding: 74px 0 52px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.page-hero .section-tag,
.page-hero h1,
.page-hero p {
    text-align: left;
}

.page-hero h1 {
    max-width: 860px;
    color: var(--navy);
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.legal-content {
    padding-top: 34px;
}

.legal-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 112px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.legal-sidebar h2 {
    margin-bottom: 16px;
    color: var(--navy);
    font-size: 18px;
    text-align: left;
}

.legal-sidebar ul {
    display: grid;
    gap: 12px;
    list-style: none;
}

.legal-sidebar a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.legal-sidebar a:hover {
    color: var(--blue);
}

.legal-document {
    display: grid;
    gap: 30px;
}

.legal-section {
    padding-bottom: 30px;
    border-bottom: 1px solid #edf2f7;
}

.legal-section h2 {
    margin-bottom: 14px;
    color: var(--navy);
    font-size: 26px;
    text-align: left;
}

.legal-section p,
.legal-section li {
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.legal-section p + p,
.legal-section ul {
    margin-top: 12px;
}

.legal-section ul {
    padding-left: 22px;
}

.legal-updated {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 52px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: #8fa2c1;
    font-size: 14px;
}

.footer-bottom div {
    display: flex;
    gap: 14px;
}

/* ==============================
   Back to Top
============================== */
.to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    cursor: pointer;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    transform: translateY(-4px);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 1180px) {
    .service-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-clients-grid {
        grid-template-columns: 1fr;
    }

    .brand-column {
        order: -1;
    }

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

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

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .navbar {
        min-height: 78px;
    }

    .logo img {
        width: 155px;
    }

    .nav-btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        display: none;
        width: 100%;
        padding: 26px 5%;
        background: var(--white);
        box-shadow: 0 18px 30px rgba(15, 23, 42, .08);
    }

    .nav-links.show {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .eyebrow,
    .hero h1,
    .hero p {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        max-width: 680px;
        margin: 0 auto;
    }

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

    .timeline::before {
        display: none;
    }

    .build-box,
    .build-left {
        flex-direction: column;
        text-align: center;
    }

    .build-content h2 {
        text-align: center;
    }
}

@media (max-width: 720px) {
    section {
        padding: 68px 0;
    }

    section h2,
    .portfolio-header h2,
    .why-column h2,
    .testimonial-column h2 {
        font-size: 30px;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-actions,
    .portfolio-header,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .consult-btn {
        width: 100%;
    }

    .hero-features,
    .service-grid,
    .portfolio-grid,
    .timeline,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature {
        max-width: 220px;
        margin: 0 auto;
    }

    .brand-circle {
        width: 280px;
        height: 280px;
    }

    .ring-middle {
        inset: 38px;
    }

    .ring-inner {
        inset: 74px;
    }

    .brand-logo {
        inset: 92px;
    }

    .build-box {
        padding: 30px 24px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
    }

    .page-hero .section-tag,
    .page-hero h1,
    .page-hero p {
        text-align: center;
    }
}
