/* Font loaded via preload in HTML for better performance */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
input {
    border: none;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    color: #111827;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   GRADIENTS & SPECIAL BACKGROUNDS
   ======================================== */
.gradient-hero {
    background: linear-gradient(180deg, #FFFFFF 0%, #eae2fd 100%);
}

.color-primary {
    background: #6226ed;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-purple-50 {
    --tw-gradient-from: #faf5ff;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(250, 245, 255, 0));
}

.to-blue-50 {
    --tw-gradient-to: #eff6ff;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.text-purple-600 {
    color: #9333ea;
}

.text-purple-800 {
    color: #6b21a8;
}

.border-purple-200 {
    border-color: #e9d5ff;
}

.line-through {
    text-decoration: line-through;
}

/* ========================================
   CUSTOM COMPONENTS
   ======================================== */
.highlight {
    font-weight: 800;
    color: #6226ed;
}

.highlight-value {
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    background: #facc15;
    color: #000;
    border-radius: 999px;
    vertical-align: middle;
    display: inline-block;
}

.btn-primary {
    background: #6226ed;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #391197;
}

.email-form-shadow {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.success-message {
    display: none;
}

.success-message.show {
    display: block;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

.error-message.show {
    display: block;
}

.mobile-menu {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    max-height: 500px;
}

/* ========================================
   UTILITY CLASSES - DISPLAY
   ======================================== */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ========================================
   UTILITY CLASSES - FLEXBOX
   ======================================== */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ========================================
   UTILITY CLASSES - GRID
   ======================================== */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========================================
   UTILITY CLASSES - SPACING (MARGIN)
   ======================================== */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }

/* ========================================
   UTILITY CLASSES - SPACING (PADDING)
   ======================================== */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-4 { padding-top: 1rem; }
.pb-3 { padding-bottom: 0.75rem; }

/* ========================================
   UTILITY CLASSES - WIDTH & HEIGHT
   ======================================== */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }

.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }

.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }

/* ========================================
   UTILITY CLASSES - POSITION
   ======================================== */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.top-0 { top: 0; }

/* ========================================
   UTILITY CLASSES - Z-INDEX
   ======================================== */
.z-50 { z-index: 50; }

/* ========================================
   UTILITY CLASSES - BORDERS
   ======================================== */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-green-200 { border-color: #bbf7d0; }
.border-purple-200 { border-color: #e9d5ff; }
.border-purple-300 { border-color: #d8b4fe; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ========================================
   UTILITY CLASSES - BACKGROUNDS
   ======================================== */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-black { background-color: #000000; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-300 { background-color: #fde047; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-green-50 { background-color: #f0fdf4; }

/* ========================================
   UTILITY CLASSES - TEXT COLOR
   ======================================== */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-green-500 { color: #22c55e; }
.text-purple-600 { color: #9333ea; }

/* ========================================
   UTILITY CLASSES - TYPOGRAPHY
   ======================================== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

.leading-tight { line-height: 1.25; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }

.whitespace-nowrap { white-space: nowrap; }

/* ========================================
   UTILITY CLASSES - TRANSITIONS
   ======================================== */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }

/* ========================================
   UTILITY CLASSES - SHADOWS
   ======================================== */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* ========================================
   UTILITY CLASSES - SPACE BETWEEN
   ======================================== */
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-3 > * + * { margin-top: 0.75rem; }

/* ========================================
   UTILITY CLASSES - OUTLINE
   ======================================== */
.outline-none { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* ========================================
   UTILITY CLASSES - CURSOR
   ======================================== */
.cursor-pointer { cursor: pointer; }

/* ========================================
   UTILITY CLASSES - GROUP HOVER
   ======================================== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ========================================
   UTILITY CLASSES - HOVER STATES
   ======================================== */
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:text-black:hover { color: #000000; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-yellow-300:hover { background-color: #fde047; }
.hover\:bg-purple-700:hover { background-color: 391197; }

.hover\:border-purple-300:hover { border-color: #d8b4fe; }

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:scale-110:hover {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN - SMALL SCREENS
   ======================================== */
@media (min-width: 640px) {
    .sm\:inline-block { display: inline-block; }
    .sm\:flex-row { flex-direction: row; }
    
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
    .sm\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    
    .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    
    .sm\:mb-10 { margin-bottom: 2.5rem; }
    .sm\:mb-12 { margin-bottom: 3rem; }
    
    .sm\:gap-8 { gap: 2rem; }
    
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    
    .sm\:rounded-full { border-radius: 9999px; }
}

/* ========================================
   RESPONSIVE DESIGN - MEDIUM SCREENS
   ======================================== */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    
    .md\:p-10 { padding: 2.5rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
     .md\:pt-32 { padding-top: 8rem;}
    
    .md\:gap-12 { gap: 3rem; }
    
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ========================================
   RESPONSIVE DESIGN - LARGE SCREENS
   ======================================== */
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========================================
   MOBILE SPECIFIC OVERRIDES
   ======================================== */
@media (max-width: 640px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
    }
    
    .email-form-shadow {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}
