/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: radial-gradient(ellipse at center, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    animation: noiseFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes noiseFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -5px) rotate(0.5deg); }
    50% { transform: translate(10px, 5px) rotate(-0.5deg); }
    75% { transform: translate(-5px, 10px) rotate(0.25deg); }
}

/* Particles canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 2rem 2rem 1rem;
    animation: slideInFromTop 1s ease-out;
}

.logo-section {
    text-align: right;
}

.app-logo {
    display: inline-flex;
    align-items: center;
    background: rgba(120, 119, 198, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.app-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(120, 119, 198, 0.3);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.app-text {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    min-height: 60vh;
}

.text-content {
    margin-bottom: 3rem;
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    position: relative;
}

.subtitle {
    font-weight: 400;
    opacity: 0.9;
    margin-left: 1rem;
}

/* Phones container */
.phones-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.phone-mockup {
    width: 280px;
    height: 570px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border-radius: 35px;
    padding: 8px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-left {
    transform: rotate(-15deg) translateY(20px);
    z-index: 2;
}

.phone-right {
    transform: rotate(10deg) translateY(-10px);
    z-index: 3;
}

.phone-mockup:hover {
    transform: scale(1.05) rotate(0deg) translateY(0);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(120, 119, 198, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8f9ff 0%, #e8ecff 100%);
    position: relative;
}

/* App interface styles */
.app-interface {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #333;
}

.interface-header {
    margin-bottom: 1.5rem;
}

.status-bar {
    height: 20px;
    background: linear-gradient(90deg, #333 0%, #333 30%, transparent 30%);
    border-radius: 10px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.client-interface {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.client-badge, .lawyer-badge {
    background: rgba(120, 119, 198, 0.1);
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #5a67d8;
}

.badge-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    position: relative;
}

.badge-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

/* Lawyer interface specific styles */
.lawyer-interface h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.lawyer-interface p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stats-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.questions-stat {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.lawyers-stat {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.recent-questions {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.recent-questions h4 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.question-item {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.question-item p {
    margin-bottom: 0.5rem;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.6rem;
    color: #999;
}

.question-actions {
    display: flex;
    gap: 1rem;
}

.lawyer-badge {
    align-self: center;
    margin-top: auto;
}

/* Download section */
.download-section {
    padding: 3rem 2rem;
    text-align: center;
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

.download-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1;
}

.btn-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.app-store-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.google-play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.alternative-action {
    margin-top: 2rem;
}

.visit-website-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.visit-website-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInFromBottom 1s ease-out 1.2s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Ripple effect */
#ripple-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: rippleAnimation 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnimation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .phones-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 450px;
        transform: none !important;
    }
    
    .phone-left,
    .phone-right {
        transform: none;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .main-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .subtitle {
        margin-left: 0;
        text-align: center;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .download-section {
        padding: 2rem 1rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 380px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .app-logo {
        padding: 0.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .app-text {
        font-size: 0.9rem;
    }
}