* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --purple-600: #9333ea;
    --purple-700: #7c3aed;
    --green-600: #059669;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    
    /* Fonts */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Animations */
    --transition: all 0.3s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--gray-900);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--gray-900);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--gray-900);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700), var(--purple-700));
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 50%, #faf5ff 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 48rem;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    backdrop-filter: blur(4px);
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

.feature-card:nth-child(1) .feature-icon {
    color: var(--primary-600);
}

.feature-card:nth-child(2) .feature-icon {
    color: var(--purple-600);
}

.feature-card:nth-child(3) .feature-icon {
    color: var(--green-600);
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 32rem;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 0.5rem;
    transition: var(--transition);
}

.feature-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-100), #faf5ff);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
}

.feature-icon-wrapper .feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-600);
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-50) 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.benefits-content .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.benefits-content .section-description {
    text-align: left;
    margin: 0 0 2rem 0;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--green-600);
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.benefits-visual {
    position: relative;
}

.demo-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(229, 231, 235, 0.2);
    position: relative;
}

.demo-card::before,
.demo-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.demo-card::before {
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, var(--primary-600), var(--purple-600));
    top: -1rem;
    right: -1rem;
}

.demo-card::after {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--purple-600), var(--primary-600));
    bottom: -1rem;
    left: -1rem;
}

.demo-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-line {
    height: 1rem;
    background: linear-gradient(90deg, var(--primary-200), #e9d5ff);
    border-radius: 0.25rem;
}

.demo-line.short {
    width: 50%;
}

.demo-line.long {
    width: 83.333333%;
}

.demo-divider {
    height: 1px;
    background: rgba(229, 231, 235, 0.2);
    margin: 1rem 0;
}

.user-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.user-avatar.blue {
    background: var(--primary-600);
}

.user-avatar.purple {
    background: var(--purple-600);
}

.user-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Who Can Use Section */
.who-can-use {
    padding: var(--section-padding);
    background: var(--white);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.audience-card {
    padding: 1.5rem;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.audience-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.audience-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-100), #faf5ff);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.audience-card:hover .audience-icon-wrapper {
    transform: scale(1.1);
}

.audience-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-600);
    stroke-width: 2;
}

.audience-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.audience-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.audience-examples {
    text-align: center;
}

.examples-label {
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-tag {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.cta-section {
    text-align: center;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Help Section */
.help-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-50) 0%, #faf5ff 100%);
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrapper.email {
    background: var(--primary-100);
}

.contact-icon-wrapper.phone {
    background: #faf5ff;
}

.contact-icon-wrapper.chat {
    background: #f0fdf4;
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

.contact-icon-wrapper.email .contact-icon {
    color: var(--primary-600);
}

.contact-icon-wrapper.phone .contact-icon {
    color: var(--purple-600);
}

.contact-icon-wrapper.chat .contact-icon {
    color: var(--green-600);
}

.contact-method {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--gray-600);
}

.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.2);
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    color: white;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: var(--gray-400);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 28rem;
    margin: 1rem;
    animation: modalSlideIn 0.3s var(--bounce);
    transform: translateY(-20px);
    opacity: 0;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal-form {
    margin-bottom: 1.5rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.checkbox-text {
    color: var(--gray-600);
}

.forgot-link,
.terms-link {
    color: var(--primary-600);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-link:hover,
.terms-link:hover {
    text-decoration: underline;
}

.modal-footer {
    text-align: center;
}

.switch-text {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.switch-link {
    background: none;
    border: none;
    color: var(--primary-600);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: inherit;
}

.switch-link:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .benefits-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        align-items: center;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    .hero-buttons,
    .cta-buttons {
        flex-direction: row;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
