:root {
    --background: 220 40% 98%;
    --surface: 0 0% 100%;
    --primary: 218 70% 36%;
    --secondary: 29 95% 54%;
    --accent: 29 95% 54%;
    --muted: 218 10% 50%;
    --text-primary: 218 25% 20%;
    --text-secondary: 218 10% 50%;
}

.dark {
    --background: 218 70% 36%;
    --surface: 220 30% 96%;
    --primary: 29 95% 54%;
    --secondary: 220 30% 96%;
    --accent: 29 95% 54%;
    --muted: 220 40% 98%;
    --text-primary: 0 0% 100%;
    --text-secondary: 220 40% 98%;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: hsl(var(--background));
    color: hsl(var(--text-primary));
    font-family: 'Source Serif Pro', serif;
    position: relative;
    overflow-x: hidden;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.035;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence baseFrequency='0.7,0.9' seed='2' type='fractalNoise' /></filter><rect width='400' height='400' filter='url(%23n)' /></svg>") repeat;
    mix-blend-mode: soft-light;
}

/* Gradient mesh background (2 blobs) */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: .18;
}

body::before {
    width: 650px;
    height: 650px;
    left: -180px;
    top: -140px;
    background: radial-gradient(circle at 20% 10%, rgba(43, 101, 195, 0.18) 0%, transparent 70%);
}

body::after {
    width: 500px;
    height: 500px;
    right: -160px;
    bottom: -120px;
    background: radial-gradient(circle at 80% 80%, rgba(255, 145, 37, 0.21) 0%, transparent 70%);
}

/* Hide scrollbars for horizontal product scroll on mobile */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hero kinetic typography */
.hero-headline span {
    opacity: 0;
    transform: translateY(32px);
    display: inline-block;
}

.hero-headline.animated span {
    animation: fadeUp 0.6s cubic-bezier(.21, 1.02, .73, 1) forwards;
}

.hero-headline.animated span:nth-child(1) {
    animation-delay: .06s;
}

.hero-headline.animated span:nth-child(2) {
    animation-delay: .18s;
}

.hero-headline.animated span:nth-child(3) {
    animation-delay: .33s;
}

.hero-headline.animated span:nth-child(4) {
    animation-delay: .48s;
}

.hero-headline.animated span:nth-child(5) {
    animation-delay: .62s;
}

.hero-headline.animated span:nth-child(6) {
    animation-delay: .76s;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(32px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Glow */
.cta-glow {
    box-shadow: 0 0 0 0 rgba(255, 145, 37, 0.0), 0 0 16px 2px rgba(255, 145, 37, 0.25);
    transition: box-shadow .18s cubic-bezier(.21, 1.02, .73, 1);
}

.cta-glow:hover,
.cta-glow:focus-visible {
    box-shadow: 0 2px 16px 4px rgba(255, 145, 37, 0.28), 0 0 0 0 rgba(255, 145, 37, 0.0);
}

/* Card hover lift */
.card-hover {
    transition: transform .22s cubic-bezier(.21, 1.02, .73, 1), box-shadow .22s cubic-bezier(.21, 1.02, .73, 1);
}

.card-hover:hover,
.card-hover:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px 0 rgba(29, 38, 54, 0.14), 0 0 0 2px hsl(var(--accent) / 0.12);
    z-index: 2;
}

/* Button ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple:after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    background: rgba(255, 145, 37, 0.17);
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
    transition: opacity .38s, transform .38s;
}

.ripple:active:after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

/* Eyebrow label */
.eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: hsl(var(--accent));
    margin-bottom: 0.65rem;
    display: block;
}

/* Focus ring for a11y */
:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
    box-shadow: 0 0 0 2px hsl(var(--accent) / 0.18);
}

/* Swiper navigation */
.swiper-button-next,
.swiper-button-prev {
    color: hsl(var(--primary));
    background: hsl(var(--surface));
    border-radius: 50%;
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(29, 38, 54, 0.08);
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: hsl(var(--accent));
    color: #fff;
}

/* FAQ chevron */
.faq-chevron {
    transition: transform .21s cubic-bezier(.21, 1.02, .73, 1);
}

.faq-open .faq-chevron {
    transform: rotate(90deg);
}

/* Responsive font sizes */
h1,
.text-hero {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(1.85rem, 8vw, 2.2rem);
}

h2,
.text-section {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
}

h3,
.text-card {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

body,
.text-body {
    font-family: 'Source Serif Pro', serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Prevent FOUC kinetic typo */
.hero-headline span {
    visibility: hidden;
}

.hero-headline.animated span {
    visibility: visible;
}

@media (max-width: 767px) {
    .py-16 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
