/* ===== CSS Variables & Reset ===== */
:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #5a8a3c;
    --green-600: #4a7a2e;
    --green-700: #3d6b24;
    --green-800: #2d5016;
    --green-900: #1a3409;

    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.08);
    padding: 10px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--gray-800);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--gray-600);
}

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

.navbar.scrolled .nav-links a:hover {
    color: var(--green-600);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-download-btn {
    background: var(--white) !important;
    color: var(--green-600) !important;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-download-btn::after {
    display: none !important;
}

.navbar.scrolled .nav-download-btn {
    background: var(--green-600) !important;
    color: var(--white) !important;
}

.nav-download-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--gray-800);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 50%, #6b9f4a 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: var(--white);
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-title-line {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle-line {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-top: 24px;
    max-width: 480px;
}

.hero-title-wrap {
    position: relative;
    display: inline-block;
}

.hero-free-sup {
    position: absolute;
    top: -4px;
    right: -90px;
    font-size: 0.65rem !important;
    padding: 4px 12px !important;
    transform: rotate(8deg);
}

.hero-free-badge {
    margin-top: 16px;
}

.hero-version {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--green-700);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline {
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.7);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.2);
}

/* Phone Mockup */
.hero-phone {
    flex-shrink: 0;
}

.phone-mockup {
    position: relative;
    width: 280px;
}

.phone-mockup.small {
    width: 240px;
}

.phone-frame {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    background: var(--gray-900);
    padding: 8px;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(0,0,0,0.15);
}

.phone-frame img {
    border-radius: 28px;
    width: 100%;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== Sections Common ===== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--green-50);
    color: var(--green-600);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-top: 12px;
}

/* ===== Features ===== */
.features {
    padding: 100px 0;
    background: var(--white);
}

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

.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-400), var(--green-600));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--green-500);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--green-600);
    transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--white);
}

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

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== App Preview (combined section) ===== */
.app-preview {
    padding: 100px 0;
    background: var(--gray-50);
}

.app-preview .showcase-row {
    margin-top: 100px;
    padding-top: 80px;
    border-top: 1px solid var(--gray-200);
}

.screenshots-showcase {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.screenshot-item {
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
}

.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-item.featured {
    transform: translateY(20px) scale(1.05);
}

.screenshot-item.featured.visible {
    transform: translateY(-20px) scale(1.05);
}

.screenshot-phone {
    position: relative;
    display: inline-block;
}

.screenshot-frame {
    width: 220px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--gray-900);
    padding: 6px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.screenshot-item.featured .screenshot-frame {
    width: 250px;
    box-shadow: var(--shadow-2xl);
}

.screenshot-frame img {
    border-radius: 22px;
    width: 100%;
}

.screenshot-item:hover .screenshot-frame {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.screenshot-info {
    margin-top: 24px;
}

.screenshot-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.screenshot-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Security Section ===== */
.security {
    padding: 100px 0;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(90, 138, 60, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(90, 138, 60, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.security .section-header {
    position: relative;
    z-index: 1;
}

.security .section-header h2 {
    color: var(--white);
}

.security .section-header p {
    color: var(--gray-400);
}

.security-tag {
    background: rgba(90, 138, 60, 0.2) !important;
    color: var(--green-400) !important;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.security-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    position: relative;
}

.security-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(90, 138, 60, 0.3);
    transform: translateY(-4px);
}

.security-card-main {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: linear-gradient(135deg, rgba(90, 138, 60, 0.15) 0%, rgba(90, 138, 60, 0.05) 100%);
    border-color: rgba(90, 138, 60, 0.25);
    padding: 40px 36px;
}

.security-card-main .security-card-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.security-card-main .security-card-icon svg {
    width: 32px;
    height: 32px;
}

.security-card-main h3 {
    font-size: 1.3rem;
}

.security-card-main p {
    font-size: 1rem;
    max-width: 600px;
}

.security-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(90, 138, 60, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: var(--transition);
}

.security-card:hover .security-card-icon {
    background: var(--green-600);
}

.security-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--green-400);
    transition: var(--transition);
}

.security-card:hover .security-card-icon svg {
    stroke: var(--white);
}

.security-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.security-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.security-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 14px;
    background: rgba(90, 138, 60, 0.2);
    color: var(--green-400);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid rgba(90, 138, 60, 0.3);
}

/* ===== Showcase Sections (OCR, Analysis) ===== */
.showcase-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.showcase-row.reverse {
    flex-direction: row-reverse;
}

.showcase-phone {
    flex-shrink: 0;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2,
.showcase-text h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.3;
    margin-top: 12px;
}

.showcase-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 460px;
}

.showcase-list {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

.showcase-list li svg {
    width: 20px;
    height: 20px;
    stroke: var(--green-500);
    flex-shrink: 0;
}

/* Dual phones layout */
.showcase-phones-dual {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    align-items: flex-start;
}

.showcase-phones-dual .phone-mockup {
    width: 230px;
}

.showcase-phones-dual .dual-left {
    transform: translateY(30px);
}

.showcase-phones-dual .dual-right {
    transform: translateY(-10px);
}

/* ===== Highlights ===== */
.highlights {
    padding: 100px 0;
    background: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.highlight-item:hover {
    background: var(--green-50);
    border-color: var(--green-100);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.highlight-item:hover .highlight-icon {
    background: var(--green-500);
}

.highlight-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--green-600);
    transition: var(--transition);
}

.highlight-item:hover .highlight-icon svg {
    stroke: var(--white);
}

.highlight-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.highlight-text p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Download ===== */
.download {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 50%, #6b9f4a 100%);
    overflow: hidden;
}

.download-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dl-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: var(--white);
}

.dl-shape-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -100px;
}

.dl-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
}

.download-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.download-text {
    flex: 1;
    color: var(--white);
}

.download-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
}

.download-text p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-top: 16px;
    max-width: 420px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: var(--white);
    color: var(--green-700);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dl-label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.dl-store {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn:hover .dl-store {
    opacity: 0.6;
}

.download-phone {
    flex-shrink: 0;
}

/* QR Code Card */
.download-qr {
    flex-shrink: 0;
}

.qr-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    width: 200px;
}

.qr-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin: 0 auto;
}

.qr-card p {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Free Badge */
.free-badge-wrap {
    margin-bottom: 16px;
}

.free-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    letter-spacing: 0.1em;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
    0% { box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6); }
}

/* ===== Developer Q&A ===== */
.dev-words {
    padding: 80px 0;
    background: var(--gray-50);
}

.dev-words .section-header {
    margin-bottom: 48px;
}

.qa-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}

.qa-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.qa-q {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 14px;
}

.qa-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-500);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.qa-icon-a {
    background: var(--gray-200);
    color: var(--gray-600);
}

.qa-a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qa-a p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.8;
    padding-top: 3px;
}

.qa-item-highlight {
    background: linear-gradient(135deg, #fff5f5, #fff0f6);
    border-color: #fecdd3;
}

.qa-item-highlight:hover {
    border-color: #fda4af;
}

.qa-item-highlight .qa-a {
    flex-direction: column;
    gap: 14px;
}

.qa-icon-heart {
    background: #f43f5e !important;
    color: var(--white) !important;
    font-size: 0.85rem !important;
}

.afdian-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f43f5e;
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.afdian-btn:hover {
    background: #e11d48;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.footer-logo span {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-500);
}

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

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--green-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
}

.footer-bottom p a {
    color: var(--gray-500);
    transition: var(--transition);
}

.footer-bottom p a:hover {
    color: var(--green-400);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-600);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-title-line {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-row {
        gap: 50px;
    }

    .showcase-phones-dual .phone-mockup {
        width: 190px;
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-card-main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 20px;
    }

    /* Reduce section paddings */
    .features,
    .app-preview,
    .highlights,
    .download {
        padding: 64px 0;
    }

    .security {
        padding: 64px 0;
    }

    .dev-words {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .nav-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .nav-logo {
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
    }

    .nav-logo img {
        width: 28px;
        height: 28px;
    }

    /* Navbar - show links directly */
    .mobile-menu-btn {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.75rem;
        display: inline-block;
        padding: 6px 10px;
        border-bottom: none;
    }

    .navbar.scrolled .nav-links a {
        color: var(--gray-600) !important;
    }

    .nav-download-btn {
        background: transparent !important;
        color: rgba(255,255,255,0.85) !important;
        margin: 0 !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        border-radius: 0 !important;
        display: inline-block !important;
        width: auto !important;
        font-weight: 500 !important;
    }

    .navbar.scrolled .nav-download-btn {
        background: transparent !important;
        color: var(--gray-600) !important;
    }

    .nav-links li:last-child {
        text-align: center;
    }

    .nav-links li:last-child a {
        border-bottom: none;
        padding: 0;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 999;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-text {
        order: 1;
    }

    .hero-phone {
        order: 0;
    }

    .hero-title-wrap {
        display: inline-block;
        position: relative;
        text-align: center;
    }

    .hero-title-line {
        font-size: 2.2rem;
        display: inline;
    }

    .hero-free-sup {
        position: absolute;
        top: -6px;
        right: -70px;
        font-size: 0.55rem !important;
        padding: 3px 8px !important;
        transform: rotate(8deg);
    }

    .hero-subtitle-line {
        font-size: 1.1rem;
        margin-top: 10px;
    }

    .hero-desc {
        margin: 16px auto 0;
        font-size: 0.95rem;
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 24px;
    }

    .hero-stats {
        justify-content: center;
        margin-top: 32px;
        padding-top: 24px;
        gap: 24px;
    }

    .phone-mockup {
        width: 200px;
    }

    .hero-wave svg {
        height: 50px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: none;
        margin: 0;
    }

    .feature-card {
        padding: 24px 18px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.82rem;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    .feature-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Screenshots */
    .screenshots-showcase {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 8px;
        justify-content: flex-start;
    }

    .screenshot-item {
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .screenshot-item.featured {
        transform: none;
    }

    .screenshot-item.featured.visible {
        transform: none;
    }

    .screenshot-frame {
        width: 180px;
    }

    .screenshot-item.featured .screenshot-frame {
        width: 180px;
        box-shadow: var(--shadow-xl);
    }

    .screenshot-info h3 {
        font-size: 1rem;
    }

    .screenshot-info p {
        font-size: 0.8rem;
        max-width: 180px;
    }

    .screenshot-info {
        margin-top: 16px;
    }

    /* App preview showcase rows */
    .app-preview .showcase-row {
        margin-top: 56px;
        padding-top: 48px;
    }

    .showcase-row,
    .showcase-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .showcase-text {
        order: 2;
    }

    .showcase-phone,
    .showcase-phones-dual {
        order: 1;
    }

    .showcase-text h2,
    .showcase-text h3 {
        font-size: 1.5rem;
    }

    .showcase-desc {
        margin: 12px auto 0;
        font-size: 0.95rem;
    }

    .showcase-list {
        align-items: center;
        margin-top: 20px;
        gap: 10px;
    }

    .showcase-list li {
        font-size: 0.9rem;
    }

    .showcase-phones-dual .phone-mockup {
        width: 150px;
    }

    .showcase-phones-dual .dual-left {
        transform: translateY(16px);
    }

    .showcase-phones-dual .dual-right {
        transform: translateY(0);
    }

    /* Security */
    .security-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .security-card {
        padding: 24px 20px;
    }

    .security-card-main {
        flex-direction: column;
        text-align: center;
        align-items: center;
        grid-column: auto;
        padding: 28px 20px;
    }

    .security-card-main p {
        font-size: 0.9rem;
    }

    .security-card h3 {
        font-size: 1rem;
    }

    .security-card p {
        font-size: 0.85rem;
    }

    /* Highlights */
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .highlight-item {
        padding: 18px 16px;
    }

    /* Download */
    .download {
        padding: 56px 0;
    }

    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .download-text h2 {
        font-size: 1.6rem;
    }

    .download-text p {
        margin: 12px auto 0;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
        margin-top: 24px;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
    }

    .download-qr {
        order: -1;
    }

    .qr-card {
        width: 180px;
        margin: 0 auto;
    }

    .qr-card img {
        width: 140px;
        height: 140px;
    }

    .free-badge-wrap {
        margin-bottom: 12px;
    }

    /* Q&A */
    .qa-item {
        padding: 20px 18px;
    }

    .qa-q {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .qa-a p {
        font-size: 0.88rem;
    }

    /* Footer */
    .footer {
        padding-top: 48px;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
        justify-items: center;
    }

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

    .footer-bottom {
        padding: 20px 0;
        font-size: 0.75rem;
        line-height: 1.8;
    }

    /* Back to top - larger tap target */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

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

    .hero-title-line {
        font-size: 1.8rem;
    }

    .hero-free-sup {
        font-size: 0.55rem !important;
        padding: 2px 8px !important;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .stat-divider {
        height: 24px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

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

    .feature-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 18px;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-card h3 {
        margin-bottom: 4px;
    }

    /* Screenshots: narrower phones */
    .screenshot-frame,
    .screenshot-item.featured .screenshot-frame {
        width: 160px;
    }

    .showcase-phones-dual .phone-mockup {
        width: 130px;
    }

    .showcase-phones-dual {
        gap: 12px;
    }

    .showcase-text h2,
    .showcase-text h3 {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .download-text h2 {
        font-size: 1.4rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .qa-item {
        padding: 18px 16px;
    }

    .afdian-btn {
        padding: 10px 24px;
    }
}
