:root {
    color-scheme: light;
    --bg: #f8faf7;
    --bg-strong: #eef4ef;
    --surface: #ffffff;
    --surface-soft: #f3f7f5;
    --ink: #17211d;
    --muted: #5d6c66;
    --line: #dce5df;
    --line-strong: #c7d6cc;
    --green: #3f9d49;
    --green-dark: #217033;
    --amber: #f4b334;
    --cyan: #55bfca;
    --charcoal: #101614;
    --shadow: 0 24px 70px rgba(30, 47, 37, 0.12);
    --radius: 8px;
    --radius-sm: 5px;
    --shell: min(1180px, calc(100vw - 40px));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    background: var(--charcoal);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    width: var(--shell);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 247, 0.92);
    border-bottom: 1px solid rgba(220, 229, 223, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--charcoal);
    white-space: nowrap;
}

.brand img {
    border-radius: 6px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 650;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    padding: 0 18px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 16px 30px rgba(63, 157, 73, 0.22);
}

.button-primary:hover {
    background: var(--green-dark);
    color: #fff;
}

.button-secondary {
    border-color: var(--line-strong);
    color: var(--charcoal);
    background: #fff;
}

.button-small {
    min-height: 38px;
    padding: 0 14px;
    background: var(--charcoal);
    color: #fff;
    font-size: 0.86rem;
}

.button-small:hover {
    color: #fff;
    background: #26332e;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.language-flag {
    display: inline-block;
    width: 22px;
    height: 15px;
    border: 1px solid rgba(17, 23, 21, 0.18);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.24);
}

.flag-en {
    background:
        radial-gradient(circle at 8% 14%, #fff 0 1px, transparent 1.2px),
        radial-gradient(circle at 20% 28%, #fff 0 1px, transparent 1.2px),
        radial-gradient(circle at 32% 14%, #fff 0 1px, transparent 1.2px),
        linear-gradient(90deg, #3c3b6e 0 42%, transparent 42%),
        repeating-linear-gradient(#b22234 0 7.7%, #fff 7.7% 15.4%);
}

.flag-fr {
    background: linear-gradient(90deg, #0055a4 0 33.33%, #fff 33.33% 66.66%, #ef4135 66.66%);
}

.flag-nl {
    background: linear-gradient(#ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66%);
}

.flag-es {
    background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%);
}

.flag-de {
    background: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
}

.flag-pt {
    background: linear-gradient(90deg, #046a38 0 40%, #da291c 40%);
}

.flag-it {
    background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66%);
}

.flag-ru {
    background: linear-gradient(#fff 0 33.33%, #0039a6 33.33% 66.66%, #d52b1e 66.66%);
}

.flag-uk {
    background: linear-gradient(#0057b7 0 50%, #ffd700 50%);
}

.flag-tr {
    background: radial-gradient(circle at 45% 50%, #fff 0 24%, transparent 25%), radial-gradient(circle at 51% 50%, #e30a17 0 22%, transparent 23%), #e30a17;
}

.flag-fa {
    background: linear-gradient(#239f40 0 33.33%, #fff 33.33% 66.66%, #da0000 66.66%);
}

.flag-el {
    background: linear-gradient(#0d5eaf 0 20%, #fff 20% 40%, #0d5eaf 40% 60%, #fff 60% 80%, #0d5eaf 80%);
}

.flag-pl {
    background: linear-gradient(#fff 0 50%, #dc143c 50%);
}

.flag-ko {
    background: radial-gradient(circle at 50% 50%, #c60c30 0 18%, #003478 19% 32%, transparent 33%), #fff;
}

.flag-ja {
    background: radial-gradient(circle at 50% 50%, #bc002d 0 30%, transparent 31%), #fff;
}

.flag-zh {
    background: radial-gradient(circle at 28% 30%, #ffde00 0 12%, transparent 13%), #de2910;
}

.language-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.language-menu[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 36px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

[dir="rtl"] .language-panel {
    right: auto;
    left: 0;
}

.language-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
}

.language-panel a:hover {
    background: var(--surface-soft);
}

.language-panel span {
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-section {
    padding: 56px 0 8px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 56px;
    align-items: center;
    min-width: 0;
}

.hero-copy,
.hero-product {
    min-width: 0;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.8rem, 4.8vw, 5rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 640px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.55vw, 1.35rem);
    line-height: 1.52;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.trust-line {
    max-width: 650px;
    margin: 18px 0 0;
    color: #40524a;
    font-size: 0.95rem;
    font-weight: 650;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 34px 0 0;
}

.proof-strip div {
    min-width: 0;
    padding: 14px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.proof-strip dt {
    font-size: 1.14rem;
    font-weight: 850;
}

.proof-strip dd {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-product {
    position: relative;
    min-width: 0;
}

.window-frame {
    overflow: hidden;
    border: 1px solid #202b27;
    border-radius: var(--radius);
    background: #151d1a;
    box-shadow: 0 30px 80px rgba(14, 29, 22, 0.26);
}

.window-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 0 0 12px;
    background: #111715;
    color: #dce7df;
    font-size: 0.78rem;
}

.window-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.window-title img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.window-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-controls {
    display: flex;
    align-self: stretch;
}

.window-controls span {
    position: relative;
    width: 42px;
    min-height: 38px;
    opacity: 0.74;
}

.window-controls span::before,
.window-controls span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.window-controls span:nth-child(1)::before {
    width: 12px;
    height: 1px;
    background: currentColor;
}

.window-controls span:nth-child(2)::before {
    width: 11px;
    height: 9px;
    border: 1px solid currentColor;
}

.window-controls span:nth-child(3)::before,
.window-controls span:nth-child(3)::after {
    width: 13px;
    height: 1px;
    background: currentColor;
}

.window-controls span:nth-child(3)::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.window-controls span:nth-child(3)::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.window-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.floating-panel {
    position: absolute;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.floating-panel strong {
    font-size: 1.1rem;
}

.floating-panel span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.floating-panel-bottom {
    right: 24px;
    bottom: -22px;
}

.section {
    padding: 84px 0;
}

#features {
    padding-top: 12px;
}

.section-compact {
    padding-top: 40px;
}

.section-tinted {
    background: var(--bg-strong);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2,
.free-pro-grid h2,
.sync-card h2,
.utility-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3.3vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

.section-heading p,
.free-pro-grid p,
.sync-card p,
.utility-hero p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.section-heading-split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--green-dark);
    font-weight: 800;
}

.text-link::after {
    content: "";
    width: 22px;
    height: 1px;
    margin-inline-start: 9px;
    background: currentColor;
}

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

.feature-card,
.workflow-list article,
.comparison-card,
.release-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card {
    padding: 24px;
}

.feature-card h2,
.feature-card h3,
.collection-list h3,
.workflow-list h3,
.comparison-row h3,
.sync-points h3,
.screenshot-card h3,
.release-card h2 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.25;
}

.feature-card p,
.collection-list p,
.workflow-list p,
.comparison-row p,
.sync-points p,
.screenshot-card p,
.release-card li,
.prose p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.collection-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.collection-list article {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.collection-list span {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--green);
}

.gallery-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -54px 0 18px;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--charcoal);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.gallery-button:hover {
    transform: translateY(-1px);
    border-color: var(--green);
    color: var(--green-dark);
}

.gallery-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screenshot-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 2px 2px 14px;
    scrollbar-color: var(--green) var(--line);
}

.screenshot-card {
    display: block;
    flex: 0 0 min(540px, calc(100vw - 72px));
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    scroll-snap-align: start;
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    background: #151d1a;
}

.screenshot-card div {
    padding: 18px;
}

.workflow-layout,
.faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 42px;
    align-items: start;
}

.sticky-heading {
    position: sticky;
    top: 112px;
    margin-bottom: 0;
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workflow-list article {
    padding: 22px;
}

.free-pro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.free-pro-grid .button {
    margin-top: 24px;
}

.comparison-card {
    padding: 8px;
}

.comparison-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.comparison-tab {
    padding: 12px 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--charcoal);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.comparison-tab.is-active {
    background: var(--green);
}

.comparison-tab:focus-visible {
    outline: 3px solid rgba(85, 191, 202, 0.7);
    outline-offset: 2px;
}

.comparison-panel[hidden] {
    display: none;
}

.comparison-row {
    padding: 18px;
    border-top: 1px solid var(--line);
}

.pro-price {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.pro-price span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.pro-price strong {
    color: var(--charcoal);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
}

.pro-price small {
    color: var(--muted);
    font-size: 0.92rem;
}

.sync-section {
    padding-top: 56px;
}

.sync-card {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 36px;
    padding: 32px;
    background: var(--charcoal);
    color: #fff;
    border-radius: var(--radius);
}

.sync-card p,
.sync-points p {
    color: #cad8d1;
}

.status-label,
.utility-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--amber);
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.sync-points {
    display: grid;
    gap: 12px;
}

.sync-points article {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.faq-list summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--muted);
}

.site-footer {
    padding: 54px 0;
    background: var(--charcoal);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.9fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #fff;
}

.site-footer p,
.footer-muted {
    color: #b8c7c0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 0.86rem;
    text-transform: uppercase;
    color: #dfe9e4;
}

.site-footer a:not(.brand) {
    display: block;
    margin-top: 8px;
    color: #cbd9d2;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.site-footer .social-links a.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 0;
    border-radius: 999px;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

.site-footer a:hover {
    color: #fff;
}

.utility-hero {
    padding: 72px 0 48px;
    background: linear-gradient(180deg, var(--bg-strong), var(--bg));
}

.utility-hero .site-shell,
.prose {
    max-width: 820px;
}

.prose h2 {
    margin: 32px 0 0;
    font-size: 1.4rem;
}

.release-list {
    display: grid;
    gap: 16px;
    max-width: 900px;
}

.release-card {
    padding: 26px;
}

.release-card time {
    color: var(--green-dark);
    font-weight: 850;
}

.release-card ul {
    margin: 14px 0 0;
    padding-left: 1.2em;
}

[dir="rtl"] .release-card ul {
    padding-left: 0;
    padding-right: 1.2em;
}

@media (max-width: 980px) {
    :root {
        --shell: min(100vw - 28px, 760px);
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .brand {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero-grid,
    .free-pro-grid,
    .sync-card,
    .workflow-layout,
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 38px;
    }

    .hero-section {
        padding-top: 46px;
    }

    .floating-panel {
        display: none;
    }

    .feature-grid,
    .collection-list,
    .workflow-list,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sticky-heading {
        position: static;
    }
}

@media (max-width: 640px) {
    :root {
        --shell: calc(100vw - 24px);
    }

    .site-header {
        position: static;
    }

    .header-inner {
        display: flex;
        gap: 14px;
        padding-right: 0;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
        position: static;
    }

    .header-actions > * {
        min-width: 0;
    }

    .language-menu {
        flex: 1 1 100%;
    }

    .language-menu summary {
        min-width: 0;
        width: 100%;
        justify-content: center;
        background: #fff;
    }

    .main-nav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .proof-strip,
    .feature-grid,
    .collection-list,
    .workflow-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .proof-strip {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-heading-split {
        display: block;
    }

    .section-heading-split .text-link {
        margin-top: 14px;
    }

    .hero-actions .button,
    .free-pro-grid .button {
        width: 100%;
    }

    .gallery-toolbar {
        justify-content: flex-start;
        margin: 0 0 14px;
    }

    .sync-card {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}
