:root {
    --primary: #00897B;
    --primary-light: #4DB6AC;
    --primary-dark: #00695C;
    --amber: #f59e0b;
    --red: #ef4444;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --radius: 16px;
    --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-card: #1e1e1e;
        --text: #f0f0f0;
        --text-muted: #9ca3af;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navigation ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid rgba(128,128,128,0.12);
    height: var(--nav-height);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(128,128,128,0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(0,137,123,0.08);
}

/* Burger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid rgba(128,128,128,0.12);
        flex-direction: column;
        padding: 8px 24px 16px;
        gap: 0;
        display: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; font-size: 1rem; }
}

/* ---- Header ---- */
header {
    padding: 60px 0 40px;
    text-align: center;
}

header .logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

header .tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary);
    color: #fff;
}

.badge.amber { background: var(--amber); }

/* ---- Beta Banner ---- */
.beta-banner {
    padding: 0 0 32px;
}

.beta-banner-inner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,137,123,0.25);
}

.beta-banner-inner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.beta-banner-inner p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.beta-banner-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.15s;
}

.beta-banner-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Features (homepage grid) ---- */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 40px 0;
}

.feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.feature .icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
}

/* ---- Coming Soon ---- */
.coming-soon {
    padding: 40px 0 0;
}

.coming-soon h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.roadmap-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.roadmap-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.roadmap-status {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.roadmap-status.planned {
    background: rgba(0,137,123,0.12);
    color: var(--primary);
}

/* ---- Community ---- */
.community {
    padding: 40px 0;
}

.community-box {
    background: var(--bg-card);
    border: 2px dashed rgba(128,128,128,0.2);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
}

.community-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.community-box > p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.community-btn {
    display: inline-block;
    background: var(--amber);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.community-btn:hover { opacity: 0.85; }

.community-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---- CTA ---- */
.cta {
    text-align: center;
    padding: 40px 0 60px;
}

.cta a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.cta a:hover { background: var(--primary-dark); }

/* ---- Footer ---- */
footer {
    border-top: 1px solid rgba(128,128,128,0.15);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

footer .links {
    margin-bottom: 8px;
}

footer .links a { margin: 0 12px; }

/* ---- Legal ---- */
.legal {
    padding: 40px 0 60px;
}

.legal h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.legal .effective {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.legal p, .legal ul {
    margin-bottom: 16px;
}

.legal ul {
    padding-left: 24px;
}

.legal li {
    margin-bottom: 6px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

/* ---- Help page ---- */

/* Table of contents */
.help-toc {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 32px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.help-toc h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary);
}

.help-toc ul {
    list-style: none;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}

.help-toc li {
    break-inside: avoid;
    margin-bottom: 6px;
}

.help-toc a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    display: block;
    transition: color 0.15s;
}

.help-toc a:hover {
    color: var(--primary);
}

@media (max-width: 480px) {
    .help-toc ul { columns: 1; }
}

/* Tip box */
.help-tip {
    background: rgba(0,137,123,0.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.help-tip strong {
    color: var(--primary);
}

.help-hero {
    text-align: center;
    padding: 60px 0 20px;
}

.help-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.help-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.help-sections {
    padding-bottom: 60px;
}

.help-section {
    padding: 32px 0;
    border-bottom: 1px solid rgba(128,128,128,0.1);
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.help-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 10px;
}

.help-section p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.help-section a {
    color: var(--primary);
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

.faq-item {
    margin-bottom: 24px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 0;
    color: var(--text);
}

.faq-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ---- Blog ---- */

.blog-hero {
    text-align: center;
    padding: 60px 0 20px;
}

.blog-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Blog listing */
.blog-list {
    padding: 32px 0 60px;
}

.blog-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.blog-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.blog-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-read-more {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

/* Blog post */
.blog-post {
    padding: 24px 0 60px;
}

.blog-post-header {
    margin-bottom: 36px;
}

.blog-post-header h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.blog-post-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--primary);
}

.blog-body p {
    margin-bottom: 16px;
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.blog-body ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.blog-body li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.blog-body li strong {
    color: var(--text);
}

.blog-body a {
    color: var(--primary);
    text-decoration: none;
}

.blog-body a:hover {
    text-decoration: underline;
}

.blog-cta-box {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}

.blog-cta-box > p:first-child {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.blog-cta-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.blog-cta-sub a {
    color: var(--primary);
    text-decoration: none;
}

.blog-cta-sub a:hover {
    text-decoration: underline;
}

/* Blog tip box */
.blog-tip {
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.blog-tip p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.blog-tip strong {
    color: var(--text);
}

/* Blog checklist */
.blog-checklist {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 24px;
}

.blog-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}

.blog-checklist li strong {
    color: var(--text);
}

/* Text helpers */
.text-primary { color: var(--primary); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--text-muted); }
