:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --secondary: #4CAF50;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #F5F7FA;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --header-height: 70px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

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

a:hover {
    color: var(--primary-dark);
}

dl {
    margin-bottom: 1rem;
    margin-left: 1rem;
}

dt {
    font-weight: 600;
}

dd {
    margin-bottom: 0.5rem;
    border-bottom: 1px dotted var(--text-muted);
    padding-bottom: 0.5rem;
}

table {
    width: 100%;
    margin-bottom: 1rem;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

th {
    background-color: var(--bg-light);
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

main {
    flex: 1;
    padding: 0; /* Removed padding to allow hero to touch edges */
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
}

.logo img {
    height: 32px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    padding: 14px 32px; /* Match original design */
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    background: radial-gradient(circle at top right, #E3F2FD 0%, transparent 40%),
        radial-gradient(circle at bottom left, #F5F7FA 0%, transparent 40%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #E3F2FD;
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.platform-icons {
    font-size: 1.5rem;
    display: flex;
    gap: 16px;
    opacity: 0.7;
}

/* App Mockup */
.app-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    background: #f0f0f0;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.dots span:nth-child(1) { background-color: #ff5f56; }
.dots span:nth-child(2) { background-color: #ffbd2e; }
.dots span:nth-child(3) { background-color: #27c93f; }

.mockup-body {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 80px;
    background: #f9f9f9;
    border-right: 1px solid #eee;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
}

.sidebar-item.active {
    background: var(--primary);
    width: 60%;
}

.mockup-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.file-icon {
    width: 32px;
    height: 32px;
    background: #E3F2FD;
    border-radius: 6px;
}

.file-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
}

.line.long { width: 80%; }
.line.short { width: 40%; }

.status-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.status-badge.success { background: #E8F5E9; color: #2E7D32; }
.status-badge.processing { background: #E3F2FD; color: #1565C0; }
.status-badge.pending { background: #FFF3E0; color: #EF6C00; }

.floating-shield {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How it works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-light);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.step-item.reverse {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(33, 150, 243, 0.1);
    line-height: 1;
    margin-bottom: 16px;
}

.step-text h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.step-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.step-image {
    flex: 1; /* Reduced from 1.2 to balance content */
    max-width: 500px; /* Added max-width to prevent images from being too large */
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    transition: transform 0.3s ease;
}

.step-image:hover {
    transform: translateY(-5px);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: #fafafa;
}

.download h2 {
    color: var(--white);
}

.download-box {
    background: var(--text-main);
    color: white;
    border-radius: 32px;
    padding: 60px;
    text-align: center;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
}

.download-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.download-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.os-icon {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text .small {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-text .large {
    font-weight: 600;
    font-size: 1.1rem;
}

.version-info {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 0;
}

/* Article / Content Styles */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.content {
    font-size: 1.1rem;
    color: #333;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ul, .content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.content code {
    background: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* List Page Styles */
.post-list {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.post-title a {
    color: var(--text-main);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer */
footer {
    background: var(--white);
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
}

.os-icon {
    width: 24px;
    height: 24px;
}

.legal-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links {
        gap: 20px;
        font-size: 0.9rem;
    }
    
    .article-container {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .platform-icons {
        justify-content: center;
    }

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

    .step-number {
        font-size: 3rem;
    }
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.author-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.author-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 600px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
}
