/* CSS Variables */
:root {
    --brand-red: #bf1f24;
    --light-bg: #ffffff;
    --light-border: #e5e7eb;
    --accent-amber: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--gray-900);
    line-height: 1.5;
}

a {
    text-decoration: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-red);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a1920;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--brand-red) #f1f1f1;
}

/* Typography */
.font-inter { font-family: 'Inter', sans-serif; }
.font-space { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }
.font-poppins { font-family: 'Poppins', sans-serif; }

.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-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

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

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

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-brandRed { color: var(--brand-red); }
.text-red-700 { color: #b91c1c; }
.text-accentAmber { color: var(--accent-amber); }

.bg-white { background-color: #ffffff; }
.bg-lightBg { background-color: var(--light-bg); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }
.bg-brandRed { background-color: var(--brand-red); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-700 { background-color: #b91c1c; }
.bg-yellow-500 { background-color: #eab308; }

/* Layout */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-1\/4 { top: 25%; }
.bottom-0 { bottom: 0; }
.bottom-6 { bottom: 1.5rem; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.left-1\/4 { left: 25%; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.right-1\/3 { right: 33.333333%; }
.right-1\/4 { right: 25%; }

.-top-4 { top: -1rem; }
.-top-6 { top: -1.5rem; }
.-top-10 { top: -2.5rem; }
.-top-20 { top: -5rem; }
.-bottom-10 { bottom: -2.5rem; }
.-bottom-16 { bottom: -4rem; }
.-bottom-20 { bottom: -5rem; }
.-left-10 { left: -2.5rem; }
.-left-20 { left: -5rem; }
.-right-4 { right: -1rem; }
.-right-20 { right: -5rem; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }

.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; }

.self-start { align-self: flex-start; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* Spacing */
.space-x-2 > * + * { margin-left: 0.5rem; }
.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-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-x-12 { column-gap: 3rem; }
.gap-y-16 { row-gap: 4rem; }

/* Margin */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-10 { margin-left: 2.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-auto { margin-top: auto; }
.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-16 { margin-bottom: 4rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-2 { padding-left: 0.5rem; padding-right: 0.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; }

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

.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-2 { width: 0.5rem; }
.w-3 { width: 0.75rem; }
.w-4\/5 { width: 80%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-32 { width: 8rem; }
.w-60 { width: 15rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-1\/2 { width: 50%; }

.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-60 { height: 15rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }

.min-h-screen { min-height: 100vh; }

.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-none { max-width: none; }

/* Border */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; }

.border-lightBorder { border-color: var(--light-border); }
.border-gray-300 { border-color: var(--gray-300); }
.border-brandRed { border-color: var(--brand-red); }

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

/* Shadow */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Z-index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Transform */
.transform { transform: translateX(var(--transform-translate-x, 0)) translateY(var(--transform-translate-y, 0)) rotate(var(--transform-rotate, 0)) skewX(var(--transform-skew-x, 0)) skewY(var(--transform-skew-y, 0)) scaleX(var(--transform-scale-x, 1)) scaleY(var(--transform-scale-y, 1)); }
.transform-gpu { transform: translate3d(var(--transform-translate-x, 0), var(--transform-translate-y, 0), 0) rotate(var(--transform-rotate, 0)) skewX(var(--transform-skew-x, 0)) skewY(var(--transform-skew-y, 0)) scaleX(var(--transform-scale-x, 1)) scaleY(var(--transform-scale-y, 1)); }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-full { transform: translateX(100%); }

/* Transitions */
.transition-transform { transition-property: transform; 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-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Background Gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--gradient-from), var(--gradient-to)); }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

/* Blur */
.blur-3xl { filter: blur(64px); }

/* Opacity */
.opacity-30 { opacity: 0.3; }

/* Grid overlay effect */
.grid-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 31, 36, 0.1);
}

/* Icon orb effect */
.icon-orb {
    background: linear-gradient(135deg, rgba(191, 31, 36, 0.1) 0%, rgba(191, 31, 36, 0.05) 100%);
}

/* Glow effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(191, 31, 36, 0.3);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(191, 31, 36, 0.5);
}

/* Animations */
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fade-in-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

/* Hover States */
.hover\:text-gray-900:hover { color: var(--gray-900); }
.hover\:text-brandRed:hover { color: var(--brand-red); }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:bg-brandRed\/10:hover { background-color: rgba(191, 31, 36, 0.1); }
.hover\:border-brandRed\/50:hover { border-color: rgba(191, 31, 36, 0.5); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:rotate-1:hover { transform: rotate(1deg); }
.hover\:-rotate-1:hover { transform: rotate(-1deg); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Group Hover */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:shadow-brandRed\/50 { box-shadow: 0 25px 50px -12px rgba(191, 31, 36, 0.5); }

/* Responsive - Small devices (640px and up) */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:space-y-0 > * + * { margin-top: 0; }
    .sm\:space-x-4 > * + * { margin-left: 1rem; }
    .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .sm\:mx-0 { margin-left: 0; margin-right: 0; }
}

/* Responsive - Medium devices (768px and up) */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:inline-block { display: inline-block; }
    .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\:flex-row { flex-direction: row; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-left { text-align: left; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:w-3\/5 { width: 60%; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Responsive - Large devices (1024px and up) */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: hidden; }
    .lg\:block { display: block; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:flex-row { flex-direction: row; }
    .lg\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .lg\:text-left { text-align: left; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:w-1\/2 { width: 50%; }
    .lg\:w-\[450px\] { width: 450px; }
    .lg\:max-w-none { max-width: none; }
    .lg\:mb-0 { margin-bottom: 0; }
    .lg\:mt-16 { margin-top: 4rem; }
    .lg\:p-12 { padding: 3rem; }
    .lg\:scale-105 { transform: scale(1.05); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
}

/* Special utility combinations */
.bg-lightBg\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-brandRed\/05 { background-color: rgba(191, 31, 36, 0.05); }
.bg-brandRed\/10 { background-color: rgba(191, 31, 36, 0.1); }
.bg-brandRed\/20 { background-color: rgba(191, 31, 36, 0.2); }
.border-brandRed\/20 { border-color: rgba(191, 31, 36, 0.2); }
.border-brandRed\/30 { border-color: rgba(191, 31, 36, 0.3); }
.border-brandRed\/50 { border-color: rgba(191, 31, 36, 0.5); }
.text-brandRed\/20 { color: rgba(191, 31, 36, 0.2); }

.hover\:shadow-brandRed\/20:hover { box-shadow: 0 25px 50px -12px rgba(191, 31, 36, 0.2); }
.hover\:shadow-brandRed\/50:hover { box-shadow: 0 0 30px rgba(191, 31, 36, 0.5); }

/* Background positioning for hero image */
section#hero .bg-gradient-to-br {
    background: linear-gradient(to bottom right, #ffffff, var(--gray-50));
}

section#how-to-use .bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--gray-50), #ffffff);
}