:root {
    --bg-color: #f2f2f7; /* Cupertino extraLightBackgroundGray approx */
    --text-color: #1c1c1e; /* Cupertino label */
    --text-secondary: #8e8e93; /* Cupertino systemGrey */
    --primary-color: #34c759; /* Cupertino systemGreen */
    --primary-hover: #2db34f;
    --danger-color: #ff3b30; /* Cupertino systemRed */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 1);
    --shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(at 50% 40%, #ffffff 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Base typography from Privacy */
.container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.container p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.container ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.container li {
    margin-bottom: 10px;
}

.container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    flex-grow: 1;
}

.content-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    margin-top: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-hover);
}

.back-link svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

/* Landing specific */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    flex-grow: 1;
}

.app-name-badge {
    display: inline-block;
    background: rgba(52, 199, 89, 0.15);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -1px;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.3);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 199, 89, 0.4);
}

.android-helper-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 24px;
    line-height: 1.5;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    width: 300px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px 0 rgba(0, 0, 0, 0.08);
}

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

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

/* Feedback Form Section */
.feedback-section {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.feedback-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow);
}

.feedback-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: #f9f9f9;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: #ffffff;
}

.form-control::placeholder {
    color: #c7c7cc;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideDownToast {
    from { opacity: 0; transform: translate(-50%, -30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Toast Popup */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(52, 199, 89, 0.2);
    z-index: 1000;
    font-weight: 600;
    text-align: center;
    width: max-content;
    max-width: 90%;
    animation: slideDownToast 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-copyright {
    margin-bottom: 10px;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
}

.turnstile-error {
    margin-bottom: 10px;
    margin-top: 0;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .feedback-container { padding: 30px 20px; }
}
