/**
 * Ditronics CMS - CSS Styles
 * 
 * Preserves the exact design from the Next.js implementation.
 * Uses CSS custom properties for consistent theming.
 */

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

:root {
    /* Zapier-inspired color palette */
    --vermilion: #FF4A00;
    --pumpkin: #FD7622;
    --sunny: #FFC43E;
    --neutral-text: #5F6C72;
    --trust-blue: #499DF3;
    --teal-green: #13D0AB;
    --off-white: #FFFDF9;
    --anchor-dark: #201515;
    --background: #ffffff;
    --foreground: #201515;
    
    /* Extended color palette for animations */
    --electric-blue: #3B82F6;
    --cyber-purple: #8B5CF6;
    --neon-pink: #EC4899;
    --gradient-start: #FF4A00;
    --gradient-mid: #FD7622;
    --gradient-end: #FFC43E;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --base-line: 1.5;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: var(--base-line);
    color: var(--neutral-text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Text Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-anchor-dark { color: var(--anchor-dark); }
.text-neutral-text { color: var(--neutral-text); }
.text-vermilion { color: var(--vermilion); }
.text-teal-green { color: var(--teal-green); }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #16a34a; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-amber-800 { color: #92400e; }
.text-green-700 { color: #15803d; }
.text-yellow-700 { color: #a16207; }

/* Background Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-off-white { background-color: var(--off-white); }
.bg-anchor-dark { background-color: var(--anchor-dark); }
.bg-vermilion { background-color: var(--vermilion); }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-100 { background-color: #dcfce7; }
.bg-yellow-100 { background-color: #fef3c7; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-amber-50 { background-color: #fffbeb; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--anchor-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

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

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

.leading-relaxed { line-height: 1.625; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.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-12 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }

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

.pl-10 { padding-left: 2.5rem; }
.pr-10 { padding-right: 2.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.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; }
.pt-8 { padding-top: 2rem; }
.pb-3 { padding-bottom: 0.75rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.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-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Space between direct children */
.space-y-4 > * + * { margin-top: 1rem; }

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

/* Width & Height */
.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; }

.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }

.w-28 { width: 7rem; }
.h-28 { height: 7rem; }
.w-44 { width: 11rem; }
.h-44 { height: 11rem; }
.w-60 { width: 15rem; }
.h-60 { height: 15rem; }
.w-80 { width: 20rem; }
.h-80 { height: 20rem; }

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

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.max-h-0 { max-height: 0; }
.max-h-96 { max-height: 24rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.top-24 { top: 6rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

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

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

.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-red-200 { border-color: #fecaca; }
.border-amber-200 { border-color: #fde68a; }
.border-teal-green { border-color: var(--teal-green); }
.border-white { border-color: #ffffff; }
.border-transparent { border-color: transparent; }
.border-current { border-color: currentColor; }

/* Border Radius */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

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

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

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

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }

/* Transitions */
.transition-colors { 
    transition-property: color, background-color, border-color;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(.2,.9,.2,1);
}

.transition-all {
    transition-property: all;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(.2,.9,.2,1);
}

.transition-opacity {
    transition-property: opacity;
    transition-duration: 200ms;
}

.transition-shadow {
    transition-property: box-shadow;
    transition-duration: 200ms;
}

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

/* Transform */
.scale-105 { transform: scale(1.05); }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Whitespace */
.whitespace-pre-wrap { white-space: pre-wrap; }
.truncate { 
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 200ms cubic-bezier(.2,.9,.2,1);
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:focus-visible {
    outline: 2px solid var(--vermilion);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; }
.btn-md { height: 2.75rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1.125rem; }

.btn-primary {
    background-color: var(--vermilion);
    color: white;
}

.btn-primary:hover {
    background-color: #E64100;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--anchor-dark);
    color: var(--anchor-dark);
}

.btn-secondary:hover {
    background-color: var(--anchor-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--vermilion);
    color: var(--vermilion);
}

.btn-outline:hover {
    background-color: var(--vermilion);
    color: white;
}

.btn-ghost {
    background-color: transparent;
    color: var(--neutral-text);
    position: relative;
}

.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vermilion), var(--pumpkin));
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
}

.btn-ghost:hover {
    background-color: rgba(255, 74, 0, 0.05);
    color: var(--vermilion);
}

.btn-ghost:hover::after {
    width: 80%;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

input, textarea, select {
    font-family: var(--font-sans);
}

.form-input {
    display: block;
    height: 2.75rem;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--anchor-dark);
    transition: all 200ms;
}

/* Ensure icon-padding utilities work on inputs */
.form-input.pl-10 { padding-left: 2.5rem; }
.form-input.pr-10 { padding-right: 2.5rem; }

.form-input::placeholder {
    color: rgba(95, 108, 114, 0.5);
}

.form-input:focus {
    outline: none;
    ring: 2px solid var(--vermilion);
    border-color: transparent;
}

.form-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--vermilion);
    border-color: transparent;
}

.form-input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.form-textarea {
    min-height: 120px;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.form-select {
    height: 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    padding: 0 1rem;
    background-color: white;
    cursor: pointer;
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ============================================
    CARDS
    ============================================ */

.card-header {
    padding: 1.5rem;
}

.card-content {
    padding: 1.5rem;
    padding-top: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--anchor-dark);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.card-description {
    font-size: 0.875rem;
    color: var(--neutral-text);
}

/* ============================================
    BADGES
    ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-default {
    background: linear-gradient(135deg, var(--vermilion) 0%, var(--pumpkin) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 74, 0, 0.25);
}

.badge-secondary {
    background-color: var(--off-white);
    color: var(--anchor-dark);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.badge-success {
    background: linear-gradient(135deg, rgba(19, 208, 171, 0.15) 0%, rgba(19, 208, 171, 0.08) 100%);
    color: #0d9373;
    border: 1px solid rgba(19, 208, 171, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(255, 196, 62, 0.15) 0%, rgba(255, 196, 62, 0.08) 100%);
    color: #b38600;
    border: 1px solid rgba(255, 196, 62, 0.25);
}

.badge-muted {
    background-color: rgba(95, 108, 114, 0.1);
    color: var(--neutral-text);
}

/* ============================================
   TABLE
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
}

th {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    background-color: #f9fafb;
}

tbody tr {
    border-bottom: 1px solid #f3f4f6;
}

tbody tr:hover {
    background-color: #f9fafb;
}

/* ============================================
    HERO SECTION
    ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--off-white) 0%, #fff 50%, rgba(255, 74, 0, 0.02) 100%);
}

/* Animated mesh gradient background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 74, 0, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 70%, rgba(19, 208, 171, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 196, 62, 0.12) 0%, transparent 50%);
    animation: gradientMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Secondary animated layer for depth */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(73, 157, 243, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 35%);
    animation: gradientPulse 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientPulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(255, 74, 0, 0.2) 0%, rgba(253, 118, 34, 0.15) 100%);
    color: var(--vermilion);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid rgba(255, 74, 0, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(255, 74, 0, 0.15);
}

.hero-badge-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vermilion) 0%, var(--sunny) 100%);
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 74, 0, 0.6), 0 0 20px rgba(255, 74, 0, 0.3);
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 74, 0, 0.6), 0 0 20px rgba(255, 74, 0, 0.3);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.3);
        box-shadow: 0 0 20px rgba(255, 74, 0, 0.8), 0 0 35px rgba(255, 74, 0, 0.5);
    }
}

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

/* ============================================
    SERVICE CARD
    ============================================ */

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(255, 74, 0, 0.15) 0%, rgba(253, 118, 34, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vermilion);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 74, 0, 0.1);
    box-shadow: 0 4px 12px rgba(255, 74, 0, 0.1);
}

.card:hover .service-icon {
    background: linear-gradient(135deg, var(--vermilion) 0%, var(--pumpkin) 100%);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(255, 74, 0, 0.35);
    border-color: transparent;
}

/* Enhanced card hover effects */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vermilion), var(--pumpkin), var(--sunny));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 74, 0, 0.05);
    transform: translateY(-4px);
}

.card:hover::before {
    transform: scaleX(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:block { display: block; }
    .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\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:w-64 { width: 16rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:flex { display: flex; }
    .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\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:text-left { text-align: left; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:py-40 { padding-top: 10rem; padding-bottom: 10rem; }
}

/* ============================================
   HOVER STATES
   ============================================ */

.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:text-anchor-dark:hover { color: var(--anchor-dark); }
.hover\:text-vermilion:hover { color: var(--vermilion); }
.hover\:text-white:hover { color: white; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-white:hover { background-color: white; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:border-vermilion:hover { border-color: var(--vermilion); }

.group:hover .group-hover\:text-vermilion { color: var(--vermilion); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* ============================================
   FOCUS STATES
   ============================================ */

:focus-visible {
    outline: 2px solid var(--vermilion);
    outline-offset: 2px;
}

.focus\:ring-vermilion:focus {
    box-shadow: 0 0 0 2px var(--vermilion);
}

/* ============================================
    ANIMATIONS
    ============================================ */

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

.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* ============================================
    HERO ANIMATIONS
    ============================================ */

/* Logo animation: fade-in + scale + float */
.hero-logo {
    animation: logoFloat 4s ease-in-out infinite;
    animation-delay: 0.3s;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
}

/* Logo fade-in and scale on load */
.hero-logo-wrapper {
    opacity: 0;
    animation: logoFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Staggered fade-up animations for hero content */
.hero-badge {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
}

.hero-benefits {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
}

.hero-cta {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1s;
}

/* Staggered benefit items */
.hero-benefit-item {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual {
    opacity: 0;
    animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animated decorative circles */
.hero-circle-1 {
    opacity: 0;
    animation: circleFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               circleFloat 6s ease-in-out infinite;
    animation-delay: 0.6s;
}

.hero-circle-2 {
    opacity: 0;
    animation: circleFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               circleFloat 6s ease-in-out infinite reverse;
    animation-delay: 0.7s;
}

.hero-circle-3 {
    opacity: 0;
    animation: circleFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               circleFloat 5s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes circleFade {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes circleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* CTA button micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer effect on buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--vermilion) 0%, var(--pumpkin) 100%);
    box-shadow: 0 4px 15px rgba(255, 74, 0, 0.4), 0 0 0 0 rgba(255, 74, 0, 0);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 74, 0, 0.4), 0 0 0 0 rgba(255, 74, 0, 0);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 74, 0, 0.5), 0 0 30px rgba(255, 74, 0, 0.2);
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E64100 0%, var(--vermilion) 100%);
    box-shadow: 0 8px 30px rgba(255, 74, 0, 0.5), 0 0 40px rgba(255, 74, 0, 0.3);
    transform: translateY(-3px);
    animation: none;
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(255, 74, 0, 0.3);
    transform: translateY(0);
}

.btn-secondary {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--anchor-dark) 0%, #3a2a2a 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(32, 21, 21, 0.2);
    transform: translateY(-3px);
    color: white;
    border-color: transparent;
}

.btn-secondary:hover::after {
    opacity: 1;
}

/* Subtle gradient background animation */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Animated gradient orbs for visual depth */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 74, 0, 0.35) 0%, rgba(253, 118, 34, 0.25) 100%);
    top: -150px;
    right: -150px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.hero-gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(19, 208, 171, 0.3) 0%, rgba(73, 157, 243, 0.2) 100%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.hero-gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 196, 62, 0.25) 0%, rgba(253, 118, 34, 0.2) 100%);
    top: 40%;
    left: 25%;
    animation: orbFloat3 10s ease-in-out infinite;
}

/* Fourth orb - purple/blue accent */
.hero-gradient-orb-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(59, 130, 246, 0.2) 100%);
    top: 20%;
    left: 60%;
    animation: orbFloat4 14s ease-in-out infinite;
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, 30px) scale(1.08); }
    50% { transform: translate(15px, -20px) scale(0.95); }
    75% { transform: translate(-10px, -15px) scale(1.05); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 20px) scale(1.05); }
    66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
}

@keyframes gradientMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, 5%) rotate(120deg);
    }
    66% {
        transform: translate(-5%, 5%) rotate(240deg);
    }
}

/* Glowing text effect for brand name */
.text-glow {
    text-shadow: 
        0 0 10px rgba(255, 74, 0, 0.5),
        0 0 30px rgba(255, 74, 0, 0.3),
        0 0 50px rgba(255, 74, 0, 0.2);
}

/* Animated gradient text */
.text-gradient {
    background: linear-gradient(
        135deg, 
        var(--vermilion) 0%, 
        var(--pumpkin) 25%,
        var(--sunny) 50%,
        var(--teal-green) 75%,
        var(--vermilion) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated underline for links */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--vermilion), var(--pumpkin));
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-section::before,
    .hero-section::after {
        animation: none;
    }
    
    .hero-gradient-orb {
        animation: none;
    }
    
    .text-gradient {
        animation: none;
        background-position: 0% 50%;
    }
}

/* ============================================
   BACKDROP
   ============================================ */

.backdrop-blur {
    backdrop-filter: blur(8px);
}

.supports-\[backdrop-filter\]\:bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */

.bg-gradient-hero {
    background: linear-gradient(to bottom, var(--off-white), white);
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f3f4f6, #f9fafb);
}

/* ============================================
   ANTIALIASED
   ============================================ */

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

/* ============================================
   ASPECT RATIO
   ============================================ */

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .no-print { display: none !important; }
}
