/* ==========================================================================
   INCODAP - Clean Professional Design
   Modern, trustworthy, premium tech aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Clean, professional palette */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;

    --color-text: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;

    --color-accent: #dc2626;
    --color-accent-soft: #fef2f2;

    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    --space-4xl: 10rem;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 200ms var(--ease-out);
    --transition-base: 400ms var(--ease-out);

    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link--cta {
    padding: 0.6rem 1.25rem;
    background: var(--color-text);
    color: white !important;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link--cta:hover {
    background: var(--color-accent);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        background: var(--color-bg);
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.4;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black, transparent);
}

.hero-gradient {
    display: none;
}

.hero-content {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent-soft);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title-accent {
    color: var(--color-accent);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-text);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
    background: var(--color-bg-alt);
}

.btn-full {
    width: 100%;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-light), transparent);
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
section {
    padding: var(--space-3xl) 0;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header--center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    padding: var(--space-xl);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: color var(--transition-base);
}

.service-card:hover .service-number {
    color: var(--color-accent);
}

.service-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags li {
    padding: 0.35rem 0.75rem;
    background: var(--color-bg-alt);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Motivation Section
   -------------------------------------------------------------------------- */
.motivation {
    background: var(--color-bg-alt);
}

.motivation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 900px) {
    .motivation-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

.motivation-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.motivation-illustration {
    max-width: 300px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.motivation-visual-accent {
    display: none;
}

.motivation-content .section-title {
    text-align: left;
}

.motivation-content .section-label {
    display: block;
    text-align: left;
}

.motivation-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.motivation-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Trust & Confidentiality Section
   -------------------------------------------------------------------------- */
.trust {
    background: var(--color-bg);
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--color-accent-soft);
    border-radius: 16px;
    margin-bottom: var(--space-md);
}

.trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
}

.trust-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.trust-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto var(--space-2xl);
}

.trust-description strong {
    color: var(--color-text);
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    text-align: left;
}

@media (max-width: 900px) {
    .trust-features {
        grid-template-columns: 1fr;
    }
}

.trust-feature {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.trust-feature:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.trust-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.trust-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-accent);
}

.trust-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.trust-feature p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.trust-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-muted);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    max-width: 500px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Technologies Section
   -------------------------------------------------------------------------- */
.technologies {
    background: var(--color-bg-alt);
}

.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 900px) {
    .tech-showcase {
        grid-template-columns: 1fr;
    }
}

.tech-visual {
    display: flex;
    justify-content: center;
}

.tech-illustration {
    max-width: 240px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 8s ease-in-out infinite;
    animation-delay: -2s;
}

.tech-grid {
    display: grid;
    gap: var(--space-md);
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

.tech-bar {
    width: 180px;
    height: 4px;
    background: var(--color-border);
    border-radius: 100px;
    overflow: hidden;
}

@media (max-width: 600px) {
    .tech-bar {
        width: 100px;
    }
}

.tech-progress {
    height: 100%;
    width: var(--progress);
    background: var(--color-accent);
    border-radius: 100px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease-out);
}

.tech-item.animate .tech-progress {
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Process Section
   -------------------------------------------------------------------------- */
.process {
    background: var(--color-bg);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-timeline {
        grid-template-columns: 1fr;
    }
}

.process-line {
    display: none;
}

.process-step {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.process-step:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.process-marker {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: color var(--transition-base);
}

.process-step:hover .process-marker {
    color: var(--color-accent);
}

.process-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.process-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-bg-dark);
    color: white;
}

.contact .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.contact .section-title {
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    border-radius: 10px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: white;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

/* Contact Form */
.contact-form {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    background: var(--color-accent);
    margin-top: var(--space-sm);
}

.contact-form .btn-primary:hover {
    background: #b91c1c;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-bg-dark);
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-logo {
    height: 28px;
    filter: brightness(0) invert(1);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].animate {
    opacity: 1;
    transform: translate(0, 0);
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
::selection {
    background: var(--color-accent);
    color: white;
}

.cursor-glow {
    display: none;
}
