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

:root {
    --bg: #f6f4fb;
    --surface: #ffffff;
    --text: #2d2d3a;
    --text-secondary: #555570;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-bg: #f3f0ff;
    --border: #e8e5f0;
    --gradient-start: #7c3aed;
    --gradient-mid: #a855f7;
    --gradient-end: #ec4899;
    --card-shadow: 0 1px 3px rgba(124, 58, 237, 0.06), 0 4px 16px rgba(124, 58, 237, 0.04);
    --card-hover-shadow: 0 4px 12px rgba(124, 58, 237, 0.1), 0 8px 32px rgba(124, 58, 237, 0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 56px 0 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    display: block;
}

div.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 16px;
    line-height: 1;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.tagline {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.bio {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent);
    background: var(--accent-bg);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

/* Sections */
h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.apps {
    margin-bottom: 36px;
}

.app-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    gap: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: var(--accent-light);
}

img.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
    object-fit: cover;
}

div.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plnr-icon {
    background: linear-gradient(135deg, #9b8ec4, #b8a9d4);
    color: white;
}

.sya-icon {
    background: linear-gradient(135deg, #9b8ec4, #b8a9d4);
    color: white;
}

.app-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.app-name-link {
    color: inherit;
    text-decoration: none;
}

.app-name-link:hover {
    color: var(--accent);
}

.app-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
}

.app-platforms {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.platform-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent-bg);
    color: var(--accent);
}

.app-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s ease;
}

.store-link:hover {
    color: var(--accent);
    border-color: var(--accent-light);
    background: var(--accent-bg);
}

/* About */
.about {
    margin-bottom: 36px;
}

.about p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* App sub-pages */
.app-hero {
    text-align: center;
    padding: 80px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

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

img.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 4px;
    display: block;
}

div.app-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.app-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.app-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--accent);
    transition: all 0.2s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.download-btn.webapp {
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
}

.download-btn.webapp:hover {
    border-color: var(--accent-light);
    background: var(--accent-bg);
    box-shadow: var(--card-hover-shadow);
}

.plnr-buttons .download-btn {
    background: #5ba896;
}

.plnr-buttons .download-btn:hover {
    box-shadow: 0 4px 12px rgba(91, 168, 150, 0.3);
}

.plnr-buttons .download-btn.webapp {
    background: var(--surface);
    color: #5ba896;
    border: 1px solid var(--border);
}

.plnr-buttons .download-btn.webapp:hover {
    border-color: #5ba896;
    background: #f0faf7;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 0 36px;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.nav-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Updates */
.updates-header {
    padding: 48px 0 32px;
}

.updates-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.updates-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 48px;
}

.update-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
}

.update-card {
    cursor: pointer;
}

.update-card:hover {
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-light);
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.update-meta time {
    font-size: 13px;
    color: var(--text-secondary);
}

.update-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 5px;
}

.tag-plnr {
    background: #f0faf7;
    color: #5ba896;
}

.tag-sya {
    background: var(--accent-bg);
    color: var(--accent);
}

.tag-general {
    background: #f0f0f5;
    color: var(--text-secondary);
}

.update-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 5px;
}

.label-shipped {
    background: #e8f5e9;
    color: #2e7d32;
}

.label-building {
    background: #fff3e0;
    color: #e65100;
}

.label-thoughts {
    background: #e3f2fd;
    color: #1565c0;
}

.update-card h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.update-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.update-card h2 a:hover {
    color: var(--accent);
}

.update-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Post */
.post {
    padding: 16px 0 48px;
}

.post-header {
    padding: 32px 0;
}

.post-header .back-link {
    display: inline-block;
    margin-bottom: 24px;
}

.post-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-top: 12px;
}

.post-body {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.post-body p {
    margin-bottom: 16px;
}

.post-body ul {
    margin-top: -12px;
    margin-bottom: 12px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 0;
    line-height: 1.5;
}

.post-body ul + ul {
    margin-top: -8px;
}

.post-body a {
    color: var(--accent);
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body .post-img {
    border-radius: 12px;
    margin: 24px 0;
    display: block;
    box-shadow: var(--card-shadow);
    max-width: 260px;
    width: 100%;
}

.post-img.img-wide {
    max-width: 520px;
}

.post-img.img-landscape {
    max-width: 100%;
}

.post-img.img-center {
    margin-left: auto;
    margin-right: auto;
}

.img-phone-scroll {
    position: relative;
    margin: 24px 0;
    width: 100%;
}

.img-phone-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    align-items: flex-start;
}

.img-phone-row::-webkit-scrollbar {
    display: none;
}

.img-phone-row .post-img {
    margin: 0;
    flex-shrink: 0;
}

.img-phone-row .video-wrap {
    flex-shrink: 0;
    margin: 0;
}

.img-phone-scroll .scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.img-phone-scroll .scroll-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

.img-phone-scroll .scroll-arrow:hover {
    background: var(--border);
}

.img-phone-scroll .scroll-arrow-left {
    left: -18px;
}

.img-phone-scroll .scroll-arrow-right {
    right: -18px;
}

.video-wrap {
    position: relative;
    max-width: 520px;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    background: #000;
}

.video-wrap.video-phone {
    max-width: 260px;
}

.video-wrap video {
    width: 100%;
    display: block;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.video-play:hover {
    opacity: 0.8;
}

.media-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
    margin: 0 0 32px;
}

.media-showcase .post-img,
.media-showcase .video-wrap {
    margin: 0;
}

.media-showcase .post-img.img-landscape {
    width: 100%;
}

.media-showcase .img-phone-scroll {
    width: 100%;
}

.browser-frame {
    width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #e8e8e8;
}

.browser-frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.browser-frame .post-img {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    .img-phone-row .post-img {
        max-width: 200px;
    }
    .img-phone-scroll .scroll-arrow {
        display: none !important;
    }
    .img-phone-scroll .scroll-arrow {
        display: flex !important;
        background: none;
        border: none;
        box-shadow: none;
        opacity: 0;
        pointer-events: none;
        color: var(--text-secondary);
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .img-phone-scroll .scroll-arrow.visible {
        opacity: 0.3;
        pointer-events: none;
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.2s;
}

.lightbox.active {
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.post-signoff {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-style: italic;
    color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 600px) {
    .hero {
        padding: 56px 0 36px;
    }

    .hero-content h1 {
        font-size: 26px;
    }

    .app-card {
        flex-direction: column;
        gap: 16px;
        padding: 22px;
    }

    .app-icon {
        width: 56px;
        height: 56px;
    }

    .app-links {
        gap: 8px;
    }

    .store-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}
