/* KnowBali Website Styles */
:root {
    --primary: #2D5A4A;
    --accent: #FF6B6B;
    --background: #FDFBF7;
    --ocean-blue: #4A90E2;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #E0E0E0;
    --white: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

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

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3d33 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 90, 74, 0.12);
}

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

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Categories & Areas */
.categories,
.areas {
    padding: 4rem 0;
    background-color: var(--background);
}

.categories h2,
.areas h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.category-list,
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-tag,
.area-tag {
    background-color: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: background-color 0.3s, color 0.3s;
}

.category-tag:hover,
.area-tag:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Download Section */
.download {
    padding: 4rem 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.download h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.download p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Content Pages (Privacy, Terms, Contact) */
.content-page {
    padding: 3rem 0;
    background-color: var(--white);
}

.content-page h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.content-page h2 {
    color: var(--primary);
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-page h3 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.content-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-page a {
    color: var(--primary);
    text-decoration: underline;
}

.content-page a:hover {
    color: var(--accent);
}

/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-light);
}

.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.faq-item {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    nav .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* Waitlist popup */
.waitlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.waitlist-overlay.waitlist-open {
    opacity: 1;
    visibility: visible;
}

.waitlist-modal {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.waitlist-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.waitlist-close:hover {
    color: var(--text-dark);
}

.waitlist-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.waitlist-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.waitlist-form label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.waitlist-form input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(45, 90, 74, 0.2);
}

.waitlist-message {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    min-height: 1.25em;
}

.waitlist-message.waitlist-success {
    color: var(--primary);
}

.waitlist-message.waitlist-error {
    color: #c62828;
}

.waitlist-submit {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.waitlist-submit:hover:not(:disabled) {
    background: #1e3d33;
}

.waitlist-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
