/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #f0f8ff;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #0066CC;
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0066CC;
}

.new-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ff6b35;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-try-free {
    background-color: #00c851;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-try-free:hover {
    background-color: #00a041;
}

.login-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #0066CC;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 200, 81, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 80px 0;
}

.hero-left {
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-section {
    margin-bottom: 40px;
}

.email-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    max-width: 500px;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.email-input:focus {
    border-color: #0066CC;
}

.btn-try-nimble {
    background-color: #00c851;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-try-nimble:hover {
    background-color: #00a041;
}

.cta-note {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Device Showcase */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-showcase {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device {
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.device:hover {
    transform: translateY(-5px);
}

/* Phone */
.phone {
    width: 200px;
    height: 400px;
    left: 20%;
    top: 10%;
    z-index: 3;
    border-radius: 25px;
}

.phone .device-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.contact-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066CC, #4d9de0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
}

.contact-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 12px;
    color: #666;
}

.activity-feed {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    font-size: 16px;
}

.activity-content p {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.activity-content span {
    font-size: 10px;
    color: #999;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.bottom-nav .nav-item {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.bottom-nav .nav-item.active {
    color: #0066CC;
}

/* Laptop */
.laptop {
    width: 400px;
    height: 250px;
    right: 10%;
    top: 20%;
    z-index: 1;
}

.laptop .device-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    padding: 20px;
}

.laptop-header {
    margin-bottom: 20px;
}

.laptop-nav {
    display: flex;
    gap: 20px;
}

.laptop-nav .nav-item {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.laptop-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upcoming-section h4,
.email-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.activity-list,
.email-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item,
.email-item {
    font-size: 12px;
    color: #666;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Tablet */
.tablet {
    width: 300px;
    height: 200px;
    right: 30%;
    bottom: 20%;
    z-index: 2;
}

.tablet .device-screen {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.email-interface {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.email-header p {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.email-content p {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.contact-sidebar {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-details h4 {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.social-link {
    font-size: 10px;
    color: #0066CC;
    font-weight: 500;
}

.contact-info {
    font-size: 10px;
    color: #666;
}

.see-all-btn {
    background: #0066CC;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #0066CC;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.social-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-legal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.footer-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
}

.badge-icon {
    font-size: 16px;
}

.badge-text div:first-child {
    font-weight: 600;
}

.badge-text div:last-child {
    font-size: 10px;
    opacity: 0.8;
}

.capterra {
    background: white;
    color: #1a1a1a;
}

.capterra-logo {
    font-weight: 600;
    font-size: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    color: #ffc107;
    font-size: 12px;
}

.score {
    font-weight: 600;
    font-size: 12px;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    max-width: 350px;
}

.chat-bubble {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

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

.chat-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.chat-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon-small {
    display: flex;
    align-items: center;
}

.chat-logo span {
    font-size: 16px;
    font-weight: 600;
    color: #0066CC;
    text-transform: lowercase;
}

.chat-content {
    padding: 20px;
}

.chat-greeting {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.chat-question {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: #0066CC;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.chat-option:hover {
    border-color: #0066CC;
    background: #f0f8ff;
}

.chat-footer {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.chat-sender {
    font-size: 12px;
    color: #999;
}

/* Chat Icon */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #0066CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2001;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: transform 0.3s ease;
}

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

.chat-icon::before {
    content: '💬';
    font-size: 24px;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .device-showcase {
        height: 400px;
    }
    
    .phone {
        left: 10%;
        width: 150px;
        height: 300px;
    }
    
    .laptop {
        right: 5%;
        width: 300px;
        height: 200px;
    }
    
    .tablet {
        right: 25%;
        width: 250px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .email-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .email-input {
        border-radius: 8px;
    }
    
    .btn-try-nimble {
        border-radius: 8px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .device-showcase {
        display: none;
    }
    
    .chat-widget {
        max-width: 300px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 10px;
    }
}

/* Background decorative elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 102, 204, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 200, 81, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Floating elements */
.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

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

/* Additional floating elements */
.hero-left::before {
    content: '+';
    position: absolute;
    top: 30%;
    right: -20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 107, 53, 0.5);
    animation: float 4s ease-in-out infinite reverse;
    z-index: 0;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -30px;
    width: 80px;
    height: 80px;
    background: rgba(0, 200, 81, 0.1);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
    z-index: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-logo .logo-icon {
    display: flex;
    align-items: center;
}

.modal-logo .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #0066CC;
    text-transform: lowercase;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 40px 30px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.modal-download-btn {
    background: linear-gradient(135deg, #00c851 0%, #00a041 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 81, 0.4);
}

.modal-download-btn:active {
    transform: translateY(0);
}

.modal-download-btn::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;
}

.modal-download-btn:hover::before {
    left: 100%;
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 14px;
    }
    
    .modal-download-btn {
        padding: 14px 32px;
        font-size: 14px;
    }
}