/* MirgaMe — static site styles (v2)
   Dark, premium, product-led. Editorial spacing, restrained glow,
   refined indigo/violet accent system, layered surfaces. */

:root {
    /* Base surfaces — subtle tonal depth, faint indigo cast */
    --bg: #08080c;
    --bg-2: #0b0b12;
    --surface: #101019;
    --surface-2: #16161f;
    --surface-3: #1c1c27;

    /* Hairlines */
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);

    /* Text hierarchy */
    --text: #f5f5f8;
    --text-2: #b7b7c4;
    --text-3: #7d7d8e;
    --text-4: #55556450;

    /* Accent system */
    --indigo: #6366f1;
    --indigo-2: #818cf8;
    --violet: #a78bfa;
    --accent-soft: rgba(129, 140, 248, 0.13);
    --accent-line: rgba(129, 140, 248, 0.26);

    --radius-xl: 26px;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 9px;

    --maxw: 1120px;
    --pad: 24px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --shadow-lift: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-soft: 0 12px 40px -16px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient depth — one restrained glow field, not gradients everywhere */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(70rem 46rem at 72% -8%, rgba(99, 102, 241, 0.16), transparent 60%),
        radial-gradient(46rem 34rem at 8% 4%, rgba(167, 139, 250, 0.08), transparent 62%),
        linear-gradient(180deg, var(--bg-2), var(--bg) 44%);
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}

a {
    color: var(--indigo-2);
    text-decoration: none;
    transition: color 0.16s ease;
}

a:hover {
    color: #aab2fb;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 600;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--indigo-2);
    margin: 0 0 14px;
}

/* ============ Nav ============ */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 8, 12, 0.66);
    backdrop-filter: saturate(170%) blur(16px);
    -webkit-backdrop-filter: saturate(170%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(8, 8, 12, 0.82);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 600;
    font-size: 1.06rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--text);
}

/* Real app icon used as the brand mark */
.brand__logo {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    box-shadow: 0 4px 14px -4px rgba(99, 102, 241, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer__brand .brand__logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__links a {
    color: var(--text-2);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 10px;
    transition: color 0.16s ease, background 0.16s ease;
}

.nav__links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* ============ Buttons ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.2s ease,
        background 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
    background: linear-gradient(150deg, var(--indigo-2), var(--indigo));
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px -10px rgba(99, 102, 241, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line-2);
}

.btn--ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Official-style "Download on the App Store" badge */
.btn--appstore {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 20px 10px 18px;
    border-radius: 14px;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.btn--appstore:hover {
    color: #fff;
    transform: translateY(-2px);
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn--appstore svg {
    width: 23px;
    height: 27px;
    flex: none;
}

.as__sub {
    display: block;
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    opacity: 0.82;
    margin-bottom: 2px;
}

.as__name {
    display: block;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ============ Hero ============ */

.hero {
    position: relative;
    padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 88px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--indigo-2);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    margin-bottom: 28px;
}

.badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--indigo-2);
    box-shadow: 0 0 10px 1px rgba(129, 140, 248, 0.8);
}

.hero h1 {
    font-size: clamp(2.3rem, 5.6vw, 3.7rem);
    font-weight: 600;
    max-width: 15ch;
    margin-bottom: 22px;
}

.hero__sub {
    color: var(--text-2);
    font-size: clamp(1.04rem, 1.6vw, 1.2rem);
    max-width: 46ch;
    margin: 0 0 34px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Hero media: real screenshot in a premium device frame ---- */

.hero__media {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 336px;
    isolation: isolate;
}

.phone-glow {
    position: absolute;
    inset: -16% -24% -12%;
    z-index: -1;
    background:
        radial-gradient(56% 48% at 58% 30%, rgba(99, 102, 241, 0.42), transparent 68%),
        radial-gradient(40% 40% at 30% 82%, rgba(167, 139, 250, 0.2), transparent 66%);
    filter: blur(18px);
}

/* Device frame — used in the hero and the gallery */
.device {
    position: relative;
    border-radius: 12% / 5.5%;
    overflow: hidden;
    background: #0a0a10;
    box-shadow:
        0 44px 90px -34px rgba(0, 0, 0, 0.85),
        0 26px 60px -34px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device img {
    display: block;
    width: 100%;
    height: auto;
}

/* subtle inner bezel highlight drawn over the screenshot */
.device::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

/* floating chip layered over the hero device */
.chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    background: rgba(20, 20, 30, 0.86);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chip--reminder {
    top: -20px;
    right: -14px;
    animation: floaty 7s ease-in-out infinite;
}

.chip--export {
    bottom: -20px;
    left: -14px;
    animation: floaty 8s ease-in-out infinite;
    animation-delay: -2.5s;
}

.chip__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.chip__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--indigo-2);
    fill: none;
}

.chip__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.chip__meta {
    font-size: 0.72rem;
    color: var(--text-3);
    line-height: 1.2;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============ Screenshot gallery ============ */

.section--gallery {
    padding-bottom: clamp(40px, 6vw, 72px);
}

.gallery {
    margin-top: 40px;
    /* fade the scroll strip at both edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.gallery__track {
    display: flex;
    gap: clamp(18px, 3vw, 34px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))) 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
    display: none;
}

.shot {
    flex: 0 0 auto;
    width: clamp(196px, 42vw, 236px);
    margin: 0;
    scroll-snap-align: center;
    transition: transform 0.25s ease;
}

.shot:hover {
    transform: translateY(-4px);
}

.shot__cap {
    margin-top: 18px;
    text-align: center;
}

.shot__cap strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.shot__cap span {
    color: var(--text-3);
    font-size: 0.85rem;
}

/* ============ Coming-soon CTA ============ */

.cta {
    position: relative;
    text-align: center;
    background:
        radial-gradient(44rem 22rem at 50% -10%, rgba(99, 102, 241, 0.14), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 56px);
    box-shadow: var(--shadow-soft);
}

.cta__icon {
    width: clamp(76px, 10vw, 96px);
    height: auto;
    border-radius: 23%;
    box-shadow: 0 18px 44px -14px rgba(99, 102, 241, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 26px;
}

.cta h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-2);
    font-size: 1.06rem;
    max-width: 42ch;
    margin: 0 auto 28px;
}

.cta__actions {
    justify-content: center;
}

/* ============ Section scaffolding ============ */

.section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.section__head {
    max-width: 62ch;
    margin: 0 0 44px;
}

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

.section h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 600;
}

.section__lead {
    color: var(--text-2);
    font-size: 1.06rem;
    margin: 16px 0 0;
}

/* ============ Feature cards ============ */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) ,
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    overflow: hidden;
    transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
}

.feature:hover::before {
    opacity: 1;
}

.feature__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature__icon svg {
    width: 21px;
    height: 21px;
    stroke: var(--indigo-2);
    fill: none;
}

.feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-2);
    font-size: 0.92rem;
    margin: 0;
}

/* ============ Value / privacy band ============ */

.band {
    position: relative;
    background:
        radial-gradient(50rem 26rem at 30% 0%, rgba(99, 102, 241, 0.1), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(36px, 5vw, 60px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.band h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 600;
    max-width: 16ch;
    margin-bottom: 16px;
}

.band p {
    color: var(--text-2);
    font-size: 1.04rem;
    margin: 0 0 24px;
    max-width: 46ch;
}

.band__points {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.band__points li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.band__points .tick {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.band__points .tick svg {
    width: 14px;
    height: 14px;
    stroke: var(--indigo-2);
    fill: none;
}

.band__points strong {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.band__points span {
    color: var(--text-3);
    font-size: 0.86rem;
}

/* ============ Article (privacy / support) ============ */

.pagehead {
    padding: clamp(56px, 8vw, 92px) 0 8px;
    border-bottom: 1px solid var(--line);
}

.pagehead h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
}

.pagehead p {
    color: var(--text-2);
    font-size: 1.06rem;
    margin: 16px 0 0;
    max-width: 54ch;
}

.pagehead__meta {
    color: var(--text-3);
    font-size: 0.9rem;
    margin: 14px 0 clamp(28px, 4vw, 40px);
}

.article {
    max-width: 760px;
    padding: clamp(36px, 5vw, 52px) 0 24px;
}

.article h2 {
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 44px 0 12px;
    padding-top: 4px;
}

.article h2:first-of-type {
    margin-top: 8px;
}

.article p,
.article li {
    color: var(--text-2);
    font-size: 1.02rem;
}

.article ul {
    padding-left: 4px;
    margin: 14px 0;
    list-style: none;
}

.article ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 9px;
}

.article ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--indigo-2);
    box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
}

.article strong {
    color: var(--text);
    font-weight: 600;
}

.article a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--accent-line);
}

/* ============ FAQ ============ */

.faq {
    display: grid;
    gap: 14px;
    max-width: 760px;
    padding: clamp(32px, 4vw, 44px) 0 0;
}

.faq__item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) ,
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color 0.2s ease;
}

.faq__item:hover {
    border-color: var(--line-2);
}

.faq__item h3 {
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.faq__item p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.96rem;
}

/* ============ Contact ============ */

.contact {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 15px 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)) ,
        var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.contact__icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__icon svg {
    width: 19px;
    height: 19px;
    stroke: var(--indigo-2);
    fill: none;
}

.contact__label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-3);
    letter-spacing: 0.02em;
    margin-bottom: 1px;
}

.pagehead--support {
    border-bottom: none;
}

.support-contact {
    padding: clamp(20px, 3vw, 28px) 0 4px;
}

.contact a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.contact a:hover {
    color: var(--indigo-2);
}

/* ============ Backlinks ============ */

.backlinks {
    display: flex;
    gap: 24px;
    max-width: 760px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.backlinks a {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============ Footer ============ */

.footer {
    border-top: 1px solid var(--line);
    margin-top: clamp(48px, 7vw, 88px);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text-2);
    font-size: 0.94rem;
    font-weight: 500;
}

.footer__links {
    display: flex;
    gap: 22px;
}

.footer__links a {
    color: var(--text-2);
    font-size: 0.94rem;
    font-weight: 500;
}

.footer__links a:hover {
    color: var(--text);
}

.footer__note {
    color: var(--text-3);
    font-size: 0.82rem;
    margin: 20px 0 0;
    max-width: 66ch;
}

/* ============ Responsive ============ */

@media (max-width: 940px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1,
    .hero__sub {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__media {
        margin-top: 20px;
        order: 2;
        max-width: 300px;
    }

    .band {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }

    .chip--reminder {
        right: -8px;
    }

    .chip--export {
        left: -10px;
    }

    .nav__links a {
        padding: 8px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
