/* ==========================================================================
   newpace.ai — Landing Page Custom Styles
   Complements Tailwind CSS utility classes.
   Brand palette: Royal Plum (#893168), Blackberry Cream (#4A1942),
   Midnight Violet (#2E1C2B), Alabaster Grey (#EAEAEA), Black (#050404)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* --------------------------------------------------------------------------
   Typography Overrides
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* Fade-in animation base */
.animate-fade-in {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Slide-up animation */
.animate-slide-up {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Gradient Utilities
   -------------------------------------------------------------------------- */

.gradient-text {
    background: linear-gradient(135deg, #893168, #A84B78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #4A1942, #893168);
}

.gradient-bg-dark {
    background: linear-gradient(180deg, #2E1C2B 0%, #3D2539 100%);
}

/* --------------------------------------------------------------------------
   Button Styles
   -------------------------------------------------------------------------- */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, #893168, #A84B78);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 3rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(137, 49, 104, 0.35);
}

.btn-primary:focus-visible {
    outline: 2px solid #893168;
    outline-offset: 2px;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: #EAEAEA;
    background: transparent;
    border: 2px solid rgba(234, 234, 234, 0.3);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    min-height: 3rem;
}

.btn-secondary:hover {
    border-color: rgba(234, 234, 234, 0.6);
    background: rgba(234, 234, 234, 0.05);
}

.btn-secondary:focus-visible {
    outline: 2px solid #EAEAEA;
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header Styles
   -------------------------------------------------------------------------- */

.header-scrolled {
    background-color: rgba(46, 28, 43, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Section Spacing
   -------------------------------------------------------------------------- */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* --------------------------------------------------------------------------
   Card Styles
   -------------------------------------------------------------------------- */

.card {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #D4D4D4;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #A3A3A3;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card-dark:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Form Styles
   -------------------------------------------------------------------------- */

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    color: #050404;
    background: #FFFFFF;
    border: 2px solid #D4D4D4;
    border-radius: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 2.75rem;
}

.form-input:focus {
    outline: none;
    border-color: #893168;
    box-shadow: 0 0 0 3px rgba(137, 49, 104, 0.15);
}

.form-input.is-valid {
    border-color: #10B981;
}

.form-input.is-invalid {
    border-color: #EF4444;
}

/* --------------------------------------------------------------------------
   Language Toggle
   -------------------------------------------------------------------------- */

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #EAEAEA;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-toggle:focus-visible {
    outline: 2px solid #893168;
    outline-offset: 2px;
}

.lang-toggle .lang-active {
    color: #FFFFFF;
}

.lang-toggle .lang-inactive {
    color: rgba(234, 234, 234, 0.5);
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
