/* ================================================
   PIXEL LATTICE AGENCY — REDESIGN
   SuperProfiles.bio-inspired design system
   Original purple-to-pink color scheme
   ================================================ */

/* ---------- CSS RESET & VARIABLES ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Original brand colors */
    --purple: #7B2D8E;
    --purple-dark: #5C1E6E;
    --pink: #D94070;
    --pink-light: #F06292;
    --gradient: linear-gradient(135deg, #7B2D8E 0%, #D94070 100%);
    --gradient-soft: linear-gradient(135deg, rgba(123,45,142,0.12) 0%, rgba(217,64,112,0.08) 100%);
    --gradient-hover: linear-gradient(135deg, #6A2580 0%, #C93565 100%);

    /* Neutrals */
    --dark: #0F0F14;
    --dark-2: #1A1A24;
    --dark-3: #25253A;
    --gray-900: #1E1E2E;
    --gray-700: #4A4A68;
    --gray-500: #7A7A98;
    --gray-300: #B8B8D0;
    --gray-100: #EDEDF4;
    --light: #F8F9FC;
    --white: #FFFFFF;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Sizes */
    --nav-height: 72px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-glow: 0 4px 24px rgba(123,45,142,0.25);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn--sm {
    padding: 10px 22px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 6px 32px rgba(123,45,142,0.4);
    transform: translateY(-2px);
}

.btn--outline {
    background: var(--white);
    color: var(--purple);
    border: 2px solid rgba(123,45,142,0.2);
}

.btn--outline:hover {
    border-color: var(--purple);
    background: rgba(123,45,142,0.05);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--white);
    color: var(--purple);
    box-shadow: var(--shadow-md);
}

.btn--white:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ---------- SECTION HEADERS ---------- */
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-soft);
    color: var(--purple);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-tag--light {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-title em {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(123,45,142,0.08);
    transition: all 0.3s var(--ease);
}

.nav--scrolled {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark);
}

.nav__logo small {
    font-weight: 500;
    font-size: 0.65em;
    color: var(--gray-500);
    display: block;
    margin-top: -2px;
}

.nav__logo-icon {
    width: 38px;
    height: 38px;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    transition: color 0.3s var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}

.nav__link:hover {
    color: var(--purple);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    /* btn styles handle it */
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 4px;
    transition: all 0.3s var(--ease);
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 80px;
    overflow: hidden;
    background: var(--light);
}

.hero__mesh {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.hero__mesh:first-of-type {
    top: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(123,45,142,0.5), transparent 70%);
}

.hero__mesh--2 {
    bottom: -20%;
    left: -15%;
    background: radial-gradient(circle, rgba(217,64,112,0.4), transparent 70%);
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero__title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    display: block;
}

.hero__title-accent em {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating stat cards */
.hero__visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.hero__float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-card);
    pointer-events: auto;
    animation: float 6s ease-in-out infinite;
}

.hero__float-card--1 {
    top: 28%;
    left: 6%;
    animation-delay: 0s;
}

.hero__float-card--2 {
    top: 55%;
    right: 6%;
    animation-delay: 2s;
}

.hero__float-card--3 {
    bottom: 15%;
    left: 12%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hero__float-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius-sm);
}

.hero__float-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.hero__float-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== SOCIAL PROOF ========== */
.social-proof {
    padding: 48px 0;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
}

.social-proof__text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.social-proof__logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.social-proof__logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-proof__logo-item:hover {
    opacity: 1;
}

/* ========== SERVICES BENTO GRID ========== */
.services {
    padding: 120px 0;
    background: var(--light);
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bento-card {
    background: var(--white);
    border: 1px solid rgba(123,45,142,0.06);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.bento-card:hover {
    border-color: rgba(123,45,142,0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card--lg {
    grid-row: span 2;
}

.bento-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.bento-card__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple);
    margin-bottom: 8px;
}

.bento-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.bento-card__desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.bento-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.bento-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.bento-card__features li svg {
    color: var(--purple);
    flex-shrink: 0;
}

/* ========== PROCESS ========== */
.process {
    padding: 120px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.process__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.process .section-title {
    color: var(--white);
}

.process .section-subtitle {
    color: var(--gray-300);
}

.process .section-tag {
    background: rgba(123,45,142,0.2);
    color: var(--pink-light);
}

.process__steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.process__step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: var(--dark-2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    transition: all 0.4s var(--ease);
}

.process__step:hover {
    border-color: rgba(123,45,142,0.3);
    box-shadow: 0 0 40px rgba(123,45,142,0.1);
    transform: translateX(8px);
}

.process__step-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
}

.process__step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.process__step-content p {
    font-size: 0.95rem;
    color: var(--gray-300);
    line-height: 1.7;
}

.process__connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple), var(--pink));
    opacity: 0.3;
    border-radius: 2px;
}

/* ========== CTA SECTION ========== */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--dark);
    overflow: hidden;
}

.cta-section__mesh {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.cta-section__mesh:first-of-type {
    top: -30%;
    left: -10%;
    background: radial-gradient(circle, rgba(123,45,142,0.6), transparent 70%);
}

.cta-section__mesh--2 {
    bottom: -30%;
    right: -10%;
    background: radial-gradient(circle, rgba(217,64,112,0.5), transparent 70%);
}

.cta-section__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-section__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-section__title em {
    font-family: var(--font-serif);
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: 40px;
    letter-spacing: 0.04em;
}

.cta-section__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__brand .nav__logo {
    margin-bottom: 12px;
}

.footer__brand .nav__logo span {
    color: var(--white);
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.footer__contact h4,
.footer__social h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.footer__contact a {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    color: var(--gray-300);
    transition: all 0.3s var(--ease);
}

.footer__social-link:hover {
    background: var(--gradient);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal--delay {
    transition-delay: 0.15s;
}

.reveal--delay-2 {
    transition-delay: 0.3s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--lg {
        grid-row: span 1;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__float-card {
        display: none;
    }

    .process__step {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 700px) {
    .nav__links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.4s var(--ease);
        pointer-events: none;
    }

    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav__cta {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 24px);
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .bento-card {
        padding: 28px;
    }

    .process__step {
        padding: 24px;
    }

    .social-proof__logos {
        gap: 24px;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-section__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ========== SUBTLE SHIMMER ON GRADIENT ELEMENTS ========== */
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn--primary {
    background-size: 200% 200%;
    animation: shimmer 4s ease infinite;
}
