@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&display=swap');

:root {
    --bg-body: #F8F9FE;
    --bg-white: #FFFFFF;
    --text-main: #1D1E2C;
    --text-light: #6A6D8A;

    --coral: #FF4D4D;
    --coral-hover: #E63946;
    --purple: #6A4C93;
    --teal: #00B4D8;

    --radius-lg: 40px;
    --radius-md: 20px;
    --radius-pill: 100px;

    --shadow-colored: 0 20px 40px rgba(106, 76, 147, 0.08);
    --shadow-heavy: 0 30px 60px rgba(29, 30, 44, 0.1);

    --font-main: 'Manrope', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.text-coral {
    color: var(--coral);
}

.text-purple {
    color: var(--purple);
}

.text-teal {
    color: var(--teal);
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-hover));
    color: var(--bg-white);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 77, 77, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--purple);
    box-shadow: var(--shadow-colored);
}

.btn-secondary:hover {
    color: var(--coral);
    transform: translateY(-3px);
}

/* Floating Pill Header */
.header-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-pill {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    padding: 10px 20px 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1100px;
    box-shadow: var(--shadow-heavy);
}

.logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--coral);
}

.nav-btn {
    background: var(--purple);
    color: var(--bg-white);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--text-main);
    transform: translateY(-2px);
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-overlay nav a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Slanted Hero */
.hero {
    position: relative;
    padding: 200px 0 150px;
    background: linear-gradient(135deg, var(--purple) 0%, #3B2A5E 100%);
    color: var(--bg-white);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1,
.hero-content p {
    color: var(--bg-white);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-ui {
    position: absolute;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-heavy);
}

.ui-1 {
    top: 10%;
    right: 0;
    width: 320px;
    transform: rotateY(-15deg) rotateX(10deg);
    animation: float1 6s infinite ease-in-out alternate;
}

.ui-2 {
    bottom: 10%;
    left: 10%;
    width: 280px;
    transform: rotateY(15deg) rotateX(5deg);
    animation: float2 5s infinite ease-in-out alternate;
}

.ui-bar {
    height: 12px;
    border-radius: 6px;
    background: var(--bg-body);
    margin-bottom: 15px;
}

.ui-bar.coral {
    width: 80%;
    background: var(--coral);
}

.ui-bar.teal {
    width: 60%;
    background: var(--teal);
}

@keyframes float1 {
    0% {
        transform: translateY(0) rotateY(-15deg) rotateX(10deg);
    }

    100% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(5deg);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0) rotateY(15deg) rotateX(5deg);
    }

    100% {
        transform: translateY(20px) rotateY(10deg) rotateX(10deg);
    }
}

/* About - Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.bento-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-colored);
}

.bento-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bento-img {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    padding: 0;
    overflow: hidden;
    height: 300px;
}

.bento-img img {
    width: 100%;
    height: 100%;
}

.bento-stat {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--teal);
    color: var(--bg-white);
}

.bento-stat h2 {
    color: var(--bg-white);
    font-size: 4rem;
    margin: 0;
}

/* Services - Oversized Icons */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    color: var(--bg-body);
    z-index: -1;
    transform: rotate(-15deg);
    transition: var(--transition);
}

.service-card:hover .service-bg-icon {
    color: rgba(255, 77, 77, 0.05);
    transform: rotate(0deg) scale(1.1);
}

/* Deep Dive - Circular Spinning Image Wraps */
.deep-dive-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.deep-dive-row:nth-child(even) .dd-content {
    order: 2;
}

.deep-dive-row:nth-child(even) .dd-visual {
    order: 1;
}

.dd-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.circle-wrap {
    width: 450px;
    height: 450px;
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-dashed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--purple);
    border-radius: 50%;
    animation: spin 20s linear infinite;
    opacity: 0.5;
}

.circle-img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: var(--shadow-heavy);
}

.circle-img img {
    width: 100%;
    height: 100%;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.dd-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.dd-content ul li {
    font-weight: 700;
    padding: 15px 0;
    border-bottom: 1px solid rgba(29, 30, 44, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.dd-content ul li::before {
    content: '✓';
    color: var(--coral);
    font-weight: 900;
}

/* Industries - Pill Carousel (Flex Grid) */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.ind-pill {
    background: var(--bg-white);
    padding: 20px 40px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-colored);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.ind-pill:hover {
    background: var(--teal);
    color: var(--bg-white);
    transform: scale(1.05);
}

/* Workflow - Ascending Staircase */
.staircase-wrapper {
    overflow-x: auto;
    padding: 40px 0;
    margin-top: 40px;
}

.staircase {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    min-width: 1000px;
    height: 450px;
}

.step-card {
    flex: 1;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-colored);
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-10px);
    background: var(--purple);
    color: var(--bg-white);
}

.step-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.step-card:nth-child(1) {
    height: 250px;
}

.step-card:nth-child(2) {
    height: 300px;
}

.step-card:nth-child(3) {
    height: 370px;
}

.step-card:nth-child(4) {
    height: 440px;
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(29, 30, 44, 0.05);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
    transition: var(--transition);
}

.step-card:hover .step-num {
    color: rgba(255, 255, 255, 0.1);
}

/* Testimonials - Elevated Middle Grid */
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
    align-items: center;
}

.test-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-colored);
}

.test-card:nth-child(2) {
    transform: translateY(-40px);
    background: var(--purple);
    color: var(--bg-white);
}

.test-card:nth-child(2) p {
    color: rgba(255, 255, 255, 0.9);
}

.test-card:nth-child(2) h4 {
    color: var(--bg-white);
}

.test-author {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-body);
}

/* FAQ - 3D Flip Concept (Simplified to Hover Expansion) */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 60px auto 0;
}

details.faq-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-colored);
    overflow: hidden;
}

summary.faq-question {
    padding: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

summary.faq-question::after {
    content: '▾';
    color: var(--coral);
    font-size: 1.5rem;
}

details[open] summary.faq-question::after {
    content: '▴';
}

.faq-answer {
    padding: 0 30px 30px;
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Block */
.cta-wrapper {
    margin: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--teal) 0%, #0077B6 100%);
    border-radius: var(--radius-lg);
    padding: 100px 60px;
    text-align: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-heavy);
}

.cta-box h2 {
    color: var(--bg-white);
}

/* Forms - Floating Labels with Color */
.form-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-colored);
}

.input-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.input-control {
    width: 100%;
    padding: 20px;
    background: var(--bg-body);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.input-control:focus {
    outline: none;
    border-color: var(--coral);
    background: var(--bg-white);
}

.input-wrapper label {
    position: absolute;
    left: 20px;
    top: 22px;
    color: var(--text-light);
    font-weight: 700;
    pointer-events: none;
    transition: var(--transition);
}

.input-control:focus~label,
.input-control:valid~label {
    top: -12px;
    left: 15px;
    font-size: 0.85rem;
    color: var(--coral);
    background: var(--bg-white);
    padding: 0 10px;
    border-radius: 10px;
}

textarea.input-control {
    min-height: 180px;
    resize: vertical;
}

/* Legal Pages */
.legal-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 80px;
    box-shadow: var(--shadow-colored);
    max-width: 1000px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--purple);
}

.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    border-bottom: 2px solid var(--bg-body);
    padding-bottom: 15px;
}

/* Footer */
footer {
    background: var(--bg-white);
    padding: 100px 0 40px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col p {
    max-width: 350px;
    margin-top: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--purple);
    margin-bottom: 25px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    font-weight: 700;
    color: var(--text-light);
}

.footer-col ul li a:hover {
    color: var(--coral);
}

.footer-bottom {
    border-top: 2px solid var(--bg-body);
    padding-top: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        padding: 150px 0 100px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero-grid,
    .bento-grid,
    .deep-dive-row,
    .deep-dive-row:nth-child(even) .dd-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .bento-grid {
        margin-top: 40px;
    }

    .bento-main,
    .bento-img,
    .bento-stat {
        grid-column: 1 / -1;
    }

    .bento-img {
        grid-row: 2 / 3;
    }

    .bento-stat {
        grid-row: 3 / 4;
        padding: 40px;
    }

    .hero-visual {
        height: 400px;
    }

    .services-grid,
    .test-grid {
        grid-template-columns: 1fr;
    }

    .test-card:nth-child(2) {
        transform: none;
    }

    .circle-wrap {
        width: 350px;
        height: 350px;
    }

    .circle-img {
        width: 290px;
        height: 290px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-pill {
        padding: 15px 25px;
    }

    .circle-wrap {
        width: 300px;
        height: 300px;
    }

    .circle-img {
        width: 250px;
        height: 250px;
    }

    .staircase {
        flex-direction: column;
        height: auto;
        min-width: 100%;
        align-items: stretch;
    }

    .step-card {
        height: auto !important;
        padding: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .legal-container,
    .cta-box {
        padding: 40px 20px;
    }
}