:root {
    --primary-color: #ff7e5f;
    --secondary-color: #feb47b;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
    z-index: 1;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: rotate(-2deg);
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: left;
    padding: 0 0 30px 0;
    border-radius: 15px;
    background-color: var(--bg-color);
    transition: transform 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.feature-card:hover .feature-img-wrapper img {
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding: 0 20px;
}

.feature-list {
    margin: 0 20px;
    padding-left: 18px;
    color: #666;
}

.feature-list li {
    margin: 10px 0;
}

.feature-list strong {
    color: var(--text-color);
}

.cta {
    padding: 80px 0;
    text-align: center;
    background-color: #fff0e6;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #666;
}

footer {
    padding: 20px 0;
    text-align: center;
    background-color: #333;
    color: #999;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 40px 0;
}

.back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.page-subtitle {
    opacity: 0.95;
}

.page-content {
    padding: 48px 0 64px;
    background: var(--white);
}

.narrow {
    max-width: 900px;
}

.policy .meta {
    color: #666;
    margin-bottom: 18px;
}

.policy h2 {
    font-size: 1.25rem;
    margin-top: 22px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.policy p {
    color: #555;
    margin: 10px 0;
}

.policy ul {
    margin: 10px 0 10px 18px;
    color: #555;
}

.policy li {
    margin: 10px 0;
}

.policy-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.policy-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-color);
    background: #f3f3f3;
    border: 1px solid #e7e7e7;
}

.policy-tabs a:hover {
    background: #ededed;
}

.policy-markdown {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    background: #fafafa;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 18px;
    margin: 14px 0 22px;
    overflow-x: auto;
}

.policy-markdown h1 {
    font-size: 1.35rem;
    margin: 18px 0 10px;
    color: var(--text-color);
}

.policy-markdown h2 {
    font-size: 1.18rem;
    margin: 18px 0 10px;
    color: var(--text-color);
}

.policy-markdown h3 {
    font-size: 1.05rem;
    margin: 16px 0 8px;
    color: var(--text-color);
}

.policy-markdown p {
    margin: 10px 0;
}

.policy-markdown ul,
.policy-markdown ol {
    margin: 10px 0 10px 18px;
}

.policy-markdown li {
    margin: 10px 0;
}

.policy-markdown a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.policy-markdown a:hover {
    text-decoration: underline;
}

.policy-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    min-width: 680px;
}

.policy-markdown th,
.policy-markdown td {
    border: 1px solid #e6e6e6;
    padding: 10px 12px;
    vertical-align: top;
}

.policy-markdown th {
    background: #f3f3f3;
    color: var(--text-color);
    text-align: left;
}

.policy-markdown code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

@media (max-width: 980px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .top-nav {
        flex-direction: column;
        margin-bottom: 22px;
    }

    .logo {
        justify-content: center;
    }

    .download-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-image img {
        transform: none;
        max-height: 300px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}
