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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #000;
    color: #d4f5d4;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(0, 80, 0, 0.25) 0%, transparent 60%),
        #000;
    padding: 48px 24px 64px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

.lang-switch {
    display: flex;
    margin-block: 0 24px;
    margin-inline: auto 0;
    width: fit-content;
}

.lang-switch select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 14px;
    background-color: rgba(20, 40, 20, 0.5);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fc28f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    border: 1px solid rgba(80, 180, 80, 0.3);
    border-radius: 999px;
    color: #c8e8c8;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s, color 0.2s;
}

[dir="rtl"] .lang-switch select {
    padding: 8px 14px 8px 36px;
    background-position: left 12px center;
}

.lang-switch select:hover {
    border-color: rgba(120, 230, 120, 0.55);
    color: #d4f5d4;
}

.lang-switch select:focus-visible {
    outline: 2px solid rgba(74, 222, 74, 0.55);
    outline-offset: 2px;
    border-color: rgba(120, 230, 120, 0.6);
}

.lang-switch option {
    background: #0a1f0a;
    color: #d4f5d4;
}

[dir="rtl"] .app-features li {
    padding-left: 0;
    padding-right: 22px;
}

[dir="rtl"] .app-features li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .privacy ul li {
    padding-left: 0;
    padding-right: 18px;
}

[dir="rtl"] .privacy ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .lightbox-close {
    right: auto;
    left: 24px;
}

header {
    text-align: center;
    margin-bottom: 56px;
}

h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #a8f0a8;
    text-shadow: 0 0 24px rgba(80, 220, 80, 0.35);
    margin-bottom: 14px;
}

.tagline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: #8fc28f;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.app {
    background: rgba(20, 40, 20, 0.4);
    border: 1px solid rgba(80, 180, 80, 0.25);
    border-radius: 16px;
    padding: 32px 28px;
    transition: border-color 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.app:hover {
    border-color: rgba(120, 230, 120, 0.5);
    transform: translateY(-2px);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.app-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.app-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.app-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.badge-free {
    background: rgba(80, 180, 80, 0.15);
    color: #8fe08f;
    border: 1px solid rgba(80, 180, 80, 0.4);
}

.badge-pro {
    background: rgba(180, 240, 225, 0.12);
    color: #c8f5ea;
    border: 1px solid rgba(180, 240, 225, 0.4);
}

.app h2 {
    font-size: 1.65rem;
    font-weight: 600;
    color: #c8f5c8;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.app-subtitle {
    font-size: 0.95rem;
    color: #6fa86f;
    letter-spacing: 0.01em;
}

.app-promo {
    font-size: 1.02rem;
    color: #b8e0b8;
    line-height: 1.55;
    margin-bottom: 22px;
    font-weight: 500;
}

.app-features {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.app-features li {
    font-size: 0.93rem;
    color: #9bc89b;
    line-height: 1.5;
    padding: 8px 0 8px 22px;
    position: relative;
    border-top: 1px solid rgba(80, 180, 80, 0.12);
}

.app-features li:first-child {
    border-top: none;
}

.app-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade4a;
    box-shadow: 0 0 8px rgba(74, 222, 74, 0.6);
}

.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    background: #4ade4a;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.app-link:hover {
    background: #6cf06c;
    box-shadow: 0 0 20px rgba(74, 222, 74, 0.4);
}

.app-link svg {
    width: 16px;
    height: 16px;
}

.app-pro {
    background: rgba(25, 50, 50, 0.45);
    border-color: rgba(160, 230, 215, 0.25);
}

.app-pro:hover {
    border-color: rgba(200, 245, 230, 0.55);
}

.app-pro h2 {
    color: #d8f5ec;
    text-shadow: 0 0 20px rgba(160, 240, 215, 0.45);
}

.app-pro .app-subtitle {
    color: #7ab8ac;
}

.app-pro .app-promo {
    color: #c8e8de;
}

.app-pro .app-features li {
    color: #a8d4c8;
    border-top-color: rgba(160, 230, 215, 0.15);
}

.app-pro .app-features li::before {
    background: #b8f0e0;
    box-shadow: 0 0 8px rgba(184, 240, 224, 0.7);
}

.app-pro .app-link {
    background: #b8f0e0;
    color: #0a2520;
}

.app-pro .app-link:hover {
    background: #d4f8ec;
    box-shadow: 0 0 22px rgba(160, 240, 215, 0.55);
}

.demos {
    margin-top: 56px;
}

.demos-group {
    margin-bottom: 40px;
}

.demos-group:last-child {
    margin-bottom: 0;
}

.demos-heading {
    font-size: 0.95rem;
    color: #a8d8a8;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.demos-group--pro .demos-heading {
    color: #b8e8dc;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.demos-grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
    .demos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {
    .demos-grid,
    .demos-grid--cols-2 {
        grid-template-columns: 1fr;
    }
}

/* No transform on hover — Safari's compositing of webp images with scale()
   introduces color shifts that make some images darken on hover.
   Stick to non-compositing hover effects: border-color + flat ring glow. */
.demo {
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(80, 180, 80, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: zoom-in;
    line-height: 0;
}

.demo:hover {
    border-color: rgba(120, 230, 120, 0.55);
    box-shadow: 0 0 0 3px rgba(74, 222, 74, 0.15);
}

.demos-grid img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}

.demos-group--pro .demo {
    border-color: rgba(160, 230, 215, 0.2);
}

.demos-group--pro .demo:hover {
    border-color: rgba(200, 245, 230, 0.55);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #d4f5d4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

body.lightbox-open {
    overflow: hidden;
}

.notes {
    margin-top: 48px;
    padding: 28px;
    background: rgba(20, 30, 20, 0.5);
    border: 1px solid rgba(80, 180, 80, 0.15);
    border-radius: 14px;
}

.notes h3 {
    font-size: 1.05rem;
    color: #a8d8a8;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.notes p {
    font-size: 0.92rem;
    color: #88a888;
    line-height: 1.6;
    margin-bottom: 10px;
}

.notes p:last-child {
    margin-bottom: 0;
}

.privacy {
    margin-top: 56px;
    padding: 32px;
    background: rgba(20, 30, 20, 0.5);
    border: 1px solid rgba(80, 180, 80, 0.15);
    border-radius: 14px;
    scroll-margin-top: 24px;
}

.privacy h2 {
    font-size: 1.25rem;
    color: #a8d8a8;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.privacy .privacy-meta {
    font-size: 0.8rem;
    color: #5a8a5a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.privacy h3 {
    font-size: 1rem;
    color: #c8e8c8;
    margin: 22px 0 10px;
    font-weight: 600;
}

.privacy p,
.privacy li {
    font-size: 0.93rem;
    color: #9bc89b;
    line-height: 1.6;
}

.privacy p {
    margin-bottom: 12px;
}

.privacy ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.privacy ul li {
    padding: 6px 0 6px 18px;
    position: relative;
}

.privacy ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #6fa86f;
}

.privacy strong {
    color: #c8e8c8;
    font-weight: 600;
}

.privacy a {
    color: #b8e8b8;
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 200, 120, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.privacy a:hover {
    color: #d4f5d4;
    border-bottom-color: rgba(184, 232, 184, 0.7);
}

footer {
    text-align: center;
    margin-top: 48px;
    font-size: 0.85rem;
    color: #5a8a5a;
}

footer a {
    color: #88b888;
    text-decoration: none;
    border-bottom: 1px solid rgba(120, 200, 120, 0.25);
    transition: color 0.2s, border-color 0.2s;
}

footer a:hover {
    color: #b8e8b8;
    border-bottom-color: rgba(184, 232, 184, 0.6);
}

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