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

:root {
    --primary: #2C7DA0;
    --primary-dark: #1a5c7a;
    --primary-light: #4A9DB5;
    --accent: #6C63FF;
    --text-dark: #1a2333;
    --text-light: #5a6a7e;
    --bg-light: #f0f5fa;
    --bg-white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 50%, #2C7DA0 100%);
    --gradient-btn: linear-gradient(135deg, #2C7DA0 0%, #4A9DB5 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

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

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

/* ── Hero ─────────────────────────────── */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-image-wrap {
    flex-shrink: 0;
}

.hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feature-graphic-wrap {
    width: 100%;
    max-height: 340px;
    overflow: hidden;
    line-height: 0;
}

.feature-graphic {
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
    max-height: 340px;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="80" cy="15" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="40" cy="90" r="1" fill="rgba(255,255,255,0.09)"/><circle cx="70" cy="60" r="1.5" fill="rgba(255,255,255,0.07)"/></svg>');
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out both;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-free {
    margin-top: 24px;
    font-size: 0.9rem;
    opacity: 0.65;
    animation: fadeInUp 0.7s ease-out 0.4s both;
    letter-spacing: 0.03em;
}

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

/* ── Buttons ─────────────────────────── */
.btn {
    display: inline-block;
    padding: 15px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 44px;
    font-size: 1.1rem;
}

/* ── Features ────────────────────────── */
.features {
    padding: 90px 0;
    background: var(--bg-light);
}

.features h2,
.how h2,
.download h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

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

.feature-card {
    background: white;
    padding: 36px 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-light);
}

.feature-card:nth-child(even) { border-top-color: var(--accent); }

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

.feature-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── How it works ────────────────────── */
.how {
    padding: 90px 0;
    background: white;
}

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

.step { text-align: center; }

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-btn);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(44, 125, 160, 0.35);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Download ─────────────────────────── */
.download {
    padding: 90px 0;
    background: var(--gradient-hero);
    color: white;
    text-align: center;
}

.download h2 { color: white; }
.download .section-subtitle { color: rgba(255,255,255,0.75); margin-bottom: 40px; }

/* ── Home blog banner ─────────────────── */
.home-blog {
    padding: 0 0 72px;
    background: white;
}

.home-blog-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
    text-decoration: none;
    background: var(--bg-light);
    border: 1px solid rgba(44, 125, 160, 0.14);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.home-blog-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(44, 125, 160, 0.28);
    background: #e8f0f6;
}

.home-blog-banner-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.7;
}

.home-blog-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-blog-banner-text strong {
    font-size: 1.02rem;
    font-weight: 700;
    color: #3a4d61;
}

.home-blog-banner-text span {
    font-size: 0.88rem;
    color: #7b8a9a;
    line-height: 1.45;
}

.home-blog-banner-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.home-blog-banner:hover .home-blog-banner-arrow {
    transform: translateX(4px);
    opacity: 1;
}

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

/* ── Footer ─────────────────────────── */
footer {
    background: #0d1b2a;
    color: white;
    padding: 32px 0;
    text-align: center;
}

footer p {
    opacity: 0.6;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover { opacity: 0.8; text-decoration: underline; }

/* ── Responsive ─────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 60px 0 50px; }
    .hero-inner { flex-direction: column-reverse; gap: 28px; text-align: center; }
    .hero-text { text-align: center; }
    .hero-icon { width: 130px; height: 130px; border-radius: 28px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .feature-graphic-wrap { max-height: 220px; }
    .feature-graphic { max-height: 220px; }

    .features, .how, .download { padding: 60px 0; }
    .home-blog { padding: 0 0 48px; }
    .home-blog-banner { padding: 18px 20px; gap: 14px; }
    .features h2, .how h2, .download h2 { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-buttons, .download-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; }
}

/* ── Legal / inner pages ─────────────── */
.page-header {
    background: var(--gradient-hero);
    color: white;
    padding: 20px 0 48px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.12)"/><circle cx="80" cy="15" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.08)"/><circle cx="10" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="80" r="1" fill="rgba(255,255,255,0.12)"/></svg>');
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.page-brand {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    opacity: 0.95;
}

.page-brand:hover { opacity: 1; }

.page-back {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.page-back:hover { color: white; }

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    max-width: 720px;
}

.page-header .page-meta {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.legal-main {
    background: var(--bg-light);
    padding: 0 0 64px;
    margin-top: -24px;
}

.legal-card {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-light);
}

.legal-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
}

.legal-card h2:first-of-type { margin-top: 0; }

.legal-card p {
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}

.legal-card ul,
.legal-card ol {
    color: var(--text-light);
    padding-left: 1.35rem;
    margin-bottom: 0.85rem;
}

.legal-card li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.legal-card a {
    color: var(--primary);
    text-decoration: none;
}

.legal-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-card strong { color: var(--text-dark); }

/* ── Blog ────────────────────────────── */
.blog-panel {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 28px 24px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(44, 125, 160, 0.12);
    backdrop-filter: blur(6px);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-card {
    position: relative;
    background: var(--bg-light);
    border-radius: 18px;
    padding: 24px 26px 22px 30px;
    text-decoration: none;
    display: block;
    transition: all 0.28s ease;
    border: 1px solid rgba(44, 125, 160, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-btn);
    border-radius: 20px 0 0 20px;
}

.post-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-3px);
    background: #e8f0f6;
    border-color: rgba(44, 125, 160, 0.22);
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.post-card:hover::before {
    width: 6px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}

.post-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.post-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #5a7d92;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(44, 125, 160, 0.14);
    padding: 5px 12px;
    border-radius: 50px;
}

.post-icon {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.55;
}

.post-card h2 {
    font-size: 1.12rem;
    font-weight: 600;
    color: #3a4d61;
    margin: 0 0 10px;
    line-height: 1.4;
    padding-right: 8px;
}

.post-card p {
    color: #7b8a9a;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(44, 125, 160, 0.1);
}

.post-card .read-more {
    font-size: 0.86rem;
    font-weight: 600;
    color: #4a8fad;
}

.post-card:hover .read-more { color: var(--primary-dark); }

.post-card-time {
    font-size: 0.78rem;
    color: #94a3b3;
}

.article-card h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-card .article-lead {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.article-cta {
    margin-top: 2rem;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 14px;
    border-left: 4px solid var(--primary-light);
}

.article-cta p {
    margin-bottom: 14px;
}

.article-cta .btn {
    background: var(--gradient-btn);
    color: white;
    box-shadow: 0 6px 20px rgba(44, 125, 160, 0.35);
}

.article-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .page-header { padding-bottom: 40px; }
    .page-header h1 { font-size: 1.55rem; }
    .legal-card { padding: 28px 22px; border-radius: 14px; }
    .blog-panel { padding: 20px 16px 24px; border-radius: 18px; }
    .post-card { padding: 20px 18px 18px 24px; border-radius: 14px; }
    .page-nav { flex-direction: column; align-items: flex-start; gap: 10px; }
}
