@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #141b2d;
    --bg-tertiary: #1f2940;
    --text-primary: #f0f2f6;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.4);
    --border: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-green { color: var(--success); }
.text-blue { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    max-width: fit-content;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    background-color: #fff;
}

.app-store-btn i {
    font-size: 2.2rem;
}

.app-store-btn .btn-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.app-store-btn span {
    font-size: 0.70rem;
    line-height: 1;
    font-weight: 500;
}

.app-store-btn strong {
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 600;
}

/* iPhone Mockup CSS */
.hero-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 600px;
    background: var(--accent);
    filter: blur(100px);
    opacity: 0.3;
    z-index: 0;
}

.iphone-mockup {
    width: 320px;
    height: 650px;
    background-color: #000;
    border-radius: 50px;
    border: 10px solid #2a2a2a;
    box-shadow: 
        inset 0 0 0 2px #555,
        0 30px 60px rgba(0,0,0,0.6),
        -20px 20px 60px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.iphone-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-10px);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background-color: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.iphone-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 10;
}

.mockup-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 40px 20px 15px;
    background-color: rgba(20, 27, 45, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.mockup-header i {
    color: var(--accent);
    font-size: 1.1rem;
}

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

.mockup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #indigo);
    background-color: var(--accent);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mockup-info strong {
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

.mockup-info span {
    font-size: 0.7rem;
    color: var(--success);
    display: block;
    text-align: center;
}

.mockup-encryption-notice {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    margin: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.mockup-chat {
    flex: 1;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.85rem;
    max-width: 80%;
    position: relative;
    line-height: 1.4;
}

.bubble.received {
    background-color: var(--bg-tertiary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble.sent {
    background-color: var(--accent);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble i.fa-check-double {
    font-size: 0.65rem;
    margin-left: 4px;
}

.bubble i.fa-check {
    font-size: 0.65rem;
    margin-left: 4px;
}

.audio-msg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audio-msg i {
    color: var(--accent);
    font-size: 1.2rem;
}

.waveform {
    width: 80px;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        var(--text-secondary) 0px,
        var(--text-secondary) 2px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.5;
}

.mockup-input {
    padding: 15px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;
}

.mockup-input i {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.input-pill {
    flex: 1;
    background-color: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shield-graphic {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.shield-graphic::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed var(--success);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.shield-graphic i {
    font-size: 100px;
    color: var(--success);
    filter: drop-shadow(0 0 20px var(--success-glow));
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Document Sections */
.document-container {
    max-width: 800px;
    margin: 0 auto;
}

.document-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.doc-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.doc-tab:hover {
    color: var(--text-primary);
}

.doc-tab.active {
    color: var(--accent);
}

.doc-tab.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px 3px 0 0;
}

.document-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.document-content.active {
    display: block;
}

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

.document-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.document-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.document-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.document-content ul {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 20px;
}

.document-content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.link-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Focus */
@media (max-width: 900px) {
    .hero {
        padding-top: 120px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-actions {
        display: flex;
        justify-content: center;
    }
    
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .check-list li {
        justify-content: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .iphone-mockup {
        width: 280px;
        height: 580px;
    }
}
