/* Beta Banner */
.beta-banner {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #000;
    padding: 12px 0;
    text-align: center;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.beta-banner strong {
    font-weight: 700;
}

body.has-beta-banner {
    padding-top: 44px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0f172a;
    --background: #000000;
    --surface: #111111;
    --surface-light: #1a1a1a;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 116px; /* Space for beta banner (44px) + navbar (72px) */
}

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

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

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

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

.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 44px; /* Below beta banner */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 24px 0 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    z-index: 1;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--surface);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(99, 102, 241, 0.3);
    border: 1px solid var(--border);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    overflow: hidden;
}

.chat-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
}

.chat-header-preview span {
    font-weight: 600;
    font-size: 0.9rem;
}

.messages-preview {
    flex: 1;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
}

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

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

.lock-icon {
    font-size: 0.75rem;
    margin-right: 4px;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--surface);
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--background);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 16px;
    margin-bottom: 20px;
}

.feature-icon svg {
    stroke: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

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

/* Security Section */
.security {
    padding: 120px 0;
}

.security-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.security-text h2 {
    margin-bottom: 24px;
}

.security-text > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.security-list {
    list-style: none;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list svg {
    stroke: #22c55e;
    flex-shrink: 0;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.encryption-animation {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.key-icon svg {
    stroke: white;
}

.shield-ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s infinite;
}

.shield-ring.delay-1 {
    width: 200px;
    height: 200px;
    animation-delay: 1s;
}

.shield-ring.delay-2 {
    width: 250px;
    height: 250px;
    animation-delay: 2s;
}

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

/* How It Works */
.how-it-works {
    padding: 120px 0;
    background: var(--surface);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 30px;
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: var(--gradient);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--surface);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-column a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: var(--surface);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.content-block {
    max-width: 800px;
    margin: 0 auto 60px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    margin-bottom: 20px;
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Features Detail Page */
.features-detail {
    padding: 80px 0;
}

.feature-detail-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    margin-bottom: 32px;
}

.feature-detail-card.reverse {
    direction: rtl;
}

.feature-detail-card.reverse > * {
    direction: ltr;
}

.feature-detail-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 20px;
}

.feature-detail-icon svg {
    stroke: white;
}

.feature-detail-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-detail-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.feature-detail-content ul {
    list-style: none;
}

.feature-detail-content li {
    color: var(--text-muted);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.feature-detail-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
}

/* Security Page */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 60px 0;
}

.security-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
}

.security-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 16px;
    margin: 0 auto 20px;
}

.security-card-icon svg {
    stroke: white;
}

.security-card h3 {
    margin-bottom: 12px;
}

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

.protection-list {
    margin-top: 40px;
}

.protection-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.protection-item:last-child {
    border-bottom: none;
}

.protection-number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.protection-content h4 {
    margin-bottom: 8px;
}

.protection-content p {
    color: var(--text-muted);
    margin: 0;
}

/* About Page Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.value-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
}

.value-card h3 {
    margin-bottom: 12px;
    color: var(--primary-light);
}

.value-card p {
    color: var(--text-muted);
    margin: 0;
}

/* Legal Pages */
.content-section.legal {
    padding: 60px 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
}

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

.legal-content a {
    color: var(--primary-light);
}

/* Help Center */
.help-categories {
    max-width: 900px;
    margin: 0 auto;
}

.help-category {
    margin-bottom: 48px;
}

.help-category h2 {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    margin: 0;
}

/* Status Page */
.status-overview {
    margin-bottom: 40px;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
}

.status-banner.operational {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-banner svg {
    stroke: currentColor;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 60px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: 12px;
}

.status-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.status-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator.operational {
    color: #22c55e;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-history h2 {
    margin-bottom: 24px;
}

.no-incidents {
    text-align: center;
    padding: 60px 24px;
    background: var(--surface);
    border-radius: 12px;
}

.no-incidents svg {
    stroke: #22c55e;
    margin-bottom: 16px;
}

.no-incidents p {
    color: var(--text-muted);
    margin: 0;
}

.status-footer {
    text-align: center;
    margin-top: 40px;
}

.status-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .security-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .feature-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-detail-card.reverse {
        direction: ltr;
    }

    .feature-detail-icon {
        margin: 0 auto;
    }

    .feature-detail-content ul {
        text-align: left;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .protection-item {
        flex-direction: column;
        text-align: center;
    }

    .protection-number {
        margin: 0 auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
