:root {
    --primary-color: #0071e3;
    --primary-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #1d1d1f;
    --border-color: #d2d2d7;
    --container-max: 980px;
    --header-height: 48px;
    --radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), #00c7be);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
    position: relative;
}

nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 113, 227, 0.08);
}

nav a.active {
    color: var(--primary-color);
    background: rgba(0, 113, 227, 0.12);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.lang-switch button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
    font-size: 12px;
    color: var(--text-secondary);
}

.lang-switch button:hover,
.lang-switch button.active {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-top: 10px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #1d1d1f 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.hero .cta-group .btn {
    order: 1;
}

.hero .cta-group .app-store-badge {
    order: 2;
}

.hero .cta-group .available-soon {
    order: 3;
    margin-top: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.app-store-badge {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: all var(--transition);
}

.app-store-badge:hover {
    transform: scale(1.02);
}

.app-store-badge img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 8px;
}

.screenshot-preview {
    margin-top: 40px;
    position: relative;
}

.screenshot-placeholder {
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #e8e8ed 0%, #d1d1d6 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.screenshot-placeholder span {
    position: relative;
    z-index: 1;
    padding: 20px 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    text-align: center;
}

.screenshot-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.section {
    padding: 40px 0;
}

.section-dark {
    background: var(--bg-dark);
    color: white;
}

.section-dark .section-title {
    color: white;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-dark .comparison-table {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.section-dark .comparison-table th {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-dark .comparison-table td {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section-dark .comparison-table td:first-child {
    color: white;
}

.section-dark .check-icon {
    color: #30d158;
}

.section-dark .cross-icon {
    color: #ff453a;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.feature-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-tag.free {
    background: linear-gradient(135deg, #34c759, #30d158);
    color: white;
}

.feature-tag.pro {
    background: linear-gradient(135deg, #0071e3, #0a84ff);
    color: white;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), #00c7be);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg,
.feature-icon use {
    width: 26px;
    height: 26px;
    color: white;
}

.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.5;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.comparison-table th {
    background: var(--bg-dark);
    color: white;
    font-weight: 600;
}

.comparison-table th:first-child {
    background: var(--text-primary);
}

.comparison-table td:first-child {
    font-weight: 500;
}

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

.check-icon {
    color: #34c759;
    font-weight: bold;
}

.cross-icon {
    color: #ff3b30;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.format-card {
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
}

.format-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.format-card ul {
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
}

.format-card li {
    padding: 4px 0;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding-bottom: 24px;
}

.faq-answer-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.privacy-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    font-weight: 600;
}

.privacy-content h3 {
    font-size: 20px;
    margin: 30px 0 16px;
    font-weight: 600;
}

.privacy-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.privacy-content ul {
    margin-left: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
}

.contact-info h3 {
    margin-bottom: 12px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius);
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 16px;
}

.form-status .success {
    color: #34c759;
    background: rgba(52, 199, 89, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.form-status .error {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
    padding: 12px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.footer-links a {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.footer-copyright {
    font-size: 12px;
    color: var(--text-secondary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--text-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    font-size: 20px;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(0, 199, 190, 0.1));
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
    border-left: 4px solid var(--primary-color);
}

.highlight-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.highlight-box p {
    font-size: 15px;
    color: var(--text-secondary);
}

.badge-pro {
    display: inline-block;
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-free {
    display: inline-block;
    background: var(--text-secondary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    nav {
        display: none;
    }
    
    .hero .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-placeholder {
        height: 300px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
