:root {
    --primary-color: #78d1c0;
    --secondary-color: #f9f1d0;
    --accent-color: #ff9a8b;
    --text-color: #5d4037;
    --bg-color: #fffdf5;
    --font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

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

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #e0f7f4 0%, #fffdf5 100%);
    text-align: center;
}

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

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Wrapper for the embedded app preview */
    perspective: 1000px;
}

/* --- App Preview (Embedded React UI Simulation) --- */
.app-preview-wrapper {
    width: 380px;
    padding: 20px;
    border-radius: 20px;
    /* Mimic the dark gradient background of the app body */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-preview-wrapper:hover {
    transform: rotateY(0) rotateX(0);
}

.app-preview-wrapper h1 {
    text-align: center;
    font-size: 2em;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.settings-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
    color: #f6f6f6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.settings-container h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95em;
    color: #e0e0e0;
    letter-spacing: 0.3px;
}

.setting-item input[type="range"] {
    width: 100%;
    height: 6px;
    accent-color: #667eea;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 10px;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

.button-group {
    display: flex;
    gap: 10px;
}

.button-group button {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.button-group button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hint {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 16px;
    text-align: center;
    font-style: italic;
    font-weight: 300;
}
/* ----------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-large {
    background-color: var(--accent-color);
    color: white;
    font-size: 1.3rem;
    padding: 15px 40px;
}

.features {
    padding: 100px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

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

.feature-card {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

/* Usage Section */
.usage-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.usage-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.usage-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.download-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    .app-preview-wrapper {
        width: 100%;
        margin-top: 40px;
    }
}
