/* Yangawey landing — DM Sans display, Inter body, JetBrains Mono beta badge. */

:root {
    --bg: #f3f3f4;          /* dimmer than white */
    --surface: #ffffff;
    --ink: #17171b;
    --ink-soft: #6c6c76;    /* grey subtext */
    --muted: #9a9aa4;
    --brand: #8a2be2;
    --brand-press: #7a1fd0;
    --brand-soft: #f1e7fc;
    --border: #e7e7ea;
    --radius: 16px;
    --radius-sm: 12px;
    --maxw: 1080px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

/* Content sits above the moving background */
main,
.footer {
    position: relative;
    z-index: 1;
}

/* ---------- Moving background (faint grid + drifting orbs) ---------- */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg__grid {
    position: absolute;
    inset: -20%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M46 0H0V46' fill='none' stroke='%2317171b' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
    background-size: 46px 46px;
    animation: bg-drift 26s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
}

.bg__orb--a {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -80px;
    background: radial-gradient(
        circle,
        rgba(138, 43, 226, 0.16),
        transparent 68%
    );
    animation: bg-float-a 28s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

.bg__orb--b {
    width: 520px;
    height: 520px;
    right: -140px;
    top: 34%;
    background: radial-gradient(
        circle,
        rgba(138, 43, 226, 0.12),
        transparent 70%
    );
    animation: bg-float-b 34s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes bg-drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(32px, 24px, 0);
    }
}

@keyframes bg-float-a {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(70px, 48px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes bg-float-b {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-60px, -40px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg__grid,
    .bg__orb {
        animation: none;
    }
}

/* ---------- Brand + beta badge ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.brand__mark {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.brand__beta {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 600;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--brand);
    border: 1px solid rgba(138, 43, 226, 0.45);
    border-radius: 999px;
    padding: 3px 8px;
    line-height: 1;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
}

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

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

.nav__links a {
    font-size: 0.94rem;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.nav__links a:hover {
    color: var(--ink);
}

.nav__cta {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--ink);
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

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

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    padding: clamp(56px, 11vw, 128px) 24px 0;
}

.hero__title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin: 0 auto;
    max-width: 14ch;
    color: var(--ink);
}

.hero__sub {
    margin: 22px auto 0;
    max-width: 46ch;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--ink-soft);
    line-height: 1.55;
}

.hero__cta {
    margin-top: 30px;
}

/* Phone screenshot */
.hero__shot {
    position: relative;
    margin: clamp(48px, 8vw, 88px) auto 0;
    max-width: 340px;
}

.hero__shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 40px;
}

.hero__shot-hint {
    display: none;
}

.hero__shot.is-empty {
    display: grid;
    place-items: center;
    aspect-ratio: 340 / 700;
    background: repeating-linear-gradient(
        135deg,
        #ececee,
        #ececee 12px,
        #f2f2f4 12px,
        #f2f2f4 24px
    );
    border: 1px solid var(--border);
    border-radius: 40px;
}

.hero__shot.is-empty .hero__shot-hint {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.hero__shot-hint code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 14px 26px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-press);
}

.btn--primary:active {
    transform: translateY(1px);
}

/* ---------- Steps (full-bleed purple) ---------- */
.steps-section {
    background: var(--brand);
    padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 9vw, 96px);
    margin-top: clamp(48px, 8vw, 88px);
}

.steps-section .section-title {
    color: #fff;
}

.steps-section .section-sub {
    color: rgba(255, 255, 255, 0.82);
}

.steps__head {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0;
    color: var(--ink);
}

.section-sub {
    margin: 12px auto 0;
    max-width: 40ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.steps__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.step__title {
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    margin: 18px 0 8px;
    color: var(--ink);
}

.step__text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Steps recolored for the purple section */
.steps-section .step {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.steps-section .step__num {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.steps-section .step__title {
    color: #fff;
}

.steps-section .step__text {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- About page ---------- */
.about {
    padding: clamp(64px, 10vw, 120px) 24px clamp(56px, 9vw, 96px);
    max-width: 720px;
}

.about__eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 14px;
}

.about__title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 28px;
    color: var(--ink);
}

.about__body p {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 0 0 20px;
}

.about__body strong {
    color: var(--ink);
    font-weight: 600;
}

.about__cta {
    margin-top: 16px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding: 32px 0;
}

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

.footer__meta {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer__meta a:hover {
    color: var(--ink);
}

.linklike {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.linklike:hover {
    color: var(--ink);
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 27, 0.42);
}

.modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: 22px;
    padding: 32px 28px 28px;
    border: 1px solid var(--border);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.18s ease;
}

.modal.is-open .modal__card {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.modal__close:hover {
    background: var(--border);
}

.modal__title {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}

.modal__sub {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.55;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.14);
}

.modal__note {
    margin: 14px 0 0;
    min-height: 1.2em;
    font-size: 0.92rem;
    text-align: center;
    color: var(--ink-soft);
}

.modal__note.is-ok {
    color: var(--brand);
}

.modal__note.is-err {
    color: #d64550;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
    .steps__grid {
        grid-template-columns: 1fr;
    }
    .nav__links {
        gap: 18px;
    }
    .nav__links a[href="about.html"] {
        display: none;
    }

    /* Footer: brand on top, meta on a single centered row (no wrapping) */
    .footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }
    .footer__meta {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
        font-size: 0.78rem;
    }
    .footer__meta > * {
        white-space: nowrap;
    }
}
