/* ===================================
   MACH Design — Styles
   =================================== */

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --blue: #2563eb;
    --violet: #7c3aed;
    --teal: #0d9488;
    --rose: #e11d48;
    --amber: #f59e0b;
    --emerald: #10b981;
    --cyan: #06b6d4;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark: #0a0b14;
    --darker: #05060f;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #2563eb, #7c3aed);
    --gradient-2: linear-gradient(135deg, #0d9488, #06b6d4);
    --gradient-3: linear-gradient(135deg, #e11d48, #f97316);
    --gradient-4: linear-gradient(135deg, #7c3aed, #ec4899);
    --gradient-5: linear-gradient(135deg, #f59e0b, #e11d48);
    --gradient-6: linear-gradient(135deg, #10b981, #0d9488);
    --gradient-hero: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);

    /* Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.15;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto var(--spacing-3xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-900);
    background: var(--gray-900);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* --- Gradient Utility --- */
.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }
.gradient-6 { background: var(--gradient-6); }
.gradient-hero { background: var(--gradient-hero); }

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-mark {
    height: 36px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-600);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--blue);
}

.nav-link.nav-cta {
    background: var(--gradient-1);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.nav-link.nav-contact-action {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.nav-link.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    color: #25D366;
    font-weight: 600;
}
.nav-link.nav-whatsapp:hover {
    color: #1ebe5d;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    padding: calc(90px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.geometric-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    opacity: 0.12;
    border-radius: 40% 60% 40% 60%;
}

.shape-1 {
    top: -150px;
    right: -150px;
    background: var(--gradient-1);
    animation: morphFloat 8s ease-in-out infinite;
}

.shape-2 {
    bottom: -200px;
    left: -150px;
    background: var(--gradient-4);
    animation: morphFloat 10s ease-in-out infinite reverse;
}

.shape-3 {
    top: 40%;
    right: -80px;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    animation: morphFloat 7s ease-in-out infinite;
}

.shape-4 {
    bottom: 30%;
    left: -60px;
    width: 250px;
    height: 250px;
    background: var(--gradient-5);
    animation: morphFloat 9s ease-in-out infinite reverse;
}

@keyframes morphFloat {
    0%, 100% {
        border-radius: 40% 60% 40% 60%;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        border-radius: 60% 40% 60% 40%;
        transform: translateY(-30px) rotate(15deg);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 520px;
}

.hero-offer-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c3fe8;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
}
.btn-hero-whatsapp {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-hero-whatsapp:hover { opacity: 0.88; }
.btn-hero-call {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #111;
    border: 2px solid #111;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-hero-call:hover { background: #111; color: #fff; }
.btn-hero-form {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #111;
    border: 2px solid #111;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.btn-hero-form:hover { background: #111; color: #fff; }
.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- Hero Visual (Desktop + Mobile Illustration) --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-illustration {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.device-desktop {
    width: 460px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
}

.device-mobile {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    margin-bottom: -12px;
}

/* --- Floating Cards --- */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    animation: floatCard 4s ease-in-out infinite;
}

.card-1 { top: 30px; left: -50px; animation-delay: 0s; }
.card-2 { bottom: 40px; right: -60px; animation-delay: 1.5s; }

.fc-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    color: var(--white);
}

.fc-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fc-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: var(--white);
}

.service-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.service-description {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.service-features {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-100);
}

.service-features li {
    padding: 6px 0;
    font-size: 0.8125rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ===================================
   Work / Portfolio Section
   =================================== */
.work {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.work-title .external-icon {
    font-size: 0.875rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition);
    display: inline-block;
}

.work-card:hover .external-icon {
    opacity: 1;
    transform: translateX(0);
}

.work-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    color: inherit;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gray-100);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
}

.work-info {
    padding: var(--spacing-lg);
    flex: 1;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 4px 0 8px;
}

.work-description {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.work-tags span {
    padding: 4px 10px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

/* ===================================
   Process Section
   =================================== */
.process {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.step-line {
    width: 2px;
    flex: 1;
    background: var(--gray-200);
    margin-top: 8px;
}

.process-step:last-child .step-line {
    display: none;
}

.step-body {
    padding-top: 8px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.step-text {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.step-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.step-deliverables span {
    padding: 6px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-description {
    font-size: 1.0625rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
}

.mach-principles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.principle {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.principle-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.principle h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.principle p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* About Visual (Code Card) */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-card {
    width: 380px;
    background: var(--darker);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(800px) rotateY(4deg);
    transition: transform 0.5s ease;
}

.about-card:hover {
    transform: perspective(800px) rotateY(0deg);
}

.about-card-header {
    padding: 14px 18px;
    display: flex;
    align-items: center;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.about-card-body {
    padding: var(--spacing-lg);
}

.code-block {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
    font-size: 0.8125rem;
    line-height: 2;
    color: var(--gray-300);
}

.code-keyword {
    color: #c792ea;
}

.code-var {
    color: #82aaff;
}

.code-string {
    color: #c3e88d;
}

.code-output {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.output-label {
    font-size: 0.875rem;
    color: var(--emerald);
    font-weight: 500;
}

/* ===================================
   Testimonials
   =================================== */
.testimonials {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}
.testimonials-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonials-carousel {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 8px 4px;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }
.testimonial-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gray-200, #e5e7eb);
    background: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    color: #333;
}
.testimonial-arrow:hover {
    background: #f3f4f6;
    border-color: #aaa;
}
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.testimonial-dot.active {
    background: #6c3fe8;
    transform: scale(1.3);
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    transition: var(--transition);
    flex: 0 0 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.testimonial-card .testimonial-text {
    flex: 1;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--amber);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.testimonial-author p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===================================
   CTA / Contact Section
   =================================== */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--gray-50);
}

.cta-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.05;
}

.cta-shape-1 {
    top: -100px;
    right: -100px;
    background: var(--gradient-1);
}

.cta-shape-2 {
    bottom: -100px;
    left: -100px;
    background: var(--gradient-4);
}

.cta-content {
    padding: var(--spacing-3xl) var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.0625rem;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form */
.cta-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.9375rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: var(--transition);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239ca3af'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: var(--spacing-sm);
}

/* Form Success State */
.form-success {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    display: none;
}

.form-success[hidden] {
    display: none;
}

.form-success:not([hidden]) {
    display: block;
}

.success-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    margin-bottom: var(--spacing-lg);
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: var(--gray-500);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    background: var(--darker);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-1);
    color: var(--white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.9375rem;
}

.footer-col ul li a {
    color: var(--gray-400);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal a {
    color: var(--gray-500);
    transition: var(--transition);
}

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

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        order: -1;
    }

    .device-desktop {
        width: 340px;
    }

    .device-mobile {
        width: 120px;
    }

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

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

    .testimonials-grid {
        flex-direction: column;
        align-items: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-visual {
        order: -1;
    }

    .about-card {
        width: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .device-desktop {
        width: 280px;
    }

    .device-mobile {
        width: 100px;
    }

    .floating-card {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .work-card {
        flex-direction: column;
    }

    .work-image {
        width: 100%;
        height: 100px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

    .about-card {
        width: 100%;
    }
}
