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

:root {
    --primary-color: #2c3e50; /* Ink Blue */
    --secondary-color: #c0392b; /* Seal Red */
    --accent-color: #d35400; /* Orange/Gold */
    --bg-color: #fdfbf7; /* Rice Paper White */
    --text-color: #333;
    --text-light: #666;
    --font-serif: 'Noto Serif SC', serif;
    --font-calligraphy: 'Ma Shan Zheng', cursive;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #a93226;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-calligraphy);
    font-size: 1.8rem;
    color: var(--primary-color);
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 8px;
    margin-right: 10px;
    font-size: 1.4rem;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1rem;
}

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

.btn-download {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem !important;
}

.btn-download:hover {
    background-color: #34495e;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

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

.hero-text {
    z-index: 10;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 20px 0 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item {
    margin-right: 50px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-serif);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 4px solid #444;
    position: relative;
    z-index: 5;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* App Screen Placeholder Design */
.app-screen-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #fdfbf7 0%, #f5f0e6 100%);
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: var(--font-serif);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.poem-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    writing-mode: vertical-rl; /* Vertical Text Layout */
    margin: 0 auto;
}

.poem-card h3 {
    font-size: 1.8rem;
    margin-left: 20px;
    color: var(--primary-color);
    border-left: 2px solid var(--secondary-color); /* Decorative border */
    padding-left: 10px;
}

.poem-card .author {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-left: 15px;
}

.poem-content p {
    font-size: 1.2rem;
    margin-left: 10px;
    color: #444;
    letter-spacing: 3px;
}

.action-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 1.5rem;
}

.ink-splash {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,200,200,0.2) 0%, transparent 70%);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

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

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

.feature-card {
    padding: 40px 30px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

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

.icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* Technology Section */
.technology {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.tech-list {
    margin-top: 40px;
}

.tech-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.tech-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.tech-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.tech-list span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.code-block {
    background-color: #282c34;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    color: #abb2bf;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-header {
    display: flex;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    margin: 0 10px;
}

.btn-light:hover {
    background-color: #f0f0f0;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    margin: 0 10px;
}

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

/* Footer */
.footer {
    background-color: #222;
    color: #eee;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    font-family: var(--font-calligraphy);
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    display: block;
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-family: sans-serif;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .tech-content {
        grid-template-columns: 1fr;
    }
    
    .phone-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
