/* =============================================
   Collabdy — Global Styles
   ============================================= */

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --accent: #06b6d4;
    --dark-900: #0f172a;
    --dark-800: #1e293b;
    --dark-700: #334155;
    --dark-600: #475569;
    --dark-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-700);
    background: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* =============================================
   Modal
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--dark-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.875rem;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--dark-900);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.modal h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
}

.modal p {
    color: var(--dark-600);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.modal .modal-sub {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
    white-space: nowrap;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--dark-700);
    border-color: var(--gray-300);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* =============================================
   Navigation
   ============================================= */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--dark-900);
    letter-spacing: -0.025em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    color: var(--white);
    font-size: 0.875rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark-600);
    border-radius: var(--radius);
}

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

.nav-links .btn-nav {
    margin-left: 0.75rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 100;
}

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

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   Hero
   ============================================= */

.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 40%, var(--primary-bg) 100%);
    overflow: hidden;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 40%;
    left: 30%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--dark-900);
    margin-bottom: 1.5rem;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--dark-500);
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-trust {
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.trust-metrics {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark-600);
}

.trust-item i {
    color: var(--primary);
    font-size: 0.875rem;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-300);
}

/* Hero Visual — Code Window */

.hero-visual {
    position: relative;
}

.code-window {
    background: var(--dark-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--dark-700);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--dark-800);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.code-title {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.code-body {
    padding: 1.5rem;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.code-line {
    min-height: 1.8em;
    color: var(--gray-300);
}

.code-keyword { color: #c084fc; }
.code-string { color: #34d399; }
.code-func { color: #60a5fa; }
.code-comment { color: var(--dark-500); }

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--gray-200);
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--primary);
}

.floating-card strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--dark-900);
    font-weight: 700;
}

.floating-card span {
    font-size: 0.75rem;
    color: var(--dark-500);
}

.card-top-right {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.card-bottom-left {
    bottom: 20px;
    left: -30px;
    animation-delay: 1.5s;
}

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

/* =============================================
   Stats Bar
   ============================================= */

.stats-bar {
    background: var(--dark-900);
    padding: 3rem 0;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-left: 2px;
}

.stat-item > .stat-number,
.stat-item > .stat-suffix {
    display: inline;
}

.stat-item {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.stat-number {
    font-size: 2.5rem;
}

.stat-label {
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* =============================================
   Section Headers
   ============================================= */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-900);
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--dark-500);
    line-height: 1.7;
}

/* =============================================
   Services
   ============================================= */

.services {
    padding: 6rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    background: var(--white);
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--dark-500);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.service-link i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* =============================================
   Solutions / Why Us
   ============================================= */

.solutions {
    padding: 6rem 0;
    background: var(--gray-50);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.solution-feature {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.solution-feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.feature-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
}

.feature-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9375rem;
    color: var(--dark-500);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   Process
   ============================================= */

.process {
    padding: 6rem 0;
    background: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(12.5% + 1rem);
    right: calc(12.5% + 1rem);
    height: 2px;
    background: var(--gray-200);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 4px solid var(--white);
    transition: var(--transition);
}

.process-step:hover .step-number {
    background: var(--gradient);
    color: var(--white);
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--dark-500);
    line-height: 1.65;
}

/* =============================================
   About
   ============================================= */

.about {
    padding: 6rem 0;
    background: var(--gray-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content .section-tag {
    margin-bottom: 1rem;
}

.about-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--dark-900);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-content p {
    font-size: 1rem;
    color: var(--dark-500);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 1.5rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--dark-700);
}

.highlight i {
    color: var(--primary);
    font-size: 1rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.about-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-900);
    margin-bottom: 1rem;
}

.about-address {
    font-size: 0.9375rem;
    color: var(--dark-500);
    line-height: 1.6;
    margin-bottom: 1.5rem !important;
}

.about-tagline {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

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

.cta {
    position: relative;
    padding: 6rem 0;
    background: var(--gradient);
    overflow: hidden;
}

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

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

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

.cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */

.footer {
    background: var(--dark-900);
    padding: 4rem 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-column a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

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

.footer-contact-item {
    display: flex;
    gap: 0.625rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-contact-item i {
    margin-top: 4px;
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--dark-500);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8125rem;
    color: var(--dark-500);
}

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

/* =============================================
   Animations — Fade In on Scroll
   ============================================= */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card.fade-in:nth-child(2) { transition-delay: 0.1s; }
.service-card.fade-in:nth-child(3) { transition-delay: 0.2s; }
.service-card.fade-in:nth-child(4) { transition-delay: 0.3s; }
.service-card.fade-in:nth-child(5) { transition-delay: 0.4s; }
.service-card.fade-in:nth-child(6) { transition-delay: 0.5s; }

.solution-feature.fade-in:nth-child(2) { transition-delay: 0.08s; }
.solution-feature.fade-in:nth-child(3) { transition-delay: 0.16s; }
.solution-feature.fade-in:nth-child(4) { transition-delay: 0.24s; }
.solution-feature.fade-in:nth-child(5) { transition-delay: 0.32s; }
.solution-feature.fade-in:nth-child(6) { transition-delay: 0.4s; }

.process-step.fade-in:nth-child(2) { transition-delay: 0.12s; }
.process-step.fade-in:nth-child(3) { transition-delay: 0.24s; }
.process-step.fade-in:nth-child(4) { transition-delay: 0.36s; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
    .hero { padding: 8rem 0 4rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero h1 { font-size: 3rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .trust-metrics { justify-content: center; }
    .hero-visual { max-width: 520px; margin: 0 auto; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-highlights { justify-items: center; }
    .about-card { max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem 1.5rem 1.5rem;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-links .btn-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        text-align: center;
        justify-content: center;
    }

    .hero { padding: 7rem 0 3.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }

    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 2rem; }

    .services-grid { grid-template-columns: 1fr; }
    .solutions-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; gap: 1.5rem; }

    .section-header h2 { font-size: 1.875rem; }
    .cta h2 { font-size: 1.875rem; }
    .about-content h2 { font-size: 1.75rem; }

    .floating-card { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.875rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .trust-metrics { flex-direction: column; gap: 0.75rem; }
    .trust-divider { display: none; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .modal { padding: 2rem 1.5rem; }
}
