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

:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #333333;
    --text-secondary: #4a4a4a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --section-bg-1: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --section-bg-2: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
    --section-bg-3: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --section-bg-4: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --dot-pattern-opacity: 0.05;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e293b;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --section-bg-1: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --section-bg-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --section-bg-3: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --section-bg-4: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --dot-pattern-opacity: 0.1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-light);
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.theme-toggle-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: scale(1.1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.visible {
    animation-delay: 0.1s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232D9CDB' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: var(--dot-pattern-opacity);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration svg {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.highlight-primary {
    color: #2D9CDB;
    background: linear-gradient(135deg, #2D9CDB 0%, #1e7bb8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    position: relative;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .highlight-primary {
        color: #2D9CDB;
        -webkit-text-fill-color: inherit;
    }
}

.highlight-secondary {
    color: #0052CC;
    background: linear-gradient(135deg, #0052CC 0%, #003d99 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    position: relative;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
    .highlight-secondary {
        color: #0052CC;
        -webkit-text-fill-color: inherit;
    }
}

.highlight-benefit {
    color: #22c55e;
    font-weight: 600;
    position: relative;
}

.highlight-audience {
    color: #2D9CDB;
    font-weight: 600;
    position: relative;
}

.highlight-problem {
    color: #ef4444;
    font-weight: 500;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: #2D9CDB;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 156, 219, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(45, 156, 219, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(45, 156, 219, 0.5);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: #2088c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 156, 219, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Subheadline Section */
.subheadline {
    padding: 80px 0;
    background: var(--section-bg-1);
    text-align: center;
}

.subheadline-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.role-icon {
    transition: transform 0.3s ease;
}

.role-icon:hover {
    transform: translateY(-3px);
}

.subheadline-text {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--section-bg-2);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-icon {
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.step:hover .step-icon {
    transform: scale(1.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #2D9CDB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--section-bg-2);
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-medium);
}

.feature-icon {
    color: #22c55e;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Audience Section */
.audience {
    padding: 100px 0;
    background: var(--section-bg-3);
}

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

.audience-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.audience-item:hover {
    transform: translateY(-3px);
}

.audience-icon {
    color: #2D9CDB;
    font-size: 2rem;
    flex-shrink: 0;
}

.audience-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Not For Section */
.not-for {
    padding: 100px 0;
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
}

.not-for-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.not-for-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.warning-icon {
    color: #f59e0b;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.not-for-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Testimonial Section */
.testimonial {
    padding: 100px 0;
    background: var(--section-bg-4);
    text-align: center;
}

.testimonial-icon {
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.testimonial-quotes {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.testimonial-quote {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial-quote:hover {
    transform: translateY(-2px);
}

.testimonial-quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-quote cite {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 500;
}

/* Integration Section */
.integration {
    padding: 100px 0;
    background: var(--section-bg-3);
}

.integration-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.integration-content {
    text-align: left;
}

.integration-content .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.integration-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
}

.integration-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
}

.integration-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.integration-step i {
    font-size: 3rem;
    color: #2D9CDB;
}

.integration-step span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.integration-arrow {
    font-size: 1.5rem;
    color: #2D9CDB;
}

.integration-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.integration-illustration svg {
    max-width: 100%;
    height: auto;
    animation: pulse 4s ease-in-out infinite;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #2D9CDB 0%, #1e7db8 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.final-cta .cta-button {
    background-color: white;
    color: #2D9CDB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.final-cta .cta-button:hover {
    background-color: #f8fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #1a1a1a;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-validation {
    text-align: center;
}

.footer-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-illustration {
        order: 1;
    }
    
    .hero-illustration svg {
        width: 380px;
        height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .subheadline-icons {
        gap: 2rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .audience-list {
        grid-template-columns: 1fr;
    }
    
    .not-for-list {
        grid-template-columns: 1fr;
    }
    
    .integration-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .integration-content {
        text-align: center;
    }
    
    .integration-content .section-title {
        text-align: center;
    }
    
    .integration-visual {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
    }
    
    .integration-arrow {
        transform: rotate(90deg);
    }
    
    .integration-illustration svg {
        width: 300px;
        height: auto;
    }
    
    .testimonial-quote {
        padding: 1.5rem;
    }
    
    .testimonial-quote p {
        font-size: 1.1rem;
    }
    
    .testimonial-quote cite {
        font-size: 0.9rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-illustration svg {
        width: 320px;
        height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .subheadline-icons {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .step, .feature-item, .audience-item, .not-for-item {
        padding: 1.5rem;
    }
    
    .integration-step {
        padding: 1.5rem;
    }
    
    .integration-illustration svg {
        width: 250px;
        height: auto;
    }
    
    .integration-step svg {
        width: 48px;
        height: 48px;
    }
}

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

/* Focus states for accessibility */
.cta-button:focus,
.footer-link:focus {
    outline: 2px solid #2D9CDB;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: #ffffff;
    }
    
    .step, .feature-item, .audience-item, .not-for-item {
        border: 2px solid #1a1a1a;
    }
}

/* Waitlist Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--section-bg-1);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2D9CDB;
}

.form-group select {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2D9CDB 0%, #1e7db8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 156, 219, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.success-message svg {
    margin-bottom: 1rem;
}

.success-message h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.success-message p {
    color: var(--text-secondary);
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding-bottom: 1rem;
    }
}
