* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #ffffff;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shipping-animation {
    position: absolute;
    width: 100%;
    height: 100%;
}

.ship-icon, .container-icon, .plane-icon, .truck-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(59, 130, 246, 0.3);
    animation: float 15s ease-in-out infinite;
}

.ship-icon {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.container-icon {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

.plane-icon {
    top: 30%;
    right: 25%;
    animation-delay: 6s;
}

.truck-icon {
    bottom: 25%;
    left: 20%;
    animation-delay: 9s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.3; }
    25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
    50% { transform: translateY(-10px) translateX(-15px); opacity: 0.4; }
    75% { transform: translateY(-30px) translateX(5px); opacity: 0.7; }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.brand-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 800;
}

.logo i {
    color: #06b6d4;
    font-size: 2.5rem;
}

.aptos-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #06b6d4;
}

.hero-text {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.3rem;
    color: #cbd5e1;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.tracking-demo {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.demo-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tracking-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.tracking-input::placeholder {
    color: #94a3b8;
}

.tracking-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.track-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

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

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #06b6d4;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.9rem;
}

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

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.feature-highlight i {
    color: #06b6d4;
    font-size: 1.5rem;
}

.feature-highlight span {
    font-weight: 600;
}

/* Success Section */
.success-section {
    padding: 6rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.success-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.success-container h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.success-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.success-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.success-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.success-card p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 900;
    color: #06b6d4;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* AI Popup Button */
.ai-popup-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    position: relative;
}

.ai-popup-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.popup-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.popup-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.popup-title {
    font-weight: 700;
    font-size: 1rem;
}

.popup-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

.popup-pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Chat Popup */
.chat-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-popup.active {
    display: flex;
}

.chat-popup-header {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-details h4 {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.chat-details p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-popup-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8fafc;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    border-top-left-radius: 5px;
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.help-options {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.9rem;
}

.help-option i {
    color: #06b6d4;
}

.message-time {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.chat-popup-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-btn {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
}

.quick-btn:hover {
    background: #06b6d4;
    color: white;
    border-color: #06b6d4;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.input-container input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    color: #374151;
}

.input-container input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.send-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

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

.aptos-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: #6b7280;
}

.aptos-info i {
    color: #06b6d4;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .brand-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .demo-input {
        flex-direction: column;
    }
    
    .chat-popup {
        width: 90%;
        height: 80vh;
        bottom: 1rem;
        right: 5%;
    }
    
    .ai-popup-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1rem;
    }
}
