/* 
 * AnyDesk Pro - Modern Corporate Theme (v3 Feature Enhanced)
 * Style: Clean, Professional, SaaS-oriented, Asymmetric
 */

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

:root {
    --pro-navy: #0F172A;
    --pro-blue: #1E293B;
    --pro-red: #EF4444;
    --pro-red-hover: #DC2626;
    --pro-bg: #F8FAFC;
    --pro-white: #FFFFFF;
    --pro-text: #334155;
    --pro-text-light: #64748B;
    --pro-border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--pro-text);
    background-color: var(--pro-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.bg-white { background-color: var(--pro-white); }
.bg-navy { background-color: var(--pro-navy); color: white; }

/* Typography */
h1, h2, h3, h4, h5, h6 { color: var(--pro-navy); font-weight: 700; line-height: 1.1; }
.bg-navy h1, .bg-navy h2 { color: white; }
.text-red { color: var(--pro-red); }
.text-center { text-align: center; }
.lead { font-size: 20px; color: var(--pro-text-light); max-width: 700px; margin: 0 auto; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; font-weight: 600; border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.2s; font-size: 16px;
}
.btn-primary {
    background-color: var(--pro-red); color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-primary:hover {
    background-color: var(--pro-red-hover); transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-dark {
    background-color: var(--pro-navy); color: white;
}
.btn-dark:hover { background-color: #1E293B; }
.btn-outline {
    background-color: transparent; border: 2px solid var(--pro-border);
    color: var(--pro-navy);
}
.btn-outline:hover {
    border-color: var(--pro-navy); background: var(--pro-navy); color: white;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    height: 80px; position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--pro-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo {
    font-size: 24px; font-weight: 800; color: var(--pro-navy);
    display: flex; align-items: center; gap: 10px;
}
.logo-icon {
    width: 36px; height: 36px; background: var(--pro-red);
    color: white; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
}
.nav-list { display: flex; gap: 32px; }
.nav-link { font-weight: 500; color: var(--pro-text); font-size: 15px; }
.nav-link:hover { color: var(--pro-red); }

/* New: Masonry Grid Layout */
.masonry-grid {
    display: grid; grid-template-columns: repeat(12, 1fr); gap: 30px;
    align-items: start;
}
.masonry-item {
    background: white; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.masonry-wide { grid-column: span 8; }
.masonry-narrow { grid-column: span 4; }
.masonry-full { grid-column: span 12; }
.masonry-content { padding: 40px; }
.masonry-img { width: 100%; height: 300px; object-fit: cover; }

/* New: Diagonal Hero */
.hero-diagonal {
    padding: 150px 0 200px; position: relative; overflow: hidden;
    background: var(--pro-navy); color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-bg-img {
    position: absolute; top: 0; right: 0; width: 60%; height: 100%;
    object-fit: cover; opacity: 0.2; z-index: 1;
    mask-image: linear-gradient(to right, transparent, black);
}

/* Feature Overlap */
.feature-overlap {
    margin-top: -100px; position: relative; z-index: 10;
}
.feature-card-lg {
    background: white; border-radius: var(--radius-lg); padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

/* New: Step-by-Step Guide (Timeline) */
.timeline-steps {
    display: flex; justify-content: space-between; position: relative;
    margin-top: 60px;
}
.timeline-steps::before {
    content: ''; position: absolute; top: 24px; left: 0; width: 100%; height: 2px;
    background: var(--pro-border); z-index: 1;
}
.step-item {
    position: relative; z-index: 2; width: 30%; text-align: center;
}
.step-icon {
    width: 50px; height: 50px; background: white; border: 2px solid var(--pro-red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--pro-red); font-size: 20px; margin: 0 auto 20px;
    box-shadow: 0 0 0 8px var(--pro-bg);
}
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 14px; color: var(--pro-text-light); }

/* New: Advanced Feature Grid */
.adv-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.adv-card {
    background: white; padding: 30px; border-radius: 16px;
    border: 1px solid var(--pro-border); transition: 0.3s;
}
.adv-card:hover { border-color: var(--pro-red); transform: translateY(-5px); }
.adv-icon { font-size: 32px; color: var(--pro-red); margin-bottom: 20px; }

/* Download Cards */
.dl-tabs {
    display: flex; justify-content: center; gap: 16px; margin-bottom: 60px;
}
.dl-tab-btn {
    padding: 12px 24px; border-radius: 50px; background: rgba(255,255,255,0.1);
    color: white; border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
    font-weight: 500; transition: 0.3s;
}
.dl-tab-btn.active, .dl-tab-btn:hover {
    background: var(--pro-red); border-color: var(--pro-red);
}
.dl-card {
    background: white; border-radius: 24px; padding: 60px; color: var(--pro-text);
    text-align: center; max-width: 800px; margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.dl-platform-icon {
    font-size: 64px; color: var(--pro-navy); margin-bottom: 24px;
}

/* Footer */
.footer {
    background: white; border-top: 1px solid var(--pro-border);
    padding: 80px 0 40px;
}
.footer-cols {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--pro-text-light); }
.footer-links a:hover { color: var(--pro-red); }

/* Responsive */
@media (max-width: 1024px) {
    .masonry-wide, .masonry-narrow { grid-column: span 12; }
    .feature-card-lg { grid-template-columns: 1fr; }
    .hero-bg-img { display: none; }
    .hero-diagonal { clip-path: none; padding-bottom: 100px; }
    .feature-overlap { margin-top: 0; }
    .timeline-steps { flex-direction: column; gap: 40px; }
    .timeline-steps::before { display: none; }
    .step-item { width: 100%; }
    .adv-grid { grid-template-columns: 1fr; }
}
