/* CSS Variables */
:root {
    --primary-green: #00D4A0;
    --primary-blue: #2C5282;
    --dark-bg: #1A365D;
    --light-gray: #F7FAFC;
    --medium-gray: #E2E8F0;
    --text-dark: #1A202C;
    --text-gray: #4A5568;
    --text-light: #718096;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: #00BF8F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 160, 0.3);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
.header {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 160, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title .highlight {
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* People Grid Illustration */
.people-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    perspective: 1000px;
}

.person {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #CBD5E0 0%, #E2E8F0 100%);
    border-radius: 50%;
    position: relative;
    animation: floatIn 0.8s ease-out both;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.person::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.person.highlighted {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00BF8F 100%);
    animation: floatIn 0.8s ease-out both, pulse 2s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(0, 212, 160, 0.4);
}

/* Steps Section */
.steps {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
}

.highlight-blue {
    color: var(--primary-blue);
}

.highlight-green {
    color: var(--primary-green);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--medium-gray);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-green);
}

.step-number {
    position: absolute;
    top: -1rem;
    right: 2rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

.step-icon {
    margin: 1.5rem 0 2rem;
    display: flex;
    justify-content: center;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step-description {
    color: var(--text-gray);
    font-size: 1.0625rem;
}

/* Reconnecting Section */
.reconnecting {
    background: var(--light-gray);
    padding: 6rem 0;
}

.reconnecting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.reconnecting .section-title {
    text-align: left;
    margin-bottom: 1rem;
}

.reconnecting .section-subtitle {
    text-align: left;
    margin-bottom: 2.5rem;
}

/* Connection Circle Visualization */
.connection-circle {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.avatar-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4A90E2 100%);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(44, 82, 130, 0.3);
    z-index: 2;
}

.avatar-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    animation: rotate 20s linear infinite;
}

.connection-node {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.connection-node:nth-child(2) {
    background: linear-gradient(135deg, #FC8181 0%, #F56565 100%);
    animation-delay: 0s;
}

.connection-node:nth-child(3) {
    background: linear-gradient(135deg, #F6AD55 0%, #ED8936 100%);
    animation-delay: 0.4s;
}

.connection-node:nth-child(4) {
    background: linear-gradient(135deg, #68D391 0%, #48BB78 100%);
    animation-delay: 0.8s;
}

.connection-node:nth-child(5) {
    background: linear-gradient(135deg, #4299E1 0%, #3182CE 100%);
    animation-delay: 1.2s;
}

.connection-node:nth-child(6) {
    background: linear-gradient(135deg, #9F7AEA 0%, #805AD5 100%);
    animation-delay: 1.6s;
}

.connection-node:nth-child(7) {
    background: linear-gradient(135deg, #ED64A6 0%, #D53F8C 100%);
    animation-delay: 2s;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.0625rem;
    color: var(--text-gray);
}

/* Privacy Section */
.privacy {
    background: var(--dark-bg);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.privacy .section-title.white {
    color: white;
    text-align: left;
}

.privacy .section-subtitle.white {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    margin-bottom: 2.5rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-card-small {
    background: white;
    padding: 1.5rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card-small:hover {
    transform: translateY(-4px);
}

.feature-card-small svg {
    margin-bottom: 1rem;
}

.feature-card-small h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* World Map */
.world-map {
    width: 100%;
    max-width: 500px;
    opacity: 0.6;
}

/* CTA Section */
.cta {
    background: white;
    padding: 6rem 0;
    text-align: center;
}

.cta .section-title {
    margin-bottom: 1rem;
}

.cta .section-subtitle {
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--medium-gray);
    padding: 3rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-links .separator {
    color: var(--medium-gray);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.875rem;
}

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

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

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container,
    .reconnecting-content,
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .privacy .section-title.white,
    .reconnecting .section-title,
    .reconnecting .section-subtitle,
    .privacy .section-subtitle.white {
        text-align: center;
    }
    
    .connection-circle {
        margin: 0 auto 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .person {
        width: 50px;
        height: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
