/* Main CSS - Premium Apple-like Design */

/* CSS Custom Properties */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --gray-50: rgba(255, 255, 255, 0.05);
    --gray-100: rgba(255, 255, 255, 0.1);
    --gray-200: rgba(255, 255, 255, 0.2);
    --gray-300: rgba(255, 255, 255, 0.3);
    --gray-400: rgba(255, 255, 255, 0.4);
    --gray-500: rgba(255, 255, 255, 0.5);
    --gray-600: rgba(255, 255, 255, 0.6);
    --gray-700: rgba(255, 255, 255, 0.7);
    --gray-800: rgba(255, 255, 255, 0.8);
    --gray-900: rgba(255, 255, 255, 0.9);
    
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    --gradient-secondary: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-2xl: 32px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Prevent background scroll while mobile nav is open */
body.nav-open {
    overflow: hidden;
}

/* Global container utility */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 640px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Enhanced Typography */
.hero__title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.hero__title-line--1 {
    animation: slideInUp 1s ease 0.2s both;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__title-line--2 {
    animation: slideInUp 1s ease 0.4s both;
    color: var(--primary-white);
}

.hero__title-line--3 {
    animation: slideInUp 1s ease 0.6s both;
    color: var(--gray-600);
    font-weight: 300;
}

/* Navigation Enhancements - Pill Design */
.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.nav__link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.nav__link:hover {
    color: var(--primary-white);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.nav__link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.nav__link:hover::before {
    opacity: 1;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__login {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.nav__login:hover {
    color: var(--primary-white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav__login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.nav__login:hover::before {
    opacity: 1;
}

/* Mobile Navigation */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav__toggle-line {
    width: 20px;
    height: 2px;
    background: var(--primary-white);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* Smooth burger (hamburger → X) animation */
.nav__toggle {
    position: relative;
}
.nav__toggle-line {
    transform-origin: center;
}
.nav__toggle--active .nav__toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav__toggle--active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}
.nav__toggle--active .nav__toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Mobile menu with smooth open/close animation */
    .nav__menu {
        display: block; /* override desktop flex for mobile behavior */
        position: fixed; /* overlay below header */
        top: var(--header-height, 80px);
        left: 0;
        right: 0;
        padding: 1rem 1.25rem 1.25rem;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 1060;
        will-change: transform, opacity, max-height;

        /* hidden state */
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: transform var(--transition-normal), opacity var(--transition-normal), max-height var(--transition-normal), visibility 0s linear var(--transition-normal);
    }
    .nav__menu.nav__menu--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 80vh;
        pointer-events: auto;
        transition: transform var(--transition-normal), opacity var(--transition-normal), max-height var(--transition-normal), visibility 0s;
    }

    /* Smooth closing helper: keep visible while animating out */
    .nav__menu.nav__menu--closing {
        visibility: visible;
        pointer-events: none;
        /* fade/slide out but keep height to avoid instant collapse */
        transform: translateY(-8px);
        opacity: 0;
        max-height: 80vh; /* keep content height during fade-out */
    }

    /* Prefer closing animation while open class is present */
    .nav__menu.nav__menu--open.nav__menu--closing {
        transform: translateY(-8px);
        opacity: 0;
        max-height: 80vh; /* keep height during fade/slide out to avoid instant collapse */
        pointer-events: none;
        visibility: visible;
    }

    /* Stack links vertically */
    .nav__list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin: 0;
        padding: 0;
        list-style: none;
        align-items: stretch;
        background: transparent; /* remove desktop pill bg inside overlay */
    }
    .nav__item { width: 100%; }
    .nav__link {
        display: block;
        width: 100%;
        padding: 0.9rem 1rem;
        text-align: center;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        /* link enter animation */
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity var(--transition-normal), transform var(--transition-normal);
    }
    .nav__menu.nav__menu--open .nav__link { opacity: 1; transform: translateY(0); }
    .nav__menu.nav__menu--open .nav__item:nth-child(1) .nav__link { transition-delay: 40ms; }
    .nav__menu.nav__menu--open .nav__item:nth-child(2) .nav__link { transition-delay: 80ms; }
    .nav__menu.nav__menu--open .nav__item:nth-child(3) .nav__link { transition-delay: 120ms; }
    .nav__menu.nav__menu--open .nav__item:nth-child(4) .nav__link { transition-delay: 160ms; }
    
    .nav__actions .nav__login {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .btn--small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Hero Badge */
.hero__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero__badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.025em;
}

.hero__badge-glow {
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.hero__badge:hover .hero__badge-glow {
    opacity: 0.1;
}

/* Hero Stats */
.hero__stats {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-white);
    line-height: 1;
}

.hero__stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Enhanced Buttons */
.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn--small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn--secondary {
    background: transparent;
    color: var(--primary-white);
    border: 1px solid var(--gray-200);
}

.btn--secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}

.btn__icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-normal);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn--secondary:hover .btn__icon {
    transform: scale(1.1);
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
    margin: 3rem 0;
    animation: fadeInUp 1s ease 1s both;
}

/* Trust Indicators */
.hero__trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease 1.2s both;
}

.hero__trust-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.hero__trust-indicators {
    display: flex;
    gap: 0.25rem;
}

.hero__trust-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary-white);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.hero__trust-indicator:nth-child(2) { animation-delay: 0.2s; }
.hero__trust-indicator:nth-child(3) { animation-delay: 0.4s; }
.hero__trust-indicator:nth-child(4) { animation-delay: 0.6s; }
.hero__trust-indicator:nth-child(5) { animation-delay: 0.8s; }

/* Device Mockup */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero__image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.hero__image:hover {
    transform: scale(1.02);
}

.hero__device {
    position: relative;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.hero__device:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) scale(1.02);
}

.hero__device-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: var(--border-radius-2xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
    position: relative;
}

.hero__device-frame::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
}

.hero__device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

/* App Interface */
.hero__app-interface {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    margin-bottom: 2rem;
}

.app-header__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-400);
}

.status-dot--active {
    background: #00ff88;
    animation: pulse 1.5s infinite;
}

.analysis-card {
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.analysis-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.analysis-card__header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-white);
}

.progress-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.progress-ring__svg {
    transform: rotate(-90deg);
}

.progress-ring__circle-bg {
    fill: none;
    stroke: var(--gray-100);
    stroke-width: 3;
}

.progress-ring__circle {
    fill: none;
    stroke: var(--primary-white);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 163;
    stroke-dashoffset: 30;
    animation: progressRing 2s ease-in-out;
}

.progress-ring__text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-white);
}

.result-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-indicator__icon {
    width: 24px;
    height: 24px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
}

.result-indicator--success {
    color: #00ff88;
}

.recommendation p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.recommendation__actions {
    display: flex;
    gap: 0.5rem;
}

.btn-mini {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background: var(--primary-white);
    color: #000;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-mini--outline {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.btn-mini--outline:hover {
    color: var(--primary-white);
    border-color: var(--gray-300);
}

/* Floating Elements */
.hero__floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-card {
    position: absolute;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    animation: float 6s ease-in-out infinite;
}

.floating-card--1 {
    top: 10%;
    right: -20%;
    animation-delay: 0s;
}

.floating-card--2 {
    bottom: 30%;
    left: -25%;
    animation-delay: 2s;
}

.floating-card--3 {
    top: 60%;
    right: -15%;
    animation-delay: 4s;
}

.floating-card__icon {
    font-size: 1.25rem;
}

/* Geometric Elements */
.hero__geometry {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.geometry-element {
    position: absolute;
    border: 1px solid var(--gray-50);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.geometry-element--1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-duration: 25s;
}

.geometry-element--2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-duration: 30s;
    animation-direction: reverse;
}

.geometry-element--3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 30%;
    animation-duration: 35s;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.scroll-indicator__text {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-indicator__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gray-600), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.floating-element {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite;
}

.floating-element--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element--2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.floating-element--3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 70%;
    animation-delay: 10s;
}

/* Hero Pattern */
.hero__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.18;
}

.pattern-svg {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

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

@keyframes progressRing {
    from {
        stroke-dashoffset: 163;
    }
    to {
        stroke-dashoffset: 30;
    }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

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

/* Pricing Section */
.pricing {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.pricing__header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.pricing__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pricing__subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Cards */
.pricing-card {
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease 0.4s both;
    cursor: pointer;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.pricing-card.is-hovered {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}

.pricing-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}



.pricing-card--popular {
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-card--popular::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.pricing-card__badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
}

.pricing-card__price {
    text-align: center;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-card__currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-600);
}

.pricing-card__amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-white);
    line-height: 1;
}

.pricing-card__period {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.pricing-card__features {
    margin-bottom: 2.5rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.pricing-feature:last-child {
    margin-bottom: 0;
}

.pricing-feature--disabled {
    opacity: 0.5;
}

.pricing-feature__icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.pricing-feature__icon--check {
    color: #00ff88;
}

.pricing-feature__icon--cross {
    color: var(--gray-500);
}

.pricing-feature__text {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.pricing-feature--disabled .pricing-feature__text {
    color: var(--gray-500);
}

/* Align pricing-card micro-interactions with other sections */
.pricing-card__title,
.pricing-card__price,
.pricing-feature__text,
.pricing-feature__icon {
    transition: all var(--transition-normal);
}

.pricing-card:hover .pricing-card__title {
    transform: translateX(5px);
}
.pricing-card.is-hovered .pricing-card__title { transform: translateX(5px); }

.pricing-card:hover .pricing-card__price {
    transform: translateX(5px);
}
.pricing-card.is-hovered .pricing-card__price { transform: translateX(5px); }

.pricing-card:hover .pricing-feature__text {
    color: var(--primary-white);
    transform: translateX(5px);
}
.pricing-card.is-hovered .pricing-feature__text { color: var(--primary-white); transform: translateX(5px); }

.pricing-feature__icon {
    position: relative;
}

.pricing-feature__icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(8px);
    z-index: -1;
    transition: all var(--transition-normal);
}

.pricing-card:hover .pricing-feature__icon {
    transform: scale(1.05);
}
.pricing-card.is-hovered .pricing-feature__icon { transform: scale(1.05); }

.pricing-card:hover .pricing-feature__icon::before {
    opacity: 0.45;
    filter: blur(12px);
}
.pricing-card.is-hovered .pricing-feature__icon::before { opacity: 0.45; filter: blur(12px); }

.pricing-card__button {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-card__button--primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}



.pricing-card__button--outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero__grid {
        gap: 3rem;
    }
    
    .hero__device {
        transform: perspective(800px) rotateY(-10deg) rotateX(3deg) scale(0.9);
    }
    
    .floating-card--1,
    .floating-card--2,
    .floating-card--3 {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav__actions .nav__login {
        display: none;
    }
    
    .nav__toggle {
        display: flex;
    }
    /* Hide header CTA on mobile to prevent header overflow and ensure clean layout */
    .nav__actions {
        display: none;
    }
    
    .hero__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "visual";
        text-align: center;
        gap: 2rem;
    }
    
    .hero__content { grid-area: content; }
    .hero__visual { grid-area: visual; }
    
    .hero__device {
        transform: scale(0.8);
    }
    
    .hero__stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn--large {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero__trust {
        justify-content: center;
    }
    
    .geometry-element {
        display: none;
    }
}

/* Ultra-small devices tuning */
@media (max-width: 360px) {
    .hero__title {
        font-size: 2.25rem;
    }
    .hero__stats {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero__container {
        padding: 0 1rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__device-frame {
        width: 280px;
        height: 560px;
        padding: 1rem;
    }
    
    .hero__stats {
        gap: 1.5rem;
    }
    
    .hero__stat-number {
        font-size: 1.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero__device-frame {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

/* Features Section */
.features {
    position: relative;
    padding: 8rem 0;
    background: var(--primary-black);
    overflow: hidden;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.features__header {
    text-align: center;
    margin-bottom: 6rem;
}

.features__badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.features__badge-icon {
    font-size: 1.125rem;
}

.features__badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.025em;
}

.features__badge-glow {
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}



.features__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.features__title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.features__title-line--1 {
    animation: slideInUp 1s ease 0.2s both;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features__title-line--2 {
    animation: slideInUp 1s ease 0.4s both;
    color: var(--primary-white);
}

.features__subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Main Feature Card */
.features__main-card {
    margin-bottom: 6rem;
}

.main-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-2xl);
    padding: 3rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.main-card.is-hovered {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}

.main-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.main-card__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    backdrop-filter: blur(20px);
}

.main-card__icon-svg {
    width: 40px;
    height: 40px;
    color: var(--primary-white);
}

.main-card__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.main-card__description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Analysis Interface */
/* Align main-card micro-interactions with how-it-works */
.main-card__title,
.main-card__description {
    transition: all var(--transition-normal);
}

.main-card:hover .main-card__title {
    transform: translateX(5px);
    color: var(--primary-white);
}
.main-card.is-hovered .main-card__title { transform: translateX(5px); color: var(--primary-white); }

.main-card:hover .main-card__description {
    color: var(--gray-800);
    transform: translateX(5px);
}
.main-card.is-hovered .main-card__description { color: var(--gray-800); transform: translateX(5px); }

.main-card__icon {
    position: relative;
    transition: all var(--transition-normal);
}

.main-card__icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(10px);
    z-index: -1;
    transition: all var(--transition-normal);
}

.main-card:hover .main-card__icon {
    transform: scale(1.05);
}
.main-card.is-hovered .main-card__icon { transform: scale(1.05); }

.main-card:hover .main-card__icon::before {
    opacity: 0.5;
    filter: blur(15px);
}
.main-card.is-hovered .main-card__icon::before { opacity: 0.5; filter: blur(15px); }
.analysis-interface {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.analysis-interface__header {
    margin-bottom: 2rem;
}

.interface-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interface-status__text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-white);
}

.interface-status__indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot--live {
    background: #00ff88;
    animation: pulse 1.5s infinite;
}

.status-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.analysis-steps {
    margin-bottom: 2rem;
}

.analysis-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.analysis-step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-icon--success {
    background: #00ff88;
    color: var(--primary-black);
}

.step-icon--loading {
    background: var(--gray-200);
    border: 2px solid var(--gray-100);
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-white);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

.step-text {
    color: var(--gray-700);
    font-weight: 500;
}

.analysis-step--completed .step-text {
    color: var(--primary-white);
}

.analysis-step--active .step-text {
    color: var(--primary-white);
    font-weight: 600;
}

.success-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: var(--border-radius-md);
}

.success-indicator__icon {
    width: 40px;
    height: 40px;
    background: #00ff88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-checkmark {
    color: var(--primary-black);
    font-weight: 700;
    font-size: 1.125rem;
}

.success-indicator__text {
    color: #00ff88;
    font-weight: 600;
}

/* Feature Cards Grid */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.feature-card.is-hovered {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}

.feature-card:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
}



.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-white);
}

.feature-card__badge {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(20px);
}

.feature-card__badge--highlight {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card__badge--premium {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.025em;
}

.feature-card__badge--highlight .badge-text {
    color: #ffffff;
}

.feature-card__badge--premium .badge-text {
    color: #ffd700;
}

.feature-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card__description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Feature Card Visuals */
.feature-card__title,
.feature-card__description,
.feature-card__icon {
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-card__title {
    transform: translateX(5px);
}
.feature-card.is-hovered .feature-card__title { transform: translateX(5px); }

.feature-card:hover .feature-card__description {
    color: var(--gray-800);
    transform: translateX(5px);
}
.feature-card.is-hovered .feature-card__description { color: var(--gray-800); transform: translateX(5px); }

.feature-card__icon {
    position: relative;
}

.feature-card__icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-primary);
    opacity: 0;
    filter: blur(10px);
    z-index: -1;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.05);
}
.feature-card.is-hovered .feature-card__icon { transform: scale(1.05); }

.feature-card:hover .feature-card__icon::before {
    opacity: 0.5;
    filter: blur(15px);
}
.feature-card.is-hovered .feature-card__icon::before { opacity: 0.5; filter: blur(15px); }
.feature-card__visual {
    height: 120px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.3);
}

/* Document Preview */
.document-preview {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.document-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-line {
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
    animation: fadeInUp 2s ease infinite;
}

.document-line--title {
    width: 60%;
    background: var(--primary-white);
}

.document-line--text {
    width: 80%;
}

.document-line--short {
    width: 40%;
}

.document-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-white);
    border-radius: 2px;
    width: 0;
    animation: progressFill 3s ease infinite;
}

.progress-fill--active {
    background: #00ff88;
    animation: progressFillActive 2s ease infinite;
}

/* Communication Interface */
.communication-interface {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.message-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message-bubble {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    max-width: 80%;
}

.message-bubble--sent {
    background: #ffffff;
    color: #000000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-bubble--received {
    background: var(--gray-200);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-bubble--typing {
    background: var(--gray-200);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message-content {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.message-bubble--sent .message-content {
    background: rgba(0, 0, 0, 0.8);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    background: var(--gray-600);
    border-radius: 50%;
    animation: typingDot 1.4s ease infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Lawyer Network */
.lawyer-network {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-nodes {
    position: relative;
    width: 100px;
    height: 100px;
}

.network-node {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 2px solid var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-node--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffd700;
    z-index: 2;
}

.network-node--1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: networkPulse 2s ease infinite;
}

.network-node--2 {
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation: networkPulse 2s ease infinite 0.3s;
}

.network-node--3 {
    bottom: 10%;
    left: 10%;
    animation: networkPulse 2s ease infinite 0.6s;
}

.node-avatar {
    width: 12px;
    height: 12px;
    background: var(--primary-white);
    border-radius: 50%;
}

.network-connections {
    position: absolute;
    inset: 0;
}

.connection-line {
    position: absolute;
    height: 1px;
    background: var(--gray-300);
    opacity: 0.6;
}

.connection-line--1 {
    top: 30%;
    left: 50%;
    width: 30px;
    transform: translateX(-50%) rotate(45deg);
    animation: connectionPulse 3s ease infinite;
}

.connection-line--2 {
    top: 50%;
    right: 30%;
    width: 25px;
    transform: translateY(-50%);
    animation: connectionPulse 3s ease infinite 0.5s;
}

.connection-line--3 {
    bottom: 30%;
    left: 30%;
    width: 35px;
    transform: rotate(-45deg);
    animation: connectionPulse 3s ease infinite 1s;
}

/* Call to Action */
.features__cta {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-2xl);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.features__cta:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.features__cta.is-hovered {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}

.features__cta:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.features__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.features__cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.features__cta-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Background Elements */
.features__cta-title,
.features__cta-text {
    transition: all var(--transition-normal);
}

.features__cta:hover .features__cta-title {
    transform: translateX(5px);
}
.features__cta.is-hovered .features__cta-title { transform: translateX(5px); }

.features__cta:hover .features__cta-text {
    color: var(--gray-800);
    transform: translateX(5px);
}
.features__cta.is-hovered .features__cta-text { color: var(--gray-800); transform: translateX(5px); }
.features__background {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.grid-svg {
    width: 100%;
    height: 100%;
}

.bg-orbs {
    position: absolute;
    inset: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    animation: floatSlow 20s ease-in-out infinite;
}

.bg-orb--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-orb--2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-delay: 7s;
}

.bg-orb--3 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 60%;
    animation-delay: 14s;
}

/* Animations */
@keyframes progressFill {
    0% { width: 0; }
    50% { width: 70%; }
    100% { width: 0; }
}

@keyframes progressFillActive {
    0% { width: 0; }
    50% { width: 85%; }
    100% { width: 0; }
}

@keyframes typingDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

@keyframes networkPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.1);
    }
}

/* Responsive Features */
@media (max-width: 1024px) {
    .main-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .features__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .features {
        padding: 4rem 0;
    }
    
    .features__container {
        padding: 0 1rem;
    }
    
    .features__header {
        margin-bottom: 3rem;
    }
    
    .features__title {
        font-size: 2.5rem;
    }
    
    .features__subtitle {
        font-size: 1.125rem;
    }
    
    .main-card {
        padding: 2rem;
    }
    
    .main-card__title {
        font-size: 1.5rem;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .features__cta {
        padding: 2rem 1rem;
    }
    
    .features__cta-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .features__title {
        font-size: 2rem;
    }
    
    .main-card {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing {
        padding: 4rem 0;
    }
    
    .pricing__title {
        font-size: 2rem;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card--popular {
        transform: none;
        order: -1;
    }
    
    .pricing-card__amount {
        font-size: 2.5rem;
    }
}
    
    .analysis-interface {
        padding: 1.5rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    overflow: hidden;
}

.how-it-works-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.step-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: var(--gradient-secondary);
    border: 1px solid var(--gray-100);
    border-radius: var(--border-radius-xl);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.step-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}
.step-content.is-hovered {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
}

.step-content:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    z-index: 1;
}

.step-content.reverse {
    grid-template-columns: auto 1fr auto;
}

.step-content.reverse .step-number {
    order: 3;
}

.step-content.reverse .step-info {
    order: 2;
    text-align: right;
}

.step-content.reverse .step-visual {
    order: 1;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.step-content:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5);
}
.step-content.is-hovered .step-number { transform: scale(1.1); box-shadow: 0 15px 40px rgba(255, 255, 255, 0.5); }

.step-content:hover .step-number::before {
    opacity: 0.8;
    filter: blur(15px);
}
.step-content.is-hovered .step-number::before { opacity: 0.8; filter: blur(15px); }

.step-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.9));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.step-info {
    min-width: 300px;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.step-content:hover .step-title {
    color: #ffffff;
    transform: translateX(5px);
}
.step-content.is-hovered .step-title { color: #ffffff; transform: translateX(5px); }

.step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
}

.step-content:hover .step-description {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}
.step-content.is-hovered .step-description { color: rgba(255, 255, 255, 0.9); transform: translateX(5px); }

.step-visual {
    min-width: 200px;
    display: flex;
    justify-content: center;
}

/* Chat Bubble Styles */
.chat-bubble {
    position: relative;
    padding: 20px;
}

.chat-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px 18px 18px 4px;
    padding: 16px 20px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-content:hover .chat-message {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}
.step-content.is-hovered .chat-message { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); transform: scale(1.05); }

.chat-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-style: italic;
}

/* Analysis Card Styles */
.analysis-card {
    padding: 20px;
}

.success-badge {
    background: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-content:hover .success-badge {
    background: rgba(52, 168, 83, 0.15);
    border-color: rgba(52, 168, 83, 0.5);
    transform: scale(1.05);
}
.step-content.is-hovered .success-badge { background: rgba(52, 168, 83, 0.15); border-color: rgba(52, 168, 83, 0.5); transform: scale(1.05); }

.step-content:hover .success-icon {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}
.step-content.is-hovered .success-icon { transform: rotate(360deg); transition: transform 0.6s ease; }

.success-icon {
    width: 20px;
    height: 20px;
    background: #34a853;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.success-text {
    color: #34a853;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Document Preview Styles */
.document-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 180px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.step-content:hover .document-preview {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}
.step-content.is-hovered .document-preview { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); transform: scale(1.05); }

.step-content:hover .document-line {
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}
.step-content.is-hovered .document-line { background: rgba(255, 255, 255, 0.4); transition: background 0.3s ease; }

.document-header {
    margin-bottom: 16px;
}

.document-title {
    display: block;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.document-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.document-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

.document-line.short {
    width: 60%;
}

/* Background Elements */
.background-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

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

/* How It Works Responsive Design */
@media (max-width: 768px) {
    .how-it-works-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .steps-container {
        gap: 60px;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .step-content.reverse {
        grid-template-columns: 1fr;
    }
    
    .step-content.reverse .step-info,
    .step-content.reverse .step-visual {
        order: initial;
    }
    
    .step-info {
        min-width: auto;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .number {
        font-size: 1.2rem;
    }
    
    .floating-orb {
        width: 150px;
        height: 150px;
    }
}

/* Animation Classes */
.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* Initial state for animated elements */
[data-animation] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animation].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Additional keyframes for new animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Immersive Effects */
/* Hero cursor spotlight (subtle, elegant) */
.hero {
    position: relative;
}

.hero__container {
    position: relative;
    z-index: 2; /* above spotlight */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* between background pattern and content */
    opacity: var(--spot-opacity, 0);
    transition: opacity 300ms ease;
    background: radial-gradient(
        600px 600px at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.06) 35%,
        transparent 60%
    );
    mix-blend-mode: screen;
}

@media (hover: none) {
    .hero::before { display: none; }
}

/* CTA aurora background */
.cta-section {
    position: relative;
    overflow: hidden; /* contain blur */
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.22;
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04),
        transparent 40%,
        rgba(255,255,255,0.08),
        transparent 70%
    );
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    animation: auroraSpin 80s linear infinite;
    mix-blend-mode: screen;
}

.cta__container { position: relative; z-index: 1; }

@keyframes auroraSpin {
    to { transform: rotate(360deg); }
}
 
/* 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-indicator__line {
        animation: none;
    }
    
    .floating-element,
    .geometry-element {
        animation: none;
    }
    
    .cta-section::before {
        animation: none; /* pause aurora */
    }
    
    .hero::before {
        transition: none;
        opacity: 0; /* no spotlight */
    }
    
    [data-animation] {
        opacity: 1;
        transform: none;
    }

    /* Keep subtle transitions for mobile navigation even with reduced motion
       to avoid abrupt disappearance when closing the burger menu */
    .nav__menu {
        transition: transform 200ms ease !important,
                    opacity 200ms ease !important,
                    max-height 200ms ease !important,
                    visibility 0s linear 200ms !important;
    }
    .nav__menu.nav__menu--open {
        transition: transform 200ms ease !important,
                    opacity 200ms ease !important,
                    max-height 200ms ease !important,
                    visibility 0s !important;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    width: min(780px, calc(100% - 2rem));
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal, 300ms ease), opacity var(--transition-normal, 300ms ease);
}

.cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-xl, 16px);
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cookie-banner__title {
    display: block;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #ffffff;
}

.cookie-banner__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner__link {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner__btn {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cookie-banner__inner {
        grid-template-columns: 1fr;
    }
    .cookie-banner__actions {
        justify-content: flex-end;
    }
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(12px) scale(0.98);
    bottom: calc(var(--cookie-banner-offset, 0px) + 16px + env(safe-area-inset-bottom));
    width: min(560px, 92vw);
    z-index: 9600;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal, 300ms ease), transform var(--transition-normal, 300ms ease);
}

.sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* When sticky CTA is visible on mobile, position back-to-top to the left at same baseline */
@media (max-width: 768px) {
  body.has-sticky-cta #backToTop.back-to-top {
    left: auto;
    right: 1.25rem;
    bottom: calc(var(--cookie-banner-offset, 0px) + 16px + env(safe-area-inset-bottom));
  }
}

.sticky-cta__button {
    display: block;
    width: 100%;
}

/* Mobile tuning for sticky CTA: slimmer, smoother */
@media (max-width: 768px) {
    .sticky-cta {
        width: max-content;      /* shrink to content */
        max-width: 90vw;         /* keep safe on small phones */
    }
    .sticky-cta .btn {
        padding: 0.6rem 0.9rem;  /* smaller pill */
        font-size: 0.85rem;      /* smaller text */
        border-radius: 9999px;   /* full pill shape */
        box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    }
    .sticky-cta .btn__icon {
        width: 16px;
        height: 16px;
    }
}

/* Mobile readability tweaks */
@media (max-width: 768px) {
    .hero__subtitle {
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}