/* ========================================
   Telegarm ProMax - Apple Style Design
   ======================================== */

:root {
    --color-primary: #0071e3;
    --color-primary-hover: #0077ed;
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-background: #ffffff;
    --color-background-secondary: #f5f5f7;
    --color-border: #d2d2d7;
    --color-success: #34c759;
    --color-warning: #ff9f0a;
    --color-error: #ff3b30;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 40px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.nav-download {
    background: var(--color-primary);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.nav-download:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f7 0%, #ffffff 100%);
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(0, 113, 227, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-domain {
    display: block;
    font-size: 0.5em;
    font-weight: 500;
    color: var(--color-primary);
    -webkit-text-fill-color: var(--color-primary);
    margin-top: 8px;
}

.hero-subtitle {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 17px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-download {
    background: var(--color-text);
    color: #fff;
    padding: 16px 40px;
    font-size: 17px;
}

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

.btn-download svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Sections Common
   ======================================== */

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

.section-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 19px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: 120px 0;
    background: var(--color-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-background-secondary);
    border-radius: 20px;
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-highlight {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(0, 113, 227, 0.04) 100%);
    border: 1px solid rgba(0, 113, 227, 0.15);
}

.feature-highlight:hover {
    border-color: rgba(0, 113, 227, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Comparison Section
   ======================================== */

.comparison {
    padding: 120px 0;
    background: var(--color-background-secondary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: 16px;
    background: var(--color-background);
    box-shadow: var(--shadow-soft);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px 24px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-background-secondary);
}

.comparison-table th:first-child {
    border-radius: 16px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 16px 0 0;
}

.comparison-table td {
    font-size: 15px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:last-child td:first-child {
    border-radius: 0 0 0 16px;
}

.comparison-table tr:last-child td:last-child {
    border-radius: 0 0 16px 0;
}

.comparison-table .highlight {
    background: rgba(0, 113, 227, 0.04);
}

.comparison-table th.highlight {
    color: var(--color-primary);
    background: rgba(0, 113, 227, 0.08);
}

.status-yes,
.status-no,
.status-partial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.status-yes {
    color: var(--color-success);
}

.status-yes::before {
    content: "✓";
    font-weight: 700;
}

.status-no {
    color: var(--color-error);
}

.status-no::before {
    content: "✗";
    font-weight: 700;
}

.status-partial {
    color: var(--color-warning);
}

.status-partial::before {
    content: "~";
    font-weight: 700;
}

.comparison-link {
    text-align: center;
}

.link-official {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: gap var(--transition-fast);
}

.link-official:hover {
    gap: 12px;
}

.link-official svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Security Section
   ======================================== */

.security {
    padding: 60px 0;
    background: var(--color-background);
}

.security-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0%, rgba(52, 199, 89, 0.04) 100%);
    border: 1px solid rgba(52, 199, 89, 0.2);
    border-radius: 16px;
}

.security-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.security-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-success);
}

.security-text h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.security-text p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ========================================
   Download Section
   ======================================== */

.download {
    padding: 120px 0;
    background: var(--color-background-secondary);
}

.download-card {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: var(--color-background-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.download-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: 16px;
}

.download-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--color-text);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.download-note {
    text-align: center;
    margin-top: 24px;
}

.download-note p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 40px 0;
    background: var(--color-background-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.footer-copyright {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ========================================
   Animations
   ======================================== */

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

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

.feature-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; }
.feature-card:nth-child(7) { animation-delay: 0.7s; }
.feature-card:nth-child(8) { animation-delay: 0.8s; }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }

    .nav-links a:not(.nav-download) {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .features,
    .comparison,
    .download {
        padding: 80px 0;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

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

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
    }

    .section-container {
        padding: 0 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 16px;
    }
}

/* ========================================
   Utilities
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
