/* =============================================================================
   MaskID Landing Page - Styles
   ============================================================================= */

/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;

    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --bg-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================================================
   Navigation
   ============================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

.logo:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer .logo-img {
    height: 56px;
}

.footer .logo-text {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Browser Mockup */
.hero-image {
    position: relative;
}

.browser-mockup {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.browser-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.browser-content {
    padding: 24px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.profile-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-card.add-new .profile-avatar {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    font-size: 24px;
    color: var(--text-muted);
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

/* =============================================================================
   Sections Common
   ============================================================================= */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   Features Section
   ============================================================================= */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================================================
   Pricing Section
   ============================================================================= */
.pricing {
    background: var(--bg-dark);
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pricing-table th,
.pricing-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr.highlight {
    background: rgba(99, 102, 241, 0.1);
}

.pricing-table tr.highlight td {
    border-color: rgba(99, 102, 241, 0.3);
}

.product-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon {
    font-size: 24px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.price-cell {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.currency {
    font-size: 13px;
    color: var(--text-muted);
}

.check {
    color: var(--success);
    font-size: 20px;
}

/* Savings Callout */
.savings-callout {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-lg);
}

.savings-icon {
    font-size: 48px;
}

.savings-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 8px;
}

.savings-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* =============================================================================
   Technology Section
   ============================================================================= */
.technology {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary);
}

.tech-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.tech-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.tech-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* =============================================================================
   Download Section
   ============================================================================= */
.download {
    background: var(--bg-dark);
    text-align: center;
}

.download-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    min-width: 300px;
}

.download-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.download-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
}

.download-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
}

.download-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-os {
    font-size: 24px;
    font-weight: 700;
}

.download-version {
    font-size: 13px;
    color: var(--text-secondary);
}

.download-arrow {
    font-size: 24px;
    color: var(--text-muted);
    margin-left: auto;
}

.download-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.icon-shield {
    width: 16px;
    height: 16px;
    color: var(--success);
}

/* =============================================================================
   Contact Section
   ============================================================================= */
.contact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.contact-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 20px;
}

.contact-icon svg {
    width: 36px;
    height: 36px;
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
    color: white;
}

.contact-icon.support {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact-icon.sales {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706 100%);
    color: white;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.contact-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-light);
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
    background: var(--bg-card);
    padding: 60px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid,
    .tech-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

    .features-grid,
    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .pricing-table {
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 16px;
    }

    .savings-callout {
        flex-direction: column;
        text-align: center;
    }

    .download-title {
        font-size: 32px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-card {
        width: 100%;
        max-width: 350px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        min-width: 80px;
    }

    .pricing-table th:nth-child(4),
    .pricing-table td:nth-child(4),
    .pricing-table th:nth-child(5),
    .pricing-table td:nth-child(5) {
        display: none;
    }

    .download-card {
        padding: 20px;
        gap: 16px;
    }

    .download-icon {
        width: 48px;
        height: 48px;
    }

    .download-icon svg {
        width: 24px;
        height: 24px;
    }

    .download-os {
        font-size: 20px;
    }
}

/* =============================================================================
   Animations
   ============================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.browser-mockup {
    animation: float 6s ease-in-out infinite;
}

.feature-card,
.tech-item,
.contact-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Scroll reveal - activated by JS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
