body {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.main-title {
    color: white;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    box-sizing: border-box;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#editMessage, #savedMessage {
    width: 100%;
    height: 120px;
    padding: 12px;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    box-sizing: border-box;
    line-height: 1.2;
    display: flex;
    align-items: flex-start;
    background: none;
    border: none;
    border-radius: 0;
    outline: none;
    resize: none;
    word-break: break-word;
}

#editMessage:empty:before {
    content: attr(placeholder);
    color: rgba(255,255,255,0.7);
}

.save-btn {
    display: block;
    margin: 32px auto 0 auto;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.save-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.card-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.hidden-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
    display: block;
}

.app-icon.light-icon { display: block; }
.app-icon.dark-icon { display: none; }
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(45deg, #5a3a3a 0%, #3a5a5a 100%);
    }
    .main-title {
        color: #f3f3f3;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    .container {
        background: rgba(30, 30, 30, 0.4);
        border: 1px solid rgba(255,255,255,0.08);
    }
    #editMessage, #savedMessage {
        color: #f3f3f3;
    }
    #editMessage:empty:before {
        color: rgba(220,220,220,0.5);
    }
    .save-btn {
        background: rgba(30, 30, 30, 0.4);
        color: #f3f3f3;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .save-btn:hover {
        background: rgba(30, 30, 30, 0.6);
    }
    .app-icon.light-icon { display: none; }
    .app-icon.dark-icon { display: block; }
}

.app-store-btn {
    display: inline-block;
    margin-top: 0;
    padding: 14px 32px;
    background: linear-gradient(90deg, #007aff 0%, #00c6fb 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    letter-spacing: 0.01em;
}

.app-store-btn:hover {
    background: linear-gradient(90deg, #005ecb 0%, #009ecb 100%);
    transform: translateY(-2px) scale(1.03);
}

.app-store-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.app-store-badge {
    height: 56px;
    width: auto;
    max-width: 220px;
    transition: transform 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.app-store-badge:hover {
    transform: scale(1.04);
}

html, body {
    font-family: 'SF Pro Rounded', 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', Arial, system-ui, sans-serif;
    overflow-x: hidden;
}

* {
    font-family: inherit;
}

.app-store-link {
    color: #007aff;
    font-size: 1.05rem;
    text-decoration: underline;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0.5em 1.2em;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 8px;
    transition: color 0.15s;
    display: block;
    width: 180px;
    max-width: 90vw;
    text-align: center;
}

.app-store-link:hover {
    color: #005ecb;
    text-decoration: underline;
}

.features-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    margin: 40px auto 0 auto;
    max-width: 1600px;
    padding: 24px 0;
    justify-content: center;
}

.features-row::-webkit-scrollbar {
    height: 8px;
}
.features-row::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 6px;
}
.features-row::-webkit-scrollbar-track {
    background: transparent;
}

.feature-card {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 24px 20px 18px 20px;
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: box-shadow 0.18s, transform 0.18s;
}

.feature-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px) scale(1.03);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 10px;
    object-fit: contain;
    background: none;
}

.feature-title {
    font-size: 1.13rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: #222;
}

.feature-desc {
    font-size: 0.98rem;
    color: #444;
    opacity: 0.85;
}

.feature-text-col {
    /* Default: no special layout, let desktop handle as before */
}

@media (max-width: 900px) {
    .features-row {
        gap: 20px;
        padding: 20px 16px;
    }
    .feature-card {
        min-width: 280px;
        max-width: 320px;
        flex: 0 0 280px;
        padding: 18px 16px 14px 16px;
    }
    .feature-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .features-row {
        gap: 12px;
        padding: 12px 4px;
    }
    .feature-card {
        min-width: 90vw;
        max-width: 95vw;
        flex: 0 0 90vw;
        box-sizing: border-box;
        padding: 12px 6px 10px 6px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }
    .feature-card > *:first-child,
    .mini-animated-grid-container,
    .mini-lockscreen-widget,
    .morph-widget-demo-container,
    .hello-style-grid-container,
    .color-toggle-demo-container {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .feature-card > *:first-child {
        margin-right: 16px !important;
        flex-shrink: 0;
    }
    .feature-text-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .feature-title, .feature-desc {
        text-align: left;
    }
    .feature-title {
        margin-bottom: 4px;
    }
    .feature-desc {
        margin-bottom: 0;
    }
    #messageCard.container {
        max-width: 92vw;
        min-width: 0;
        width: 92vw;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 6px 10px 6px;
    }
}

@media (prefers-color-scheme: dark) {
    .feature-card {
        background: rgba(30,30,30,0.38);
        border: 1px solid rgba(255,255,255,0.10);
    }
    .feature-title {
        color: #f3f3f3;
    }
    .feature-desc {
        color: #e0e0e0;
        opacity: 0.8;
    }
}

.animated-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 48px 0 0 0;
    width: 100%;
}

.animated-grid {
    position: relative;
    width: 180px;
    height: 180px;
    background: #111;
    border-radius: 32px;
    border: 4px solid #333;
    box-sizing: border-box;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-dots {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    z-index: 1;
}

.grid-dot {
    width: 12px;
    height: 12px;
    background: #222;
    border-radius: 50%;
    margin: auto;
    opacity: 0.7;
}

.white-dot {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.45s cubic-bezier(.4,1.6,.4,1);
    left: 0;
    top: 0;
    pointer-events: none;
}

.grid-plus {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    opacity: 0.7;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 600px) {
    .animated-grid {
        width: 120px;
        height: 120px;
        border-radius: 18px;
    }
    .white-dot {
        width: 32px;
        height: 32px;
    }
    .grid-dot {
        width: 8px;
        height: 8px;
    }
    .grid-plus {
        font-size: 1.3rem;
    }
}

.mini-animated-grid-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
}

.mini-animated-grid {
    position: relative;
    width: 64px;
    height: 64px;
    background: #111;
    border-radius: 16px;
    border: 2px solid #333;
    box-sizing: border-box;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-animated-grid .mini-grid-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mini-animated-grid .grid-dot {
    width: 4px;
    height: 4px;
    background: #222;
    border-radius: 50%;
    margin: auto;
    opacity: 0.7;
}

.mini-animated-grid .white-dot {
    width: 18px;
    height: 18px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    transition: transform 0.45s cubic-bezier(.4,1.6,.4,1);
}

.mini-animated-grid .grid-plus {
    font-size: 1.1rem;
    color: #333;
    opacity: 0.7;
    font-weight: 700;
}

.mini-lockscreen-widget {
    width: 64px;
    height: 64px;
    background: #7db6f7;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.mini-lockscreen-top {
    margin-top: 4px;
    margin-bottom: 0;
}

.mini-lockscreen-time {
    margin-bottom: 0;
    margin-top: 0;
}

.mini-lockscreen-message {
    margin-bottom: 4px;
}

.mini-lockscreen-day, .mini-lockscreen-date {
    color: #e6f6ff;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mini-lockscreen-day, .mini-lockscreen-date, .mini-lockscreen-time {
    color: #e6f6ff;
    opacity: 0.7;
}

.mini-lockscreen-message {
    color: #e6f6ff;
    opacity: 1;
}

.widget-demo-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
    position: relative;
    min-height: 64px;
}

.widget-demo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #3d1850;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: relative;
    z-index: 2;
    transition: box-shadow 0.18s, transform 0.18s;
}

.widget-demo-main {
    position: relative;
    z-index: 3;
    background: #3d1850;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border-radius: 22px;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-demo-text {
    color: #e6b6c7;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
}

.widget-demo-cutoff {
    position: absolute;
    width: 76px;
    height: 76px;
    background: #3d1850;
    border-radius: 22px;
    opacity: 0.5;
    filter: blur(0.5px);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget-demo-right {
    top: 0;
    left: 48px;
    clip-path: inset(0 0 0 38px);
}

.widget-demo-bottom {
    top: 48px;
    left: 0;
    clip-path: inset(38px 0 0 0);
}

.widget-demo-left {
    margin-right: -18px;
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

.widget-demo-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    .widget-demo, .widget-demo-main {
        width: 48px;
        height: 48px;
    }
    .widget-demo-main {
        width: 56px;
        height: 56px;
    }
    .widget-demo-text {
        font-size: 1.2rem;
    }
}

.morph-widget-demo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
}

.morph-widget {
    background: #3d1850;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s cubic-bezier(.4,1.6,.4,1), height 0.5s cubic-bezier(.4,1.6,.4,1), border-radius 0.5s cubic-bezier(.4,1.6,.4,1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: width, height, border-radius;
}

.morph-widget-text {
    color: #e6b6c7;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

/* Remove widget-demo-stack styles if present */
.widget-demo-stack { display: none !important; }

.hello-style-demo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
}

.hello-style-demo {
    width: 64px;
    height: 64px;
    position: relative;
    background: none;
    border-radius: 16px;
    overflow: visible;
}

.hello-style-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 2rem;
    font-weight: 400;
    font-family: inherit;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
    white-space: nowrap;
    pointer-events: none;
    background: none;
    border-radius: 22px;
    border: none;
    opacity: 1;
}

.hello-style-row-container {
    width: 64px;
    height: 64px;
    min-width: 64px;
    max-width: 64px;
    margin: 0 auto 18px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hello-style-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    position: relative;
    z-index: 1;
}

.hello-style-selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 2px solid #fff;
    border-radius: 12px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
    opacity: 0;
    background: none;
}

.hello-style-text {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
    pointer-events: none;
    white-space: nowrap;
    margin: 0 1px;
    display: inline-block;
    position: relative;
    font-size: 0.85rem;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
}

.hello-style-grid-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
    background: none;
}

.hello-style-grid-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
    background: none;
    border: none;
    outline: none;
    pointer-events: none;
    white-space: nowrap;
    font-family: inherit;
}

.hello-animate-style-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
    background: none;
}

.hello-animate-style-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
    background: none;
    border: none;
    outline: none;
    pointer-events: none;
    white-space: nowrap;
    font-family: inherit;
}

.color-toggle-demo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
}

.color-toggle-demo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.5s cubic-bezier(.4,1.6,.4,1);
    background: #ffe600;
    color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    font-family: inherit;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 600px) {
    #messageCard.container {
        max-width: 92vw;
        min-width: 0;
        width: 92vw;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 6px 10px 6px;
    }
}

.shortcuts-demo-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    position: relative;
    background: #222;
    border-radius: 16px;
    overflow: hidden;
}

.shortcuts-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.shortcuts-message {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInOut 2s infinite;
    text-align: center;
    line-height: 1.2;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}

@media (max-width: 600px) {
    .shortcuts-demo-container {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
        margin: 0 !important;
    }
} 