/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
    /* Colors - Light Mode */
    --background: 40 33% 98%;
    --foreground: 220 16% 7%;
    --border: 220 16% 90%;
    --card: 0 0% 100%;
    --card-foreground: 220 16% 7%;
    --card-border: 220 16% 92%;
    
    --primary: 32 95% 53%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 220 16% 12%;
    --secondary-foreground: 0 0% 100%;
    
    --muted: 220 16% 92%;
    --muted-foreground: 220 16% 40%;
    
    --accent: 32 95% 95%;
    --accent-foreground: 32 95% 40%;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Fraunces', serif;
    
    /* Spacing */
    --spacing: 0.25rem;
    --radius: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0px 2px 0px 0px rgba(0,0,0,0.04), 0px 1px 2px -1px rgba(0,0,0,0.06);
    --shadow-md: 0px 2px 0px 0px rgba(0,0,0,0.04), 0px 2px 4px -1px rgba(0,0,0,0.12);
    --shadow-lg: 0px 2px 0px 0px rgba(0,0,0,0.04), 0px 4px 6px -1px rgba(0,0,0,0.16);
    --shadow-xl: 0px 2px 0px 0px rgba(0,0,0,0.04), 0px 8px 10px -1px rgba(0,0,0,0.20);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: hsl(var(--primary));
}

.text-muted {
    color: hsl(var(--muted-foreground));
}

.italic {
    font-style: italic;
    font-weight: 300;
}

.mt-large {
    margin-top: 3.5rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-lg), 0 0 20px hsla(var(--primary), 0.2);
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--primary) / 0.4);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    height: 3rem;
}

.btn-block {
    width: 100%;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 51;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .logo-text {
        display: none;
    }
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

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

.nav-link {
    font-weight: 500;
    color: hsl(var(--foreground) / 0.8);
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 51;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: hsl(var(--background));
    padding: 5rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid hsl(var(--border));
}

.hero-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: blob 14s ease-in-out infinite;
}

.blob-1 {
    top: -10rem;
    left: -5rem;
    width: 31.25rem;
    height: 31.25rem;
    background-color: hsl(var(--primary) / 0.15);
}

.blob-2 {
    bottom: -10rem;
    right: -5rem;
    width: 37.5rem;
    height: 37.5rem;
    background-color: hsl(var(--secondary) / 0.1);
    animation-delay: -7s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, hsl(var(--foreground) / 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, hsl(var(--foreground) / 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 80%);
    opacity: 0.5;
}

.radial-gradient {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse 70% 50% at 50% -10%, hsl(var(--primary) / 0.18), transparent 60%);
}

.hero-content {
    padding: 6rem 1rem 5rem;
    text-align: center;
    max-width: 80rem;
    position: relative;
}

@media (min-width: 768px) {
    .hero-content {
        padding: 8rem 1rem 7rem;
    }
}

.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: 9999px;
    border: 1px solid hsl(var(--primary) / 0.2);
    margin-bottom: 2rem;
}

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

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: hsl(var(--primary));
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: hsl(var(--primary));
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.05;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

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

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 2rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   Marquee Section
   ============================================ */
.marquee-section {
    padding: 2.5rem 0;
    background-color: hsl(var(--muted) / 0.4);
    border-bottom: 1px solid hsl(var(--border));
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
}

.marquee-content {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-width: 100%;
    animation: marquee 40s linear infinite;
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    white-space: nowrap;
    color: hsl(var(--foreground) / 0.6);
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .marquee-item {
        font-size: 1.875rem;
    }
}

.marquee-item:hover {
    color: hsl(var(--primary));
}

.marquee-separator {
    color: hsl(var(--primary) / 0.4);
    font-size: 1.5rem;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 4rem 0;
    border-bottom: 1px solid hsl(var(--secondary) / 0.2);
}

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

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

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

.stat-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3.75rem;
    }
}

.stat-value::after {
    content: '+';
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .stat-label {
        font-size: 1rem;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    padding: 6rem 0;
    background-color: hsl(var(--background));
}

@media (min-width: 768px) {
    .services-section {
        padding: 8rem 0;
    }
}

.section-header {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .section-header {
        grid-template-columns: 2fr 1fr;
    }
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.services-grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--card-border));
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.service-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    transform: scale(1.1);
}

.service-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--muted-foreground) / 0.4);
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    color: hsl(var(--primary));
    transform: translate(0.125rem, -0.125rem);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid hsl(var(--border));
    margin-top: auto;
}

.service-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsl(var(--muted-foreground));
}

.service-price {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    padding: 6rem 0;
    background-color: hsl(var(--muted) / 0.3);
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
    .process-section {
        padding: 8rem 0;
    }
}

.section-intro {
    max-width: 48rem;
    margin: 0 auto 5rem;
}

.process-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 90rem;
    margin: 0 auto;
}

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

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

.process-card {
    position: relative;
    height: 100%;
    background-color: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color 0.3s ease;
}

.process-card:hover {
    border-color: hsl(var(--primary) / 0.4);
}

.process-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.process-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--foreground) / 0.05);
    line-height: 1;
}

.process-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 6rem 0;
    background-color: hsl(var(--background));
}

@media (min-width: 768px) {
    .cta-section {
        padding: 8rem 0;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 4rem 0 2rem;
    border-top: 1px solid hsl(var(--secondary) / 0.2);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

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

.footer-col:first-child {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-col:first-child {
        grid-column: span 1;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: hsl(var(--secondary-foreground) / 0.7);
    margin-bottom: 1.5rem;
    max-width: 24rem;
}

.footer-contact {
    font-size: 0.875rem;
    color: hsl(var(--secondary-foreground) / 0.7);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: hsl(var(--secondary-foreground) / 0.7);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--secondary-foreground) / 0.1);
    font-size: 0.875rem;
    color: hsl(var(--secondary-foreground) / 0.5);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease;
}

.slide-up {
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}
