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

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #6366F1;
    --secondary-color: #06B6D4;
    --accent-color: #8B5CF6;
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --border-color: #E2E8F0;
    --border-light: #F1F5F9;
    --success-color: #10B981;
    --gradient-1: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-2: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-gif {
    height: 32px;
    width: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-light);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 80px 0 100px;
    background: var(--bg-white);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.product-hunt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: white;
    border: 2px solid #FF6154;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    box-shadow: 0 2px 8px rgba(255, 97, 84, 0.15);
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-size: 0.625rem;
    font-weight: 700;
    color: #FF6154;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 10;
    letter-spacing: -0.03em;
}

.highlight {
    display: inline;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

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

.feature-icon {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 3px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-note {
    margin-top: 1.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Chat Preview */
.hero-visual {
    max-width: 520px;
    margin: 0 auto;
}

.chat-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.2);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: white;
}

.chat-back-btn {
    font-size: 1.25rem;
    color: var(--text-medium);
    cursor: pointer;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    font-size: 1.25rem;
}

.chat-title {
    flex: 1;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.chat-menu {
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
}

.chat-messages {
    padding: 1.5rem;
    background: var(--bg-light);
    max-height: 480px;
    overflow-y: auto;
}

.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease;
    font-size: 0.9375rem;
    line-height: 1.6;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.chat-bubble.bot {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.bot-emoji {
    font-size: 1.125rem;
}

.chat-menu-section {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.menu-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.menu-list {
    list-style: none;
    padding-left: 0;
}

.menu-list li {
    padding: 0.375rem 0;
    color: var(--primary-color);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-list li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: 700;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.quick-question-btn {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quick-question-btn:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.trial-btn {
    background: white;
    border: 2px solid #FFA500;
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #FFA500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.trial-btn:hover {
    background: #FFA500;
    color: white;
}

.trial-emoji {
    font-size: 1.125rem;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background: white;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.chat-input::placeholder {
    color: var(--text-light);
}

.send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--primary-dark);
}

.chat-footer {
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    background: white;
    border-top: 1px solid var(--border-light);
}

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

/* Problem Section */
.problem-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 640px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    border-color: var(--border-color);
}

.problem-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.problem-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.problem-card p {
    color: var(--text-medium);
    line-height: 1.65;
    font-size: 0.9375rem;
}

.problem-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 500;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.solution-text h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.solution-intro {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.65;
}

.solution-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.step-content p {
    color: var(--text-medium);
    line-height: 1.65;
    font-size: 0.9375rem;
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-light);
}

.dashboard-header {
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
}

.benefit-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.benefit-card p {
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.benefit-result {
    padding: 0.875rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Social Proof Section */
.social-proof-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.625rem;
    letter-spacing: -0.03em;
}

.stat-text {
    font-size: 1rem;
    color: var(--text-medium);
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: var(--text-dark);
    color: white;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.85;
    line-height: 1.65;
}

/* Form Styles */
.early-access-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px -12px rgba(15, 23, 42, 0.15);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input {
    width: 100%;
    padding: 1.125rem 1.25rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-note {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

.form-success {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.form-success p {
    font-size: 1.125rem;
    color: var(--text-medium);
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

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

.footer-left .logo {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.footer-right p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .solution-content {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 60px 0;
        margin-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-visual {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.125rem;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .solution-visual {
        order: -1;
    }

    .solution-text h2 {
        font-size: 2rem;
    }

    .solution-intro {
        font-size: 1.125rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.125rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .early-access-form {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .problem-section,
    .solution-section,
    .benefits-section {
        padding: 60px 0;
    }

    .chat-preview {
        padding: 1.5rem;
    }

    .chat-bubble {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    /* Disable parallax on tablets for better performance */
    .parallax {
        transform: none !important;
    }

    .hero-visual {
        animation: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-light);
    color: white;
}

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

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

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

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

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

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Button Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

/* Enhanced Card Hover Effects */
.problem-card,
.benefit-card {
    position: relative;
    overflow: hidden;
}

.problem-card::before,
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.problem-card:hover::before,
.benefit-card:hover::before {
    left: 100%;
}

/* Floating Animation for Hero Visual */
.hero-visual {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Form Input Enhanced States */
.form-group {
    position: relative;
}

.form-group input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input.error {
    border-color: #ef4444;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group input.success {
    border-color: var(--success-color);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    white-space: nowrap;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Improved Navbar Scroll Effect */
.navbar.scrolled {
    padding: 0.5rem 0;
    transition: padding 0.3s ease;
}

/* Enhanced Stats Counter Animation */
.stat-value {
    display: inline-block;
}

.counting {
    animation: pulse 0.5s ease;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Chat Bubble Animation */
.chat-bubble {
    animation: slideIn 0.5s ease;
}

.chat-bubble:nth-child(even) {
    animation-delay: 0.2s;
}

/* Improved Dashboard Stats */
.stat {
    transition: all 0.3s ease;
}

.stat:hover {
    transform: scale(1.05);
    background: white;
    box-shadow: var(--shadow-md);
}

/* Parallax Effect */
.parallax {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s ease-out;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Improved Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Mobile Touch Feedback */
@media (hover: none) {
    .btn:active {
        transform: scale(0.95);
    }

    .problem-card:active,
    .benefit-card:active {
        transform: scale(0.98);
    }
}
