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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #6366f1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #5855eb;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    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='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s linear infinite;
}

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

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

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

.gradient-text {
    background: linear-gradient(45deg, #ffd700, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-button {
    background: white;
    color: #6366f1;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.button-icon, .play-icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Chat Preview */
.chat-preview {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.chat-window {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    animation: pulse 3s infinite;
}

.chat-window:hover {
    transform: rotateY(-2deg) rotateX(2deg);
}

@keyframes pulse {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) scale(1); }
    50% { transform: rotateY(-5deg) rotateX(5deg) scale(1.02); }
}

.chat-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9ecef;
}

.chat-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.chat-title {
    font-weight: 600;
    color: #1a1a1a;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 0.9rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
}

.message {
    display: flex;
}

.message.incoming {
    justify-content: flex-start;
}

.message.outgoing {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    color: #1a1a1a;
    font-size: 0.95rem;
    animation: messageSlide 0.5s ease;
}

.message.incoming .message-content {
    background: #e9ecef;
    border-bottom-left-radius: 4px;
}

.message.outgoing .message-content {
    background: #6366f1;
    color: white;
    border-bottom-right-radius: 4px;
}

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

.typing-indicator {
    padding: 0 1.5rem 1rem;
}

.typing-dots {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    animation: typingDot 1.5s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

/* P2P Animation */
.p2p-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

.device {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    position: relative;
}

.device-icon::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.device-icon::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 3px;
    width: 6px;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

.device-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: devicePulse 3s ease-in-out infinite;
}

@keyframes devicePulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0; }
}

.device-1 {
    top: 20%;
    left: 10%;
    animation: deviceFloat1 8s ease-in-out infinite;
}

.device-2 {
    top: 15%;
    right: 15%;
    animation: deviceFloat2 9s ease-in-out infinite;
}

.device-3 {
    bottom: 25%;
    left: 20%;
    animation: deviceFloat3 7s ease-in-out infinite;
}

.device-4 {
    bottom: 30%;
    right: 25%;
    animation: deviceFloat4 10s ease-in-out infinite;
}

@keyframes deviceFloat1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-5px); }
}

@keyframes deviceFloat2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(15px) translateX(-10px); }
    66% { transform: translateY(-10px) translateX(5px); }
}

@keyframes deviceFloat3 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-10px) translateX(-15px); }
    66% { transform: translateY(20px) translateX(10px); }
}

@keyframes deviceFloat4 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(10px) translateX(15px); }
    66% { transform: translateY(-15px) translateX(-10px); }
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform-origin: left center;
}

.line-1 {
    top: 22%;
    left: 14%;
    width: 70%;
    transform: rotate(5deg);
    animation: connectionPulse1 4s ease-in-out infinite;
}

.line-2 {
    top: 45%;
    left: 10%;
    width: 80%;
    transform: rotate(-10deg);
    animation: connectionPulse2 5s ease-in-out infinite;
}

.line-3 {
    bottom: 35%;
    left: 25%;
    width: 50%;
    transform: rotate(15deg);
    animation: connectionPulse3 6s ease-in-out infinite;
}

.line-4 {
    top: 35%;
    left: 20%;
    width: 30%;
    transform: rotate(-45deg);
    animation: connectionPulse4 4.5s ease-in-out infinite;
}

.line-5 {
    bottom: 40%;
    right: 30%;
    width: 40%;
    transform: rotate(60deg);
    animation: connectionPulse5 5.5s ease-in-out infinite;
}

@keyframes connectionPulse1 {
    0%, 100% { opacity: 0.2; transform: rotate(5deg) scaleX(1); }
    50% { opacity: 0.6; transform: rotate(5deg) scaleX(1.1); }
}

@keyframes connectionPulse2 {
    0%, 100% { opacity: 0.3; transform: rotate(-10deg) scaleX(1); }
    50% { opacity: 0.7; transform: rotate(-10deg) scaleX(1.05); }
}

@keyframes connectionPulse3 {
    0%, 100% { opacity: 0.25; transform: rotate(15deg) scaleX(1); }
    50% { opacity: 0.5; transform: rotate(15deg) scaleX(1.08); }
}

@keyframes connectionPulse4 {
    0%, 100% { opacity: 0.2; transform: rotate(-45deg) scaleX(1); }
    50% { opacity: 0.6; transform: rotate(-45deg) scaleX(1.12); }
}

@keyframes connectionPulse5 {
    0%, 100% { opacity: 0.3; transform: rotate(60deg) scaleX(1); }
    50% { opacity: 0.55; transform: rotate(60deg) scaleX(1.06); }
}

.data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.packet-1 {
    top: 22%;
    left: 14%;
    animation: dataFlow1 6s linear infinite;
}

.packet-2 {
    top: 45%;
    left: 10%;
    animation: dataFlow2 7s linear infinite;
}

.packet-3 {
    bottom: 35%;
    left: 25%;
    animation: dataFlow3 8s linear infinite;
}

.packet-4 {
    top: 35%;
    left: 20%;
    animation: dataFlow4 5s linear infinite;
}

@keyframes dataFlow1 {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(600px) translateY(50px) scale(0.5); opacity: 0; }
}

@keyframes dataFlow2 {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(700px) translateY(-80px) scale(0.5); opacity: 0; }
}

@keyframes dataFlow3 {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(400px) translateY(100px) scale(0.5); opacity: 0; }
}

@keyframes dataFlow4 {
    0% { transform: translateX(0) translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(200px) translateY(-200px) scale(0.5); opacity: 0; }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: particleFloat 12s linear infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 30%;
    left: 60%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 30%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 70%;
    animation-delay: -6s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 10%;
    animation-delay: -8s;
}

.particle:nth-child(6) {
    top: 20%;
    left: 80%;
    animation-delay: -10s;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100px) translateX(50px) scale(0.5); opacity: 0; }
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #1a1a1a;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 0;
}

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

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

.step-number {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Privacy Section */
.privacy {
    padding: 8rem 0;
    background: #f8f9fa;
}

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

.privacy-feature {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.privacy-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.privacy-feature h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.privacy-feature p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    placeholder-color: rgba(255, 255, 255, 0.7);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-button {
    background: white;
    color: #6366f1;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 3rem 0 1rem;
    border-top: 1px solid #e5e7eb;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(26, 26, 26, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.footer-bottom p {
    color: rgba(26, 26, 26, 0.7);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    margin-bottom: 0.75rem;
}

.footer-bottom a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.footer-bottom a:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* P2P Animation Responsive */
    .p2p-animation {
        opacity: 0.2;
    }
    
    .device {
        width: 30px;
        height: 30px;
    }
    
    .device-icon {
        width: 12px;
        height: 12px;
    }
    
    .connection-line {
        height: 1px;
    }
    
    .data-packet {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* P2P Animation Mobile */
    .p2p-animation {
        opacity: 0.15;
    }
    
    .device {
        width: 25px;
        height: 25px;
    }
    
    .device-icon {
        width: 10px;
        height: 10px;
    }
    
    .device-icon::before {
        width: 6px;
        height: 1px;
        top: 2px;
        left: 2px;
    }
    
    .device-icon::after {
        width: 4px;
        height: 1px;
        top: 5px;
        left: 2px;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .data-packet {
        width: 5px;
        height: 5px;
    }
    
    /* Button font sizes for mobile */
    .primary-button, .secondary-button, .submit-button {
        font-size: 0.95rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
    }
} 