:root {
    color-scheme: dark light;
    --color-bg: #05060a;
    --color-surface: #111827;
    --color-surface-alt: #020617;
    --color-text: #e5e7eb;
    --color-muted: #9ca3af;
    --color-accent: #6366f1;
    --color-error: #f97373;
    --color-success: #4ade80;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-soft: 0 22px 45px rgba(15, 23, 42, 0.7);
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #020617 0, #020617 35%, #020617 40%, #020617 100%);
    color: var(--color-text);
}

a,
a:visited {
    color: var(--color-text);
}


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page {
    width: min(1120px, 100% - 2.5rem);
    margin: 2.5rem auto 3.5rem;
}

.page--app {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.page--legal {
    width: min(800px, 100% - 2.5rem);
}

.page--landing {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero--dark {
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), transparent 50%),
                radial-gradient(circle at top right, rgba(96, 165, 250, 0.25), transparent 55%),
                #020617;
    padding: 2.5rem clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero--split {
    background: linear-gradient(135deg, var(--app-theme, #a53d5e), #020617);
    padding: 2.5rem clamp(1.5rem, 5vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.hero__media {
    display: flex;
    justify-content: center;
}

.hero__video,
.hero__image {
    width: 100%;
    max-width: 520px;
    border-radius: calc(var(--radius-lg) - 4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: #020617;
}

.hero__image--device {
    max-width: 360px;
}

.hero__icon {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    object-fit: contain;
    background-color: #020617;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero__title {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    margin: 0;
}

.hero__tagline {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-muted);
}

.hero__unavailable {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: var(--color-muted);
    font-style: italic;
}

.hero__stores {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__stores--stacked {
    flex-direction: column;
    align-items: flex-start;
}

.hero__stores--right {
    justify-content: flex-start;
}

.section {
    padding: 2rem 0;
}

.section__header {
    max-width: 700px;
    margin-bottom: 1.5rem;
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

.section__header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.section__header p {
    margin: 0;
    color: var(--color-muted);
}

.section--about .app-description {
    max-width: 700px;
    white-space: pre-line;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

.section--screenshots {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: var(--color-surface);
}

.section--support {
    background: radial-gradient(circle at top, rgba(96, 165, 250, 0.14), transparent 45%),
                rgba(15, 23, 42, 0.7);
    border-radius: var(--radius-lg);
    padding: 2rem clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 640px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
}

.field input,
.field textarea {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.7rem 0.9rem;
    background-color: rgba(15, 23, 42, 0.9);
    color: var(--color-text);
    font: inherit;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
    border-color: transparent;
}

.field--honeypot {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 24px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 550;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.12s ease-out;
}

.button--primary {
    background: linear-gradient(135deg, var(--color-accent), #22c55e);
    color: #020617;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

.button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.65);
}

.button--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.6);
    color: var(--color-text);
}

.button--ghost:hover {
    background: rgba(15, 23, 42, 0.8);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: rgba(15, 23, 42, 0.85);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.85rem;
}

.store-badge--dark {
    background-color: rgba(0, 0, 0, 0.7);
}

.store-badge--light {
    background-color: rgba(248, 250, 252, 0.9);
    color: #020617;
}

.store-badge__icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.store-badge__label {
    white-space: nowrap;
}

.alert {
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert--success {
    background-color: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.7);
    color: var(--color-success);
}

.alert--error {
    background-color: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.85);
    color: var(--color-error);
}

.alert--error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.alert--info {
    background-color: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.7);
    color: #bfdbfe;
}

.gallery-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.gallery-links a {
    color: #bfdbfe;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(147, 197, 253, 0.7);
    background-color: rgba(15, 23, 42, 0.7);
}

.gallery-links a:hover {
    background-color: rgba(37, 99, 235, 0.4);
}

.landing-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.landing-hero p {
    margin: 0;
    color: var(--color-muted);
}

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

.app-card {
    background-color: rgba(15, 23, 42, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
}

.app-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
}

.app-card__description {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(31, 41, 55, 1);
    background-color: #020617;
}
.site-footer__inner {
    width: min(1120px, 100% - 2.5rem);
    margin: 0 auto;
    padding: 0.9rem 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.site-footer__nav a {
    color: var(--color-muted);
    text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: var(--color-text);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__media {
        order: -1;
    }

    .page {
        width: min(100% - 1.8rem, 800px);
        margin-top: 1.6rem;
    }

    .section--support {
        padding: 1.6rem 1.2rem 1.8rem;
    }
}

