/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Colors - Primary (Blue) */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    --primary-950: #082f49;

    /* Colors - Slate (Grays) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Spacing */
    --container-max-width: 1280px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.75rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--slate-950);
    color: var(--slate-300);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.main {
    min-height: 100vh;
}

/* ============================================
   Typography
   ============================================ */
.text-primary {
    color: var(--primary-500);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--slate-200);
    border: 1px solid var(--slate-200);
}

.btn-outline:hover {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

.icon-inline {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-800);
}

.header-content {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo-highlight {
    color: var(--primary-500);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide topBtn on mobile */
@media (max-width: 767px) {
    .topBtn {
        display: none;
    }

    .icon-inline {
        display: none;
    }
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all var(--transition-base);
}

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

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

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

@media (min-width: 768px) {
    .nav {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--slate-950);
    border-bottom: 1px solid var(--slate-800);
    padding: 1rem;
    gap: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-gradient-1 {
    top: 0;
    left: 25%;
    background-color: rgba(14, 165, 233, 0.2);
}

.hero-gradient-2 {
    bottom: 0;
    right: 25%;
    background-color: rgba(99, 102, 241, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-inner {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    position: relative;
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
}

.pulse-ring {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    background-color: var(--primary-400);
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-core {
    position: relative;
    display: inline-flex;
    border-radius: 50%;
    height: 0.5rem;
    width: 0.5rem;
    background-color: var(--primary-500);
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--slate-400);
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    color: var(--slate-400);
    border-top: 1px solid rgba(30, 41, 59, 0.5);
    padding-top: 2rem;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature-icon {
    height: 2rem;
    width: 2rem;
    color: var(--primary-500);
    stroke-width: 2;
}

.hero-feature-title {
    font-weight: 600;
    color: white;
}

.hero-feature-desc {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }

    .hero-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-top: 12rem;
        padding-bottom: 8rem;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 5rem 0;
    background-color: var(--slate-900);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--slate-400);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--slate-950);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-800);
    transition: border-color var(--transition-base);
}

.service-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
}

.service-icon {
    margin-bottom: 1.5rem;
    background-color: rgba(15, 23, 42, 0.5);
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    height: 2.5rem;
    width: 2.5rem;
    color: var(--primary-500);
    stroke-width: 2;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--slate-400);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.about-visual {
    width: 100%;
}

.about-card {
    position: relative;
    background-color: var(--slate-900);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--slate-800);
}

.about-card::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, var(--primary-500), rgb(99, 102, 241));
    border-radius: var(--radius-2xl);
    opacity: 0.2;
    filter: blur(24px);
    z-index: -1;
}

.about-image {
    aspect-ratio: 16 / 9;
    background-color: var(--slate-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.barcelona-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-placeholder {
    text-align: center;
    padding: 1rem;
    color: var(--slate-600);
}

.about-emoji {
    display: block;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

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

.about-stats-expanded {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.about-stat {
    background-color: var(--slate-950);
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--slate-800);
    transition: all var(--transition-base);
}

.about-stat:hover {
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.about-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 0.5rem;
}

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

.about-content {
    width: 100%;
}

.about-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--slate-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate-300);
}

.about-feature-icon {
    height: 1.25rem;
    width: 1.25rem;
    color: var(--primary-500);
    flex-shrink: 0;
    stroke-width: 2;
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
    }

    .about-visual,
    .about-content {
        width: 50%;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 5rem 0;
    background-color: var(--slate-900);
}

.contact-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    background-color: var(--slate-950);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    border: 1px solid var(--slate-800);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-grid {
    display: flex;
    flex-direction: column;
}

.contact-info {
    padding: 2.5rem;
    background: linear-gradient(to bottom right, rgba(12, 74, 110, 0.2), var(--slate-950));
}

.contact-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.contact-description {
    color: var(--slate-400);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-method-icon {
    background-color: var(--slate-900);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-800);
}

.contact-method-icon svg {
    height: 1.5rem;
    width: 1.5rem;
    color: var(--primary-500);
    stroke-width: 2;
}

.contact-method-title {
    color: white;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-method-link {
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.contact-method-link:hover {
    color: var(--primary-400);
}

.contact-method-text {
    color: var(--slate-400);
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
}

.form-input {
    width: 100%;
    background-color: var(--slate-900);
    border: 1px solid var(--slate-800);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
    resize: none;
    font-family: inherit;
}

.form-privacy {
    margin-top: 0.5rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.form-checkbox {
    margin-top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-600);
}

.form-privacy-text {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.5;
}

.privacy-link {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-base);
}

.privacy-link:hover {
    color: var(--primary-400);
    text-decoration: underline;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        flex-direction: row;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 50%;
    }

    .contact-info {
        padding: 4rem;
    }

    .contact-form-wrapper {
        padding: 4rem;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--slate-950);
    border-top: 1px solid var(--slate-800);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    grid-column: span 1;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--slate-400);
    max-width: 28rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--slate-500);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: row;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Form Security & Status
   ============================================ */

/* Honeypot field - invisible to humans, visible to bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Form message container */
.form-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(74, 222, 128);
}

.form-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(248, 113, 113);
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}